Re: pcmcia terminal

From: Michele Andreoli (m.andreoli@tin.it)
Date: Sun Sep 17 2000 - 17:06:10 CEST


On Sun, Sep 17, 2000 at 02:12:19PM +0200, mek nicely wrote:
>
> and now my question. i would like some advice. anyone how tried this?
> is it possible to use muLinux to boot a root-fs from a NFS-server?
> i really dont know how i should do that. if you can give me some useful advice,
> i just will figure it out by myself, it's just that i dont know where to start:)
>

Hello mek,
originally, muLinux supported NFS root. I tested it many times, in old
releases. The setup was setup/nfs, using NFS_ROOT capability.

Surely, in modern release this support is broken because a lot of files
changed theyr names: look in /etc/rc.prep-nfs to track the problem.

I'm uploading the 10r0 release a this moment, but nfs-root is
untouched, sorry.

The thing worked in this way: the user do setup/nfs using a floppy
muLinux; then "setup -s". When the floppy boot newly, it try to
mount its root via NFS, but first of all it load ethernet drivers.

Because in muLinux ethernet and PCMCIA are unified ( setup/eth0 and
setup/eth1 in 10r0; setup/network in 9r5), the problem isn't PCMCIA,
but the few filenames changed in /etc/rc.prep-nfs.

This is your actual /etc/rc.prep-nfs (9r5)
---------------------------------------------------------
#set -x

echo "Setting up nfsroot booting ..."

# load ethernet driver

#setup keymap
setup network
setup nfs
#setup -s

# load network parameters

. /setup/cnf/network.cnf
. /setup/cnf/nfs.cnf
. /setup/cnf/net.cnf

# set nfs-root parameters into kernel

echo $NFS_ROOT >/proc/sys/kernel/nfs-root-name
echo $IPADDR:$NFS_SERVER:$GATEWAY:$NETMASK:$HOSTNAME:$INTERFACE \
>/proc/sys/kernel/nfs-root-addrs

echo 255 >/proc/sys/kernel/real-root-dev

echo
echo -e "Mounting my root via ${BRIGHT}${CYAN}NFS${NORMAL} from $NFS_SERVER"
----------------------------------------------------------------------------

The row

        . /setup/cnf/net.cnf

must be surely eliminated. In next release, you have to change
the core code in:

------------------------------------------------
# basic setup's

setup eth0
setup nfs
setup network

# load network parameters
                                                                                
. /setup/cnf/network.cnf
. /setup/cnf/nfs.cnf
. /setup/cnf/eth0.cnf
------------------------------------------------

The script rc.prep-nfs take place when /linuxrc is called, first of
mounting real-root.

After some test, I'm sure it will works. Good luck!
P.S. unfortunately, I read your post only *after* 10r0 official release.
Michele

-- 
I'd like to conclude with a positive statement, but I can't 
remember any. Would two negative ones do?       -- Woody Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:15 CET