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
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