All of lore.kernel.org
 help / color / mirror / Atom feed
From: "lode leroy" <lode_leroy@hotmail.com>
To: grub-devel@gnu.org
Subject: GRUB2 / pxe
Date: Mon, 21 Jun 2004 09:09:04 +0200	[thread overview]
Message-ID: <BAY22-F34YcNzyXPUOS000683cf@hotmail.com> (raw)

Hello,

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

====boot/i386/pc/pxeboot.S================================
#include <grub/boot.h>
#include <grub/machine/boot.h>

/*
*  defines for the code go here
*/

       .file   "pxeboot.S"

       .text

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

.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
-Wl,-N,-Ttext,8000
objcopy -O binary -R .note -R .comment pxeboot.exec pxeboot.img
make
./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? 
http://messenger.msn.be?DI=1032&XAPID=2604&SU=hotmail.be




             reply	other threads:[~2004-06-21  7:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-21  7:09 lode leroy [this message]
2004-06-27 12:11 ` GRUB2 / pxe Marco Gerards
2004-06-28  9:21   ` Yoshinori K. Okuji
2004-06-28 16:22     ` Marco Gerards
2004-07-11 14:39       ` Marco Gerards
  -- strict thread matches above, loose matches on Subject: below --
2004-06-28  9:10 lode leroy
2004-06-28 16:38 ` Marco Gerards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY22-F34YcNzyXPUOS000683cf@hotmail.com \
    --to=lode_leroy@hotmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.