Gentoo Archives: gentoo-sparc

From: Zhang Weiwu <zhangweiwu@××××××.com>
To:
Cc: Ferris McCormick <fmccor@g.o>, gentoo-sparc@l.g.o
Subject: Re: [gentoo-sparc] a question regarding using promise PDC 20262 ide card on Ultra 5 as boot device
Date: Wed, 01 Dec 2004 07:57:38
Message-Id: 41AD7940.2010300@realss.com
In Reply to: Re: [gentoo-sparc] a question regarding using promise PDC 20262 ide card on Ultra 5 as boot device by Zhang Weiwu
1 Zhang Weiwu wrote:
2
3 > Ferris McCormick wrote:
4 >
5 >> So you have two questions:
6 >> 1. Will Gentoo boot of the floppy? And if so,
7 >> 2. Can you take enough out of the kernel & put it into modules
8 >> to fit the kernel + the boot loader onto a floppy?
9 >>
10 >> I am sure your situation is addressed somewhere, but I've never run
11 >> across it.
12 >>
13 >> Good luck, keep trying, and come back with questions. Eventually
14 >> someone who knows the answer will get tired of reading my responses
15 >> and will feed you better information.
16 >
17 >
18 > I think I ran into new problems. After lots of work to shink kernel
19 > down to 1.2MB and teste the kernel is bootable, according to silo(1),
20 > these steps should create bootable floppy:
21 >
22 > genromfs -d directory/ -f device -a 512 -A 2048,/..
23 > mount -t romfs device mountpoint
24 > silo -r mountpoint -i /boot/fd.b -F
25 > umount mountpoint
26 >
27 > This is what I did:
28 >
29 > root # fdisk /dev/fd0
30 >
31 > Command (m for help): s
32 > Building a new sun disklabel. Changes will remain in memory only,
33 > until you decide to write them. After that, of course, the previous
34 > content won't be recoverable.
35 >
36 >
37 > Command (m for help): w
38 > The partition table has been altered!
39 >
40 > Calling ioctl() to re-read partition table.
41 >
42 > WARNING: Re-reading the partition table failed with error 22: Invalid
43 > argument.
44 > The kernel still uses the old table.
45 > The new table will be used at the next reboot.
46 > Syncing disks.
47 >
48 > root # genromfs -d /boot/ -f /dev/fd0 -a 512 -A 2048,/..
49 >
50 > root # mount -t romfs /dev/fd0 /boot
51 > root # silo -r /boot -i /boot/fd.b -F
52 > silo.conf seems to be valid
53 >
54 > root # umount /boot
55 >
56 > And start the computer:
57 >
58 > [Enter OBP]
59 > ok boot floppy
60 > Boot device: /pci@1f,0/pci@1,1/ebus@1/fdthree File and args:
61 > Bad magic number in disk label
62 > Can't open disk label package
63 >
64 > Can't open boot device
65 >
66 > So I failed to make a bootable floppy. What do I miss?
67
68
69 God, I don't think its my problem any more! I created a sparc boot
70 floppy image using dd(1) with the image I got from:
71
72 http://mirror.israel.net/pub/redhat/linux/4.2/en/os/sparc/images/boot.img
73
74 This image, said should be able to boot, still produce the above error
75 in OBP. I also googled around, lots of people are asking the same
76 question (why cannot boot from floppy) and given no satisfying answer.
77 Perhaps this is an UltraSparc problem
78
79 --
80 gentoo-sparc@g.o mailing list

Replies