AnsweredAssumed Answered

Android 8 Build for imx6Q Custom Board

Question asked by Babu Alikapati on Jan 1, 2020
Latest reply on Jan 2, 2020 by Babu Alikapati

Hello, 

I am bringing up android 8 on IMX6Q Custom Board and flashing on the target board. Board is not booting and following are the logs. Help me, if you see any issued in the build and flash, 

Note:

1. Building android source code as sabresd_6dq reference platform.

2. I am using "android_O8.0.0_1.0.0_tools" for flashing.

 

Logs: 

 


U-Boot 2017.03-gc025320-dirty (Jan 02 2020 - 11:14:35 +0530)

I2C: ready

Fastboot: Normal

OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.67-g55f2ab6-dirty (emb-alikbab@dev-server-iot) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Dec 31 16:16:44 IST 2019
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Toradex Apalis iMX6Q/D Module on Ixora V1.1 Carrier Board
Memory policy: Data cache writealloc
percpu: Embedded 15 pages/cpu @f6f94000 s31040 r8192 d22208 u61440
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260368
Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb, fbpix=RGB32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=128M android
boot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=448M androidboot.selinux=permissive buildvariant=eng androidboot.serialno=091b91d4eacb469
1 androidboot.storage_type=emmc
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1020512K/1048576K available (10240K kernel code, 668K rwdata, 2904K roda
ta, 1024K init, 563K bss, 28064K reserved, 0K cma-reserved, 139264K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf8000000 - 0xff800000 ( 120 MB)
lowmem : 0xc0000000 - 0xf7800000 ( 888 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0b00000 (11232 kB)
.init : 0xc0f00000 - 0xc1000000 (1024 kB)
.data : 0xc1000000 - 0xc10a72a8 ( 669 kB)
.bss : 0xc10a72a8 - 0xc11341e0 ( 564 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
L2C-310 errata 752271 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 16 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 16 ways, 1024 kB
L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
Switching to timer-based delay loop, resolution 333ns
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6
37086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00
BogoMIPS (lpj=30000)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux: Initializing.
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x10100000 - 0x10100058
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
CPU2: update cpu_capacity 1024
CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
CPU3: update cpu_capacity 1024
CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
Brought up 4 CPUs
SMP: Total of 4 processors activated (24.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
CPU3: update max cpu_capacity 1024
devtmpfs: initialized
CPU2: update max cpu_capacity 1024
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911
2604462750000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
CPU identified as i.MX6Q, silicon rev 1.5
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
imx6q-pinctrl 20e0000.iomuxc: Invalid fsl,pins property in node /soc/aips-bus@02
000000/iomuxc@020e0000/gpio2io04grp
imx6q-pinctrl 20e0000.iomuxc: Invalid fsl,pins property in node /soc/aips-bus@02
000000/iomuxc@020e0000/cammclkgrp
imx6q-pinctrl 20e0000.iomuxc: Invalid fsl,pins property in node /soc/aips-bus@02
000000/iomuxc@020e0000/gpioregusbotgpwrgrp
imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
imx-gpc 20dc000.gpc: no fsl,ldo-bypass found!
imx-gpc 20dc000.gpc: Registered imx-gpc
mxs-dma 110000.dma-apbh: initialized
usb_host_vbus: supplied by usb_host_vbus_hub
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
2000000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
2000000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA, using PIO instead.
stmpe-i2c 2-0041: stmpe811 detected, chip id: 0x811
i2c i2c-2: IMX I2C adapter registered
i2c i2c-2: can't use DMA, using PIO instead.
i2c i2c-3: IMX I2C adapter registered
i2c i2c-3: can't use DMA, using PIO instead.
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l
inux.it>
PTP clock support registered
imx-ipuv3 2400000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
imx-ipuv3 2800000.ipu: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 driver probed ipu0 csi1
mxc_mipi_csi2 21dc000.mipi_csi: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
imx rpmsg driver is registered.
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
clocksource: Switched to clocksource mxc_timer1
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 1992K
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
Bus freq driver module loaded
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.810:1): initialized
workingset: timestamp_bits=30 max_order=18 bucket_order=0
fuse init (API version 7.26)
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OF: PCI: host bridge /soc/pcie@0x01000000 ranges:
OF: PCI: No bus range found for /soc/pcie@0x01000000, using [bus 00-ff]
OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000
OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000
imx6q-pcie 1ffc000.pcie: phy link never came up
imx6q-pcie 1ffc000.pcie: Link never came up
imx6q-pcie 1ffc000.pcie: failed to initialize host
imx6q-pcie: probe of 1ffc000.pcie failed with error -110
backlight supply power not found, using dummy regulator
mxc_sdc_fb fb@0: registered mxc display driver ldb
imx-ipuv3 2800000.ipu: IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
mxc_sdc_fb fb@1: Can't get fb option for mxcfb1!
mxc_sdc_fb fb@2: Can't get fb option for mxcfb2!
mxc_sdc_fb fb@3: Can't get fb option for mxcfb3!
imx-sdma 20ec000.sdma: no iram assigned, using external mem
imx-sdma 20ec000.sdma: loaded firmware 3.3
pfuze100-regulator 2-0008: Full layer: 2, Metal layer: 1
pfuze100-regulator 2-0008: FAB: 0, FIN: 0
pfuze100-regulator 2-0008: pfuze100 found.
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 29, base_baud = 5000000) is a I
MX
console [ttymxc0] enabled
21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 78, base_baud = 5000000) is a I
MX
21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 79, base_baud = 5000000) is a I
MX
21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 80, base_baud = 5000000) is a I
MX
[drm] Initialized
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
zram: Added device: zram0
ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform
mode
ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part cc
c apst
scsi host0: ahci-imx
ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 87
libphy: Fixed MDIO Bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CAN device driver interface
2090000.flexcan supply xceiver not found, using dummy regulator
flexcan 2090000.flexcan: device registered (reg_base=f83a0000, irq=38)
2094000.flexcan supply xceiver not found, using dummy regulator
flexcan 2094000.flexcan: device registered (reg_base=f83a8000, irq=39)
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.9.67-g55f2ab6-dirty ehci_hcd
usb usb1: SerialNumber: ci_hdrc.1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
[PENMOUNT] Loading penmount_i2c V1.15.0
input: PenMount I2C Touch Screen as /devices/soc0/soc/2100000.aips-bus/21a0000.i
2c/i2c-1/1-0038/input/input0
input: PenMount I2C Touch Key as /devices/soc0/soc/2100000.aips-bus/21a0000.i2c/
i2c-1/1-0038/input/input1
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as r
tc0
i2c /dev entries driver
mxc_v4l2_output v4l2_out: V4L2 device registered as video16
mxc_v4l2_output v4l2_out: V4L2 device registered as video17
ata1: SATA link down (SStatus 0 SControl 300)
ahci-imx 2200000.sata: no device found, disabling link.
ahci-imx 2200000.sata: pass ahci_imx..hotplug=1 to enable hotplug
ov5647_read_reg(mipi):reg=300a ret=-6
camera ov5647_mipi is not found
imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new interface driver rtk_btusb
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on nor
mal mode
sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
usb 1-1: new high-speed USB device number 2 using ci_hdrc
mmc1: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on nor
mal mode
mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
mxc_vpu 2040000.vpu_fsl: VPU initialized
mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
Galcore version 6.2.2.96445
usb 1-1: New USB device found, idVendor=0424, idProduct=2514
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
mmc0: new DDR MMC card at address 0001
mmcblk0: mmc0:0001 Q2J54A 3.64 GiB
mmcblk0boot0: mmc0:0001 Q2J54A partition 1 2.00 MiB
mmcblk0boot1: mmc0:0001 Q2J54A partition 2 2.00 MiB
Alternate GPT is invalid, using primary GPT.
mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
ashmem: initialized
sgtl5000 2-000a: sgtl5000 revision 0x11
random: fast init done
fsl-ssi-dai 2028000.ssi: No cache defaults, reading back from HW
imx-sgtl5000 sound: sgtl5000 <-> 2028000.ssi mapping ok
NET: Registered protocol family 26
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ctnetlink v0.93: registering with nfnetlink.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: arp_tables: (C) 2002 David S. Miller
Initializing XFRM netlink socket
NET: Registered protocol family 10
mip6: Mobile IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
cpu cpu0: Registered imx6q-cpufreq
imx_thermal 2000000.aips-bus:tempmon: Extended Commercial CPU temperature grade
- max:105C critical:100C passive:95C
snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:02:45 U
TC (165)
usb_otg_vbus: disabling
ALSA device list:
#0: imx6q-sgtl5000
Freeing unused kernel memory: 1024K
init: init first stage started!
init: First stage mount skipped (missing/incompatible fstab in device tree)
init: Skipped setting INIT_AVB_VERSION (not in recovery mode)
init: Loading SELinux policy
SELinux: Permission validate_trans in class security not defined in policy.
SELinux: the above unknown classes and permissions will be denied
audit: type=1403 audit(165.630:2): policy loaded auid=4294967295 ses=4294967295
selinux: SELinux: Loaded policy from /sepolicy

