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

Re: set up yaboot for usb



On Wed, 2005-06-15 at 15:22 +0200, mailing by Giardina Software wrote:
> Hello list,
> 
> does anyone here can help me how to set up yaboot.conf to start from an 
> usb devices???

You have two options here:

PC style partition table with a small hfs partition on (or fat12 but
you'll have to change the yaboot.conf string and rebuild yaboot)

Mac style partition with Apple_Bootstrap and an ext2 partition.

I've done the latter, attached is a script I used to create a USB image.
You can do this in OS X too using hdiutil and friends (disktool, pdisk).

Some macs seem to be fine with finding the USB device and displaying it
in the chooser (hold down option on boot), others weren't.  If yours
doesn't you'll have to find the device in OF and boot off it.

Also attached is the ofboot.b and yaboot.conf used - the kernel and
ramdisk are from FC4 ppc. Tested with OS chooser on a dual G4 PowerMac
(yiou get a disk icon with penguin and usb icon below). Select disk,
click -> arrow.  Using fedora core 4 - note you'll have to setenforce 0
as selinux doesn't allow partitioning a file otherwise.

device was /pci@f2000000/pci-bridge@d/usb@9/disk@1

The above booted fine got to yaboot and booted kernel.

hth

Paul

Attachment: mk-image.ppc
Description: application/shellscript

init-message = "\nWelcome!\nHit <TAB> for boot options.\n\n"
timeout=6000
partition=3

image=/vmlinuz
	label=linux
	initrd=/ramdisk.image.gz    
	read-only
<CHRP-BOOT>
<COMPATIBLE>
MacRISC MacRISC3 MacRISC4
</COMPATIBLE>

<DESCRIPTION>
Boot Chooser
</DESCRIPTION>

<BOOT-SCRIPT>
" screen" output
load-base release-load-area
boot &device;:,\\yaboot
</BOOT-SCRIPT>

<OS-BADGE-ICONS>
1010
000000000000F8FEACF6000000000000
0000000000F5FFFFFEFEF50000000000
00000000002BFAFEFAFCF70000000000
0000000000F65D5857812B0000000000
0000000000F5350B2F88560000000000
0000000000F6335708F8FE0000000000
00000000005600F600F5FD8100000000
00000000F9F8000000F5FAFFF8000000
000000008100F5F50000F6FEFE000000
000000F8F700F500F50000FCFFF70000
00000088F70000F50000F5FCFF2B0000
0000002F582A00F5000008ADE02C0000
00090B0A35A62B0000002D3B350A0000
000A0A0B0B3BF60000505E0B0A0B0A00
002E350B0B2F87FAFCF45F0B2E090000
00000007335FF82BF72B575907000000
000000000000ACFFFF81000000000000
000000000081FFFFFFFF810000000000
0000000000FBFFFFFFFFAC0000000000
000000000081DFDFDFFFFB0000000000
000000000081DD5F83FFFD0000000000
000000000081DDDF5EACFF0000000000
0000000000FDF981F981FFFF00000000
00000000FFACF9F9F981FFFFAC000000
00000000FFF98181F9F981FFFF000000
000000ACACF981F981F9F9FFFFAC0000
000000FFACF9F981F9F981FFFFFB0000
00000083DFFBF981F9F95EFFFFFC0000
005F5F5FDDFFFBF9F9F983DDDD5F0000
005F5F5F5FDD81F9F9E7DF5F5F5F5F00
0083DD5F5F83FFFFFFFFDF5F835F0000
000000FBDDDFACFBACFBDFDFFB000000
000000000000FFFFFFFF000000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFF0000000000
0000000000FFFFFFFFFFFFFF00000000
00000000FFFFFFFFFFFFFFFFFF000000
00000000FFFFFFFFFFFFFFFFFF000000
000000FFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFFFF0000
00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
000000FFFFFFFFFFFFFFFFFFFF000000
</OS-BADGE-ICONS>
</CHRP-BOOT>