[Top][All Lists]

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

GRUB2 / pxe

From: lode leroy
Subject: GRUB2 / pxe
Date: Mon, 21 Jun 2004 09:09:04 +0200


I managed to boot grub2 over PXE/TFTP/DHCP using the following code.
Could someone add this to grub2, please?
-- lode
ps: it's a mix between pxeloader.S from grub0.94, abd boot.S from grub2

#include <grub/boot.h>
#include <grub/machine/boot.h>

*  defines for the code go here

      .file   "pxeboot.S"


      /* Tell GAS to generate 16-bit instructions so that this code works
         in real mode. */

.globl _start; _start:
       * _start is loaded at 0x7c00 and is jumped to with CS:IP 0:0x7c00
      ljmp    $0, $0x8200

      . = 0x8000 - 0x7C00 -1
      .byte 0

I created the image as follows (I'm sorry I have not managed to update the
makefiles appropriately)

gcc -Iboot/i386/pc -I../boot/i386/pc -I. -Iinclude -I../include -Wall -W
-DASM_FILE=1  -nostdinc -fno-builtin -c -o
pxeboot_img-boot_i386_pc_pxeboot.o ../boot/i386/pc/pxeboot.S
gcc -o pxeboot.exec pxeboot_img-boot_i386_pc_pxeboot.o  -nostdlib
objcopy -O binary -R .note -R .comment pxeboot.exec pxeboot.img
./grub-mkimage -v -d . -o core.img _chain ext2 normal boot hello ls fat
_linux terminal vga font cat cmp minix ufs _multiboot
cat pxeboot.img core.img > pxegrub2

MSN Messenger v6.2 al geïnstalleerd?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]