selinux: SELinux: Loaded file_contexts

init: init second stage started!
selinux: SELinux: Loaded file_contexts

selinux: SELinux: Loaded property_contexts from /plat_property_contexts & /nonpl
at_property_contexts.

init: Running restorecon...
selinux: SELinux: Could not stat /dev/block: No such file or directory.

init: waitpid failed: No child processes
init: Couldn't load property file: Unable to open '/system/etc/prop.default': No
such file or directory: No such file or directory
init: Couldn't load property file: Unable to open '/prop.default': No such file
or directory: No such file or directory
init: Couldn't load property file: Unable to open '/odm/default.prop': No such f
ile or directory: No such file or directory
init: Couldn't load property file: Unable to open '/vendor/default.prop': No suc
h file or directory: No such file or directory
ueventd: ueventd started!
ueventd: Parsing file /ueventd.rc...
ueventd: Parsing file /vendor/ueventd.rc...
ueventd: Unable to open '/vendor/ueventd.rc': No such file or directory
ueventd: Parsing file /odm/ueventd.rc...
ueventd: Unable to open '/odm/ueventd.rc': No such file or directory
ueventd: Parsing file /ueventd.freescale.rc...
selinux: SELinux: Loaded file_contexts

selinux: SELinux: Loaded file_contexts

