02-05-2016, 06:47 AM
(02-05-2016, 05:54 AM)Hahaburger Wrote:(02-04-2016, 05:15 PM)taros Wrote: Trying again and writing down the steps (in order to catch any mistake).
Your steps seems fine. I removed the kernel parameter.
Here is the image: https://drive.google.com/file/d/0B5NrIPX...ef=2&pli=1
I used this new boot.img:
Code:
$ sha256sum boot.img
4b87d6c6af1b2632180301a3d87876a86dae01dc7d7d3c8c82311db0314c1668 boot.img
Here is the new output:
Code:
[ 17.767780] Freeing unused kernel memory: 524K (ffffffc0009e5000 - ffffffc000a68000)
[ 17.778560] init: init started!
[ 17.791933] SELinux: 2048 avtab hash slots, 4930 rules.
[ 17.803192] SELinux: 2048 avtab hash slots, 4930 rules.
[ 17.808952] SELinux: 1 users, 2 roles, 531 types, 0 bools, 1 sens, 1024 cats
[ 17.816800] SELinux: 87 classes, 4930 rules
[ 17.824896] SELinux: Completing initialization.
[ 17.829940] SELinux: Setting up existing superblocks.
[ 17.835579] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[ 17.843382] SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
[ 17.851481] SELinux: initialized (dev bdev, type bdev), not configured for labeling
[ 17.859871] SELinux: initialized (dev proc, type proc), uses genfs_contexts
[ 17.867501] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 17.875421] SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
[ 17.884296] SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
[ 17.897376] SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
[ 17.904924] SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
[ 17.912436] SELinux: initialized (dev anon_inodefs, type anon_inodefs), not configured for labeling
[ 17.922336] SELinux: initialized (dev devpts, type devpts), uses transition SIDs
[ 17.930445] SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
[ 17.939075] SELinux: initialized (dev configfs, type configfs), not configured for labeling
[ 17.948208] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 17.956123] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[ 18.154688] type=1403 audit(1262304012.930:2): policy loaded auid=4294967295 ses=4294967295
[ 18.164545] init: (Initializing SELinux enforcing took 0.39s.)
[ 18.177158] init: init second stage started!
[ 18.234672] init: waitpid failed: No child processes
[ 18.240378] init: (Loading properties from /default.prop took 0.00s.)
[ 18.249484] init: (Parsing /init.environ.rc took 0.00s.)
[ 18.255599] init: (Parsing /init.usb.rc took 0.00s.)
[ 18.261709] init: (Parsing init.common.rc took 0.00s.)
[ 18.267541] init: (Parsing init.sun50iw1p1.usb.rc took 0.00s.)
[ 18.274007] init: (Parsing init.zygote64_32.rc took 0.00s.)
[ 18.280118] init: (Parsing /init.sun50iw1p1.rc took 0.02s.)
[ 18.286596] init: (Parsing /init.usb.configfs.rc took 0.00s.)
[ 18.292962] init: /init.zygote64_32.rc: 1: ignored duplicate definition of service 'zygote'
[ 18.302117] init: /init.zygote64_32.rc: 10: ignored duplicate definition of service 'zygote_secondary'
[ 18.312305] init: (Parsing /init.zygote64_32.rc took 0.02s.)
[ 18.318642] init: (Parsing /init.trace.rc took 0.00s.)
[ 18.324317] init: could not import file '/init.cm.rc' from '/init.rc'
[ 18.331375] init: (Parsing /init.rc took 0.08s.)
[ 18.336673] init: SELinux: Could not get canonical path /adb_keys restorecon: No such file or directory.
[ 18.347129] init: Starting service 'ueventd'...
[ 18.352455] init: Waiting for /dev/.coldboot_done...
[ 18.354686] ueventd: ueventd started!
[ 18.753818] ueventd: Coldboot took 0.40s.
[ 18.759894] init: Waiting for /dev/.coldboot_done took 0.41s.
[ 18.766261] init: /dev/hw_random not found
[ 18.772500] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 18.781254] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.791814] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.805106] init: write_file: Unable to open '/proc/cpu/alignment': No such file or directory
[ 18.814740] init: write_file: Unable to open '/proc/sys/kernel/sched_compat_yield': No such file or directory
[ 18.827723] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 18.836045] init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument
[ 18.847025] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 18.860322] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts
[ 18.868795] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
[ 18.880572] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.889015] init: /dev/hw_random not found
[ 18.923466] [NAND]Failed to insmod nand!!!
[ 18.931012] init: Warning! Service exec 0 (/sbin/busybox) needs a SELinux domain defined; please fix!
[ 18.941217] init: Starting service 'exec 0 (/sbin/busybox)'...
[ 18.948333] type=1400 audit(1262304013.740:3): avc: denied { execute_no_trans } for pid=1379 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 18.970359] init: cannot execve('/sbin/busybox'): Permission denied
[ 18.977513] init: Service 'exec 0 (/sbin/busybox)' (pid 1379) exited with status 127
[ 38.071038] fs_mgr: __mount(source=/dev/block/by-name/system,target=/system,type=ext4)=-1
[ 38.080097] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/system at /system options: (null) error: No such file or directory
[ 57.746185] fs_mgr: __mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
[ 57.755012] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/cache at /cache options: nomblk_io_submit,barrier=1 error: No such file or directory
[ 77.432525] fs_mgr: __mount(source=/dev/block/by-name/alog,target=/logger,type=ext4)=-1
[ 77.441348] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/alog at /logger options: nomblk_io_submit,barrier=1 error: No such file or directory
[ 97.109003] fs_mgr: __mount(source=/dev/block/by-name/UDISK,target=/data,type=ext4)=-1
[ 97.117737] fs_mgr: fs_mgr_mount_all(): possibly an encryptable blkdev /dev/block/by-name/UDISK for mount /data type ext4 )
[ 97.130137] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 97.138114] init: fs_mgr_mount_all returned an error
[ 97.143859] init: fs_mgr_mount_all returned unexpected error 255
[ 97.150852] init: cannot find '/system/bin/app_process64', disabling 'zygote'
[ 97.158713] init: cannot find '/system/bin/app_process32', disabling 'zygote_secondary'
[ 97.167516] init: cannot find '/system/bin/sh', disabling 'console'
[ 97.177926] Unable to find swap-space signature
[ 97.182937] fs_mgr: swapon failed for /dev/block/zram0
[ 97.188716] init: cannot find '/system/bin/installd', disabling 'installd'
[ 97.196317] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.204054] init: SELinux: Could not set context for /cache: Read-only file system
[ 97.214308] init: SELinux: Could not set context for /logger: Read-only file system
[ 97.223042] init: (Loading properties from /system/build.prop took 0.00s.)
[ 97.230633] init: (Loading properties from /vendor/build.prop took 0.00s.)
[ 97.238205] init: (Loading properties from /factory/factory.prop took 0.00s.)
[ 97.246254] init: /recovery not specified in fstab
[ 97.252607] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.259439] init: cannot find '/system/bin/vold', disabling 'vold'
[ 97.266726] init: Not bootcharting.
[ 97.298259] init: SELinux: Could not get canonical path /data/user/0 restorecon: No such file or directory.
[ 97.309005] init: cannot find '/system/bin/tzdatacheck', disabling 'exec 1 (/system/bin/tzdatacheck)'
[ 97.319862] init: cannot find '/system/bin/gatekeeperd', disabling 'gatekeeperd'
[ 97.328006] init: cannot find '/system/xbin/perfprofd', disabling 'perfprofd'
[ 97.336132] init: cannot find '/system/bin/sdcard', disabling 'sdcard'
[ 97.343613] init: Warning! Service bootclone needs a SELinux domain defined; please fix!
[ 97.352568] init: Starting service 'bootclone'...
[ 97.358464] type=1400 audit(1262304093.420:4): avc: denied { execute_no_trans } for pid=1382 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 97.358491] init: Warning! Service precopy needs a SELinux domain defined; please fix!
[ 97.358502] init: Starting service 'precopy'...
[ 97.359047] init: (Loading properties from /data/local.prop took 0.00s.)
[ 97.359149] type=1400 audit(1262304093.420:5): avc: denied { execute_no_trans } for pid=1383 comm="init" path="/sbin/busybox" dev="rootfs" ino=3976 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 97.359209] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.359211] init: cannot execve('/sbin/busybox'): Permission denied
[ 97.359266] init: cannot find '/system/bin/logd', disabling 'logd-reinit'
[ 97.359885] init: Service 'precopy' (pid 1383) exited with status 127
[ 97.365000] init: Starting service 'healthd'...
[ 97.365502] init: cannot find '/system/bin/lmkd', disabling 'lmkd'
[ 97.365552] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[ 97.365623] init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
[ 97.365699] init: cannot find '/system/bin/sayeye', disabling 'sayeye'
[ 97.367731] binder: 1384:1384 transaction failed 29189, size 0-0
[ 97.368459] init: write_file: Unable to open '/proc/bluetooth/sleep/lpm': No such file or directory
[ 97.370506] init: cannot find '/system/bin/sh', disabling 'console'
[ 97.370671] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 97.370731] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[ 97.370833] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[ 97.370896] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[ 97.370953] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 97.371011] init: Starting service 'adbd'...
[ 97.571998] init: cannot execve('/sbin/busybox'): Permission denied
[ 97.579201] init: Service 'bootclone' (pid 1382) exited with status 127
[ 98.351849] binder: 1384:1384 transaction failed 29189, size 0-0
[ 99.342509] binder: 1384:1384 transaction failed 29189, size 0-0
[ 100.333175] binder: 1384:1384 transaction failed 29189, size 0-0
[ 101.323804] binder: 1384:1384 transaction failed 29189, size 0-0
[ 102.314565] binder: 1384:1384 transaction failed 29189, size 0-0
[ 103.305209] binder: 1384:1384 transaction failed 29189, size 0-0
[ 104.295837] binder: 1384:1384 transaction failed 29189, size 0-0
[ 105.287015] binder: 1384:1384 transaction failed 29189, size 0-0
[ 106.277660] binder: 1384:1384 transaction failed 29189, size 0-0
[ 107.268287] binder: 1384:1384 transaction failed 29189, size 0-0
[ 108.259079] binder: 1384:1384 transaction failed 29189, size 0-0
[ 109.249722] binder: 1384:1384 transaction failed 29189, size 0-0
[ 110.240350] binder: 1384:1384 transaction failed 29189, size 0-0
[ 111.231084] binder: 1384:1384 transaction failed 29189, size 0-0
[ 112.221727] binder: 1384:1384 transaction failed 29189, size 0-0
[ 113.212355] binder: 1384:1384 transaction failed 29189, size 0-0
[ 114.203069] binder: 1384:1384 transaction failed 29189, size 0-0
[ 115.193712] binder: 1384:1384 transaction failed 29189, size 0-0
[ 116.184340] binder: 1384:1384 transaction failed 29189, size 0-0
[ 117.175046] binder: 1384:1384 transaction failed 29189, size 0-0
[ 118.165690] binder: 1384:1384 transaction failed 29189, size 0-0
[ 119.156317] binder: 1384:1384 transaction failed 29189, size 0-0
[ 120.147009] binder: 1384:1384 transaction failed 29189, size 0-0
[ 121.137650] binder: 1384:1384 transaction failed 29189, size 0-0
[ 122.128277] binder: 1384:1384 transaction failed 29189, size 0-0
[ 123.118905] binder: 1384:1384 transaction failed 29189, size 0-0
[ 124.109599] binder: 1384:1384 transaction failed 29189, size 0-0
[ 125.100243] binder: 1384:1384 transaction failed 29189, size 0-0
[ 126.090869] binder: 1384:1384 transaction failed 29189, size 0-0
...
Among the issues:
1. /sbin/busybox does not have a SELinux domain, and does not run.
2. the system partition (and other partitions) cannot be mounted
Code:
[ 38.080097] fs_mgr: Failed to mount an un-encryptable or wiped partition on/dev/block/by-name/system at /system options: (null) error: No such file or directory
If busybox could work, then it would be poke inside and find why the partitions are not being mounted.