README 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. How to use and build U-Boot on mx6sabreauto
  2. -------------------------------------------
  3. mx6sabreauto_defconfig target supports mx6q/mx6dl/mx6qp sabreauto variants.
  4. In order to build it:
  5. $ make mx6sabreauto_defconfig
  6. $ make
  7. This will generate the SPL and u-boot.img binaries.
  8. - Flash the SPL binary into the SD card:
  9. $ sudo dd if=SPL of=/dev/sdX bs=1K seek=1 && sync
  10. - Flash the u-boot.img binary into the SD card:
  11. $ sudo dd if=u-boot.img of=/dev/sdX bs=1K seek=69 && sync
  12. Booting via Falcon mode
  13. -----------------------
  14. Write in mx6sabreauto_defconfig the following define below:
  15. CONFIG_SPL_OS_BOOT=y
  16. In order to build it:
  17. $ make mx6sabreauto_defconfig
  18. $ make
  19. This will generate the SPL image called SPL and the u-boot.img.
  20. - Flash the SPL image into the SD card:
  21. $ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync
  22. - Flash the u-boot.img image into the SD card:
  23. $ sudo dd if=u-boot.img of=/dev/sdb bs=1K seek=69 && sync
  24. Create a FAT16 boot partition to store uImage and the dtb file, then copy the files there:
  25. $ sudo cp uImage /media/boot
  26. $ sudo cp imx6dl-sabreauto.dtb /media/boot
  27. Create a partition for root file system and extract it there:
  28. $ sudo tar xvf rootfs.tar.gz -C /media/root
  29. The SD card must have enough space for raw "args" and "kernel".
  30. To configure Falcon mode for the first time, on U-Boot do the following commands:
  31. - Load dtb file from boot partition:
  32. # load mmc 0:1 ${fdt_addr} imx6dl-sabreauto.dtb
  33. - Load kernel image from boot partition:
  34. # load mmc 0:1 ${loadaddr} uImage
  35. - Write kernel at 2MB offset:
  36. # mmc write ${loadaddr} 0x1000 0x4000
  37. - Setup kernel bootargs:
  38. # setenv bootargs "console=ttymxc3,115200 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait quiet rw"
  39. - Prepare args:
  40. # spl export fdt ${loadaddr} - ${fdt_addr}
  41. - Write args 1MB data (0x800 sectors) to 1MB offset (0x800 sectors)
  42. # mmc write 18000000 0x800 0x800
  43. - Restart the board and then SPL binary will launch the kernel directly.