ueventd: Coldboot took 0.226888 seconds
watchdogd: watchdogd started (interval 10, margin 20)!
audit: type=1400 audit(166.170:3): avc: denied { read write } for pid=149 comm="slideshow" name="card0" dev="tmpfs" ino=10485 scontext=u:r:slideshow:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
audit: type=1400 audit(166.190:4): avc: denied { open } for pid=149 comm="slideshow" path="/dev/dri/card0" dev="tmpfs" ino=10485 scontext=u:r:slideshow:s0 tc
ontext=u:object_r:device:s0 tclass=chr_file permissive=1
mmc1: Switching to 3.3V signalling voltage failed
audit: type=1400 audit(166.210:5): avc: denied { ioctl } for pid=149 comm="slideshow" path="/dev/dri/card0" dev="tmpfs" ino=10485 ioctlcmd=0x640d scontext=u:r:slideshow:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
audit: type=1400 audit(166.230:6): avc: denied { dac_override } for pid=149 comm="slideshow" capability=1 scontext=u:r:slideshow:s0 tcontext=u:r:slideshow:s
0 tclass=capability permissive=1
init: Service 'exec 1 (/sbin/slideshow warning/verity_red_1 warning/verity_red_2)' (pid 149) exited with status 0 waiting took 5.808934 seconds
init: processing action (fs) from (/init.freescale.rc:262)
init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/system (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/system,target=/system,type=ext4)=-1
init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/system (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/system,target=/system,type=ext4)=-1
init: [libfs_mgr]Failed to mount an un-encryptable or wiped partition on /dev/block/by-name/system at /system options: barrier=1: No such file or directory
init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/userdata (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/userdata,target=/data,type=ext4)=-1
init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/userdata (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/userdata,target=/data,type=ext4)=-1
init: [libfs_mgr]fs_mgr_mount_all(): possibly an encryptable blkdev /dev/block/by-name/userdata for mount /data type ext4

 

Best Regards

Babu A

Outcomes