Android does not boot properly and services can't start due to read only permissions

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

Android does not boot properly and services can't start due to read only permissions

2,060 Views
mrigendra_chaub
Contributor III

I have a sabresd based reference board and I have ported android O from official source.
I am facing a problem that none of the service works. All are getting killed.
In my case adb is not present as there is no usb port
below I am pasting the logs


android:/ $ mount -o remount,rw /system /system
mount: '/system' not in /proc/mounts
android:/ $ cat /proc/mounts
rootfs / rootfs ro,seclabel 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
none /sys/kernel/debug debugfs rw,seclabel,relatime,mode=755 0 0
tmpfs /mnt tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /config configfs rw,relatime 0 0
/dev/block/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,noauto_da_alloc,errors=panic,data=ordered 0 0
/dev/block/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,data=ordered 0 0
/dev/block/by-name/vendor /vendor ext4 ro,seclabel,relatime,data=ordered 0 0
tmpfs /storag

e tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

android:/ # [ 16.808715] init: Untracked pid 1691 exited with status 0
[ 16.821319] init: Service 'surfaceflinger' (pid 1556) killed by signal 6
[ 16.828228] init: Sending signal 9 to service 'surfaceflinger' (pid 1556) process group...
[ 16.836866] init: Failed to open process cgroup uid 1000 pid 1556: No such file or directory
[ 16.845413] init: Error encountered killing process cgroup uid 1000 pid 1556: No such file or directory
[ 16.855234] init: Sending signal 9 to service 'zygote' (pid 1539) process group...
[ 16.862946] init: Failed to open process cgroup uid 0 pid 1539: No such file or directory


mount -o rw,remount /system >>>>>this works
[ 174.751226] EXT4-fs (mmcblk0p3): re-mounted. Opts: data=ordered

I tried various commands such as

chmod 777 /system/build.prop
mount -o rw,remount /system >>> this works but still no use
mount -o remount,rw /system /system
mount -o ro,remount /system
mount -o rw,remount /userdata
mount -o rw,remount /mnt/sdcard
mount -o rw,remount /dev/block/mmcblk0p10 /userdata

I get this error on trying to mount userdata

mount: '/userdata' not in /proc/mounts

Can any one help me, what is wrong here?

0 Kudos
1 Reply

1,549 Views
jimmychan
NXP TechSupport
NXP TechSupport

Here is the Android User's Guide. You can follow the steps in the guide to build the BSP.

            

0 Kudos