[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 Tue, Sep 27, 2005 at 07:06:55AM +0200, Sven Luther wrote:
> On Mon, Sep 26, 2005 at 10:59:50PM +0200, Hans Ekbrand wrote:
> > On Wed, Sep 21, 2005 at 07:54:00PM +0200, Sven Luther wrote:
> > 
> > [...]
> > 
> > > i managed to do a powerpc-miboot flavour build, which does fit on a miboot
> > > floppy. I would like (urgently) for folk to test it out, it is just a kernel,
> > > i need to see if it boots, not much more for now, before i go ahead and upload
> > > 2.6.12-7 which would include it, and subsequently build debian-installer
> > > images with it.
> > > 
> > > The floppy is at :
> > > 
> > >   http://people.debian.org/~luther/miboot.floppy
> > 
> > Since this miboot floppy works nicely, I would like to use the
> > official kernel-source to create a customized 2.6 kernel for miboot.
> > 
> > (I have two different aims: 1. A miboot floppy that could boot with
> > root on harddisk without a need for an initrd (might be handy if quik
> 
> Hehe, best you go looking for 2.88 MB floppies then.

I'll try to squeeze the .config hard for sure.

> > cannot boot anymore) and 2. A miboot floppy with support for NFS-root
> > compiled in for use without any harddisk at all)
> 
> Well, the miboot kernels have 5 bytes left, last i tried those, and it was not
> so easy to squeeze these images to that small size, but you are my guest to
> try it, please report back anything you where able to do :)

Will do.

[...]

> > # apt-get install linux-source-2.6.12 linux-image-2.6.12-1-powerpc-miboot
> > # cd /usr/src; tar -jxvf linux-source-2.6.12.tar.bz2
> 
> Please build somewhere else than /usr/src, and do it as user, not root.

OK.

> > # cp /boot/config-2.6.12* linux-source-2.6.12/.config
> > [modify .config to my needs]
> > # cd linux-source-2.6.12; make-kpkg --revision Custom.1 kernel_image
> > [ wait for compilation to end, and insert a working miboot floppy ]
> 
> You can just do a make vmlinux here, but well.

OK.

> > # gzip -9 path/to/newly/compiled/vmlinux                                                                                              
> > # hmount /dev/fd0                                                                                                                                                               
> > # hcopy vmlinux.gz :zImage                                                                                                                                                      
> > # humount /dev/fd0                                                                                                                                                              
> 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)?

> > 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.

OK.

Thanks for the info, I will probably not have time to try it out until
the weekend though.

kind regards,

-- 
Hans Ekbrand (http://sociologi.cjb.net) <hans@sociologi.cjb.net>
GnuPG key: 1024D/7050614E
Fingerprint: 1408 C8D5 1E7D 4C9C C27E 014F 7C2C 872A 7050 614E
Learn about secure email at http://www.gnupg.org

Attachment: signature.asc
Description: Digital signature


Reply to: