Skip to contentSkip to conversation

netboot

DISCUSSION Robert Millan 3 participants 3 messages Jun 26, 2007

lore
Share & tools
lore
#1 lore raw
Quoted 10 lines · Robert Millan

In the wiki there's a link titled "GRUB2 netboot development" that points to:

http://www.inma.ucl.ac.be/~guffens/grub2_netboot/index.html

(broken link)

Anyone knows what did this contain? Is there uncommitted work for network support there? Who's guffens?

I found an old article on this subject:

http://lists.gnu.org/archive/html/grub-devel/2006-05/msg00020.html

It seems that vincent guffens has ported a glue to bind grub2 and etherboot together. However, it's no longer maintained, and the patch is nowhere to be found.

But porting etherboot to grub2 may not be that difficult after all, we can use the driver from etherboot, and the glue code from Grub Legacy. The problem is etherboot used in Grub Legacy is very old (5.0.5). The data structure has changed a lot since then, so the glue code needs to be modified accordingly.

There is another method, that is to rely on PXE sevice. I have written a PXE driver for grub4dos, it uses real mode service provided by PXE stack to access remote files, for example, to load a kernel from server, uses:

kernel (pd)/vmlinuz
init (pd)/initrd

The advantage of this methid is that it doesn't rely on network card, the PXE stack handles difference internally. The disadvantage is that the stack is present only when booting from PXE ROM (hardware rom or software rom from etherboot).

BTW, pxelinux also uses this method to access files.

Signature · 1 line
Bean
#2 lore raw
Quoted 29 lines · Bean
Quoted 10 lines · Robert Millan

In the wiki there's a link titled "GRUB2 netboot development" that points to:

http://www.inma.ucl.ac.be/~guffens/grub2_netboot/index.html

(broken link)

Anyone knows what did this contain? Is there uncommitted work for network support there? Who's guffens?

I found an old article on this subject:

http://lists.gnu.org/archive/html/grub-devel/2006-05/msg00020.html

It seems that vincent guffens has ported a glue to bind grub2 and etherboot together. However, it's no longer maintained, and the patch is nowhere to be found.

But porting etherboot to grub2 may not be that difficult after all, we can use the driver from etherboot, and the glue code from Grub Legacy. The problem is etherboot used in Grub Legacy is very old (5.0.5). The data structure has changed a lot since then, so the glue code needs to be modified accordingly.

There is another method, that is to rely on PXE sevice. I have written a PXE driver for grub4dos, it uses real mode service provided by PXE stack to access remote files, for example, to load a kernel from server, uses:

Quoted 7 lines

kernel (pd)/vmlinuz
init (pd)/initrd

The advantage of this methid is that it doesn't rely on network card, the PXE stack handles difference internally. The disadvantage is that the stack is present only when booting from PXE ROM (hardware rom or software rom from etherboot).

There's also the PXE implementation in my patched grub1 version:

http://os.inf.tu-dresden.de/~adam/grub/0.97/

The grub-0.97-os.3.README has some more infos, version os.5 is the current released version.

Adam

Signature · 2 lines
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/