02-07-2016, 07:55 AM
(02-05-2016, 06:03 PM)Hahaburger Wrote:(02-05-2016, 06:47 AM)taros Wrote: If busybox could work, then it would be poke inside and find why the partitions are not being mounted.
I've fixed a mistake in my device tree which caused some missing sepolicies and ramdisk files.
System partition has changed a bit but I'll upload it when we will be able to at least mount it
Here is the new image:
https://drive.google.com/file/d/0B5NrIPX...sp=sharing
I tried it out.
Code:
$ sha256sum boot.img
96ca2edf6ee812ed214eb5d1b592b456acb481d47c47d2858bcc11d65fd5a801 boot.img
The output is
Code:
[ 17.757254] Freeing unused kernel memory: 524K (ffffffc0009e5000 - ffffffc000a68000)
[ 17.768049] init: init started!
[ 17.781578] SELinux: 2048 avtab hash slots, 5277 rules.
[ 17.793212] SELinux: 2048 avtab hash slots, 5277 rules.
[ 17.798966] SELinux: 1 users, 2 roles, 561 types, 0 bools, 1 sens, 1024 cats
[ 17.806816] SELinux: 87 classes, 5277 rules
[ 17.814952] SELinux: Completing initialization.
[ 17.819996] SELinux: Setting up existing superblocks.
[ 17.825646] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[ 17.833505] SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
[ 17.841553] SELinux: initialized (dev bdev, type bdev), not configured for labeling
[ 17.849938] SELinux: initialized (dev proc, type proc), uses genfs_contexts
[ 17.857568] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 17.865482] SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
[ 17.874358] SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
[ 17.887411] SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
[ 17.894958] SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
[ 17.902483] SELinux: initialized (dev anon_inodefs, type anon_inodefs), not configured for labeling
[ 17.912381] SELinux: initialized (dev devpts, type devpts), uses transition SIDs
[ 17.920480] SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
[ 17.929112] SELinux: initialized (dev configfs, type configfs), not configured for labeling
[ 17.938246] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 17.946159] SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
[ 18.144116] type=1403 audit(1262304012.930:2): policy loaded auid=4294967295 ses=4294967295
[ 18.153986] init: (Initializing SELinux enforcing took 0.39s.)
[ 18.167120] init: init second stage started!
[ 18.228481] init: waitpid failed: No child processes
[ 18.234131] init: (Loading properties from /default.prop took 0.00s.)
[ 18.243235] init: (Parsing /init.environ.rc took 0.00s.)
[ 18.249454] init: (Parsing /init.usb.rc took 0.00s.)
[ 18.255469] init: (Parsing init.common.rc took 0.00s.)
[ 18.261302] init: (Parsing init.sun50iw1p1.usb.rc took 0.00s.)
[ 18.267784] init: (Parsing init.zygote64_32.rc took 0.00s.)
[ 18.273879] init: (Parsing /init.sun50iw1p1.rc took 0.02s.)
[ 18.280365] init: (Parsing /init.usb.configfs.rc took 0.00s.)
[ 18.286729] init: /init.zygote64_32.rc: 1: ignored duplicate definition of service 'zygote'
[ 18.295885] init: /init.zygote64_32.rc: 10: ignored duplicate definition of service 'zygote_secondary'
[ 18.306091] init: (Parsing /init.zygote64_32.rc took 0.02s.)
[ 18.312401] init: (Parsing /init.trace.rc took 0.00s.)
[ 18.318469] init: (Parsing /init.superuser.rc took 0.00s.)
[ 18.324468] init: (Parsing /init.cm.rc took 0.01s.)
[ 18.329846] init: (Parsing /init.rc took 0.09s.)
[ 18.335125] init: SELinux: Could not get canonical path /adb_keys restorecon: No such file or directory.
[ 18.345589] init: Starting service 'ueventd'...
[ 18.350931] init: Waiting for /dev/.coldboot_done...
[ 18.353178] ueventd: ueventd started!
[ 18.755318] ueventd: Coldboot took 0.40s.
[ 18.758390] init: Waiting for /dev/.coldboot_done took 0.41s.
[ 18.758477] init: /dev/hw_random not found
[ 18.758601] keychord: using input dev sunxi_ir_recv for fevent
[ 18.758608] keychord: using input dev MCE IR Keyboard/Mouse (sunxi-rc-recv) for fevent
[ 18.758613] keychord: using input dev axp81x-supplyer for fevent
[ 18.758619] keychord: using input dev audiocodec sunxi Audio Jack for fevent
[ 18.801427] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 18.810259] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.820798] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.834062] init: write_file: Unable to open '/proc/cpu/alignment': No such file or directory
[ 18.843687] init: write_file: Unable to open '/proc/sys/kernel/sched_compat_yield': No such file or directory
[ 18.856538] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 18.864829] init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument
[ 18.875772] SELinux: initialized (dev cgroup, type cgroup), uses genfs_contexts
[ 18.889110] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts
[ 18.897434] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
[ 18.909384] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 18.918951] init: /dev/hw_random not found
[ 18.953473] [NAND]Failed to insmod nand!!!
[ 18.961225] init: Warning! Service exec 0 (/sbin/busybox) needs a SELinux domain defined; please fix!
[ 18.971428] init: Starting service 'exec 0 (/sbin/busybox)'...
[ 18.978523] type=1400 audit(1262304013.780:3): avc: denied { execute_no_trans } for pid=1379 comm="init" path="/sbin/busybox" dev="rootfs" ino=3978 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 19.000539] init: cannot execve('/sbin/busybox'): Permission denied
[ 19.007738] init: Service 'exec 0 (/sbin/busybox)' (pid 1379) exited with status 127
[ 38.061672] fs_mgr: __mount(source=/dev/block/by-name/system,target=/system,type=ext4)=-1
[ 38.070714] 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.736797] fs_mgr: __mount(source=/dev/block/by-name/cache,target=/cache,type=ext4)=-1
[ 57.745625] 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.423242] fs_mgr: __mount(source=/dev/block/by-name/alog,target=/logger,type=ext4)=-1
[ 77.432064] 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.099864] fs_mgr: __mount(source=/dev/block/by-name/UDISK,target=/data,type=ext4)=-1
[ 97.108596] fs_mgr: fs_mgr_mount_all(): possibly an encryptable blkdev /dev/block/by-name/UDISK for mount /data type ext4 )
[ 97.120996] SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
[ 97.128998] init: fs_mgr_mount_all returned an error
[ 97.134787] init: fs_mgr_mount_all returned unexpected error 255
[ 97.141453] init: cannot find '/system/bin/app_process64', disabling 'zygote'
[ 97.149632] init: cannot find '/system/bin/app_process32', disabling 'zygote_secondary'
[ 97.158439] init: cannot find '/system/bin/sh', disabling 'console'
[ 97.168848] Unable to find swap-space signature
[ 97.173883] fs_mgr: swapon failed for /dev/block/zram0
[ 97.179634] init: cannot find '/system/bin/installd', disabling 'installd'
[ 97.187239] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.194981] init: SELinux: Could not set context for /cache: Read-only file system
[ 97.205308] init: SELinux: Could not set context for /logger: Read-only file system
[ 97.214062] init: (Loading properties from /system/build.prop took 0.00s.)
[ 97.221635] init: (Loading properties from /vendor/build.prop took 0.00s.)
[ 97.229214] init: (Loading properties from /factory/factory.prop took 0.00s.)
[ 97.237228] init: /recovery not specified in fstab
[ 97.243686] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.250489] init: cannot find '/system/bin/vold', disabling 'vold'
[ 97.257771] init: Not bootcharting.
[ 97.290195] init: SELinux: Could not get canonical path /data/user/0 restorecon: No such file or directory.
[ 97.300973] init: cannot find '/system/bin/tzdatacheck', disabling 'exec 1 (/system/bin/tzdatacheck)'
[ 97.311856] init: cannot find '/system/bin/gatekeeperd', disabling 'gatekeeperd'
[ 97.319990] init: cannot find '/system/xbin/perfprofd', disabling 'perfprofd'
[ 97.327846] init: cannot find '/system/bin/sdcard', disabling 'sdcard'
[ 97.335302] init: Warning! Service bootclone needs a SELinux domain defined; please fix!
[ 97.344506] init: Starting service 'bootclone'...
[ 97.350433] type=1400 audit(1262304093.420:4): avc: denied { execute_no_trans } for pid=1382 comm="init" path="/sbin/busybox" dev="rootfs" ino=3978 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 97.350484] init: Warning! Service precopy needs a SELinux domain defined; please fix!
[ 97.350495] init: Starting service 'precopy'...
[ 97.351150] type=1400 audit(1262304093.430:5): avc: denied { execute_no_trans } for pid=1383 comm="init" path="/sbin/busybox" dev="rootfs" ino=3978 scontext=u:r:init:s0 tcontext=u:object_r:rootfs:s0 tclass=file permissive=0
[ 97.351215] init: cannot execve('/sbin/busybox'): Permission denied
[ 97.351537] init: Service 'precopy' (pid 1383) exited with status 127
[ 97.352302] init: cannot find '/system/bin/sysinit', disabling 'sysinit'
[ 97.352409] init: (Loading properties from /data/local.prop took 0.00s.)
[ 97.352549] init: cannot find '/system/bin/logd', disabling 'logd'
[ 97.352602] init: cannot find '/system/bin/logd', disabling 'logd-reinit'
[ 97.357962] init: Starting service 'healthd'...
[ 97.358491] init: cannot find '/system/bin/lmkd', disabling 'lmkd'
[ 97.358541] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[ 97.358608] init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
[ 97.358688] init: cannot find '/system/bin/sayeye', disabling 'sayeye'
[ 97.361157] binder: 1384:1384 transaction failed 29189, size 0-0
[ 97.361521] init: write_file: Unable to open '/proc/bluetooth/sleep/lpm': No such file or directory
[ 97.369249] init: cannot find '/system/bin/sh', disabling 'console'
[ 97.369414] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 97.369475] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[ 97.369537] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[ 97.369598] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[ 97.369654] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[ 97.369702] init: Starting service 'adbd'...
[ 97.571114] init: cannot execve('/sbin/busybox'): Permission denied
[ 97.578329] init: Service 'bootclone' (pid 1382) exited with status 127
[ 98.345274] binder: 1384:1384 transaction failed 29189, size 0-0
[ 99.335916] binder: 1384:1384 transaction failed 29189, size 0-0
[ 100.326586] binder: 1384:1384 transaction failed 29189, size 0-0
[ 101.317472] binder: 1384:1384 transaction failed 29189, size 0-0
[ 102.308100] binder: 1384:1384 transaction failed 29189, size 0-0
[ 103.298759] binder: 1384:1384 transaction failed 29189, size 0-0
[ 104.289874] binder: 1384:1384 transaction failed 29189, size 0-0
[ 105.280502] binder: 1384:1384 transaction failed 29189, size 0-0
[ 106.271163] binder: 1384:1384 transaction failed 29189, size 0-0
[ 107.261919] binder: 1384:1384 transaction failed 29189, size 0-0
[ 108.252546] binder: 1384:1384 transaction failed 29189, size 0-0
[ 109.243204] binder: 1384:1384 transaction failed 29189, size 0-0
[ 110.233952] binder: 1384:1384 transaction failed 29189, size 0-0
[ 111.224580] binder: 1384:1384 transaction failed 29189, size 0-0
[ 112.215237] binder: 1384:1384 transaction failed 29189, size 0-0
[ 113.205949] binder: 1384:1384 transaction failed 29189, size 0-0
[ 114.196604] binder: 1384:1384 transaction failed 29189, size 0-0
[ 115.187232] binder: 1384:1384 transaction failed 29189, size 0-0
[ 116.177926] binder: 1384:1384 transaction failed 29189, size 0-0
[ 117.168570] binder: 1384:1384 transaction failed 29189, size 0-0
[ 118.159197] binder: 1384:1384 transaction failed 29189, size 0-0
[ 119.149895] binder: 1384:1384 transaction failed 29189, size 0-0
...
If you can write up (or point me to a howto) on how to recreate the boot.img, I can try as well.
Thanks for going through this!