1 setenv bootargs enable_wait_mode=off 2 setenv nextcon 0; 3 4 if 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 8 else 9 echo "------ no HDMI monitor"; 10 fi 11 12 i2c dev 2 13 if 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 21 else 22 echo "------ no Freescale display"; 23 fi 24 25 if 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 33 else 34 echo "------ no 1024x600 display"; 35 fi 36 37 if 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 45 else 46 echo "------ no 800x480 display"; 47 fi 48 49 while test "3" -ne $nextcon ; do 50 setenv bootargs $bootargs video=mxcfb${nextcon}:off ; 51 setexpr nextcon $nextcon + 1 ; 52 done 53 54 setenv bootargs $bootargs $fbmem 55 setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait" 56 57 if test "sata" = "${dtype}" ; then 58 setenv bootargs "$bootargs root=/dev/sda1" ; 59 else 60 setenv "bootargs $bootargs root=/dev/mmcblk0p1" ; 61 fi 62 ${fs}load ${dtype} ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; 63 echo "Error loading kernel image" 64