background image

Summary of Contents for MYC-C8MMQ6-8E2D-160-I

Page 1: ......

Page 2: ...System 3 1 U Boot 3 2 Linux Kernel 3 3 Build Filesystem 3 3 1 Yocto build Linux system 3 3 2 Yocto build SDK package 3 3 3 Yocto build FAQ 4 Linux Application Development 4 1 GPIO KEY 4 2 GPIO LED 4 3 RTC 4 4 Ethernet 4 5 M 2 4 6 USB Host 4 7 TTL Serial 4 8 Audio 4 9 LCD 4 10 CAMERA 4 11 WiFi 4 12 Buletooth 4 13 4G LTE 5 QT Application Development 5 1 Install QtCreator 5 2 Config QtCreator 5 3 Tes...

Page 3: ...the MYD C8MMX development board about Linux compile and deploy interface usage on baseboard Qt application development etc Version History Version Description Date V1 0 Initialize version 2019 11 09 Hardware Version This document suit list MYD C8MMX Preface 3 ...

Page 4: ... Capacity touch panel YES Driver UART Serial port driver YES Driver LED GPIO LED YES Driver KEY GPIO KEY YES Driver Audio WM8904 codec driver YES Driver Camera OV5640 driver YES Driver WiFi BT AP6212 YES Driver LTE module Optional 4G module Quectl EC20 use USB driver YES FileSystem Yotcto rootfs Based Yocto build filesystem include Qt 5 10 package YES FileSystem Yotcto rootfs Based Yocto build fil...

Page 5: ...1 Software Resource 5 ...

Page 6: ...d related software packages Connect development board with PC 1 PC use USB to TLL cable with DEBUG port JP25 on board 2 Open serial program with exist serial device PC serial port configure parameters Baudrate 115200 Data bit 8bit Parity None Stop bit 1bit Flow control Disable User root Passwd none Product pictures The core module has two model of chip According to the difference between Flash and...

Page 7: ...ory while setting the DEV_ROOT variable to enable the follow up step path accessed mkdir p MYD C8MMX devel export DEV_ROOT MYD C8MMX devel cp r DVDROM 02 Images DEV_ROOT cp r DVDROM 03 Tools DEV_ROOT cp r DVDROM 04 Source DEV_ROOT Yocto toolchain Yocto toolchain gcc version 7 3 0 GCC Yocto provide two kinds toolchain one is low level development toolchain meta toolchain another is application deve...

Page 8: ...rget directory for SDK default opt myir imx xwayland 4 14 sumo media hufan You are about to install the SDK to media hufan myir imx xwayland 4 14 sumo Proceed Y n y Extracting SDK done Setting it up done SDK has been successfully set up and is ready to be used Each time you wish to use the SDK in a new shell session you need to source the environment setup script e g Load the environment variables...

Page 9: ...ovides templates tools and methods to help you create custom Linux based system for embedded products regardless of the hardware architecture These software are locating in 04 Source directory Some packages use ID number in file name Before compile u boot and Linux kernel source code you need install meta toolchain and load the environment variables into current shell Load the environment variable...

Page 10: ... 04 Source tar xvf MYIR i MX8MM Uboot tar gz cd MYIR i MX8MM Uboot Compiling make distclean make defconfig make j16 After compile completation u boot nodtb bin spl u boot spl bin arch arm dts fsl imx8mm ddr4 evk dtb Get firmware and Extract wget http www freescale com lgfiles NMG MAD YOCTO firmware imx 8 1 bin Install chmod x firmware imx 8 1 bin firmware imx 8 1 bin auto accept tree L 2 firmware ...

Page 11: ...mage_uboot cp MYIR i MX8MM Uboot arch arm dts myb fsl imx8mm ddr4 evk dtb iMX8M cp MYIR i MX8MM Uboot spl u boot spl bin iMX8M cp MYIR i MX8MM Uboot u boot nodtb bin iMX8M cp firmware imx 8 1 firmware ddr synopsys ddr4_dmem_1d bin iMX8M cp firmware imx 8 1 firmware ddr synopsys ddr4_dmem_2d bin iMX8M cp firmware imx 8 1 firmware ddr synopsys ddr4_imem_1d bin iMX8M cp firmware imx 8 1 firmware ddr ...

