6x_bootscript.txt 1.5 KB

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