Re: powerpc d-i daily builds reactivated, use 2.6.12 kernels
- To: Hans Ekbrand <hans@murphy.debian.org>, debian-powerpc@lists.debian.org
- Subject: Re: powerpc d-i daily builds reactivated, use 2.6.12 kernels
- From: Sven Luther <sven.luther@wanadoo.fr>
- Date: Tue, 27 Sep 2005 07:06:55 +0200
- Message-id: <20050927050655.GA24285@localhost.localdomain>
- In-reply-to: <20050926205949.GB19047@samir>
- References: <20050818113050.GA13439@localhost.localdomain> <20050819080044.GA5149@ime.usp.br> <20050921175400.GA26576@localhost.localdomain> <20050926205949.GB19047@samir>
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.
> 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 :)
> The source is in linux-source-2.6.12 right?
Sure.
> The .config is in linux-image-2.6.12-1-powerpc-miboot right?
Indeed.
> If I track unstable, would something like this work?
>
> # 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.
> # 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.
> # 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.
> 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.
Friendly,
Sven Luther
Reply to: