readme.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. ****************************
  2. Technexion i.MX7D Pico board
  3. ****************************
  4. This file documents the Buildroot support for the Technexion i.MX7D Pico board.
  5. Build
  6. =====
  7. First, configure Buildroot for the i.MX7D Pico board:
  8. make imx7dpico_defconfig
  9. Build all components:
  10. make
  11. You will find in output/images/ the following files:
  12. - imx7d-pico.dtb
  13. - rootfs.ext4
  14. - rootfs.tar
  15. - sdcard.img
  16. - u-boot-dtb.img
  17. - SPL
  18. - zImage
  19. Flash U-Boot and SPL
  20. =====
  21. Note: This method is convenient for development purposes.
  22. If the eMMC has already a U-Boot flashed with DFU support then
  23. the user can go to step 2 below in order to update U-Boot.
  24. Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide
  25. page 3)
  26. Connect a USB to serial adapter between the host PC and pico.
  27. Connect a USB cable between the OTG pico port and the host PC.
  28. Note: Some computers may be a bit strict with USB current draw and will
  29. shut down their ports if the draw is too high. The solution for that is
  30. to use an externally powered USB hub between the board and the host computer.
  31. Open a terminal program such as minicom.
  32. Copy SPL and u-boot-dtb.img to the imx_usb_loader folder.
  33. Load the SPL binary via USB:
  34. $ sudo ./imx_usb SPL
  35. Load the u-boot-dtb.img binary via USB:
  36. $ sudo ./imx_usb u-boot-dtb.img
  37. Then U-Boot starts and its messages appear in the console program.
  38. Use the default environment variables:
  39. => env default -f -a
  40. => saveenv
  41. Run the DFU agent so we can flash the new images using dfu-util tool:
  42. => dfu 0 mmc 0
  43. Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC:
  44. $ sudo dfu-util -D SPL -a spl
  45. $ sudo dfu-util -D u-boot-dtb.img -a u-boot
  46. Remove power from the pico board.
  47. Put pico board into normal boot mode.
  48. Power up the board and the new updated U-Boot should boot from eMMC.
  49. Flash the eMMC
  50. ==============
  51. In the U-Boot prompt lauch:
  52. => ums 0 mmc 0
  53. This will mount the eMMC content in the host PC as a mass storage device.
  54. To determine the device associated to the eMMC card have a look in the
  55. /proc/partitions file:
  56. cat /proc/partitions
  57. Buildroot prepares a bootable "sdcard.img" image in the output/images/
  58. directory, ready to be dumped on the eMMC card. Launch the following
  59. command as root:
  60. dd if=output/images/sdcard.img of=/dev/<your-sd-device>
  61. *** WARNING! This will destroy all the eMMC content. Use with care! ***
  62. For details about the medium image layout, see the definition in
  63. board/freescale/common/imx/genimage.cfg.template.
  64. Boot the i.MX7D Pico board
  65. ==========================
  66. To boot your newly created system:
  67. - put a micro USB cable into the Debug USB Port and connect using a terminal
  68. emulator at 115200 bps, 8n1;
  69. - power on the board.
  70. Using Wifi
  71. ==========
  72. # modprobe brcmfmac
  73. # iwconfig wlan0 essid ACCESSPOINTNAME
  74. # wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf
  75. (enter the wifi password and press enter)
  76. # wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf &
  77. # udhcpc -i wlan0
  78. # ping buildroot.org
  79. Enjoy!