[android-porting] Re: Problem in Booting Android Nougat over NFS

2018-10-29 Thread radhika somaiya
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=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.

On Friday, October 26, 2018 at 10:58:59 PM UTC+5:30, Jaymin D wrote:
>
> 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 
> wrote:
>>
>>
>> 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  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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
## Booting Android Image at 0x1200 ...
Kernel load addr 0x14008000 size 8692 KiB
Kernel command line: console=ttymxc0,115200 root=/dev/nfs rw wait 
nfsroot=: ip=dhcp init=/init vmall
oc=128M consoleblank=0 cma=448M galcore.contiguousSize=33554432 
buildvariant=userdebug androidboot.console=ttymxc0 androidboot.selinux=per
missive androidboot.dm_verity=disabled
RAM disk load addr 0x1500 size 1573 KiB
FDT load addr 0x14f0 size 48 KiB
   Booting using the fdt at 0x12a07000
   Loading Kernel Image ... OK
   Using Device Tree in place at 12a07000, end 12a15c8d
switch to ldo_bypass mode!

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.1.15 (host) (gcc version 4.9 20150123 (prerelease) (GCC) ) #10 
SMP PREEMPT Tue Oct 23 17:52:10 IST 2018
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
cma: Reserved 448 MiB at 0x2a00
Memory policy: Data cache writealloc
PERCPU: Embedded 13 pages/cpu @f66bf000 s22144 r8192 d22912 u53248
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260128
Kernel command line: console=ttymxc0,115200 root=/dev/nfs rw wait 
nfsroot=: ip=dhcp init=/init vmall
oc=128M consoleblank=0 cma=448M galcore.contiguousSize=33554432 
buildvariant=userdebug androidboot.console=ttymxc0 androidboot.selinux=per
missive androidboot.dm_verity=disabled androidboot.serialno=031351d4ee68b445 
androidboot.bootreason=normal
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 557804K/1047552K available (12288K kernel code, 1029K rwdata, 3728K 
rodata, 1024K init, 651K bss, 30996K reserved, 458752K cma-reserved, 146432K 
highmem)
Virtual kernel memory layout:
vector  : 0x - 0x1000   (   4 kB)
fixmap  : 0xffc0 - 0xfff0   (3072 kB)
vmalloc : 0xf780 - 0xff00   ( 120 MB)
lowmem  : 0xc000 - 0xf700   ( 880 MB)
pkmap   : 0xbfe0 - 0xc000   (   2 MB)
modules : 0xbf00 - 0xbfe0   (  14 MB)
  .text : 0xc0008000 - 0xc0d0   (13280 kB)
  .init : 0xc110 - 0xc120   (1024 kB)
  .data : 0xc120 - 0xc13015b0   (1030 kB)
   .bss : 

[android-porting] Re: Problem in Booting Android Nougat over NFS

2018-10-26 Thread Jaymin D
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 
wrote:
>
>
> 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  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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.