|
Edited by jernej at 2016-4-19 06:39
Hi,
I have OrangePI PC with OpenELEC and trying to avoid SD card as much as possible. As current U-Boot does not support gmac yet I am trying at least change OpenELEC's storage (disk) to NFS.
I have changed the kernel bootargs in boot.scr from:
- setenv bootargs console=ttyS0,115200 boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 consoleblank=0 noram
Copy code to:- setenv bootargs ip=dhcp console=ttyS0,115200 boot=/dev/mmcblk0p1 disk=NFS=192.168.1.4:/virtual/diskless/openelec/storage overlay consoleblank=0 noram
Copy code Unfortunately, network stack was not initialized during kernel boot and storage was not mounted. I can see that boot arguments are passed to kernel:
- [ 0.000000] Kernel command line: ip=dhcp console=ttyS0,115200 boot=/dev/mmcblk0p1 disk=NFS=192.168.1.4:/virtual/diskless/openelec/storage overlay consoleblank=0 noram
Copy code But later boot ends with this error:
- *** Error in mount_storage: mount_common: Could not mount 192.168.1.4:/virtual/diskless/openelec/storage ***
- ### Starting debugging shell... type exit to quit ###
Copy code I can't see any indication of NIC initialization and kernel IP configuration during boot.
In contrast, this is how looks working setup on my older amd64 box with Generic build of OpenELEC:
- [ 0.000000] Kernel command line: root=/dev/ram0 rdinit=/init usbcore.autosuspend=-1 openelec/KERNEL openelec/KERNEL ip=dhcp boot=NFS=192.168.1.4:/virtual/diskless/openelec disk=NFS=192.168.1.4:/virtual/diskless/openelec/storage overlay
- [ 3.293776] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
- [ 3.294669] r8169 0000:03:00.0 eth0: RTL8168evl/8111evl at 0xffffc90000654000, 74:d4:35:8f:7f:de, XID 0c900880 IRQ 29
- [ 3.294842] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
- [ 6.586009] Sending DHCP requests .., OK
- [ 8.875916] IP-Config: Got DHCP answer from 192.168.1.4, my address is 192.168.1.98
- [ 8.882243] IP-Config: Complete:
- [ 8.887703] device=eth0, hwaddr=74:d4:35:8f:7f:de, ipaddr=192.168.1.98, mask=255.255.255.0, gw=192.168.1.1
- [ 8.893376] host=tv1, domain=example.com, nis-domain=example
- [ 8.899032] bootserver=192.168.1.4, rootserver=192.168.1.4, rootpath=
- [ 8.899156] nameserver0=192.168.1.66, nameserver1=192.168.1.16
Copy code
Dou you have any idea what i am missing? Is there something in current kernel setup or in GMAC driver in OpenELEC on Orange PI that prevent kernel ip configuration from working?
Thanks.
|
|