1setenv bootargs enable_wait_mode=off 2setenv nextcon 0; 3 4if hdmidet ; then 5 setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 6 setenv fbmem "fbmem=28M"; 7 setexpr nextcon $nextcon + 1 8else 9 echo "------ no HDMI monitor"; 10fi 11 12i2c dev 2 13if i2c probe 0x04 ; then 14 setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666 15 if test "0" -eq $nextcon; then 16 setenv fbmem "fbmem=10M"; 17 else 18 setenv fbmem ${fbmem},10M 19 fi 20 setexpr nextcon $nextcon + 1 21else 22 echo "------ no Freescale display"; 23fi 24 25if i2c probe 0x38 ; then 26 setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,1024x600M@60,if=RGB666 27 if test "0" -eq $nextcon; then 28 setenv fbmem "fbmem=10M"; 29 else 30 setenv fbmem ${fbmem},10M 31 fi 32 setexpr nextcon $nextcon + 1 33else 34 echo "------ no 1024x600 display"; 35fi 36 37if i2c probe 0x48 ; then 38 setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,if=RGB666 39 if test "0" -eq $nextcon; then 40 setenv fbmem "fbmem=10M"; 41 else 42 setenv fbmem ${fbmem},10M 43 fi 44 setexpr nextcon $nextcon + 1 45else 46 echo "------ no 800x480 display"; 47fi 48 49while test "3" -ne $nextcon ; do 50 setenv bootargs $bootargs video=mxcfb${nextcon}:off ; 51 setexpr nextcon $nextcon + 1 ; 52done 53 54setenv bootargs $bootargs $fbmem 55setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait" 56 57if test "sata" = "${dtype}" ; then 58 setenv bootargs "$bootargs root=/dev/sda1" ; 59else 60 setenv "bootargs $bootargs root=/dev/mmcblk0p1" ; 61fi 62${fs}load ${dtype} ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; 63echo "Error loading kernel image" 64