Discussion:
[android-porting] Problem in Booting Android Nougat over NFS
radhika somaiya
2018-10-25 09:37:49 UTC
Permalink
Hi,

I am trying to boot the Android Nougat 7.1.1 over NFS. For this I am
following Android 6 Marshmallow over Network File System (NFS) on the
Wandboard <http://android.serverbox.ch/?p=1777> link but unfortunately got
blocked at below error ;

init: SELinux: Could not set context for /cache: Read-only file system
init: SELinux: Could not set context for /data: Read-only file system
init: cannot find '/system/bin/sh' (No such file or directory), disabling
'console'

Is there any document available that tells how to boot android nougat over
NFS ?
Or anyone has any idea or solution to this problem ?

Any help would be appreciated!

Thanks in advance.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Satish Patel
2018-10-26 04:10:55 UTC
Permalink
On Thu, Oct 25, 2018 at 10:21 PM radhika somaiya <
Post by radhika somaiya
Hi,
I am trying to boot the Android Nougat 7.1.1 over NFS. For this I am
following Android 6 Marshmallow over Network File System (NFS) on the
Wandboard <http://android.serverbox.ch/?p=1777> link but unfortunately
got blocked at below error ;
init: SELinux: Could not set context for /cache: Read-only file system
init: SELinux: Could not set context for /data: Read-only file system
/data/ and /cache should not be read-only. Check fstab and see if its gets
mounted as read only..
Post by radhika somaiya
init: cannot find '/system/bin/sh' (No such file or directory), disabling
'console'
looks like your busybox/tinybox is not packaged in system.img
Post by radhika somaiya
Is there any document available that tells how to boot android nougat over
NFS ?
Or anyone has any idea or solution to this problem ?
Any help would be appreciated!
Thanks in advance.
--
--
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
Regards,
satish patel
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jaymin D
2018-10-26 07:31:47 UTC
Permalink
Hi,

Just for a try, add below flags into your bootard line:

enforcing=0 androidboot.selinux=permissive

Probably here at end:

setenv netargs 'setenv bootargs ${bootargs_base}
console=${console},${baudrate} root=/dev/nfs rw ip=dhcp
nfsroot=${serverip}:${nfsroot},v3,tcp'

It is something about root permission issue.
Can you share your BoardConfig.mk file and the complete Kernel booting log?


On Thursday, October 25, 2018 at 10:21:31 PM UTC+5:30, radhika somaiya
Post by radhika somaiya
Hi,
I am trying to boot the Android Nougat 7.1.1 over NFS. For this I am
following Android 6 Marshmallow over Network File System (NFS) on the
Wandboard <http://android.serverbox.ch/?p=1777> link but unfortunately
got blocked at below error ;
init: SELinux: Could not set context for /cache: Read-only file system
init: SELinux: Could not set context for /data: Read-only file system
init: cannot find '/system/bin/sh' (No such file or directory), disabling
'console'
Is there any document available that tells how to boot android nougat over
NFS ?
Or anyone has any idea or solution to this problem ?
Any help would be appreciated!
Thanks in advance.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
radhika somaiya
2018-10-29 13:51:20 UTC
Permalink
Hi,

First of all Thank you so much for your time.

@Satish Patel, I had gone through the fstab file. All looks good there.

@Jaymin, I have tried with your suggested bootargs. Unfortunately this
doesn't work well.

My boot args look like :
bootargs=console=ttymxc0,115200 root=/dev/nfs rw wait nfsroot=<ip>:<Path to
root system in host machine> ip=dhcp init=/init vmalloc=128M cons
oleblank=0 cma=448M galcore.contiguousSize=33554432 buildvariant=userdebug
androidboot.console=ttymxc0 enforcing=0 androidboot.selinux=permissive andr
oidboot.dm_verity=disabled

Moreover, I am thinking that the issue should not be in any code lines. May
be I am missing a small step in booting process as there are no straight
forward steps available over the net. I am not confident about marshmallow
steps can smoothly work in Nougat or not.

I have attached the Kernel Booting Log and BoardConfig.mk with this thread.

Thank You.
Post by Jaymin D
Hi,
enforcing=0 androidboot.selinux=permissive
setenv netargs 'setenv bootargs ${bootargs_base}
console=${console},${baudrate} root=/dev/nfs rw ip=dhcp
nfsroot=${serverip}:${nfsroot},v3,tcp'
It is something about root permission issue.
Can you share your BoardConfig.mk file and the complete Kernel booting log?
On Thursday, October 25, 2018 at 10:21:31 PM UTC+5:30, radhika somaiya
Post by radhika somaiya
Hi,
I am trying to boot the Android Nougat 7.1.1 over NFS. For this I am
following Android 6 Marshmallow over Network File System (NFS) on the
Wandboard <http://android.serverbox.ch/?p=1777> link but unfortunately
got blocked at below error ;
init: SELinux: Could not set context for /cache: Read-only file system
init: SELinux: Could not set context for /data: Read-only file system
init: cannot find '/system/bin/sh' (No such file or directory), disabling
'console'
Is there any document available that tells how to boot android nougat
over NFS ?
Or anyone has any idea or solution to this problem ?
Any help would be appreciated!
Thanks in advance.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...