[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Antwort: [microblaze-uclinux] NFS Mounting



Title: RE: Antwort: [microblaze-uclinux] NFS Mounting

Hi Mak,
I am mounting the root filesystem via nfs using the bootargs variable in uboot:

set bootargs=hdc=noprobe hdd=noprobe root=/dev/nfs nfsroot=192.168.99.237:/mnt/ext3_data/servers/nfs/datra_root_fs/emdebian console=ttyS2,115200 ip=192.168.99.245:192.168.99.237:192.168.99.237:255.255.255.0:emdebian:eth0:off

I am doing this not with a petalogix system but it should work if you have nfs enabled in your kernel. Check the bootargs from your system right now (it should be logged when kernel boots) and add the relevant stuff to your uboot
bootargs variable. (root=/dev/nfs nfsroot=ser.ver.ip.addr:/path/of/your/exported/dir ip=tar.get.ip.addr:gate.way.ip.addr:same.ip.again.forgotwhy:n.et.ma.sk:target_name:etho:off)
The flow is the following:
If no bootargs environment varibable exists in uboot the kernel boots with his default args. If it exists the kernel takes the uboot one.

Give it a try and let me know how you are getting on.
Marco






-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx on behalf of raul.camaras@xxxxxxxxxxxx
Sent: Tue 2/17/2009 11:01 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Antwort: [microblaze-uclinux] NFS Mounting

Hi Mak,

for me it works:

# mount -t nfs -o proto=tcp,nolock 10.53.218.101:/tmp /mnt/centos

where:

     - 10.53.218.101 is the IP address of a linux machine where folder
/tmp is exported.
     - /mnt/centos is a read/write folder, in my case a flash memory.

To boot the board via nfs is not possible for me, I tried shutdown -r now
but it didnt
reboot.

regards,
Raul

AREVA Energietechnik GmbH
Vorsitzender des Aufsichtsrates: Dr. rer. nat. Peter Kirchesch -
Geschäftsführung: Dipl. Kfm. Joachim Gessner, Dr. Ing. Wolfgang Voß
Sitz: Frankfurt am Main - Amtsgericht: Frankfurt am Main, HRB 40819 -
USt.-ID-Nr. DE 811982897



"Mak Visp" <mak.visp@xxxxxxxxx>
Gesendet von: owner-microblaze-uclinux@xxxxxxxxxxxxxx
16.02.2009 20:12
Bitte antworten an
microblaze-uclinux@xxxxxxxxxxxxxx


An
<microblaze-uclinux@xxxxxxxxxxxxxx>
Kopie

Thema
[microblaze-uclinux] NFS Mounting





Hello All,

====> I am trying to mount the nfs filesystem on my board. But I am not
able
to mount it. I am getting the error as "Cannot read /etc/fstab: No such
file
or directory". Please see the following log.
----------------
# mount -t nfs /mnt/
mount:
Cannot read /etc/fstab: No such file or directory
#
---------------------------
There is only link in the etc folder and that points to the file in config

folder, but there is fstab file in config.
I am even tried to create fstab file and tried to build the image again,
but
when I downloaded the image to board the file was not there.

====> Since in the development is going on, I want to boot the board via
NFS. Has anyboady has idea how to do it with petalinux? Any hint is
appreciated.

Regards,
Mak.

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/