1*4882a593Smuzhiyun*************************** 2*4882a593SmuzhiyunFreescale i.MX8QM MEK board 3*4882a593Smuzhiyun*************************** 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunThis file documents the Buildroot support for the NXP i.MX8QM MEK board. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunYou will find a reference to the board on nxp.com: 8*4882a593Smuzhiyunhttps://www.nxp.com/design/development-boards/i.mx-evaluation-and-development-boards/i.mx-8quadmax-multisensory-enablement-kit-mek:MCIMX8QM-CPU 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunYou can also find the get started guide here: 11*4882a593Smuzhiyunhttps://www.nxp.com/document/guide/get-started-with-the-i.mx-8quadmax-mek:GS-iMX-8QM-MEK 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunBuild 14*4882a593Smuzhiyun===== 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunFirst, configure Buildroot for the i.MX8QM MEK board: 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun$ make freescale_imx8qmmek_defconfig 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunBuild all components: 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun$ make 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunYou will find in output/images/ the following files: 25*4882a593Smuzhiyun - ahab-container.img 26*4882a593Smuzhiyun - bl31.bin 27*4882a593Smuzhiyun - boot.vfat 28*4882a593Smuzhiyun - fsl-imx8qm-mek.dtb 29*4882a593Smuzhiyun - Image 30*4882a593Smuzhiyun - imx8-boot-sd.bin 31*4882a593Smuzhiyun - mkimg.commit 32*4882a593Smuzhiyun - mx8qm-mek-scfw-tcm.bin 33*4882a593Smuzhiyun - mx8qm-val-scfw-tcm.bin 34*4882a593Smuzhiyun - mx8qm-a0-ddr4-scfw-tcm.bin 35*4882a593Smuzhiyun - mx8qm-a0-mek-scfw-tcm.bin 36*4882a593Smuzhiyun - mx8qm-a0-val-scfw-tcm.bin 37*4882a593Smuzhiyun - mx8qm-ddr4-scfw-tcm.bin 38*4882a593Smuzhiyun - rootfs.ext2 39*4882a593Smuzhiyun - rootfs.ext4 40*4882a593Smuzhiyun - rootfs.tar 41*4882a593Smuzhiyun - sdcard.img 42*4882a593Smuzhiyun - u-boot-atf.bin 43*4882a593Smuzhiyun - u-boot.bin 44*4882a593Smuzhiyun - u-boot-hash.bin 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunCreate a bootable SD card 47*4882a593Smuzhiyun========================= 48*4882a593Smuzhiyun 49*4882a593SmuzhiyunTo determine the device associated to the SD card have a look in the 50*4882a593Smuzhiyun/proc/partitions file: 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun cat /proc/partitions 53*4882a593Smuzhiyun 54*4882a593SmuzhiyunBuildroot prepares a bootable "sdcard.img" image in the output/images/ 55*4882a593Smuzhiyundirectory, ready to be dumped on a SD card. Launch the following 56*4882a593Smuzhiyuncommand as root: 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun dd if=output/images/sdcard.img of=/dev/<your-sd-device> 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun*** WARNING! This will destroy all the card content. Use with care! *** 61*4882a593Smuzhiyun 62*4882a593SmuzhiyunFor details about the medium image layout, see the definition in 63*4882a593Smuzhiyunboard/freescale/common/imx/genimage.cfg.template_imx8. 64*4882a593Smuzhiyun 65*4882a593SmuzhiyunBoot the i.MX8QM MEK board 66*4882a593Smuzhiyun========================== 67*4882a593Smuzhiyun 68*4882a593SmuzhiyunTo boot your newly created system: 69*4882a593Smuzhiyun- insert the SD card in the SD slot of the board; 70*4882a593Smuzhiyun- Configure the boot switch as follows: 71*4882a593SmuzhiyunSW2: OFF OFF ON ON OFF OFF 72*4882a593Smuzhiyun- put a micro USB cable into the Debug USB Port and connect using a terminal 73*4882a593Smuzhiyun emulator at 115200 bps, 8n1; 74*4882a593Smuzhiyun- power on the board. 75*4882a593Smuzhiyun 76*4882a593SmuzhiyunEnjoy! 77