1*4882a593Smuzhiyun*************************** 2*4882a593SmuzhiyunFreescale i.MX8MQ EVK board 3*4882a593Smuzhiyun*************************** 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunThis file documents the Buildroot support for the Freescale i.MX8MQ 6*4882a593SmuzhiyunEVK board. 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunBuild 9*4882a593Smuzhiyun===== 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunFirst, configure Buildroot for the i.MX8MQ EVK board: 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunIf you want to use the NXP kernel: 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun make freescale_imx8mqevk_defconfig 16*4882a593Smuzhiyun 17*4882a593SmuzhiyunOr if you want to use a mainline kernel: 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun make imx8mqevk_defconfig 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunBuild all components: 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun make 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunYou will find in output/images/ the following files: 26*4882a593Smuzhiyun - bl31.bin 27*4882a593Smuzhiyun - boot.vfat 28*4882a593Smuzhiyun - fsl-imx8mq-evk.dtb 29*4882a593Smuzhiyun - Image 30*4882a593Smuzhiyun - imx8-boot-sd.bin 31*4882a593Smuzhiyun - lpddr4_pmu_train_fw.bin 32*4882a593Smuzhiyun - rootfs.ext2 33*4882a593Smuzhiyun - rootfs.ext4 34*4882a593Smuzhiyun - rootfs.tar 35*4882a593Smuzhiyun - sdcard.img 36*4882a593Smuzhiyun - signed_hdmi_imx8m.bin 37*4882a593Smuzhiyun - u-boot.bin 38*4882a593Smuzhiyun - u-boot.imx 39*4882a593Smuzhiyun - u-boot-nodtb.bin 40*4882a593Smuzhiyun - u-boot-spl-ddr.bin 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunCreate a bootable SD card 43*4882a593Smuzhiyun========================= 44*4882a593Smuzhiyun 45*4882a593SmuzhiyunTo determine the device associated to the SD card have a look in the 46*4882a593Smuzhiyun/proc/partitions file: 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun cat /proc/partitions 49*4882a593Smuzhiyun 50*4882a593SmuzhiyunBuildroot prepares a bootable "sdcard.img" image in the output/images/ 51*4882a593Smuzhiyundirectory, ready to be dumped on a SD card. Launch the following 52*4882a593Smuzhiyuncommand as root: 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun dd if=output/images/sdcard.img of=/dev/<your-sd-device> 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun*** WARNING! This will destroy all the card content. Use with care! *** 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunFor details about the medium image layout, see the definition in 59*4882a593Smuzhiyunboard/freescale/common/imx/genimage.cfg.template_imx8. 60*4882a593Smuzhiyun 61*4882a593SmuzhiyunBoot the i.MX8MQ EVK board 62*4882a593Smuzhiyun========================== 63*4882a593Smuzhiyun 64*4882a593SmuzhiyunTo boot your newly created system: 65*4882a593Smuzhiyun- insert the SD card in the SD slot of the board; 66*4882a593Smuzhiyun- Configure the switches as follows: 67*4882a593SmuzhiyunSW801: ON ON OFF OFF 68*4882a593SmuzhiyunSW802: ON OFF 69*4882a593Smuzhiyun- put a micro USB cable into the Debug USB Port and connect using a terminal 70*4882a593Smuzhiyun emulator at 115200 bps, 8n1; 71*4882a593Smuzhiyun- power on the board. 72*4882a593Smuzhiyun 73*4882a593SmuzhiyunEnable HDMI output 74*4882a593Smuzhiyun================== 75*4882a593Smuzhiyun 76*4882a593SmuzhiyunTo enable HDMI output at boot you must provide the video kernel boot 77*4882a593Smuzhiyunargument. To set the video boot argument from U-Boot run after 78*4882a593Smuzhiyunstopping in U-Boot prompt: 79*4882a593Smuzhiyun 80*4882a593Smuzhiyunsetenv mmcargs 'setenv bootargs console=${console} root=${mmcroot} video=HDMI-A-1:1920x1080-32@60' 81*4882a593Smuzhiyunsaveenv 82*4882a593Smuzhiyunreset 83*4882a593Smuzhiyun 84*4882a593SmuzhiyunChange screen resolution to suit your connected display. 85*4882a593Smuzhiyun 86*4882a593SmuzhiyunEnjoy! 87