readme.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. *****************
  2. Warp i.MX7S board
  3. *****************
  4. This file documents the Buildroot support for the Warp i.MX7S board.
  5. Build
  6. =====
  7. First, configure Buildroot for the Warp i.MX7S board:
  8. make warp7_defconfig
  9. Build all components:
  10. make
  11. You will find in output/images/ the following files:
  12. - imx7s-warp.dtb
  13. - rootfs.ext4
  14. - rootfs.tar
  15. - sdcard.img
  16. - u-boot-dtb.imx
  17. - zImage
  18. Flash the eMMC image
  19. ====================
  20. In the U-Boot prompt lauch:
  21. => ums 0 mmc 0
  22. This will mount the eMMC content in the host PC as a mass storage device.
  23. To determine the device associated to the eMMC have a look in the
  24. /proc/partitions file:
  25. cat /proc/partitions
  26. Buildroot prepares a bootable "sdcard.img" image in the output/images/
  27. directory, ready to be dumped into the eMMC. Launch the following
  28. command:
  29. sudo dd if=output/images/sdcard.img of=/dev/<your-emmc-device>
  30. *** WARNING! This will destroy all the eMMC content. Use it with care! ***
  31. For details about the medium image layout, see the definition in
  32. board/warp7/genimage.cfg.
  33. How to recover from a bad eMMC image
  34. ====================================
  35. In case a bad U-Boot has been flashed to the eMMC and the board no
  36. longer boots, it is possible to recover using the imx_usb_loader utility.
  37. Put the warp7 board in USB download mode by removing the CPU board
  38. from the base board then putting switch 2 in the upper position.
  39. Connect a USB to serial adapter between the host PC and warp7 serial
  40. USB port, and also a USB cable between the OTG warp7 port and the host
  41. PC.
  42. Copy u-boot-dtb.imx to the imx_usb_loader folder.
  43. Load u-boot-dtb.imx via USB:
  44. $ sudo ./imx_usb u-boot-dtb.imx
  45. Then U-Boot should start and its messages will appear in the console program.
  46. Open a terminal program such as minicom.
  47. Use the default environment variables:
  48. => env default -f -a
  49. => saveenv
  50. Run the DFU command:
  51. => dfu 0 mmc 0
  52. Transfer u-boot-dtb.imx that will be flashed into the eMMC:
  53. $ sudo dfu-util -D u-boot-dtb.imx -a boot
  54. Then on the U-Boot prompt the following message should be seen after a
  55. successful upgrade:
  56. #DOWNLOAD ... OK
  57. Ctrl+C to exit ...
  58. => ums 0 mmc 0
  59. sudo dd if=output/images/sdcard.img of=/dev/<your-emmc-device>
  60. Put warp7 back in eMMC boot mode by placing switch 2 in the lower position
  61. and reboot the board.
  62. Boot the Warp i.MX7S board
  63. ==========================
  64. To boot your newly created system:
  65. - put a micro USB cable into the Debug USB Port and connect using a terminal
  66. emulator at 115200 bps, 8n1;
  67. - power on the board.
  68. Using Wifi
  69. ==========
  70. # modprobe brcmfmac
  71. # iwconfig wlan0 essid ACCESSPOINTNAME
  72. # wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf
  73. (enter the wifi password and press enter)
  74. # wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf &
  75. # udhcpc -i wlan0
  76. # ping buildroot.org
  77. Enjoy!