background image

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 .

3.3 Compile Android system

13

Содержание MYD-JX8MX Series

Страница 1: ......

Страница 2: ...ment 3 Android system program and compile 3 1 Program Android image to EMMC 3 2 Program Android image to SD card 3 3 Compile Android system 4 Android function introduction 4 1 DM verity configuration...

Страница 3: ...t 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 memor...

Страница 4: ...s driver YES Device Driver SPI SPI bus driver YES Device Driver Ethernet 10M 100M 1000M driver YES Device Driver MMC MMC EMMC TF card stoage driver YES Device Driver HDMI HDMI driver YES Device Driver...

Страница 5: ...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 upd...

Страница 6: ...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 def45...

Страница 7: ...s 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 th...

Страница 8: ...inistrator 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 slo...

Страница 9: ...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 3 1 Program Android image to EMMC 9...

Страница 10: ...strator 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 s...

Страница 11: ...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 3 2 Program Androi...

Страница 12: ...3 2 Program Android image to SD card 12...

Страница 13: ...xt 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 Boo...

Страница 14: ...nction list 4K playback MIPI CSI front and back camera Network WIFI Bluetooth Audio record Headphone USB 3 0 interface 4G module Uart Spi Not support list M 2 SSD auto mount MIPI DSI convert to LVDS 4...

Страница 15: ...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 ope...

Страница 16: ...4 1 3 reboot bootloader 4 1 4 disable verity 4 1 DM verity configuration 16...

Страница 17: ...ur 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...

Страница 18: ...4 2 3 choose network Ethernet APP can view more information 4 2 NETWORK test 18...

Страница 19: ...M 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...

Страница 20: ...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 4 4 BLUETOOTH test 20...

Страница 21: ...ra 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...

Страница 22: ...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 4 6 AUDIO test 22...

Страница 23: ...utput by setting console ttymxcx and androidboot console ttymxcx in uboot uart Note ttymxc0 J18 ttymxc1 J19 ttymxc3 J21 For example set J21 as a debug uart port for testing the steps are as follows 1...

Страница 24: ...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 configur...

Страница 25: ...ss to new APN Item Telecom Mobile Unicom Name ChinaTelecom ChinaMobile ChinaUnicom APN ctnet cmnet 3gnet APN protocol IPv4 IPv6 IPv4 IPv6 IPv4 IPv6 APN roaming protocol IPv4 IPv6 IPv4 IPv6 IPv4 IPv6 4...

Страница 26: ...4 8 5 Connected 4 8 4G test 26...

Страница 27: ...en 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...

Страница 28: ...fault 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...

Страница 29: ...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 cus...

Страница 30: ...urface 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 maint...

Страница 31: ...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 Sh...

Отзывы: