readme.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. - emmc.img
  16. - u-boot.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 "emmc.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/emmc.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.imx to the imx_usb_loader folder.
  43. Load u-boot.imx via USB:
  44. $ sudo ./imx_usb u-boot.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. => ums 0 mmc 0
  51. sudo dd if=output/images/emmc.img of=/dev/<your-emmc-device>
  52. Put warp7 back in eMMC boot mode by placing switch 2 in the lower position
  53. and reboot the board.
  54. Boot the Warp i.MX7S board
  55. ==========================
  56. To boot your newly created system:
  57. - put a micro USB cable into the Debug USB Port and connect using a terminal
  58. emulator at 115200 bps, 8n1;
  59. - power on the board.
  60. Using Wifi
  61. ==========
  62. # modprobe brcmfmac
  63. # iwconfig wlan0 essid ACCESSPOINTNAME
  64. # wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf
  65. (enter the wifi password and press enter)
  66. # wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf &
  67. # udhcpc -i wlan0
  68. # ping buildroot.org
  69. Enjoy!