Currently I am doing Android update for our custom device. Updating from known working Android 4.3 with u-boot 2015.04 and Linux kernel 3.2 to Android 7.1.2 with u-boot 2015.07 Linux kernel 4.5. The u-boot 2015.07 and Linux kernel 4.5 are known working on our custom device. While integrating the u-boot and Linux kernel into Android 7.1.2, the Linux kernel failed to boot.
Here is the log:
[ 3.667772] sr_init: No PMIC hook to init smartreflex [ 3.673780] sr_init: platform driver register failed for SR [ 3.716721] vdd5_reg: disabling [ 3.720220] regulator-wl18xx-wl-en: disabling [ 3.724826] regulator-wl18xx-bt-en: disabling [ 3.959011] usb 2-1: new high-speed USB device number 2 using musb-hdrc [ 4.099854] usb 2-1: New USB device found, idVendor=0424, idProduct=2513 [ 4.106939] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.120895] hub 2-1:1.0: USB hub found [ 4.126728] hub 2-1:1.0: 3 ports detected [ 4.311994] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 4.320977] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 4.331395] devtmpfs: error mounting -2 [ 4.336827] Freeing unused kernel memory: 452K (c09b5000 - c0a26000) [ 4.348323] Starting init: /etc/init exists but couldn't execute it (error -13) [ 4.377888] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. [ 4.391965] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. [ 77.048831] random: nonblocking pool is initialized
The file system for root (label as system) is ext4 format. When the kernel is built, there are /bin/sh, /etc/init/ in it, but no /sbin/ folder and /bin/init /etc/init files. I tried to change the permission to anyone can execute the files, but it doesn't work. Do anybody knows what is wrong with that?
Edit: I think the major problem is the file system is not mounted.
[ 4.295699] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 4.304608] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 4.314750] devtmpfs: error mounting -2
Do anyone know what causes this error?