Page 12: ...aded by default 10 1 inch myb fsl imx8mm hontron 7 dtb MYD C8MMX 7 inch LVDS screen device tree myb fsl imx8mm me190etn01 dtb MYD C8MMX 19 inch LVDS screen device tree myb fsl imx8mm atk 10 1 dtb MYD C8MMX 10 1 inch LVDS screen device tree When you build kernel complete the version tag will changed automatically If you driver load with module type you should recompile driver module make modules Af...

Page 13: ... will guide developer how to use build embedded Linux system It has Bitbake OpenEmbedded Core BSP package and more kinds of software packages and config files Through Poky to build different requirment system eg the minimal system core image minimal include GUI system fsl image gui include Qt5 graphics system fsl image qt5 validation imx NXP i MX8M MNI support build file to apply on Yocto project ...

Page 14: ...om MYD C8MMX cd DEV_ROOT tar xvf 04 Source MYIR Yocto i MX8MM tar gz tar xvf 04 Source Yocto downloads tar xz C MYIR Yocto i MX8MM Last also needs put the kernel and u boot source into your home directory in linux It will be fetched with Yocto tar xvf 04 Source MYIR i MX8MM Uboot tar gz C tar xvf 04 Source MYIR i MX8MM Linux tar gz C Init Yocto build directory Use script by NXP supported create a ...

Page 15: ... imx8mm 20191031034431 testdata json lrwxrwxrwx 2 hufan hufan 66 10 31 12 00 fsl image qt5 validation imx myd imx8mm ext4 fsl image qt5 valida tion imx myd imx8mm 20191031034431 rootfs ext4 lrwxrwxrwx 2 hufan hufan 70 10 31 11 59 fsl image qt5 validation imx myd imx8mm manifest fsl image qt5 va lidation imx myd imx8mm 20191031034431 rootfs manifest lrwxrwxrwx 2 hufan hufan 72 10 31 12 01 fsl image...

Page 16: ...wx 2 hufan hufan 57 10 18 19 11 myb fsl imx8mm lcdif dtb Image 4 14 98 r0 myb fsl imx8mm lcdif 2 0191018110936 dtb lrwxrwxrwx 2 hufan hufan 60 10 18 19 11 myb fsl imx8mm st2151b0 dtb Image 4 14 98 r0 myb fsl imx8mm st21 51b0 20191018110936 dtb rw r r 2 hufan hufan 103K 7 6 22 15 signed_dp_imx8m bin rw r r 2 hufan hufan 103K 7 6 22 15 signed_hdmi_imx8m bin lrwxrwxrwx 2 hufan hufan 16 7 6 23 34 tee ...

Page 17: ...etch Download package from predefined of recipe c cleanall Clean all build directory c deploy Deploy image or package to target rootfs k Continue when error occure c compile Recompile image or package 3 3 1 Yocto build Linux system 17 ...

Page 18: ...ere has two kinds manifest file host manifest is a list of host software packages target manifest is a list of target device packages Build application level toolchain The application level toolchain use same name with Image This case you can use fsl image qt5 validation imx as image name argument bitbake c populate_sdk image name After the build is complete in the tmp deploy sdk directory ls tmp ...

Page 19: ... SDK toolchain to compile all the example code and copy to the development board directory Compile example program Load the toolchain environment to current shell and check the gcc version to verify environment correct source media hufan myir imx xwayland 4 14 sumo environment setup aarch64 poky li nux Compile the sample code cd DEV_ROOT 04 Sources tar xvf example tar bz2 cd example make 4 Linux A...

