[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: powerpc d-i daily builds reactivated, use 2.6.12 kernels



On Mon, Oct 03, 2005 at 01:01:19PM +0200, Hans Ekbrand wrote:
> On Wed, Sep 28, 2005 at 06:17:28AM +0200, Sven Luther wrote:
> > On Wed, Sep 28, 2005 at 12:00:44AM +0200, Hans Ekbrand wrote:
> > > > Nope, you need the miboot package from p.d.o/~luther/miboot, and its
> > > > dependencies, and do (taken from the d-i build) :
> > > > 
> > > >         gzip -c -9 $(TEMP_KERNEL) >$(TEMP_KERNEL).gz
> > > > 	dd if=/dev/zero of=$(TEMP_BOOT) bs=1024 count=$(FLOPPY_SIZE)
> > > > 	hformat -l $(DISK_LABEL) $@
> > > > 	echo device $(TEMP_BOOT) > $(TEMP)/miboot.conf
> > > > 	echo kernel $(TEMP_KERNEL).gz $(KERNEL_CMDL) >> $(TEMP)/miboot.conf
> > > > 	miboot -c $(TEMP)/miboot.conf
> > > > 
> > > > where TEMP_KERNEL is the patgh to the kernel, FLOPPYY_SIZE is 1440, DISK_LABEL
> > > > is any random label, and TEMP_BOOT is the name of the floppy, and TEMP is some
> > > > random temporary dir. and KERNEL_CMDL is the kernel command line.
> > > 
> > > OK. I do have miboot installed, so that should not pose any problem.
> > > But why would not the procedure outlined above work (I copied it from
> > > one of Rogério Britos posts to the list)?
> > 
> > Rogerio is not creating a floppy disk from scratch, he is overwriting the
> > kernel on an existing miboot floppy, and can thus not set the KERNEL_CMDL
> > among other stuff.
> 
> I am also operating on existing miboot floppy, so I can do it the way
> Rogerio did.

Why not try and do it the right way ? You understand that what you do supposes
that someone else did the above thingy to create the original floppy, no ? So
since you can create it directly, why not do that ? 

> > > > > To create a working miboot floppy that boot a root on HD (no initrd) I
> > > > > assume I must also use the perl script patch-floppy-image.pl to set
> > > > > the "root=" argument to whatever partition the rootfs exists on,
> > > > > right?
> > > > 
> > > > Just add the right root= to KERNEL_CMDL.
> 
> The boot arguments can be set with the "patch-floppy-image.pl" script.
> Setting the root device at compile time is rather static, don't you
> think? (Nothing bad with a default root device compile time setting
> though, but for anything but an initrd that is too static to be
> useful).

This is done at miboot floppy generation time, not at kernel compilation time.
Something akin to your perl script is neatly packaged in the miboot and
dependencies packages, so why not use it ? 

> > > Thanks for the info, I will probably not have time to try it out until
> > > the weekend though.
> > 
> > No problem.
> 
> OK, for the first time ever I have succeeded in getting a
> self-compiled kernel to boot with miboot and produce output :-) Though
> I almost gave up too early, the first floppy I tried was bad, but I
> thought it was the kernel (or miboot, or a combination). Luckily I
> tried another floppy and there was output.

hehe, floppies, ...

> I modularized a bit too much though, so the kernel didn't do the
> partition check and never found the partition to mount / on. But that
> is solvable, compiling again as I write this. This time I even include
> a driver for the nic and support for / on NFS. If that kernel fits the
> floppy, that would be really cool IMHO.

Indeed. Feel free to mail me (or a bug report maybe ?) your config with a bit
of descriptiion of what you tried to achieve, there is no reason the debian
kernel could not fit your need, i believe.

Friendly,

Sven Luther



Reply to: