linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: 2.4.17-rc1 wont do nfs root on Javastation
@ 2001-12-20 19:16 Ian Chilton
  0 siblings, 0 replies; 10+ messages in thread
From: Ian Chilton @ 2001-12-20 19:16 UTC (permalink / raw)
  To: sparclinux, linux-kernel

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:37     ` David S. Miller
  2001-12-18 20:00       ` David S. Miller
  2001-12-18 20:22       ` Tony 'Nicoya' Mantler
@ 2001-12-18 20:33       ` Maciej W. Rozycki
  2 siblings, 0 replies; 10+ messages in thread
From: Maciej W. Rozycki @ 2001-12-18 20:33 UTC (permalink / raw)
  To: David S. Miller; +Cc: nicoya, ian, sparclinux, linux-kernel

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: macro@ds2.pg.gda.pl, PGP key available        +


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:37     ` David S. Miller
  2001-12-18 20:00       ` David S. Miller
@ 2001-12-18 20:22       ` Tony 'Nicoya' Mantler
  2001-12-18 20:33       ` Maciej W. Rozycki
  2 siblings, 0 replies; 10+ messages in thread
From: Tony 'Nicoya' Mantler @ 2001-12-18 20:22 UTC (permalink / raw)
  To: David S. Miller; +Cc: ian, sparclinux, linux-kernel

At 2:00 PM -0600 12/18/01, David S. Miller wrote:
>   From: "Tony 'Nicoya' Mantler" <nicoya@apia.dhs.org>
>   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 - nicoya@apia.dhs.org
Winnipeg, Manitoba, Canada           --           http://nicoya.feline.pp.se/



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:37     ` David S. Miller
@ 2001-12-18 20:00       ` David S. Miller
  2001-12-18 20:22       ` Tony 'Nicoya' Mantler
  2001-12-18 20:33       ` Maciej W. Rozycki
  2 siblings, 0 replies; 10+ messages in thread
From: David S. Miller @ 2001-12-18 20:00 UTC (permalink / raw)
  To: nicoya; +Cc: ian, sparclinux, linux-kernel

   From: "Tony 'Nicoya' Mantler" <nicoya@apia.dhs.org>
   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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:32 ` Tony 'Nicoya' Mantler
  2001-12-18 19:50   ` Ian Chilton
@ 2001-12-18 19:57   ` Ian Chilton
  1 sibling, 0 replies; 10+ messages in thread
From: Ian Chilton @ 2001-12-18 19:57 UTC (permalink / raw)
  To: 'Tony 'Nicoya' Mantler', 'David S. Miller'
  Cc: sparclinux, linux-kernel

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: ian@ichilton.co.uk         |
 |  IRC Nick: GadgetMan            Backup: ian@linuxfromscratch.org   |
 |  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 ]         |
 \--------------------------------------------------------------------/
 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:32 ` Tony 'Nicoya' Mantler
@ 2001-12-18 19:50   ` Ian Chilton
  2001-12-18 19:57   ` Ian Chilton
  1 sibling, 0 replies; 10+ messages in thread
From: Ian Chilton @ 2001-12-18 19:50 UTC (permalink / raw)
  To: 'Tony 'Nicoya' Mantler', 'David S. Miller'
  Cc: sparclinux, linux-kernel

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: ian@ichilton.co.uk         |
 |  IRC Nick: GadgetMan            Backup: ian@linuxfromscratch.org   |
 |  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 ]         |
 \--------------------------------------------------------------------/
 



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:06   ` Ian Chilton
  2001-12-18 19:37     ` David S. Miller
@ 2001-12-18 19:46     ` Tony 'Nicoya' Mantler
  1 sibling, 0 replies; 10+ messages in thread
From: Tony 'Nicoya' Mantler @ 2001-12-18 19:46 UTC (permalink / raw)
  To: David S. Miller; +Cc: ian, sparclinux, linux-kernel

At 1:37 PM -0600 12/18/01, David S. Miller wrote:
>   From: "Tony 'Nicoya' Mantler" <nicoya@apia.dhs.org>
>   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 - nicoya@apia.dhs.org
Winnipeg, Manitoba, Canada           --           http://nicoya.feline.pp.se/



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4.17-rc1 wont do nfs root on Javastation
  2001-12-18 19:06   ` Ian Chilton
@ 2001-12-18 19:37     ` David S. Miller
  2001-12-18 20:00       ` David S. Miller
                         ` (2 more replies)
  2001-12-18 19:46     ` Tony 'Nicoya' Mantler
  1 sibling, 3 replies; 10+ messages in thread
From: David S. Miller @ 2001-12-18 19:37 UTC (permalink / raw)
  To: nicoya; +Cc: ian, sparclinux, linux-kernel

   From: "Tony 'Nicoya' Mantler" <nicoya@apia.dhs.org>
   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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 2.4.17-rc1 wont do nfs root on Javastation
       [not found] <20011214181816.B28794@woody.ichilton.co.uk>
       [not found] ` <20011215.220646.69411478.davem@redhat.com>
@ 2001-12-18 19:32 ` Tony 'Nicoya' Mantler
  2001-12-18 19:50   ` Ian Chilton
  2001-12-18 19:57   ` Ian Chilton
  1 sibling, 2 replies; 10+ messages in thread
From: Tony 'Nicoya' Mantler @ 2001-12-18 19:32 UTC (permalink / raw)
  To: Ian Chilton, David S. Miller; +Cc: sparclinux, linux-kernel

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 - nicoya@apia.dhs.org
Winnipeg, Manitoba, Canada           --           http://nicoya.feline.pp.se/



^ permalink raw reply	[flat|nested] 10+ messages in thread

* 2.4.17-rc1 wont do nfs root on Javastation
       [not found] ` <20011215.220646.69411478.davem@redhat.com>
@ 2001-12-18 19:06   ` Ian Chilton
  2001-12-18 19:37     ` David S. Miller
  2001-12-18 19:46     ` Tony 'Nicoya' Mantler
  0 siblings, 2 replies; 10+ messages in thread
From: Ian Chilton @ 2001-12-18 19:06 UTC (permalink / raw)
  To: David S. Miller; +Cc: sparclinux, linux-kernel

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-12-20 19:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-20 19:16 2.4.17-rc1 wont do nfs root on Javastation Ian Chilton
     [not found] <20011214181816.B28794@woody.ichilton.co.uk>
     [not found] ` <20011215.220646.69411478.davem@redhat.com>
2001-12-18 19:06   ` Ian Chilton
2001-12-18 19:37     ` David S. Miller
2001-12-18 20:00       ` David S. Miller
2001-12-18 20:22       ` Tony 'Nicoya' Mantler
2001-12-18 20:33       ` Maciej W. Rozycki
2001-12-18 19:46     ` Tony 'Nicoya' Mantler
2001-12-18 19:32 ` Tony 'Nicoya' Mantler
2001-12-18 19:50   ` Ian Chilton
2001-12-18 19:57   ` Ian Chilton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).