Page 20: ...r running the gpio_key program press or release the K3 key the debug serial port will output the relevant status information Press Ctrl C to end the program Run the program on board gpio_key dev input event1 Hit any key on board key 3 Pressed key 3 Released key 3 Pressed key 3 Released 4 1 GPIO KEY 20 ...

Page 21: ...ing the Linux system API to operate LED D18 and D19 light on and off After running the program D18 and D19 flash alternately Press Ctrl C to end the program gpio_led sys class leds user brightness sys class leds cpu brightness 4 2 GPIO LED 21 ...

Page 22: ...2 09 40 UTC 2019 2 Update the system time to RTC hwclock w 3 View the time of RTC hwclock Wed Apr 3 12 11 09 2019 0 000000 seconds 4 Set a system time date s 20170402 Sun Apr 2 00 00 00 UTC 201 5 Update the RTC s time to system hwclock s date Wed Apr 3 12 13 10 UTC 2019 Perform RTC synchronization system time test The above process has set the time for the RTC Now power off first for a minute then...

Page 23: ...4 3 RTC 23 ...

Page 24: ...and development board with net cable Software test Place the program in the linux computer s home directory which completed in example network pc_server directory Set a static IP as 192 168 30 3 and start the service perform below step ifconfig eth0 192 168 30 3 pc_server As a client the development board also need to set a static IP as 192 168 30 133 then start the arm_client program perform belo...

Page 25: ...4G 1 9G 4 2G 31 devtmpfs 237M 4 0K 237M 1 dev tmpfs 494M 0 494M 0 dev shm tmpfs 494M 8 6M 485M 2 run tmpfs 494M 0 494M 0 sys fs cgroup tmpfs 494M 4 0K 494M 1 tmp tmpfs 494M 144K 494M 1 var volatile dev nvme0n1p1 110G 560M 104G 1 run media nvme0n1p1 dev mmcblk0p1 500M 21M 480M 5 run media mmcblk0p1 tmpfs 99M 88K 99M 1 run user 0 cat proc mounts grep nvme dev nvme0n1p1 run media nvme0n1p1 ext4 rw re...

Page 26: ... 1 Product 2 SerialNumber 3 usb 1 2 Product USB3 0 CRW usb 1 2 Manufacturer Generic usb 1 2 SerialNumber 20120501030900000 usb storage 1 2 1 0 USB Mass Storage device detected scsi host5 usb storage 1 2 1 0 scsi 5 0 0 0 Direct Access Generic SD MMC 1 00 PQ 0 ANSI 4 sd 5 0 0 0 sda 31116288 512 byte logical blocks 15 9 GB 14 8 GiB sd 5 0 0 0 sda Write Protect is off sd 5 0 0 0 sda Write cache disabl...

Page 27: ...1 ttymxc3 Hardware connection Connect to the J24 and use the TTL to USB cable to connect to the PC Software test Set the device of ttymxc1 baund rate to 115200 and send hello words uart_test d dev ttymxc2 b 115200 s hello Use the serial tool to configure detail parameter as follows baund rate 115200 data bits 8bit parity None stop bits 1bit flow control Disable The serial port output hellohellohel...

Page 28: ...e MYD C8MMX board PC Audio Out via a 3 5mm AUX cable HEADPHONE J13 connect your headerphone or speaker Software test The PC plays the audio file and execute arecord command on board It will recored data and save to test wav file You can use ctrl c stop it after one minute arecord f cd test wav Use aplay command to play file that previous step recoreded aplay test wav 4 8 Audio 28 ...

Page 29: ...t 0 transp offset 0 finfo line_length 5120 finfo type PACKED_PIXELS The framebuffer device was mapped to memory successfully systemctl start weston When using different screens modify and load the corresponding DTB files Modify the method in uboot mode as follows u boot print fdt_file fdt_file myb fsl imx8mm lcdif dtb u boot setenv fdt_file myb fsl imx8mm hontron 7 dtb u boot save Saving Environme...

