Skip to contentSkip to conversation

How to create boot CDROM with GRUB2

DISCUSSION Dennis Clarke 3 participants 5 messages Jun 22, 2005 – Jun 23, 2005

lore
Share & tools
lore
#0 lore raw

I went through the steps with configure and make and install into a prefix of ~/pkgs/local with the end result being :

dclarke@debian:~/pkgs/local$ find . -ls
195965    4 drwxr-xr-x   5 dclarke  users        4096 Jun 21 18:13 .
195966    4 drwxr-xr-x   3 dclarke  users        4096 Jun 21 18:10 ./share
195967    4 drwxr-xr-x   3 dclarke  users        4096 Jun 21 18:10 ./share/grub
195968    4 drwxr-xr-x   2 dclarke  users        4096 Jun 21 18:10
./share/grub/powerpc-ieee1275
195969    8 -rw-r--r--   1 dclarke  users        5892 Jun 21 18:10
./share/grub/powerpc-ieee1275/_linux.mod
195970    4 -rw-r--r--   1 dclarke  users        1868 Jun 21 18:10
./share/grub/powerpc-ieee1275/linux.mod
195974    8 -rw-r--r--   1 dclarke  users        6564 Jun 21 18:10
./share/grub/powerpc-ieee1275/fat.mod
195975   12 -rw-r--r--   1 dclarke  users        8940 Jun 21 18:10
./share/grub/powerpc-ieee1275/ufs.mod
195976    8 -rw-r--r--   1 dclarke  users        6500 Jun 21 18:10
./share/grub/powerpc-ieee1275/ext2.mod
195977    8 -rw-r--r--   1 dclarke  users        6312 Jun 21 18:10
./share/grub/powerpc-ieee1275/minix.mod
195978    8 -rw-r--r--   1 dclarke  users        7628 Jun 21 18:10
./share/grub/powerpc-ieee1275/hfs.mod
195979    8 -rw-r--r--   1 dclarke  users        8116 Jun 21 18:10
./share/grub/powerpc-ieee1275/jfs.mod
195980   36 -rw-r--r--   1 dclarke  users       36424 Jun 21 18:10
./share/grub/powerpc-ieee1275/normal.mod
195981    4 -rw-r--r--   1 dclarke  users        1316 Jun 21 18:10
./share/grub/powerpc-ieee1275/hello.mod
195982    4 -rw-r--r--   1 dclarke  users        3128 Jun 21 18:10
./share/grub/powerpc-ieee1275/font.mod
195983    8 -rw-r--r--   1 dclarke  users        5540 Jun 21 18:10
./share/grub/powerpc-ieee1275/ls.mod
195984    4 -rw-r--r--   1 dclarke  users        1400 Jun 21 18:10
./share/grub/powerpc-ieee1275/boot.mod
195985    4 -rw-r--r--   1 dclarke  users        2252 Jun 21 18:10
./share/grub/powerpc-ieee1275/cmp.mod
195986    4 -rw-r--r--   1 dclarke  users        2020 Jun 21 18:10
./share/grub/powerpc-ieee1275/cat.mod
195987    4 -rw-r--r--   1 dclarke  users        2300 Jun 21 18:10
./share/grub/powerpc-ieee1275/terminal.mod
195988    4 -rw-r--r--   1 dclarke  users        3124 Jun 21 18:10
./share/grub/powerpc-ieee1275/fshelp.mod
195989    4 -rw-r--r--   1 dclarke  users        2876 Jun 21 18:10
./share/grub/powerpc-ieee1275/amiga.mod
195990    4 -rw-r--r--   1 dclarke  users        2704 Jun 21 18:10
./share/grub/powerpc-ieee1275/apple.mod
195991    4 -rw-r--r--   1 dclarke  users        4024 Jun 21 18:10
./share/grub/powerpc-ieee1275/pc.mod
195992    4 -rw-r--r--   1 dclarke  users        1404 Jun 21 18:10
./share/grub/powerpc-ieee1275/suspend.mod
195993    8 -rw-r--r--   1 dclarke  users        4300 Jun 21 18:10
./share/grub/powerpc-ieee1275/loopback.mod
195994    4 -rw-r--r--   1 dclarke  users        2460 Jun 21 18:10
./share/grub/powerpc-ieee1275/help.mod
195995    4 -rw-r--r--   1 dclarke  users        1276 Jun 21 18:10
./share/grub/powerpc-ieee1275/reboot.mod
195996    4 -rw-r--r--   1 dclarke  users        1320 Jun 21 18:10
./share/grub/powerpc-ieee1275/halt.mod
195997    4 -rw-r--r--   1 dclarke  users        2940 Jun 21 18:10
./share/grub/powerpc-ieee1275/sun.mod
195998    4 -rw-r--r--   1 dclarke  users        1604 Jun 21 18:10
./share/grub/powerpc-ieee1275/default.mod
195999    4 -rw-r--r--   1 dclarke  users        1596 Jun 21 18:10
./share/grub/powerpc-ieee1275/timeout.mod
196000    4 -rw-r--r--   1 dclarke  users        1512 Jun 21 18:10
./share/grub/powerpc-ieee1275/configfile.mod
196001    4 -rw-r--r--   1 dclarke  users         325 Jun 21 18:10
./share/grub/powerpc-ieee1275/moddep.lst
196002    4 -rw-r--r--   1 dclarke  users         334 Jun 21 18:10
./share/grub/powerpc-ieee1275/command.lst
196003    4 drwxr-xr-x   2 dclarke  users        4096 Jun 21 18:10 ./bin
196004  456 -rwxr-xr-x   1 dclarke  users      462473 Jun 21 18:10
./bin/grub-emu
196005   76 -rwxr-xr-x   1 dclarke  users       71158 Jun 21 18:10
./bin/grub-mkimage
214585    4 drwxr-xr-x   2 dclarke  users        4096 Jun 21 18:10 ./sbin
dclarke@debian:~/pkgs/local$ uname -a
Linux debian 2.6.8-pegasos #1 Wed Aug 18 16:40:30 CEST 2004 ppc GNU/Linux

My system is a PowerPC based unit with open firmware. In fact it is a GENESI ODW unit thus : http://www.pegasosppc.com/odw.php

There is no floppy device but I guess I could attach one somehow. What I need to do is install the GRUB2 bootloader on this unit but I would prefer to have it on a bootable CDROM first.

Is there any clear way to achieve this ?

Dennis Clarke
[email protected]

#1 lore raw

Dennis Clarke <[email protected]> writes:

Hi Dennis,

Quoted 8 lines

My system is a PowerPC based unit with open firmware. In fact it is a GENESI ODW unit thus : http://www.pegasosppc.com/odw.php

There is no floppy device but I guess I could attach one somehow. What I need to do is install the GRUB2 bootloader on this unit but I would prefer to have it on a bootable CDROM first.

Is there any clear way to achieve this ?

GRUB 2 works on the Pegasos II, but I have never tested booting form CDROM. What I usually do is creating an open firmware binary and loading that from the open firmware console.

If the CDROM can be accessed from open firmware and you are able to open the binary it will work. Perhaps there is a pegasos specific way to automatically load this binary, but I don't know of a way to do this.

To create this PPC specific binary you can read the wiki page:
http://www.autistici.org/grub/moin.cgi/TestingOnPowerPC

For the pegasos you need to add amiga.mod so GRUB can access your RDB partitions.

--
Marco

#2 lore raw
In reply to Dennis Clarke
Quoted 69 lines · Dennis Clarke

I went through the steps with configure and make and install into a prefix of ~/pkgs/local with the end result being :

dclarke@debian:~/pkgs/local$ find . -ls
195965    4 drwxr-xr-x   5 dclarke  users        4096 Jun 21 18:13 .
195966    4 drwxr-xr-x   3 dclarke  users        4096 Jun 21 18:10 ./share
195967    4 drwxr-xr-x   3 dclarke  users        4096 Jun 21 18:10 ./share/grub
195968    4 drwxr-xr-x   2 dclarke  users        4096 Jun 21 18:10
./share/grub/powerpc-ieee1275
195969    8 -rw-r--r--   1 dclarke  users        5892 Jun 21 18:10
./share/grub/powerpc-ieee1275/_linux.mod
195970    4 -rw-r--r--   1 dclarke  users        1868 Jun 21 18:10
./share/grub/powerpc-ieee1275/linux.mod
195974    8 -rw-r--r--   1 dclarke  users        6564 Jun 21 18:10
./share/grub/powerpc-ieee1275/fat.mod
195975   12 -rw-r--r--   1 dclarke  users        8940 Jun 21 18:10
./share/grub/powerpc-ieee1275/ufs.mod
195976    8 -rw-r--r--   1 dclarke  users        6500 Jun 21 18:10
./share/grub/powerpc-ieee1275/ext2.mod
195977    8 -rw-r--r--   1 dclarke  users        6312 Jun 21 18:10
./share/grub/powerpc-ieee1275/minix.mod
195978    8 -rw-r--r--   1 dclarke  users        7628 Jun 21 18:10
./share/grub/powerpc-ieee1275/hfs.mod
195979    8 -rw-r--r--   1 dclarke  users        8116 Jun 21 18:10
./share/grub/powerpc-ieee1275/jfs.mod
195980   36 -rw-r--r--   1 dclarke  users       36424 Jun 21 18:10
./share/grub/powerpc-ieee1275/normal.mod
195981    4 -rw-r--r--   1 dclarke  users        1316 Jun 21 18:10
./share/grub/powerpc-ieee1275/hello.mod
195982    4 -rw-r--r--   1 dclarke  users        3128 Jun 21 18:10
./share/grub/powerpc-ieee1275/font.mod
195983    8 -rw-r--r--   1 dclarke  users        5540 Jun 21 18:10
./share/grub/powerpc-ieee1275/ls.mod
195984    4 -rw-r--r--   1 dclarke  users        1400 Jun 21 18:10
./share/grub/powerpc-ieee1275/boot.mod
195985    4 -rw-r--r--   1 dclarke  users        2252 Jun 21 18:10
./share/grub/powerpc-ieee1275/cmp.mod
195986    4 -rw-r--r--   1 dclarke  users        2020 Jun 21 18:10
./share/grub/powerpc-ieee1275/cat.mod
195987    4 -rw-r--r--   1 dclarke  users        2300 Jun 21 18:10
./share/grub/powerpc-ieee1275/terminal.mod
195988    4 -rw-r--r--   1 dclarke  users        3124 Jun 21 18:10
./share/grub/powerpc-ieee1275/fshelp.mod
195989    4 -rw-r--r--   1 dclarke  users        2876 Jun 21 18:10
./share/grub/powerpc-ieee1275/amiga.mod
195990    4 -rw-r--r--   1 dclarke  users        2704 Jun 21 18:10
./share/grub/powerpc-ieee1275/apple.mod
195991    4 -rw-r--r--   1 dclarke  users        4024 Jun 21 18:10
./share/grub/powerpc-ieee1275/pc.mod
195992    4 -rw-r--r--   1 dclarke  users        1404 Jun 21 18:10
./share/grub/powerpc-ieee1275/suspend.mod
195993    8 -rw-r--r--   1 dclarke  users        4300 Jun 21 18:10
./share/grub/powerpc-ieee1275/loopback.mod
195994    4 -rw-r--r--   1 dclarke  users        2460 Jun 21 18:10
./share/grub/powerpc-ieee1275/help.mod
195995    4 -rw-r--r--   1 dclarke  users        1276 Jun 21 18:10
./share/grub/powerpc-ieee1275/reboot.mod
195996    4 -rw-r--r--   1 dclarke  users        1320 Jun 21 18:10
./share/grub/powerpc-ieee1275/halt.mod
195997    4 -rw-r--r--   1 dclarke  users        2940 Jun 21 18:10
./share/grub/powerpc-ieee1275/sun.mod
195998    4 -rw-r--r--   1 dclarke  users        1604 Jun 21 18:10
./share/grub/powerpc-ieee1275/default.mod
195999    4 -rw-r--r--   1 dclarke  users        1596 Jun 21 18:10
./share/grub/powerpc-ieee1275/timeout.mod
196000    4 -rw-r--r--   1 dclarke  users        1512 Jun 21 18:10
./share/grub/powerpc-ieee1275/configfile.mod
196001    4 -rw-r--r--   1 dclarke  users         325 Jun 21 18:10
./share/grub/powerpc-ieee1275/moddep.lst
Quoted 8 lines
196002    4 -rw-r--r--   1 dclarke  users         334 Jun 21 18:10
./share/grub/powerpc-ieee1275/command.lst
196003    4 drwxr-xr-x   2 dclarke  users        4096 Jun 21 18:10 ./bin
196004  456 -rwxr-xr-x   1 dclarke  users      462473 Jun 21 18:10
./bin/grub-emu
196005   76 -rwxr-xr-x   1 dclarke  users       71158 Jun 21 18:10
./bin/grub-mkimage
214585    4 drwxr-xr-x   2 dclarke  users        4096 Jun 21 18:10 ./sbin

Keep in mind that so far we have not been using "make install". That said, what is the problem you're pointing out here? That the "grubof" executable itself is missing?

(As more people start using this, we really need to rename "grubof" before we become stuck with that name forever.)

Quoted 4 lines
dclarke@debian:~/pkgs/local$ uname -a
Linux debian 2.6.8-pegasos #1 Wed Aug 18 16:40:30 CEST 2004 ppc GNU/Linux
Quoted 8 lines

My system is a PowerPC based unit with open firmware. In fact it is a GENESI ODW unit thus : http://www.pegasosppc.com/odw.php

There is no floppy device but I guess I could attach one somehow. What I need to do is install the GRUB2 bootloader on this unit but I would prefer to have it on a bootable CDROM first.

Is there any clear way to achieve this ?

Have you seen this page? If not, it should get you started: http://www.autistici.org/grub/moin.cgi/TestingOnPowerPC

Quoted 2 lines

Dennis Clarke
[email protected]

Do you intend for Open Solaris to use multiboot, or the Linux loader, or write a custom loader for it?

-Hollis

#3 lore raw
Quoted 2 lines · Hollis Blanchard

Do you intend for Open Solaris to use multiboot, or the Linux loader, or write a custom loader for it?

Solaris? Multiboot? What did I miss?

--
Marco

#4 lore raw
Quoted 6 lines · Marco Gerards
Quoted 2 lines · Hollis Blanchard

Do you intend for Open Solaris to use multiboot, or the Linux loader, or write a custom loader for it?

Solaris? Multiboot? What did I miss?

Blastwave.org is the Open Solaris community site. I know there are people working on porting Open Solaris to PowerPC, and they have chosen to use Pegasos for the effort. I assume Dennis is one of those people, but regardless I'm curious about the Solaris support GRUB will ultimately need to have, for both x86 and PPC... so I asked. :)

-Hollis