README 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. How to use and build U-Boot on mx6sabresd:
  2. ----------------------------------
  3. Currently there are three methods for booting mx6sabresd boards:
  4. 1. Booting via Normal U-Boot (u-boot.imx)
  5. 2. Booting via SPL (SPL and u-boot.img)
  6. 3. Booting via Falcon mode (SPL launches the kernel directly)
  7. 1. Booting via Normal U-Boot
  8. ----------------------------
  9. $ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd)
  10. or
  11. $ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd)
  12. $ make
  13. This will generate the image called u-boot.imx.
  14. - Flash the u-boot.imx binary into the SD card:
  15. $ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync
  16. 2. Booting via SPL
  17. ------------------
  18. Other method for building U-Boot on mx6qsabresd and mx6qpsabresd is
  19. through SPL. In order to do so:
  20. $ make mx6sabresd_spl_defconfig
  21. $ make
  22. This will generate the SPL image called SPL and the u-boot.img.
  23. - Flash the SPL image into the SD card:
  24. $ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync
  25. - Flash the u-boot.img image into the SD card:
  26. $ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 && sync
  27. 3. Booting via Falcon mode
  28. --------------------------
  29. $ make mx6sabresd_spl_defconfig
  30. $ make
  31. This will generate the SPL image called SPL and the u-boot.img.
  32. - Flash the SPL image into the SD card:
  33. $ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync
  34. - Flash the u-boot.img image into the SD card:
  35. $ sudo dd if=u-boot.img of=/dev/sdbbs=1K seek=69 oflag=sync status=none && sync
  36. Create a partition for root file system and extract it there:
  37. $ sudo tar xvf rootfs.tar.gz -C /media/root
  38. The SD card must have enough space for raw "args" and "kernel".
  39. To configure Falcon mode for the first time, on U-Boot do the following commands:
  40. - Setup the IP server:
  41. # setenv serverip <server_ip_address>
  42. - Download dtb file:
  43. # dhcp ${fdt_addr} imx6q-sabresd.dtb
  44. - Download kernel image:
  45. # dhcp ${loadaddr} uImage
  46. - Write kernel at 2MB offset:
  47. # mmc write ${loadaddr} 0x1000 0x4000
  48. - Setup kernel bootargs:
  49. # setenv bootargs "console=ttymxc0,115200 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait quiet rw"
  50. - Prepare args:
  51. # spl export fdt ${loadaddr} - ${fdt_addr}
  52. - Write args 1MB data (0x800 sectors) to 1MB offset (0x800 sectors)
  53. # mmc write 18000000 0x800 0x800
  54. - Press KEY_VOL_UP key, power up the board and then SPL binary will
  55. launch the kernel directly.