Hello,
> Add "root=nfs" to your kernel command line.
I checked with Pete and as I suspected, putting kernel parameters on the
command line doesn't work as proll just drops them.
So, I made a bit of a hack:
[ian@slinky:~/tmp/js/linux/arch/sparc/kernel]$ diff -u setup.c.orig
setup.c
--- setup.c.orig Sat Nov 17 00:30:25 2001
+++ setup.c Tue Dec 18 19:44:16 2001
@@ -306,6 +306,10 @@
/* Initialize PROM console and command line. */
*cmdline_p = prom_getbootargs();
+
+ /* Hack to hard code root=nfs. */
+ strcat(*cmdline_p,"root=nfs");
+
strcpy(saved_command_line, *cmdline_p);
/* Set sparc_cpu_model */
Now when it boots, it says "Kernel command line: root=nfs" but still,
the kernel does not try and do the IP-Config/bootp stuff so it fails
saying it can't find the NFS server which is obvious as it doesn't have
an ip etc...
Any other ideas?
Thanks!
Ian
From: "Tony 'Nicoya' Mantler" <[email protected]>
Date: Tue, 18 Dec 2001 13:32:00 -0600
I really think it should be a compile-time option to have it default to on,
but I never figured out who maintains it.
How then would you get a generic, yet NFS-ROOT capable kernel?
Answer: you can't
At 1:06 PM -0600 12/18/01, Ian Chilton wrote:
[...]
>Now when it boots, it says "Kernel command line: root=nfs" but still,
>the kernel does not try and do the IP-Config/bootp stuff so it fails
>saying it can't find the NFS server which is obvious as it doesn't have
>an ip etc...
[...]
IP Autoconfig won't be enabled unless you pass ip=auto in the commandline,
or twiddle with the source to make it default to on.
I really think it should be a compile-time option to have it default to on,
but I never figured out who maintains it.
Cheers - Tony 'Nicoya' Mantler :)
--
Tony "Nicoya" Mantler - Renaissance Nerd Extraordinaire - [email protected]
Winnipeg, Manitoba, Canada -- http://nicoya.feline.pp.se/
At 1:37 PM -0600 12/18/01, David S. Miller wrote:
> From: "Tony 'Nicoya' Mantler" <[email protected]>
> Date: Tue, 18 Dec 2001 13:32:00 -0600
>
> I really think it should be a compile-time option to have it default to on,
> but I never figured out who maintains it.
>
>How then would you get a generic, yet NFS-ROOT capable kernel?
>Answer: you can't
Compile-time *Option*, as in "IP-Autoconfig default to on: (yes/no)".
If you need to build a kernel generica for a platform where you can pass a
commandline easily, you just leave it at 'no', and get the same behaviour
as current.
If you need to build a kernel to nfsroot on a platform where setting a
commandline is difficult or impossible (like javastation), set it to 'yes',
and get a working nfsroot.
Simple.
Alternatley, having a configuration option to set a commandline, like some
other arches have, would also work.
Cheers - Tony 'Nicoya' Mantler :)
--
Tony "Nicoya" Mantler - Renaissance Nerd Extraordinaire - [email protected]
Winnipeg, Manitoba, Canada -- http://nicoya.feline.pp.se/
Hello,
Thanks for the reply!
> IP Autoconfig won't be enabled unless you pass ip=auto in the
commandline,
> or twiddle with the source to make it default to on.
Ah, of course.
I did try this already, but it was before I realised that PROLL was
eating anything I passed to the kernel.
I just modified my little hack to make it hard code: nfs=root ip=auto
and now the IP-Config stuff is happening and it's showing the
bootserver/rootserver right but for some strange reason it's getting the
IP as 67.0.0.0.
It should be 192.168.0.21 and the server config should be right as I can
still boot 2.4.1 fine...
I'll have a check around later, but if there is a reason for this
happening, maybe you could let me know...
Is 67.0.0.0 some sort of default?
Thanks!
Bye for Now,
Ian
\|||/
(o o)
/-----------------------------ooO-(_)-Ooo----------------------------\
| Ian Chilton E-Mail: [email protected] |
| IRC Nick: GadgetMan Backup: [email protected] |
| ICQ: 16007717 & 106532995 Web : http://www.ichilton.co.uk |
|--------------------------------------------------------------------|
| Your mouse has moved. Windows must be restarted |
| for the change to take effect. Reboot now? [ OK ] |
\--------------------------------------------------------------------/
Hello,
Done a bit of checking and when the kernel boots, it says it got an
answer from my boot server and my ip is 67.0.0.0.
When I did arp -a on the boot server it said <incomplete> for the mac
address. I did a arp -f and it was fine, booted the javastation which
still got 67.0.0.0 and arp -a showed <incomplete> again.
Very strange!
Bye for Now,
Ian
\|||/
(o o)
/-----------------------------ooO-(_)-Ooo----------------------------\
| Ian Chilton E-Mail: [email protected] |
| IRC Nick: GadgetMan Backup: [email protected] |
| ICQ: 16007717 & 106532995 Web : http://www.ichilton.co.uk |
|--------------------------------------------------------------------|
| Your mouse has moved. Windows must be restarted |
| for the change to take effect. Reboot now? [ OK ] |
\--------------------------------------------------------------------/
From: "Tony 'Nicoya' Mantler" <[email protected]>
Date: Tue, 18 Dec 2001 13:46:03 -0600
Alternatley, having a configuration option to set a commandline, like some
other arches have, would also work.
I like this idea better, it solves more problems than just the nfs
root case.
At 2:00 PM -0600 12/18/01, David S. Miller wrote:
> From: "Tony 'Nicoya' Mantler" <[email protected]>
> Date: Tue, 18 Dec 2001 13:46:03 -0600
>
> Alternatley, having a configuration option to set a commandline, like some
> other arches have, would also work.
>
>I like this idea better, it solves more problems than just the nfs
>root case.
Cool.
Just to note, my javastations are currently in mothballs, so I won't be
able to personally provide a patch to do this.
Cheers - Tony 'Nicoya' Mantler :)
--
Tony "Nicoya" Mantler - Renaissance Nerd Extraordinaire - [email protected]
Winnipeg, Manitoba, Canada -- http://nicoya.feline.pp.se/
On Tue, 18 Dec 2001, David S. Miller wrote:
> I really think it should be a compile-time option to have it default to on,
> but I never figured out who maintains it.
>
> How then would you get a generic, yet NFS-ROOT capable kernel?
> Answer: you can't
Still it's quite dumb you *have* to specify "ip=<whatever>" whenever you
specify "root=nfs" to boot successfully, since the latter usually implies
you need IP to work. I have a hack that fixes it (I need it due to a
37-character limit of a bootstrap command line in a firmware), but I
recall a discussion the conclusion of which was the current behaviour is
blessed, so I didn't even try to bother anyone with it...
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: [email protected], PGP key available +
Hello,
I now have a much better fix for the "Javastation wont boot new 2.4
kernels" problem which requires no modification to the kernel but rather
to PROLL.
I have made the following files available at:
http://www.sparclinux.co.uk/files/javastation/proll/
proll_14.tar.gz - The normal PROLL straight from Pete's site
proll-14-nfsroot.diff - My patch to allow nfsroot with the newer kernels
proll.mrcoffee.ID14-nfsroot.gz - A mrcoffee binary - UNTESTED!
proll.krups.ID14-nfsroot.gz - A krups binary
(I don't have a MrCoffee so can't test this one).
I think Pete is going to release ID15 with the patch already applied.
My Krups kernel is also at:
http://www.sparclinux.co.uk/files/javastation/kernel/
Bye for Now,
Ian