UDOO setup lvds panels

From eLinux.org
Jump to: navigation, search

Update the system

Make sure you have the lastest u-boot and kernel. if not you can use the simple update procedure with the update package downloadable here.

Configuration

To use your LVDS with UDOO you have to follow these simple instructions.

With the last uboot version (release 2.0 – v.109) you need to change the “video” environment variables with:

15″ –> video=mxcfb0:dev=ldb,1366x768M@60,if=RGB24,bpp=32
7″ –> video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32
hdmi –> video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 (default environment variable)

To do this you need to connect an external pc to the debug serial of UDOO. For more info see the UDOO starting manual at the “Establish serial debug connection with UDOO” section.

These are the commands you need:

15″ Linux

setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=ldb,DB-WXGA,if=RGB24,bpp=32

15″ Android

setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=ldb,1366x768M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M

7″ Linux

setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32

7″ Android

setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M

HDMI Linux

setenv mmcargs setenv bootargs console=${console},${baudrate} root=${mmcroot} ${hdmi_patch} fbmem=24M video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32

HDMI Android

setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1 androidboot.hardware=freescale mem=1024M

At the next boot the video source will again be the default one unless you save the configuration you just inserted with the command:

saveenv

In Android you can also boot UDOO from both HDMI and LVDS panel at the same time inserting these variables in a different frame buffer:

e.g. boot on lvds 15″ and hdmi.

setenv bootargs console=ttymxc1,115200 init=/init video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb2:off fbmem=28M vmalloc=400M androidboot.console=ttymxc1  androidboot.hardware=freescale mem=1024M

Touch Calibration

if you have any problem with touch calibration try to modify the text file:

/etc/X11/xorg.conf.d/99-calibration.conf

with this text:

Section "InputClass"
       Identifier      "calibration"
       MatchProduct    "3M 3M USB Touchscreen - EX II"
       Option  "Calibration"   "-75 65106 2318 65008"
       Option  "SwapAxes"      "0"
       Option  "InvertX"      "1"
       Option  "InvertY"      "0"
EndSection
Section "InputClass"
       Identifier      "calibration"
       MatchProduct    "sitronix-i2c-touch-mt"
       Option  "Calibration"   "10 802 11 479"
EndSection


If the calibration is not good enough you can connect a mouse to UDOO and launch the "Calibrate Touchscreen" application from the top bar:

Application -> System Tools -> Administration -> Calibrate Touchscreen

or running in a terminal the command:

xinput_calibrator

and follow the video instruction to change your calibration.