Page 30: ...on Please do not insert other camera model this operation maybe damage the board or camera module Hardware connection Use FPC wire connects MY CAM003M module and camera interface J11 of MYD C8MMX Software test Use gst play in the system to preview gst launch 1 0 v4l2src device dev video0 video x raw width 640 height 480 frame rate 30 1 glimagesink 4 10 CAMERA 30 ...

Page 31: ...ed Frequency 2 412 GHz Access Point 30 FC 68 9A E8 99 Bit Rate 24 Mb s Tx Power 31 dBm Retry short limit 7 RTS thr off Fragment thr off Encryption key off Power Management on Link Quality 70 70 Signal level 36 dBm Rx invalid nwid 0 Rx invalid crypt 0 Rx invalid frag 0 Tx excessive retries 0 Invalid misc 0 Missed beacon 0 lo no wireless extensions root myd imx8mm etc wifi conf ifconfig eth0 Link en...

Page 32: ...guration file etc wifi conf hostapd conf 364 421584 IPv6 ADDRCONF NETDEV_UP wlan0 link is not ready wlan0 Could not connect to kernel driver Using interface wlan0 with hwaddr 18 93 7f 74 5e 2c and ssid MYIR WIFI AP random Only 19 20 bytes of strong random data available from dev random random Not enough entropy pool available for secure operations WPA Not enough entropy in random pool for secure o...

Page 33: ... 54 4D 0B 34 UUIDs 0000046a 0000 1000 8000 00805f9b34fb CHG Device 24 31 54 4D 0B 34 UUIDs 00001105 0000 1000 8000 00805f9b34fb CHG Device 24 31 54 4D 0B 34 UUIDs 0000110a 0000 1000 8000 00805f9b34fb CHG Device 24 31 54 4D 0B 34 UUIDs 0000110c 0000 1000 8000 00805f9b34fb CHG Device 24 31 54 4D 0B 34 UUIDs 00001112 0000 1000 8000 00805f9b34fb CHG Device 24 31 54 4D 0B 34 UUIDs 00001115 0000 1000 80...

Page 34: ...ig ppp0 ppp0 Link encap Point to Point Protocol inet addr 10 163 130 65 P t P 10 64 64 64 Mask 255 255 255 255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU 1500 Metric 1 RX packets 5 errors 0 dropped 0 overruns 0 frame 0 TX packets 5 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 3 RX bytes 62 62 0 B TX bytes 86 86 0 B cat etc resolv conf nameserver 202 96 128 86 nameserver 202 96 1...

Page 35: ...Creator IDE It can be developed Qt application more easier automated cross compiler for the development board of the ARM architecture This chapter uses Yocto SDK as cross compile tool to work with QtCreator to quickly develop graphical applications Before starting this chapter please complete the Chapter3 to build Qt get an available ARM version of the Qt graphics library Please install the Yocto ...

Page 36: ...installation process is done click on the next step to complete The default installation directory is in the opt qtcreator 5 9 4 In order to QtCreator use Yocto SDK we need add environment to QtCreator source media hufan myir imx xwayland 4 14 sumo environment setup aarch64 poky linux When you use QtCreator you need start it from terminal to execute qtcreator sh Qt5 9 4 Tools QtCreator bin qtcreat...

Page 37: ... g compile Configure a QTversion Configure a QTdebug Add a new device Create a kit and add the above 4 items together to compile the QT configuration 1 Configure GCC and G After started Qtcreator first open a sample make the project become configurable and then click Project Manage kits as shown below Figure 5 2 1 Qtcreate interface Then go to Options Compiler Add GCC C C The process is as follows...

Page 38: ...path is media hufan myir imx xwayland 4 14 sumo sysroots x86_64 pokysdk linux usr bin aarch64 poky linux aarch64 poky linux g The C compiler path is media hufan myir imx xwayland 4 14 sumo sysroots x86_64 pokysdk linux usr bin aarch64 poky linux aarch64 poky linux gcc 2 Configure QT versions Option Qt Versions Add select the following file 5 2 Config QtCreator 38 ...

