Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 834

Warning: Invalid argument supplied for foreach() in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 835

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 839

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 834

Warning: Invalid argument supplied for foreach() in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 835

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 839

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 834

Warning: Invalid argument supplied for foreach() in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 835

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 839

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 834

Warning: Invalid argument supplied for foreach() in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 835

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 839

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 834

Warning: Invalid argument supplied for foreach() in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 835

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 839

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 834

Warning: Invalid argument supplied for foreach() in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 835

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 839

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /www/htdocs/w0094f3d/wiki/includes/MagicWord.php on line 860
Setup NFS-Root-Filesystem - t-hack.com - Hack X300T / X301T

Setup NFS-Root-Filesystem

From t-hack.com - Hack X300T / X301T
Jump to: navigation, search
(setup nfs server)
(kernel cmd-line parameter)
 
Line 1: Line 1:
this is a howto that only works partially, since I don't managed to get a login-console so far.
 
however, at least we can mount a nfsroot ;-)
 
 
 
===setup nfs server===
 
===setup nfs server===
  
Line 10: Line 7:
  
 
*setup exports (e.g. edit /etc/exports)
 
*setup exports (e.g. edit /etc/exports)
  /some/dir/nfsroot 192.168.1.*(rw,sync,subtree_check)
+
  /some/dir/nfsroot 192.168.1.*(rw,sync,subtree_check,no_root_squash)
  
 
*reconfigure nfsd
 
*reconfigure nfsd
 
  exportfs -a
 
  exportfs -a
  
===kernel cmd-line parameter===
 
  
 +
===populate nfsroot===
 +
 +
* cd into the desired directory
 +
* create nfsroot-direcotory and download nfsroot-tarball from [http://www.t-hack.com/wiki/images/5/58/Nfsroot_x300t_20080214.tar.bz2 here]
 +
* extract it with <tt>tar xjvf nfsroot_x300t_20080214.tar.bz2</tt>
 +
 +
NOTE: you have to be root to do this and the files are directly inside the tarball, so there is no extra dir
 +
 +
 +
===kernel cmd-line parameter===
 +
* use the "Compiled-in Kernel Boot Parameter" if you are lazy
 +
or
 
*start yamon
 
*start yamon
 
*change kernel cmd line parameter, we need ip kernel configuration!!
 
*change kernel cmd line parameter, we need ip kernel configuration!!
  setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs nfsroot=(nfs_server_ip):/some/dir/nfsroot ip=(my_ip_addr):(server_ip_addr):(gateway):(netmask):(hostname)"
+
  setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs rw nfsroot=(nfs_server_ip):/some/dir/nfsroot ip=(my_ip_addr):(server_ip_addr):(gateway):(netmask):(hostname)"
  
 
*ok, here is an example without placeholders:
 
*ok, here is an example without placeholders:
Line 27: Line 35:
 
netmask: 255.255.255.0<br/>
 
netmask: 255.255.255.0<br/>
  
  setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs nfsroot=192.168.1.30:/some/dir/nfsroot ip=192.168.1.20:192.168.1.30:192.168.1.1:255.255.255.0:x300t"
+
  setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs rw nfsroot=192.168.1.30:/some/dir/nfsroot ip=192.168.1.20:192.168.1.30:192.168.1.1:255.255.255.0:x300t"
 
+
  
===boot kernel (and linux?)===
+
===boot kernel and (hopefully) Linux===
  
 
ok, the above settings should let the box mount a rootfs via nfs!
 
ok, the above settings should let the box mount a rootfs via nfs!
however, at the moment, we don't have a working rootfs. so this howto stops at this point.
 
<br/><br/>
 
.. to be continued ;-)
 

Latest revision as of 22:50, 8 July 2009

Personal tools