AnsweredAssumed Answered

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

Question asked by Li Tater on Jun 11, 2018
Latest reply on Jun 13, 2018 by Li Tater

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.

 

Outcomes