• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: SheevaPlug + NFS  (Read 3245 times)
Whatboy
Newbie
*

Karma: 0
Posts: 16


View Profile
« on: April 29, 2011, 06:31:30 PM »

Ok, I have a Sheevaplug and installed Fedora 12 with Kernel 2.6.36, I have a My Book World Edition 1, with shares like http://www.netbsd.org/docs/network/netboot/nfs.html#linux explains, I laso know about /etc/exports overwrite on reboot, so I found a script on the web to set'em again on startup.

Code:
/export/client/root *(rw,sync,no_root_squash)
/export/client/swap *(rw,sync,no_root_squash)
/export/client/usr *(rw,sync,root_squash)
/export/client/home *(rw,sync,root_squash)

I can export them with another linux PC, so NFS server is working.

What are the options to boot to NFS? I have try several things but to no avail.

I have attached the original environment, I read that you need to modify only three variables, ipaddr, serverip and rootpath but nothing happens!

Should I persist on with that, or just let the flash run and mount the shares once the system is up and running?

* Original environment.txt (2.03 KB - downloaded 134 times.)
Logged

Whatboy
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #1 on: May 01, 2011, 05:06:19 PM »

Code:
setenv arcNumber 2097
setenv mainlineLinux yes
setenv ipaddr 10.1.0.196
setenv serverip 10.1.0.195
setenv mtdparts 'orion_nand:0x100000@0x0(u-boot),0x400000@0x100000(uImage),0x2000000@0x500000(rootfs),0xDB00000@0x2500000(data)'
setenv bootargs $(console) root=/dev/nfs rw nfsroot=192.168.0.195:/export/client/root ip=192.168.0.196 rootdelay=5 $(mtdparts)
setenv tftpboot 'tftp 0x6400000 uImage ; $(bootargs); bootm 0x6400000'
setenv bootcmd 'run tftpboot'
saveenv
reset

Using egiga0 device
TFTP from server 192.168.0.195; our IP address is 192.168.0.196
Filename 'uImage'.
Load address: 0x6400000
Loading: T T T T T T T T T T
Retry count exceeded; starting again
Unknown command 'console=ttyS0,115200' - try 'help'
## Booting image at 06400000 ...
Bad Magic Number


TFTP is working if I do...
Code:
wget ftp://192.168.0.195/uImage
--2011-05-01 19:04:50--  ftp://192.168.0.195/uImage
           => “uImage.1”
Connecting to 192.168.0.195:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD not needed.
==> SIZE uImage ... 2947708
==> PASV ... done.    ==> RETR uImage ... done.
Length: 2947708 (2.8M) (unauthoritative)

100%[======================================================================================================================================================================>] 2,947,708   11.0M/s   in 0.3s   

2011-05-01 19:04:50 (11.0 MB/s) - “uImage” saved [2947708]


<Scratching head>
Logged

Whatboy
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #2 on: May 01, 2011, 09:35:48 PM »

vsftp doesn't work, it has to be tftp...


Code:
Marvell>> tftpboot 0x6400000 uImage
Using egiga0 device
TFTP from server 192.168.0.195; our IP address is 192.168.0.196
Filename 'uImage'.
Load address: 0x6400000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################################################
done
Bytes transferred = 2947708 (2cfa7c hex)

But now it hangs in

Code:
FATAL: Could not load /lib/modules/2.6.36/modules.dep: No such file or directory
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0: 
Determining IP information for eth0...
Logged

Whatboy
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #3 on: May 02, 2011, 05:01:30 PM »

Follow istrucctions in

http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer
http://fedoraproject.org/wiki/Architectures/ARM/SheevaplugInstaller
http://www.yamasita.jp/sheevaplug/2011/02/-nfs-root.html


Got 1T on /
Code:
[root@fedora-arm ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mtdblock1        929G  620M  928G   1% /
tmpfs                 251M  108K  251M   1% /dev/shm
Logged

Pages: [1]
Print
Jump to: