1*4882a593Smuzhiyun********************************************* 2*4882a593SmuzhiyunBuildroot for Engicam i.CoreM6 SOM platforms: 3*4882a593Smuzhiyun********************************************* 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunThis file documents the Buildroot support for Engicam i.CoreM6 6*4882a593Smuzhiyunplatform boards. 7*4882a593Smuzhiyun 8*4882a593Smuzhiyuni.CoreM6 Quad/Dual/DualLite/Solo SOM Starter kits: 9*4882a593Smuzhiyunhttps://www.engicam.com/vis-prod/101120 10*4882a593Smuzhiyuni.CoreM6 Quad/Dual/DualLite/Solo Open Frame 10.1 C.TOUCH kits: 11*4882a593Smuzhiyunhttps://www.engicam.com/vis-prod/101133 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunThis configuration uses U-Boot mainline and kernel mainline. 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunBuild 16*4882a593Smuzhiyun===== 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunFirst, configure Buildroot for the Engicam i.CoreM6: 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun make engicam_imx6qdl_icore_defconfig 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunBuild all components: 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun make 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunYou will find the following files in output/images/: 27*4882a593Smuzhiyun - imx6q-icore.dtb (for i.CoreM6 Quad/Dual) 28*4882a593Smuzhiyun - imx6dl-icore.dtb (for i.CoreM6 DualLite/Solo) 29*4882a593Smuzhiyun - imx6q-icore-ofcap10.dtb (for i.CoreM6 Quad/Dual ofcap 10) 30*4882a593Smuzhiyun - imx6q-icore-ofcap12.dtb (for i.CoreM6 Quad/Dual ofcap 12) 31*4882a593Smuzhiyun - rootfs.ext4 32*4882a593Smuzhiyun - rootfs.tar 33*4882a593Smuzhiyun - sdcard.img 34*4882a593Smuzhiyun - SPL 35*4882a593Smuzhiyun - u-boot-dtb.img 36*4882a593Smuzhiyun - uImage 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunCreate a bootable SD card 39*4882a593Smuzhiyun========================= 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunTo determine the device associated to the SD card have a look in the 42*4882a593Smuzhiyun/proc/partitions file: 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun cat /proc/partitions 45*4882a593Smuzhiyun 46*4882a593SmuzhiyunBuildroot prepares a bootable "sdcard.img" image in the output/images/ 47*4882a593Smuzhiyundirectory, ready to be dumped on a SD card. Launch the following 48*4882a593Smuzhiyuncommand as root: 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun dd if=output/images/sdcard.img of=/dev/<your-sd-device> 51*4882a593Smuzhiyun sync 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun*** WARNING! This will destroy all the card content. Use with care! *** 54*4882a593Smuzhiyun 55*4882a593SmuzhiyunFor details about the medium image layout, see the definition in 56*4882a593Smuzhiyunboard/engicam/icorem6/genimage.cfg 57*4882a593Smuzhiyun 58*4882a593SmuzhiyunBoot the i.CoreM6 boards with SD boot: 59*4882a593Smuzhiyun===================================== 60*4882a593Smuzhiyun 61*4882a593SmuzhiyunTo boot your newly created system: 62*4882a593Smuzhiyun- insert the SD card in the SD slot of the board; 63*4882a593Smuzhiyun- connect 3-wire RS232 serial port J28 on board, and connect with other 64*4882a593Smuzhiyun serial end or USB cable(if serial-to-usb converter used) using 65*4882a593Smuzhiyun a terminal emulator at 115200 bps, 8n1; 66*4882a593Smuzhiyun- close JM3 for sd boot. 67*4882a593Smuzhiyun- power on the board. 68*4882a593Smuzhiyun 69*4882a593SmuzhiyunTesting graphics on i.CoreM6: 70*4882a593Smuzhiyun============================ 71*4882a593Smuzhiyun 72*4882a593SmuzhiyunBuild with support for Etnaviv, Qt5 and demo applications: 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun make engicam_imx6qdl_icore_qt5_defconfig 75*4882a593Smuzhiyun make 76*4882a593Smuzhiyun 77*4882a593SmuzhiyunRunning kmscube 78*4882a593Smuzhiyun# kmscube -D /dev/dri/card1 79*4882a593Smuzhiyun 80*4882a593SmuzhiyunRunning glmark2-es2-drm 81*4882a593Smuzhiyun# glmark2-es2-drm 82*4882a593Smuzhiyun 83*4882a593SmuzhiyunRunning Qt5 Cinematic Demo: 84*4882a593Smuzhiyun- for i.CoreM6 Starter Kit 85*4882a593Smuzhiyun# export QT_QPA_EGLFS_KMS_CONFIG=/root/imx6qdl-icore.json 86*4882a593Smuzhiyun- for i.CoreM6 ofcap10 87*4882a593Smuzhiyun# export QT_QPA_EGLFS_KMS_CONFIG=/root/imx6qdl-icore-ofcap10.json 88*4882a593Smuzhiyun- for i.CoreM6 ofcap12 89*4882a593Smuzhiyun# export QT_QPA_EGLFS_KMS_CONFIG=/root/imx6qdl-icore-ofcap12.json 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun# CinematicExperience-demo 92*4882a593Smuzhiyun 93*4882a593SmuzhiyunEnjoy! 94