6x_bootscript_android.txt 1.6 KB

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