Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MYD-JX8MX Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for MYiR MYD-JX8MX Series

  • Page 2: Table Of Contents

    Table of Contents Introduction 1. Software resources 2. Deploy development environment 3. Android system program and compile 3.1 Program Android image to EMMC 1.4.1 3.2 Program Android image to SD card 1.4.2 3.3 Compile Android system 1.4.3 4. Android function introduction 4.1 DM-verity configuration 1.5.1 4.2 NETWORK test 1.5.2 4.3 WIFI test 1.5.3 4.4 BLUETOOTH test 1.5.4 4.5 CSI test 1.5.5 4.6 AUDIO test 1.5.6 4.7 UART test 1.5.7 4.8 4G test 1.5.8 4.9 GPIO test 1.5.9 4.10 USER-KEY test 1.5.10 Appendix Warranty & Technical Support Services...
  • Page 3: Introduction

    Introduction MYD-JX8MX Android9 Development Guide This document introduce how to compile android9 source code , program image and use on MYD-JX8MX series development boards. History Version Note Date V1.0 Initial Version 2019.10.18 Hardware Version This document applies to the following series Development Board of MYIR currently . MYD-JX8MX At least 2GDDR.The memory model is as follows. MT53B512M32D2NP 062 WT MT53D512M32D2DS 053 WT:D Wifi modules on the base baord. Fn-Link 8274B-PR Fn-Link 6222B-PR...
  • Page 4: Software Resources

    1. Software resources 1. Software resources Besides the Yocto Linux and Ubuntu Linux,MYIR also offers Android system for MYD-JX8MX series development board. It provides rich system resources and software resources.Some of the functions have to be working with the extension modules. A list of resources as bellow: Type Name Description Source Code Bootstrap U-boot bootstrap Linux kernel Boot Base on NXP android9.0.0_2.0.0 version Device Driver PMIC BD71873 driver Device Driver USB Host USB Host 3.0 driver Device Driver I2C bus driver Device Driver SPI bus driver Device Driver Ethernet 10M/100M/1000M driver Device Driver MMC/EMMC/TF card stoage driver Device Driver HDMI HDMI driver Device Driver PWM control driver Device Driver Real Time Clock driver Device Driver GPIO GPIO driver...
  • Page 5: Deploy Development Environment

    2. Deploy development environment 2. Deploy development environment Before the development, you need to install the Linux operating system on the PC. It is recommended to use the Ubuntu 16.04 64bit distribution, 8G memory, and more than 500G free hard disk. Connect the network cable and configure the network. For subsequent operations, you need to connect to the Internet to install or download related software packages. You can also refer to the official NXP document <Android_User's_Guide.pdf>. Repalce the Ubuntu sources-list Notice that this only applies to the developer in china. If you are in china ,the tuna resource should instead of the default. The website is as follows: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ Choose 16.04 ,and then copy the contents to update /etc/apt/source.list . Operating procedures : 1.Backup the default file cp /etc/apt/sources.list /etc/apt/sources.list-bak 2.Copy contents from the tuna 16.04 column to /etc/apt/sources.list file. 3.Update source apt-get update PS: If error happens to appstream3 ,you can remove the package first and then update. apt-get remove libappstream3 apt-get update Host packages Essential Yocto Project host packages are: sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsd l1.2-dev u-boot-tools sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff cu rl lzop asciidoc Set repo file The repo file is used to download resources, and it is located in 03-Tools/Repo for chinese, it should be installed on your computer by performing these step: mkdir ~/bin cp ~/03-Tools/Repo/repo ~/bin chmod a+x ~/bin/repo export PATH=~/bin:$PATH Please follow below steps instead of above ,if you are able to access google.
  • Page 6 2. Deploy development environment mkdir ~/bin curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo export PATH=~/bin:$PATH Configure git Make sure that git is set up properly with the commands below. git config --global user.name "abc123" git config --global user.email "def456@gmail.com" git config --list...
  • Page 7: Android System Program And Compile

    3. Android system program and compile 3. Android system program and compile Android image compilation takes a long time, you can use the compiled image to program to the development board , use UUU tools to program. This chapter first describes how to program images to EMMC and SD cards, and then introduces the method of compiling images.
  • Page 8: Program Android Image To Emmc

    3.1 Program Android image to EMMC 3.1 Program Android image to EMMC The compiled image is located in the 02-Image directory,and then decompresse android_p9.0.0_2.0.0-ga_image_8mq-myd- MT53D512M32D2DS-053.zip under the WINDOWS system. UUU will create a soft link, so please open cmd with administrator privileges, as shown below: 3-1-1 cmd picture Jump to the decompressed directory and execute uuu_imx_android_flash.bat -f imx8mq -a -e -c 7 3-1-2 UUU command Please make sure that the TF card slot of the development board is not inserted , the Type-C port is connected to the computer and the other end is connected to the Type-C port (J8) of the base board. The DIP switch is set to (sw1)LLHL (sw2)HL, and then power on.
  • Page 9 3.1 Program Android image to EMMC 3-1-3 board connection The process is as follows: 3-1-4 program After programming, set the DIP switch to (sw1)LLHL (sw2) LH to start.
  • Page 10: Program Android Image To Sd Card

    3.2 Program Android image to SD card 3.2 Program Android images to SD card The compiled image is located in the 02-Image directory,and then decompresse android_p9.0.0_2.0.0-ga_image_8mq-myd- MT53D512M32D2DS-053.zip under the WINDOWS system. UUU will create a soft link, so please open cmd with administrator privileges, as shown below: 3-2-1 cmd picture Jump to the decompressed directory and execute uuu_imx_android_flash.bat -f imx8mq -a -e -c 7 -t sd 3-2-2 UUU command Please make sure that the TF card slot of the development board is not inserted , the Tyep-C port is connected to the computer and the other end is connected to the Tyep-C port (J8) of the base board. The DIP switch is set to (sw1)LLHL (sw2)HL, and then power on.
  • Page 11 3.2 Program Android image to SD card 3-2-3 board connection The process is as follows: 3-2-4 program After 3/3 Insert TF card, please pay attention to this time. 3-2-5 TF program After programming, set the DIP switch to (sw1)HHLL (sw2) LH to start.
  • Page 12 3.2 Program Android image to SD card...
  • Page 13: Compile Android System

    3.3 Compile Android system 3.3 Compile Android system Please decompresse the source myir_android9.0.0_2.0.0.tar.gz and execute source myir_build.sh to start compiling mkdir android_dir tar -zxf myir_android9.0.0_2.0.0.tar.gz -C android_dir cd android_dir source myir_build.sh The content of the myir_build.sh file. snip #build_bootloader #build_kernel #build_dtbo make -j4 2>&1 | tee build-log.txt build_bootloader compile uboot build_kernel compile kernel build_dtbo compile dtbo file make -j4 2>&1 | tee build-log.txt complete compilation Image Name Note u-boot-imx8mq.imx Bootloader (with padding) for JX8MX board u-boot-imx8mq-evk-uuu.imx Bootloader used by UUU for JX8MX board .It is not flashed to MMC. boot.img Boot image for JX8MX board. system.img System Boot image for JX8MX board. vendor.img Vendor image for JX8MX board. partition-table.img GPT table image for 16 GB SD card and eMMC partition-table-7GB.img GPT table image for 8 GB SD card. partition-table-28GB.img GPT table image for 32 GB SD card. dtbo-imx8mq.img Device Tree image for JX8MX board to support HDMI output. vbmeta-imx8mq.img Android Verify Boot metadata Image for JX8MX board to support HDMI .
  • Page 14: Android Function Introduction

    4. Android function introduction 4. Android function introduction Function list: 4K playback MIPI-CSI front and back camera Network WIFI Bluetooth Audio record Headphone USB 3.0 interface 4G module Uart Not support list: M.2 SSD auto mount MIPI-DSI convert to LVDS...
  • Page 15: Dm-Verity Configuration

    4.1 DM-verity configuration 4.1 DM-verity configuration DM-verity (device-mapper-verity) provides transparent integrity checking of block devices. It can prevent device from running unauthorized images. This feature is enabled by default. Replacing one or more partitions (boot, vendor, system, vbmeta) will make the board unbootable. Disabling DM-verity provides convience for developers, but the device is unprotected. To disable DM-verity, perform the following steps: 1. setting->system->about tablet click build number to open development options 2. setting->system->developer options enable OEM unlocking 3. adb reboot bootloader 4. fastboot oem unlock 5. after the fourth step and boot up the device,excute adb root, adb disable-verity, adb reboot 4-1-1 build number 4-1-2 oem unlock...
  • Page 16 4.1 DM-verity configuration 4-1-3 reboot bootloader 4-1-4 disable-verity...
  • Page 17: Network Test

    4.2 NETWORK test 4.2 NETWORK test Android9 needs to be authenticated after connecting to the network. The Android9 authentication URL defaults to www.google.com, which is changed to www.baidu.com. Reference git log --pretty=oneline 0a683de2689c2f6e072e58931b8e3a3daec03b97 [fix] our memory only have 2G ,so reduece CMA 1280M to 960M 0850026deeb135977c37d5b3ecbed4be0f6bbb39 [fix] use www.badiu.com replace www.google.com 293158fe4683e0120476ac06157f7bd69bb87d82 [fix] dnsmasq avc err 1. Connect the network cable. The signal mark with the question mark appears in the upper left corner. 2. Pull down and click sign to network. 3. The browser opens the web page and clicks to use this network. 4-2-1 network 4-2-2 sign to network...
  • Page 18 4.2 NETWORK test 4-2-3 choose network Ethernet APP can view more information.
  • Page 19: Wifi Test

    4.3 WIFI test 4.3 WIFI test Wifi and Bluetooth are the same module, we now support 2 modules: Modules Options Function Fn-Link 8274B-PR androidboot.wifivendor=qca support STA + AP mode Fn-Link 6222B-PR androidboot.wifivendor=rtk not support STA + AP mode The rtk module is used by default. If it is a qca module, please refer to section 4.1 to disable the DM-verity restriction. Then modify the bootargs in uboot, and change androidboot.wifivendor=rtk to androidboot.wifivendor=qca and save it. Build image can configure android_build\device\fsl\imx8m\evk_8mq\BoardConfig.mk # Defaultly evk_8mq use BCM 1CX BCM4356 wifi module, if use QCOM qca9377 module, set androidboot.wifivendor=qca BOARD_KERNEL_CMDLINE += androidboot.wifivendor=rtk The wifi`s antenna is U6. settings-> Network&internet->Wi-Fi is used to connect wifi AP. settings-> Network&internet->Hostpot&tethering is used to configure AP. The rtk module can't connect to wifi and generate the hotspot at the same time is due to the wiphy address is different, there will be problems in the wificon process. evk_8mq:/ # iw wlan0 info Interface wlan0 ifindex 7 wdev 0x1 addr 18:bb:26:58:55:e4 type managed wiphy 0 evk_8mq:/ # iw p2p0 info Interface p2p0 ifindex 8 wdev 0x100000001 addr 1a:bb:26:58:55:e4 type managed wiphy 1 After connecting to wifi here, you also need to be authenticated to access the Internet. Refer to 4.2.
  • Page 20: Bluetooth Test

    4.4 BLUETOOTH test 4.4 BLUETOOTH test Bluetooth first reference 4.3 set to the correct wifi module. The bluetooth`s antenna is U5. settings->connected devices -> Pair new device -> Avaliable devices...
  • Page 21: Csi Test

    4.5 CSI test 4.5 CSI test The camera module is ov5640, the development board J2 is the backfont camera, and the J26 is the front camera. If only one camera is used, please connect to the backfont camera (J2). Camera APP can use to test. 4-5-1 csi...
  • Page 22: Audio Test

    4.6 AUDIO test 4.6 AUDIO test Sound Record APP can use to test. 4-6-1 record When playing, the default output is to HDMI. If no HDMI is connected, the sound will be output from the headphone port (j9).
  • Page 23: Uart Test

    4.7 UART test 4.7 UART test Uart port test, here to modify the default debug uart port to test, the J18 is the default debug port output. evk_8mq:/ # cat /proc/cmdline console=ttymxc0,115200 earlycon=ec_imx6q,0x30860000,115200 init=/init androidboot.gui_resolution=1080p androidb oot.console=ttymxc0 androidboot.hardware=freescale androidboot.fbTileSupport=enable cma=960M androidboot.primar y_display=imx-drm firmware_class.path=/vendor/firmware transparent_hugepage=never androidboot.wificountrycode=C N androidboot.wifivendor=rtk buildvariant=userdebug androidboot.serialno=0e1c09d6f060954c androidboot.btmacaddr =0e:1c:09:d6:f0:60 androidboot.soc_type=imx8mq androidboot.storage_type=sd androidboot.boottime=1BLL:0,1BLE:662 8,KL:0,KD:0,AVB:4165,ODT:0,SW:0 androidboot.bootreason=cold,powerkey androidboot.verifiedbootstate=orange andro idboot.slot_suffix=_a root=PARTUUID=1563086f-dbe4-469c-ad2f-7de87c9a3ff0 androidboot.vbmeta.device=PARTUUID=bd6 540bd-1b10-49c3-964c-3c34132c7d65 androidboot.vbmeta.avb_version=1.1 androidboot.vbmeta.device_state=unlocked a ndroidboot.vbmeta.hash_alg=sha256 androidboot.vbmeta.size=3264 androidboot.vbmeta.digest=350fd45a58b5bb99a48a1c 30cf222138dcbc6a57b44767acfab0bef72bcdc616 androidboot.veritymode=disabled skip_initramfs rootwait androidboot. dtbo_idx=0 androidboot.keystore=software We can change console output by setting console=ttymxcx and androidboot.console=ttymxcx in uboot. uart Note ttymxc0 ttymxc1 ttymxc3 For example set J21 as a debug uart port for testing, the steps are as follows. 1.boot up and press any key to enter uboot mode. 2.set the bootargs. setenv bootargs 'console=ttymxc3,115200 earlycon=ec_imx6q,0x30860000,115200 init=/init androidboot.gui_resoluti on=1080p androidboot.console=ttymxc3 androidboot.hardware=freescale androidboot.fbTileSupport=enable cma=960M a ndroidboot.primary_display=imx-drm firmware_class.path=/vendor/firmware transparent_hugepage=never androidboot. wificountrycode=CN androidboot.wifivendor=rtk buildvariant=userdebug androidboot.serialno=0e1c09d6f060954c andr oidboot.btmacaddr=0e:1c:09:d6:f0:60 androidboot.soc_type=imx8mq androidboot.storage_type=sd androidboot.boottim e=1BLL:0,1BLE:6628,KL:0,KD:0,AVB:4165,ODT:0,SW:0 androidboot.bootreason=cold,powerkey androidboot.verifiedboots tate=orange androidboot.slot_suffix=_a root=PARTUUID=1563086f-dbe4-469c-ad2f-7de87c9a3ff0 androidboot.vbmeta.de vice=PARTUUID=bd6540bd-1b10-49c3-964c-3c34132c7d65 androidboot.vbmeta.avb_version=1.1 androidboot.vbmeta.device _state=unlocked androidboot.vbmeta.hash_alg=sha256 androidboot.vbmeta.size=3264 androidboot.vbmeta.digest=350fd 45a58b5bb99a48a1c30cf222138dcbc6a57b44767acfab0bef72bcdc616 androidboot.veritymode=disabled skip_initramfs root wait androidboot.dtbo_idx=0 androidboot.keystore=software' 3.save save Restart again, you will find the debug info output from J21.
  • Page 24: Test

    4.8 4G test 4.8 4G test Support for remote EC20 modules, vendors provide libraries, so there is no source code. Before boot up the device ,connect the LTE module and the sim card .If the card is not recognized, please check if the sim card is reversed. 4-8-1 telecom At this time, you cannot access the Internet. You need to configure APN. settings->Network&internet->Mobile network->advance-> Access Point Names 4-8-2 Network &internet...
  • Page 25 4.8 4G test 4-8-3 Access Point Names Press "+" to new APN Item Telecom Mobile Unicom Name ChinaTelecom ChinaMobile ChinaUnicom ctnet cmnet 3gnet APN protocol IPv4/IPv6 IPv4/IPv6 IPv4/IPv6 APN roaming protocol IPv4/IPv6 IPv4/IPv6 IPv4/IPv6 4-8-4 save APN...
  • Page 26 4.8 4G test 4-8-5 Connected...
  • Page 27: Gpio Test

    4.9 GPIO test 4.9 GPIO test How to convert GPIO pin to corresponding value? GPION_IOM = (N-1)*32+M For example, the 8th pin of J22 (SAI1_TXFS) GPIO (4, 10), then the corresponding node is (4-1) * 32 + 10 = 106 The GPIO test steps are as follows: 1. Dts configuration corresponding pin pin for GPIO mode 2. Export node echo 106 > /sys/class/gpio/export 3. Set direction echo out > /sys/class/gpio/gpio106/direction 4. Set to 1 echo 1 > /sys/class/gpio/gpio106/value 4-9-1 set SAI1_TXFS to gpio func...
  • Page 28: User-Key Test

    4.10 USER-KEY test 4.10 USER-KEY test User is set to KEY_1 by default. vendor/nxp-opensource/kernel_imx/arch/arm64/boot/dts/freescale/myb-fsl-imx8mq-evk.dts user { label = "User k3 Button"; gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; gpio-key,wakeup; linux,code = <KEY_1>; }; This value can be captured at the browser .
  • Page 29: Appendix Warranty & Technical Support Services

    Appendix Warranty & Technical Support Services Appendix 1 Warranty & Technical Support Services MYIR Tech Limited is a global provider of ARM hardware and software tools, design solutions for embedded applications. We support our customers in a wide range of services to accelerate your time to market. MYIR is an ARM Connected Community Member and work closely with ARM and many semiconductor vendors. We sell products ranging from board level products such as development boards, single board computers and CPU modules to help with your evaluation, prototype, and system integration or creating your own applications. Our products are used widely in industrial control, medical devices, consumer electronic, telecommunication systems, Human Machine Interface (HMI) and more other embedded applications. MYIR has an experienced team and provides custom design services based on ARM processors to help customers make your idea a reality. The contents below introduce to customers the warranty and technical support services provided by MYIR as well as the matters needing attention in using MYIR’s products. Service Guarantee MYIR regards the product quality as the life of an enterprise. We strictly check and control the core board design, the procurement of components, production control, product testing, 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 establish long-term cooperation and win-win business with customers. So we will offer reasonable prices in the hope of making the business greater with the customers together hand in hand. Delivery Time MYIR will always keep a certain stock for its regular products. If your order quantity is less than the amount of inventory, the delivery time would be within three days; if your order quantity is greater than the number of inventory, the delivery time would be always four to six weeks. If for any urgent delivery, we can negotiate with customer and try to supply the goods in advance. Technical Support MYIR has a professional technical support team. Customer can contact us by email (support@myirtech.com), we will try to reply you within 48 hours. For mass production and customized products, we will specify person to follow the case and ensure the smooth production. After-sale Service MYIR offers one year free technical support and after-sales maintenance service from the purchase date. The service covers: 1. Technical support service * MYIR offers technical support for the hardware and software materials which have provided to customers; * To help customers compile and run the source code we offer; * To help customers solve problems occurred during operations if users follow the user manual documents; * To judge whether the failure exists; * To provide free software upgrading service. However, the following situations are not included in the scope of our free technical support service: * Hardware or software problems occurred during customers’ own development;...
  • Page 30 * Problems occurred during the modification of MYIR’s software source code. 1. After-sales maintenance service The products except LCD, which are not used properly, will take the twelve months free maintenance service since the purchase date. But following situations are not included in the scope of our free maintenance service: * The warranty period is expired; * The customer cannot provide proof-of-purchase or the product has no serial number; * The customer has not followed the instruction of the manual which has caused the damage the product; * Due to the natural disasters (unexpected matters), or natural attrition of the components, or unexpected matters leads the defects of appearance/function; * Due to the power supply, bump, leaking of the roof, pets, moist, impurities into the 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 supply maintenance service to LCD. We suggest the customer first check the LCD when receiving the goods. In case the LCD cannot run or no display, customer should contact MYIR within 7 business days from the moment get the goods. 2. Please do not use finger nails or hard sharp object to touch the surface of the LCD. 3. MYIR suggests user purchasing a piece of special wiper to wipe the LCD after long time use, please avoid clean the surface with fingers or hands to leave fingerprint. 4. Do not clean the surface of the screen with chemicals. 5. Please read through the product user manual before you using MYIR’s products. 6. For any maintenance service, customers should communicate with MYIR to confirm the issue first. MYIR’s support team will judge the failure to see if the goods need to be returned for repair service, we will issue you RMA number for return maintenance service after confirmation. 1. Maintenance period and charges MYIR will test the products within three days after receipt of the returned goods and inform customer the testing result. Then we will arrange shipment within one week for the repaired goods to the customer. For any special failure, we will negotiate with customers to confirm the maintenance period. For products within warranty period and caused by quality problem, MYIR offers free maintenance service; for products within warranty period but out of free maintenance service scope, MYIR provides maintenance service but shall charge some basic material cost; for products out of warranty period, MYIR provides maintenance service but shall charge...
  • Page 31 Appendix Warranty & Technical Support Services 1. MYIR provides services of driver development base on MYIR’s products, like serial port, USB, Ethernet, LCD, etc. 2. MYIR provides the services of OS porting, BSP drivers’ development, API software development, etc. 3. MYIR provides other products supporting services like power adapter, LCD panel, etc. 4. ODM/OEM services. MYIR Tech Limited Room 1306, Wensheng Center, Wenjin Plaza, North Wenjin Road, Luohu District, Shenzhen, China 518020 Support Email: support@myirtech.com Sales Email: sales@myirtech.com Phone: +86-755-22984836 Fax: +86-755-25532724 Website: www.myirtech.com...

Table of Contents