Android Oreo can't boot but sdmmc driver look like works well.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android Oreo can't boot but sdmmc driver look like works well.

5,666 Views
3401848300
Contributor III

How can I fixed it?

My Custom Board can boot from yocto-linux(by modify device tree for fully function),But android can't mount(Whether or not modify device tree
)?what's wrong with me?

That is my kernel log.wanted boot with mmcblk1

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.17 (tater@ubuntu) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #5 SMP PREEMPT Mon Jun 11 06:06:27 PDT 2018
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Freescale i.MX6 Quad SABRE Smart Device Board
[ 0.000000] cma: Reserved 448 MiB at 0x2a000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 15 pages/cpu @f66bc000 s31040 r8192 d22208 u61440
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 522512
[ 0.000000] Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,fbpix=RGB32,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=448M galcore.contiguousSize=33554432 buildvariant=userdebug androidboot.serialno=1a10b9d4dbc83e6b androidboot.soc_type=imx6q androidboot.storage_type=sd gpt
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1596800K/2097152K available (13312K kernel code, 1019K rwdata, 4244K rodata, 1024K init, 608K bss, 41600K reserved, 458752K cma-reserved, 1187840K highmem)

.....Omitted.....


[ 2.750691] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 2.820924] mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
[ 2.832474] mmc1: new high speed SDHC card at address 0001
[ 2.838329] mxc_vpu 2040000.vpu_fsl: VPU initialized
[ 2.848923] mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
[ 2.859251] mxc_hdmi_cec soc:hdmi_cec@00120000: HDMI CEC initialized
[ 2.866730] Galcore version 6.2.2.96445
[ 2.871141] mmcblk1: mmc1:0001 SD16G 15.0 GiB
[ 2.894012] Primary GPT is invalid, using alternate GPT.
[ 2.899476] mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
[ 2.944509] mmc3: new DDR MMC card at address 0001
[ 2.950827] mmcblk3: mmc3:0001 008G92 7.28 GiB
[ 2.956194] mmcblk3boot0: mmc3:0001 008G92 partition 1 4.00 MiB
[ 2.963009] mmcblk3boot1: mmc3:0001 008G92 partition 2 4.00 MiB
[ 2.969786] mmcblk3rpmb: mmc3:0001 008G92 partition 3 512 KiB
[ 2.978221] mmcblk3: p1 p2
[ 3.112416] caam 2100000.caam: ERA source: CAAMVID.
[ 3.117339] caam 2100000.caam: AXI pipeline throttling enabled.
[ 3.124556] caam 2100000.caam: Instantiated RNG4 SH1
[ 3.129536] caam 2100000.caam: device ID = 0x0a16010000000000 (Era 4)
[ 3.136017] caam 2100000.caam: job rings = 2, qi = 0
[ 3.229308] caam algorithms registered in /proc/crypto
[ 3.239008] caam_jr 2101000.jr0: registering rng-caam
[ 3.244984] platform caam_sm: blkkey_ex: 4 keystore units available


.....Omitted.....