Page 39: ...ption Debuggers add fill name and path path media hufan myir imx xwayland 4 14 sumo sysroots x86_64 pokysdk linux usr bin aarch64 poky linux aarch64 poky linux gdb Figure 5 2 5 QTdebug configure 4 Add new device device add general Linux device Then configure the name IP address login user name account number and password 5 2 Config QtCreator 39 ...

Page 40: ... 5 2 7 Device configure01 5 Create kit Build and run build kit kit add Here you need to combine the four step configuration files of the appeal and fill in the sysroot media hufan myir imx xwayland 4 14 sumo sysroots 5 2 Config QtCreator 40 ...

Page 41: ...Figure 5 2 8 Kit configure 5 2 Config QtCreator 41 ...

Page 42: ...3 1 config building option Step 3 click the menu bar Build Build Project IMX8MM_TEST button you can complete the project compilation while the bottom window will output compile Figure 5 3 2 Compling output QtCreator build IMX8MM_TEST project compiled binary files stored in the build IMX8MM_TEST MYD_C8MM_KIT Debug directory you can use the file command to see whether is the compiler for the ARM arc...

Page 43: ...ersion 1 GNU Linux dynamically linked interpreter li b ld linux aarch64 so 1 for GNU Linux 3 14 0 BuildID sha1 03985eafba83abbe3b7af7e36ebbbd920e375766 not stri pped Copy the IMX8MM_TEST file to board and run it IMX8MM_TEST The LCD shows Qt windows 5 3 Test Qt exapmle 43 ...

Page 44: ...board USB and SD card USB method Using NXP UUU tool to burn files into flash on download mode of chip SD Card method Using updatable SD image to write files into flash Boot switch SW1 SW2 Description 10XX XXXX USB Download 0110 1010 Boot from eMMC 0101 0101 Boot from SD 6 Update System 44 ...

Page 45: ...form the download via cmd uuu exe uuu auto at which point the cmd window sees the progress of the download Manual programming input command to start programming Figure 6 1 1 Manual programming input command to start programming During the writing process Figure 6 1 2 During the writing process Final Figure 6 1 2 Final Update iamge If you need to update their own compilation system image files to d...

Page 46: ...f dtb rootfsfile fsl image qt5 validation imx myd imx8mm 20191018120710 rootfs ext4 sudo build sdcard sh ls boot img build sdcard sh firmware mfg images MYD C8MM Update System rootfs sdcard img gz readme md MYD C8MM Update System rootfs sdcard img gz is generated file After builds complete a sdcard img gz suffix file in current directory MYD C8MM Update System rootfs sdcard img gz Making updatable...

Page 47: ...r system partition or other storage device Take the Micro SD card insert into card slot J21 on MYD C8MMX configure the start bit dial switch to the SD card startup mode and start programming automatically when power is turned on The D18 indicator will flash during programming D18 will be off if the programming fails and D18 will be on when the programming is completed 6 2 SD Card Method 47 ...

Page 48: ...esting packaging shipping and other aspects and strive to provide products with best quality to customers We believe that only quality products and excellent services can ensure the long term cooperation and mutual benefit Price MYIR insists on providing customers with the most valuable products We do not pursue excess profits which we think only for short time cooperation Instead we hope to estab...

Page 49: ...e boards all those reasons which have caused the damage of the products or defects of appearance Due to unauthorized weld or dismantle parts or repair the products which has caused the damage of the products or defects of appearance Due to unauthorized installation of the software system or incorrect configuration or computer virus which has caused the damage of products Warm tips 1 MYIR does not ...

Page 50: ...by users Products Life Cycle MYIR will always select mainstream chips for our design thus to ensure at least ten years continuous supply if meeting some main chip stopping production we will inform customers in time and assist customers with products updating and upgrading Value added Services 1 MYIR provides services of driver development base on MYIR s products like serial port USB Ethernet LCD ...

Reviews: