Seite 1 von 1

NFS Boot Bootargs

Verfasst: Di 18. Feb 2014, 18:31
von Frankenstone
Hier an diesem Beispiel kann man die ufs910 von einem NFS Server booten lassen.
Jedes USB Image kann dazu verwendet werden. :wink: Oder auch eigene gebaute Images können damit getestet werden.
Muss dann halt nur auf dem NFS Server entpackt werden.
Die Pfade, IP's muss man sich natürlich an sein System anpassen.

serverip=192.168.1.63
bootdesc_6=----NFS----
bootcmd_6=nfs a5000000 ${serverip}:${kernel};run bootargs_6;bootm a5000000
bootargs_6=set bootargs console=ttyAS0,115200 root=/dev/nfs nfsroot=${serverip}:${root} rw ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:kathrein:eth0:off mem=64m coprocessor_mem=4m@0x10000000,4m@0x10400000 rootwait nwhwconf=device:eth0,hwaddr:${ethaddr} init=/bin/devinit
kernel=/home/frankenstone/image/boot/uImage
root=/home/frankenstone/image/
Edit: Nun auch im Wiki zu finden ==> http://wiki.mbremer.de/index.php?title= ... s_Beispiel

Re: NFS Boot Bootargs

Verfasst: Do 27. Feb 2014, 13:44
von udog
irgendwas hackt bei mir noch,obwohl ich sagen muß das ich es auf einem anderm System schon laufen hatte :roll:

hier mal paar Einzelheiten

Server ist auf VM xubuntu

Code: Alles auswählen

selected Image to start: ----NFS----
File transfer via NFS from server 192.168.0.114; our IP address is 192.168.0.118

Filename '/home/udo/max-tdt/tdt/tufsbox/release_neutrino/boot/uImage'.
Load address: 0xa5000000
Loading: *** ERROR: Cannot mount
hier die exports aus /etc
#/etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1 hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
/home/udo/max-tdt/tdt/tufsbox/release_neutrino 192.168.0.114(rw,no_root_squash,sync,no_subtree_check)
Bootargs
set bootdesc_6 '----NFS----'

bootcmd_6=nfs a5000000 ${192.168.0.114}:${192.168.0.118};run bootargs_6;bootm a5000000

bootargs_6=set bootargs console=ttyAS0,115200 root=/dev/nfs nfsroot=${192.168.0.114}:${root} rw ip=${192.168.0.118}:${192.168.0.114}:${192.168.0.253}:${255.255.255.0}:kathrein:eth0:off mem=64m coprocessor_mem=4m@0x10000000,4m@0x10400000 rootwait nwhwconf=device:eth0,hwaddr:${ethaddr} init=/bin/devinit

was hab ich vergessen ? er will nicht mounten :roll:

Re: NFS Boot Bootargs

Verfasst: Do 27. Feb 2014, 17:16
von Frankenstone
Gegenfrage warum nutzt Du immer keine Variablen , wie es im WIKI beschrieben ist ? http://wiki.mbremer.de/index.php?title= ... s_Beispiel

Und hier die Mustervorlage mit Variablen zum selber anpassen. ==> http://forum.mbremer.de/downloads.php?v ... l&df_id=39

So sollten die Bootargs für NFS aussehen:
Wichtig das kernel und root (Variable)

Code: Alles auswählen

kernel=/home/udo/max-tdt/tdt/tufsbox/release_neutrino/boot/uImage

root=/home/udo/max-tdt/tdt/tufsbox/release_neutrino

serverip=IP Adresse da wo der NFS Server läuft(PC etc.pp)
 
bootdesc_6=----NFS----

bootcmd_6=nfs a5000000 ${serverip}:${kernel};run bootargs_6;bootm a5000000

bootargs_6=set bootargs console=ttyAS0,115200 root=/dev/nfs nfsroot=${serverip}:${root} rw
ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:kathrein:eth0:off mem=64m
coprocessor_mem=4m@0x10000000,4m@0x10400000 rootwaitnwhwconf=device:eth0,hwaddr:${ethaddr} init=/bin/devinit
Und so Deine exports....

Code: Alles auswählen

/home/udo/max-tdt/tdt/tufsbox/release_neutrino 192.168.0.0/255.255.255.0(rw,no_root_squash,sync,no_subtree_check) 
Weiss nur nicht was Du immer verwusselst :heulen:

Re: NFS Boot Bootargs

Verfasst: Do 27. Feb 2014, 17:53
von udog
Gegenfrage warum nutzt Du immer keine Variablen , wie es im WIKI beschrieben ist ?
weil ich Doppel-Linkshänder in Sachen Linux bin :hauen:



Aber ich hab ja schon viel von Dir gelernt.............. :wink:

Re: NFS Boot Bootargs

Verfasst: Do 27. Feb 2014, 17:57
von Frankenstone
Ich hab nur vier Finger und zwei linke Daumen... :totlach: