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

Re: making a bootable floppy



On Mon, Sep 02, 2002 at 03:28:15PM +0200, Vinai Kopp wrote:
> Hi,
> 
> I'm still busy trying to get my selfbuilt (make-kpkg) kernel to boot off a
> floppy.
> So far I wasn't successfull, neither the default kernel 2.2.20-pmac
> nor one built from 2.4.18 deb (with patches), nor with a
> benh tree kernel (without patches) worked.
> 
> I guess my problem is how to specify the root device numbers in the
> System file.
> 
> My root is /dev/sda2:
> 
> host:~# ls -l /dev/sda2
> brw-rw----    1 root     disk       8,   2 Mar 14 10:10 /dev/sda2
> 
> So as I understand it the major number is 8, the minor number is 2.
> I copied the System file from the boot-floppy-hfs.img and opend
> it with emacs in hexl-mode. I guess the relevant part looks like this:
> 
> 00012d00: dada dada 0000 0065 726f 6f74 3d30 3230  .......eroot=020
> 00012d10: 3020 6c6f 6164 5f72 616d 6469 736b 3d31  0 load_ramdisk=1
> 00012d20: 2070 726f 6d70 745f 7261 6d64 6973 6b3d   prompt_ramdisk=
> 00012d30: 3120 6164 625f 6275 7474 6f6e 733d 3130  1 adb_buttons=10
> 00012d40: 332c 3131 3120 7669 6465 6f3d 6f66 6f6e  3,111 video=ofon
> 00012d50: 6c79 2020 2020 2020 2020 2020 2020 2020  ly
> 00012d60: 2020 2020 2020 2020 2020 2000 0000 0000             .....
> 
> Now, I tried root=0802 and root=8200, both didn't work.

Nice guesswork. But I think 0200 is an address on the floppy disk, not
a code.

To point the floppy to root=/dev/sda2, just substitute that boot argument
for the root=0200 argument. You will also want to remove the load_ramdisk
and prompt_ramdisk arguments.

btw, There's a script for this at 

cvs.debian.org/powerpc-specials/miBoot/patch-floppy.pl

-- 
*------v--------- Installing Debian GNU/Linux 3.0 --------v------*
|      <http://www.debian.org/releases/stable/installmanual>     |
|        debian-imac: <http://debian-imac.sourceforge.net>       |
|            Chris Tillman        tillman@voicetrak.com          |
|                  To Have, Give All to All (ACIM)               |
*----------------------------------------------------------------*



Reply to: