Forum: Mikrocontroller und Digitale Elektronik Problem mit NFS NGW100


von o. B. (Firma: BHT) (olinwg)


Lesenswert?

Hey,
ich habe Porbleme beim Booten des NGW100 über NFS! Ich habe meine 
Schritte unten aufgeführt. Vielleicht kennt jemand das Problem und kann 
mir helfen?!


1. Buildroot_2011.02 geladen und entpackt
1
make atngw100_defconfig 
2
 make
2. Datein und Ordnder aus dem Vezeichnis /buldroot_2011.02/Otuput/target 
in meinen zuvor erstellten nfs Ordner /home/oliver/nfs kopiert.
 Ornder:
- bin
-dev
-etc
-home
-lib
-mnt
-opt
-proc
-root
-sbin
-sys
-tmp
-usr
-var
und linuxrc


3. uImage aus /buldroot/Output/images/uImage in den Ordner 
/home/oliver/nfs kopieret

4. /etc/exports auf dem Host angepast
1
/home/oliver/nfs *(rw,sync,no_root_squash,no_subtree_check)

5. /home/oliver/nfs/etc/network/interfaces
1
# Configure Loopback 
2
#auto lo 
3
#iface lo inet loopback 
4
5
#Configure eth0 
6
auto eth0
7
iface eth0 inet static
8
         adress 10.0.0.1 
9
         netmask 255.0.0.0
10
         network 10.0.0.0 
11
         broadcast 10.255.255.255 
12
13
#Configure eth1
14
#auto eth1 
15
#iface eth1 inet dhcp

6. /etc/hosts
1
10.0.0.1   atngw100

7. UBoot Einstellungen
1
bootdelay=1 
2
baudrate=115200 
3
hostname=atngw100 
4
ethaddr=00:04:25:1C:58:E2 
5
eth1addr=00:04:25:1C:58:E3 
6
serverip=10.0.0.69 
7
ipaddr=10.0.0.1 
8
rootpath=/home/oliver/nfs 
9
ethact=macb0 
10
bootcmd=nfs 0x10400000 10.0.0.69:/home/oliver/nfs/uImage; bootm bootargs=console=ttyS0 root=/dev/nfs ip=10.0.0.1:10.0.0.69::::eth0:off nfsroot=10.0.0.69:/home/oliver/nfs
11
stdin=serial 
12
stdout=serial 
13
stderr=serial

8. Netzwerkeinstellungen Host PC

IP-10.0.0.69
Netmask 255.0.0.0
Gateway 10.0.0.1

9. NGW100 booten

nun bekomme ich flolgendes Ergebnis:

U-Boot 2008.10 (Apr 16 2009 - 10:33:49)
U-Boot code: 00000000 -> 00010f98  data: 000178d8 -> 0004e2e8
malloc: Using memory from 0x11f71000 to 0x11fb1000
DMA: Using memory from 0x11f6d000 to 0x11f71000
Flash:  8 MB at address 0x00000000
DRAM Configuration:
Bank #0: 10000000 32 MB
In:    serial
Out:   serial
Err:   serial
Net:   macb0, macb1
Press SPACE to abort autoboot in 1 seconds
macb0: Starting autonegotiation...
macb0: Autonegotiation complete macb0:
link up, 100Mbps full-duplex (lpa: 0xcde1)
Using macb0 device File transfer via NFS from server 10.0.0.69; our IP 
address is 10.0.0.1
Filename '/home/oliver/nfs/uImage'.
Load address: 0x10400000 Loading: 
################################################################# 
################################################################# 
################################################################# 
################################################################# 
###################################
done
Bytes transferred = 1510228 (170b54 hex)
## Booting kernel from Legacy Image at 10400000 ...
    Image Name:   Linux-2.6.35
    Image Type:   AVR32 Linux Kernel Image (gzip compressed)
    Data Size:    1510164 Bytes =  1.4 MB
    Load Address: 10000000
    Entry Point:  90000000
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK

Starting kernel at 90000000 (params at 11f71008)...

Linux version 2.6.35 (root@oliver-ThinkPad-X61-Tablet) (gcc version 
4.2.2-atmel.1.0.8) #1 Wed Jun 8 16:38:32 CEST 2011
CPU: AT32AP700x chip revision C
CPU: AP7 [01] core revision 0 (AVR32B arch revision 1)
CPU: MMU configuration: Shared TLB
CPU: features: dsp simd ocd perfctr java
CPU: Running at 140.000 MHz

....

IP-Config: Complete:
device=eth0, addr=10.0.0.1, mask=255.0.0.0, gw=255.255.255.255, 
host=10.0.0.1, domain=, nis-domain=(none),
bootserver=10.0.0.69, rootserver=10.0.0.69, rootpath=

Looking up port of RPC 100003/2 on 10.0.0.69
Looking up port of RPC 100005/1 on 10.0.0.69
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 88K (90000000 - 90016000)
eth0: link up (100/Full)
Starting network...
ifup: interface eth0 already configured

Hier ist leider Schluss!

Warum ist z.B. rothpath= (leer)

Hat jemand eine Idee???
Vielen Dank
Gruß Oli

von Peter D. (pdiener) Benutzerseite


Lesenswert?

Ich würde mal darauf tippen, dass bei den bootargs etwas anderes 
eingestellt werden muss.

nfsroot=10.0.0.69:/home/oliver/nfs

Hier muss vielleicht

nfsroot=10.0.0.69 rootpath=/home/oliver/nfs

stehen. Ist aber nur eine Vermutung, das müsste man sich in den 
Kernelsourcen mal genauer ansehen.

Grüße,

Peter

von o. B. (Firma: BHT) (olinwg)


Lesenswert?

Hallo,

durch einen anderen Hinweis habe ich vielleicht einen Fehler behoben.
1
ifup: interface eth0 already configured
2
3
What does this mean?
4
It means exactly that, since you use the ip= argument to the Linux kernel,
5
the user space tools will not reconfigure the eth0 interface. Because if 
6
you reconfigure the eth0 interface in user space, you'll loose the NFS
7
mount and crazy stuff will happen (crash in most cases).

Ich habe mit make menuconfig die Netzwerkeinstellungen angepasst.

  ServerIP = 10.0.0.69
  TargetIP = 10.0.0.1
  Netmask = 255.0.0.0
  Gateway = 10.0.0.69
  Außerdem die MAC-Adressen.

Seit dem ist der Fehler

  Starting network...
  ifup: interface eth0 already configured

weg.

Allerdings steht jetzt nur noch

  Starting network....

da.

Außerdem habe ich die /etc/inittab angepasst wie in diesem Beitrag 
beschrieben.
http://webcache.googleusercontent.com/search?q=cache:qysWRyOBp6UJ:old.nabble.com/ip%253A-RTNETLINK-answers%253A-File-exists--uclibc-login%253A---td27433773.html+ip:+RTNETLINK+answer:+File+exists+ngw100&cd=1&hl=de&ct=clnk&gl=de&client=firefox-a&source=www.google.de

Leider ist hier wieder Schluss!
1
bootdelay=1 
2
baudrate=115200 
3
hostname=atngw100 
4
ethaddr=00:04:25:1C:58:E2 
5
eth1addr=00:04:25:1C:58:E3 
6
serverip=10.0.0.69 
7
ipaddr=10.0.0.1 
8
rootpath=/home/oliver/nfs 
9
ethact=macb0 
10
bootcmd=nfs 0x10400000 10.0.0.69:/home/oliver/nfs/uImage; boot
11
bootargs=console=ttyS0 root=/dev/nfs ip=10.0.0.1:10.0.0.69::::eth0:off nfsroot=10.0.0.69:/home/oliver/nfs
12
stdin=serial 
13
stdout=serial 
14
stderr=serial

Auszug aus dem Bootvorgang

IP-Config: Complete:
device=eth0, addr=10.0.0.1, mask=255.0.0.0, gw=255.255.255.255,
host=10.0.0.1, domain=, nis-domain=(none),
bootserver=10.0.0.69, rootserver=10.0.0.69, rootpath=

Looking up port of RPC 100003/2 on 10.0.0.69
Looking up port of RPC 100005/1 on 10.0.0.69
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 88K (90000000 - 90017000)
eth0: link up (100/Full)
Starting network...

@Peter
Hier muss vielleicht
nfsroot=10.0.0.69 rootpath=/home/oliver/nfs
stehen. Ist aber nur eine Vermutung, das müsste man sich in den
Kernelsourcen mal genauer ansehen.

Diese Änderung hat leider nichts bewirkt. Wo kann man sich das in den 
Kernelsourcen angucken?


Hat jemand noch eine Idee?
Vielen Dank

Gruß Oli

von Unbekannt (Gast)


Lesenswert?

Ich habe das selbe Problem -> wollte nachfragen ob du es gelöst hast?

Gruß Unbekannt

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.