All of lore.kernel.org
 help / color / mirror / Atom feed
* initrd problems??
@ 2004-07-01 17:48 till varoquaux
  2004-07-02 12:21 ` Ben Collins
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: till varoquaux @ 2004-07-01 17:48 UTC (permalink / raw)
  To: sparclinux

I'm having problems netbooting a ultrasparc 1 server.
I'm using tilo (from silo1.4.6) with a home made initrd. In this initrd
I have a simple staticly linked busybox shell and a /linuxrc shell
script there are also a couple of devices under /dev. Now here is were
things start to get weird:
My initrd looks alright to me (at least it works find when I
mount it and chroot into it)
_If I use it without any changes I get the message you get when calling
busybox without any parametres ( /bin/busybox when the sha bang of my
/linuxrc is: #!/bin/sh)
_If I get rid of busybox put a statically linked bash in /bin and
replace the first line of /linuxrc with #!/bin/bash I get:
VFS: Mounted root (ext2 filesystem)
Kernel panic: No init found. Try passing init= option to your kernel

I'm confused: isn't the standard init for an initrd /linuxrc?
How do I pass options to the kernel with tilo?
How come busybox is called when there isn't even an init link??
My kernel is the one from the Debian boot cd (I don't have the time to
compile a new one until I get this problem solved).
Till Varoquaux
-- 
"pardon my french"

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

* Re: initrd problems??
  2004-07-01 17:48 initrd problems?? till varoquaux
@ 2004-07-02 12:21 ` Ben Collins
  2004-07-02 12:44 ` Ben Collins
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Ben Collins @ 2004-07-02 12:21 UTC (permalink / raw)
  To: sparclinux

> I'm confused: isn't the standard init for an initrd /linuxrc?
> How do I pass options to the kernel with tilo?
> How come busybox is called when there isn't even an init link??
> My kernel is the one from the Debian boot cd (I don't have the time to
> compile a new one until I get this problem solved).

Read Documentation/initrd.txt in the kernel sources. It gives a lot of
details about how initrd (and especially use of /linuxrc) is supposed to
work, and what the kernel expects.

You could just try doing init=/bin/bash and see if that works. (boot net
linux init=/bin/bash)

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

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

* Re: initrd problems??
  2004-07-01 17:48 initrd problems?? till varoquaux
  2004-07-02 12:21 ` Ben Collins
@ 2004-07-02 12:44 ` Ben Collins
  2004-07-02 12:58 ` till varoquaux
  2004-07-07 14:06 ` till varoquaux
  3 siblings, 0 replies; 5+ messages in thread
From: Ben Collins @ 2004-07-02 12:44 UTC (permalink / raw)
  To: sparclinux

On Fri, Jul 02, 2004 at 02:58:50PM +0200, till varoquaux wrote:
> Thanks.
> I didn't knew how to pass parameters to the kernel. interesting...
> It does seem however like there is a weird bug:
> I recompiled busybox with init support
> (>init utilities
> 	>init
> 	>Support reading an initab file
> 	>Support running init from within an initrd
> 	>Should init be _extra_ quiet ion boot) 
> and moved my /linurxc to /etc/init.d/rcS
> and everything works fine now.....
> I'm using kernel 2.4.26. Should I fill a bug report?
> Regards,
> Till
> P.S.:I've build initrd on x86 before and definitly did not encounter
> this behavior.

I'm not quite sure why, but there is some weird difference in how
sparc64 boots up with initrd. I went down this road a long time ago with
the Debian boot images. I don't consider it a bug with the kernel, just
that x86 seems to be less critical of the initrd environment than other
architectures do. Hell, I can't even remember what it was that caused
this.

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

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

* Re: initrd problems??
  2004-07-01 17:48 initrd problems?? till varoquaux
  2004-07-02 12:21 ` Ben Collins
  2004-07-02 12:44 ` Ben Collins
@ 2004-07-02 12:58 ` till varoquaux
  2004-07-07 14:06 ` till varoquaux
  3 siblings, 0 replies; 5+ messages in thread
From: till varoquaux @ 2004-07-02 12:58 UTC (permalink / raw)
  To: sparclinux

Thanks.
I didn't knew how to pass parameters to the kernel. interesting...
It does seem however like there is a weird bug:
I recompiled busybox with init support
(>init utilities
	>init
	>Support reading an initab file
	>Support running init from within an initrd
	>Should init be _extra_ quiet ion boot) 
and moved my /linurxc to /etc/init.d/rcS
and everything works fine now.....
I'm using kernel 2.4.26. Should I fill a bug report?
Regards,
Till
P.S.:I've build initrd on x86 before and definitly did not encounter
this behavior.

On Fri, 2 Jul 2004 08:21:39 -0400
Ben Collins <bcollins@debian.org> wrote:

> > I'm confused: isn't the standard init for an initrd /linuxrc?
> > How do I pass options to the kernel with tilo?
> > How come busybox is called when there isn't even an init link??
> > My kernel is the one from the Debian boot cd (I don't have the time
to> > compile a new one until I get this problem solved).
> 
> Read Documentation/initrd.txt in the kernel sources. It gives a lot of
> details about how initrd (and especially use of /linuxrc) is supposed
to> work, and what the kernel expects.
> 
> You could just try doing init=/bin/bash and see if that works. (boot
net> linux init=/bin/bash)
> 
> -- 
> Debian     - http://www.debian.org/
> Linux 1394 - http://www.linux1394.org/
> Subversion - http://subversion.tigris.org/
> WatchGuard - http://www.watchguard.com/
> -
> To unsubscribe from this list: send the line "unsubscribe sparclinux"
in> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
"pardon my french"

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

* Re: initrd problems??
  2004-07-01 17:48 initrd problems?? till varoquaux
                   ` (2 preceding siblings ...)
  2004-07-02 12:58 ` till varoquaux
@ 2004-07-07 14:06 ` till varoquaux
  3 siblings, 0 replies; 5+ messages in thread
From: till varoquaux @ 2004-07-07 14:06 UTC (permalink / raw)
  To: sparclinux

Ok I think Ipretty much narrowed down the problem:
It seems the kernel executes /sbin/init instead of /linuxrc in the
initrd (at least for version 2.4.26). It also behaves very weirdly when
it cannot find /sbin/init.
Could anyone double check that for me.
Cheers,
Till

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

end of thread, other threads:[~2004-07-07 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 17:48 initrd problems?? till varoquaux
2004-07-02 12:21 ` Ben Collins
2004-07-02 12:44 ` Ben Collins
2004-07-02 12:58 ` till varoquaux
2004-07-07 14:06 ` till varoquaux

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.