[ 4.464086] Freeing unused kernel memory: 1024K (c1300000 - c1400000)
[ 4.476489] init: init first stage started!
[ 4.480950] init: First stage mount skipped (missing/incompatible fstab in device tree)
[ 4.488996] init: Skipped setting INIT_AVB_VERSION (not in recovery mode)
[ 4.495845] init: Loading SELinux policy
[ 4.515639] SELinux: Permission validate_trans in class security not defined in policy.
[ 4.524313] SELinux: the above unknown classes and permissions will be denied
[ 4.609781] audit: type=1403 audit(9.650:2): policy loaded auid=4294967295 ses=4294967295
[ 4.618367] selinux: SELinux: Loaded policy from /sepolicy
[ 4.618367]
[ 4.626208] audit: type=1404 audit(9.680:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[ 4.677694] selinux: SELinux: Loaded file_contexts
[ 4.677694]
[ 4.688823] init: init second stage started!
[ 4.708394] selinux: SELinux: Loaded file_contexts
[ 4.708394]
[ 4.716007] selinux: SELinux: Loaded property_contexts from /plat_property_contexts & /nonplat_property_contexts.
[ 4.716007]
[ 4.727868] init: Running restorecon...
[ 4.835899] selinux: SELinux: Could not stat /dev/block: No such file or directory.
[ 4.835899]
[ 4.845525] init: waitpid failed: No child processes
[ 4.850969] init: Couldn't load property file: Unable to open '/system/etc/prop.default': No such file or directory: No such file or directory
[ 4.863861] init: Couldn't load property file: Unable to open '/prop.default': No such file or directory: No such file or directory
[ 4.876431] init: Couldn't load property file: Unable to open '/odm/default.prop': No such file or directory: No such file or directory
[ 4.888710] init: Couldn't load property file: Unable to open '/vendor/default.prop': No such file or directory: No such file or directory
[ 4.919213] ueventd: ueventd started!
[ 4.923028] ueventd: Parsing file /ueventd.rc...
[ 4.929163] ueventd: Parsing file /vendor/ueventd.rc...
[ 4.934479] ueventd: Unable to open '/vendor/ueventd.rc': No such file or directory
[ 4.942194] ueventd: Parsing file /odm/ueventd.rc...
[ 4.947210] ueventd: Unable to open '/odm/ueventd.rc': No such file or directory
[ 4.954745] ueventd: Parsing file /ueventd.freescale.rc...
[ 4.967487] selinux: SELinux: Loaded file_contexts
[ 4.967487]
[ 5.117306] selinux: SELinux: Loaded file_contexts
[ 5.117306]
[ 5.195841] ueventd: Coldboot took 0.221731 seconds
[ 5.200564] keychord: using input dev gpio-keys for fevent
[ 5.228255] watchdogd: watchdogd started (interval 10, margin 20)!
[ 5.229098] audit: type=1400 audit(10.270:4): avc: denied { read write } for pid=229 comm="slideshow" name="card0" dev="tmpfs" ino=8351 scontext=u:r:slideshow:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0
[ 5.229663] slideshow: failed to initialize minui
[ 25.019526] fec: <230> error: fec_open: failed to open '/dev/block/by-name/system': No such file or directory
[ 25.037351] init: [libfs_mgr]Failed to open '/dev/block/by-name/system': No such file or directory
[ 25.048182] init: [libfs_mgr]Could not set up verified partition, skipping!
[ 45.007882] init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/userdata (executable not in system image)
[ 45.027565] init: [libfs_mgr]__mount(source=/dev/block/by-name/userdata,target=/data,type=ext4)=-1
[ 45.038791] init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/userdata (executable not in system image)
[ 45.052497] init: [libfs_mgr]__mount(source=/dev/block/by-name/userdata,target=/data,type=ext4)=-1
[ 45.062902] init: [libfs_mgr]fs_mgr_mount_all(): possibly an encryptable blkdev /dev/block/by-name/userdata for mount /data type ext4
[ 53.122040] random: crng init done
[ 65.004162] init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/cache (executable not in system image)
[ 65.025434] init: [libfs_mgr]__mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
[ 65.035506] init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/cache (executable not in system image)
[ 65.048751] init: [libfs_mgr]__mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
[ 65.059065] init: [libfs_mgr]Failed to mount an un-encryptable or wiped partition on /dev/block/by-name/cache at /cache options: nomblk_io_submit: No such file or directory
[ 85.008965] init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/vendor (executable not in system image)
[ 85.023253] init: [libfs_mgr]__mount(source=/dev/block/by-name/vendor,target=/vendor,type=ext4)=-1
[ 85.033042] init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/vendor (executable not in system image)
[ 85.045860] init: [libfs_mgr]__mount(source=/dev/block/by-name/vendor,target=/vendor,type=ext4)=-1
[ 85.055842] init: [libfs_mgr]Failed to mount an un-encryptable or wiped partition on /dev/block/by-name/vendor at /vendor options: barrier=1: No such file or directory
[ 85.072135] init: fs_mgr_mount_all returned an error: No such file or directory
[ 85.110378] init: Parsing file /system/etc/init...
[ 85.117454] init: Unable to open '/system/etc/init': No such file or directory
[ 85.125521] init: Parsing file /vendor/etc/init...
[ 85.130856] init: Unable to open '/vendor/etc/init': No such file or directory
[ 85.168584] file system registered
[ 85.183989] using random self ethernet address
[ 85.188450] using random host ethernet address
[ 85.335183] zram0: detected capacity change from 0 to 314572800
[ 85.342913] mkswap: executing /system/bin/mkswap failed: No such file or directory
[ 85.350649] mkswap: mkswap terminated by exit(255)
[ 85.350649]
[ 85.357147] Unable to find swap-space signature
[ 85.411703] audit: type=1400 audit(90.460:5): avc: granted { read } for pid=1 comm="init" name="ttymxc0" dev="tmpfs" ino=6632 scontext=u:r:init:s0 tcontext=u:object_r:tty_device:s0 tclass=chr_file
[ 85.429573] audit: type=1400 audit(90.470:6): avc: granted { read open } for pid=1 comm="init" path="/dev/ttymxc0" dev="tmpfs" ino=6632 scontext=u:r:init:s0 tcontext=u:object_r:tty_device:s0 tclass=chr_file
[ 85.457608] read descriptors
[ 85.460556] read strings

When i booting to linux,same kernel code with non-android config.

微信截图_20180612104120.png

Labels (1)
0 Kudos
Reply
6 Replies

3,317 Views
3401848300
Contributor III

Where is the reply? I can't see.and my topic notice to me.

请注意:已成功添加您的内容,但是需要通过一位版主审批才能发布。

0 Kudos
Reply

3,317 Views
igorpadykov
NXP Employee
NXP Employee

Hi Li

reason for android faults may be wrong emmc partitioning, it is done

fine using mfg tools (please check mfgtool2-android-mx6q-sabresd-sd.vbs script) from below link:

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

May be useful GP description in eMMC_RPMB_Enhance_and_GP.pdf on
https://community.nxp.com/docs/DOC-335198 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

3,317 Views
3401848300
Contributor III

The initial attempt,I download imx-o8.0.0_1.0.0_ga.tar.gz from Android O8.0.0_1.0.0 GA for Legacy imx6/7 Release Announcement  and  replace *.img file,it will be fail by not found /dev/block and can't mount.

Now,use IMX6_L5.1_2.1.0_MFG_TOOL for flash my sdcard,it cause fail at "writting sparse system.img"

Some key information:

UTP: received command '$ ls -l /dev/mmc* '
UTP: executing "ls -l /dev/mmc* "
brw------- 1 root root 179, 64 Jan 1 00:00 /dev/mmcblk1
brw------- 1 root root 179, 65 Jan 1 00:00 /dev/mmcblk1p1
brw------- 1 root root 179, 66 Jan 1 00:00 /dev/mmcblk1p2
brw------- 1 root root 179, 67 Jan 1 00:00 /dev/mmcblk1p3
brw------- 1 root root 179, 68 Jan 1 00:00 /dev/mmcblk1p4
brw------- 1 root root 179, 69 Jan 1 00:00 /dev/mmcblk1p5
brw------- 1 root root 179, 70 Jan 1 00:00 /dev/mmcblk1p6
brw------- 1 root root 179, 71 Jan 1 00:00 /dev/mmcblk1p7
brw------- 1 root root 179, 72 Jan 1 00:00 /dev/mmcblk1p8
brw------- 1 root root 179, 73 Jan 1 00:00 /dev/mmcblk1p9
brw------- 1 root root 179, 80 Jan 1 00:00 /dev/mmcblk3
brw------- 1 root root 179, 96 Jan 1 00:00 /dev/mmcblk3boot0
brw------- 1 root root 179, 112 Jan 1 00:00 /dev/mmcblk3boot1
brw------- 1 root root 179, 128 Jan 1 00:00 /dev/mmcblk3rpmb

UTP: sending Success to kernel for command $ mkfs.ext4 /dev/mmcblk1p7.
utp_poll: pass returned.
UTP: received command '$ mount -o remount,size=512M rootfs /'
UTP: executing "mount -o remount,size=512M rootfs /"
UTP: sending Success to kernel for command $ mount -o remount,size=512M rootfs /.
utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ simg2img $FILE /dev/mmcblk1p5'
UTP: executing "simg2img $FILE /dev/mmcblk1p5"
Failed to read sparse file
UTP: sending Non-success to kernel for command $ simg2img $FILE /dev/mmcblk1p5.
utp_poll: exit with status 65280

0 Kudos
Reply

3,317 Views
igorpadykov
NXP Employee
NXP Employee

some suggestions can be found on

https://community.nxp.com/thread/459682 

0 Kudos
Reply

3,317 Views
3401848300
Contributor III

use android_O8.0.0_1.0.0_tools.tar.gz get similar issue,and android_O8.0.0_1.0.0_tools.tar.gz can not run at windows 10. ( use it with windows 7 is ok.)

https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3Fcol... 

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 file or directory: No such file or directory
init: Couldn't load property file: Unable to open '/vendor/default.prop': No such file or directory: No such file or directory
random: ueventd: uninitialized urandom read (40 bytes read)
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.220146 seconds
keychord: using input dev gpio-keys for fevent
random: watchdogd: uninitialized urandom read (40 bytes read)
random: slideshow: uninitialized urandom read (40 bytes read)
audit: type=1400 audit(9.240:4): avc: denied { read write } for pid=219 comm="slideshow" name="card0" dev="tmpfs" ino=10552 scontext=u:r:slideshow:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0
slideshow: failed to initialize minui
watchdogd: watchdogd started (interval 10, margin 20)!
random: fast init done
fec: <220> error: fec_open: failed to open '/dev/block/by-name/system': No such file or directory
init: [libfs_mgr]Failed to open '/dev/block/by-name/system': No such file or directory
init: [libfs_mgr]Could not set up verified partition, skipping!
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
random: crng init done
init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/cache (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/cache (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
init: [libfs_mgr]Failed to mount an un-encryptable or wiped partition on /dev/block/by-name/cache at /cache options: nomblk_io_submit: No such file or directory
init: [libfs_mgr]Not running /system/bin/tune2fs on /dev/block/by-name/vendor (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/vendor,target=/vendor,type=ext4)=-1
init: [libfs_mgr]Not running /system/bin/e2fsck on /dev/block/by-name/vendor (executable not in system image)
init: [libfs_mgr]__mount(source=/dev/block/by-name/vendor,target=/vendor,type=ext4)=-1
init: [libfs_mgr]Failed to mount an un-encryptable or wiped partition on /dev/block/by-name/vendor at /vendor options: barrier=1: No such file or directory
init: fs_mgr_mount_all returned an error: No such file or directory
init: Parsing file /system/etc/init...
init: Unable to open '/system/etc/init': No such file or directory
init: Parsing file /vendor/etc/init...
init: Unable to open '/vendor/etc/init': No such file or directory
file system registered
using random self ethernet address
using random host ethernet address
zram0: detected capacity change from 0 to 314572800
mkswap: executing /system/bin/mkswap failed: No such file or directory
mkswap: mkswap terminated by exit(255)

Unable to find swap-space signature
audit: type=1400 audit(89.370:5): avc: granted { read } for pid=1 comm="init" name="ttymxc0" dev="tmpfs" ino=6667 scontext=u:r:init:s0 tcontext=u:object_r:tty_device:s0 tclass=chr_file
audit: type=1400 audit(89.380:6): avc: granted { read open } for pid=1 comm="init" path="/dev/ttymxc0" dev="tmpfs" ino=6667 scontext=u:r:init:s0 tcontext=u:object_r:tty_device:s0 tclass=chr_file
read descriptors
read strings

0 Kudos
Reply

3,317 Views
3401848300
Contributor III

MFGTool Version:IMX6_L5.1_2.1.0_MFG_TOOL

The problem is more bad.whether writing to an SD card or EMMC.

U-Boot 2017.03 (Jun 11 2018 - 20:21:46 -0700)

CPU: Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 45C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
Board: MX6-SabreSD
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

No panel detected: default to E9-WVGA
Display: E9-WVGA (800x480)
In: serial
Out: serial
Err: serial
flash target is MMC:0
Net: No ethernet found.
can't find partition: misc, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='bootloader' start=2 len=2046
idx 2, ptn 1 name='mmcsda1' start=16384 len=32768
idx 3, ptn 2 name='mmcsda2' start=51200 len=32768
cannot get the partion info for misc
Cannot find partition 4080
do_raw_read failed, ret 1
read_bootctl, bcb_rw_block read failed
read command failed
Fastboot: Normal
Hit any key to stop autoboot: 0
boota mmc0
can't find partition: boot, dump the partition table
idx 0, ptn 0 name='gpt' start=0 len=2048
idx 1, ptn 0 name='bootloader' start=2 len=2046
idx 2, ptn 1 name='mmcsda1' start=16384 len=32768
idx 3, ptn 2 name='mmcsda2' start=51200 len=32768
boota: cannot find 'boot' partition

U-Boot mmc part command result.

=> mmc part

Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 16384 32768 650220e4-01 83
2 51200 32768 650220e4-02 83
3 83968 5357568 650220e4-03 05 Extd
4 5441536 26040320 650220e4-04 83
5 86016 4194304 650220e4-05 83
6 4282368 1048576 650220e4-06 83
7 5332992 16384 650220e4-07 83
8 5351424 12288 650220e4-08 83
9 5365760 4096 650220e4-09 83
=>

I refer to MfgTool android_N7.1.2_2.0.0_tools.tar.gz issue  but not for Android Oreo,not helpful.

0 Kudos
Reply