All of lore.kernel.org
 help / color / mirror / Atom feed
* GRUB2 / pxe
@ 2004-06-21  7:09 lode leroy
  2004-06-27 12:11 ` Marco Gerards
  0 siblings, 1 reply; 7+ messages in thread
From: lode leroy @ 2004-06-21  7:09 UTC (permalink / raw)
  To: grub-devel

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




^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: GRUB2 / pxe
@ 2004-06-28  9:10 lode leroy
  2004-06-28 16:38 ` Marco Gerards
  0 siblings, 1 reply; 7+ messages in thread
From: lode leroy @ 2004-06-28  9:10 UTC (permalink / raw)
  To: metgerards; +Cc: grub-devel


>>I managed to boot grub2 over PXE/TFTP/DHCP using the following code.
>>Could someone add this to grub2, please?
>
>This would be quite useful to me for testing, great!
>
>Using your code I made the patch I included at the end of the email.
>I've also regenerated the `conf/i386-pc.mk' file, in case you don't
>have ruby installed.  Can you please test this patch?

yes, looks like it works!

>Is it ok for you this way?


This line in the makefile is too long (or was crippled in the mail archive)

$(CPPFLAGS) -DASM_FILE=1 $(ASFLAGS) $(pxeboot_img_ASFLAGS) -M $<          | 
sed
's,pxeboot\.o[ :]*,pxeboot_img-boot_i386_pc_pxeboot.o $@ : ,g' > $@;      [ 
-s
$@ ] || rm -f $@

>>-- lode
>>ps: it's a mix between pxeloader.S from grub0.94, abd boot.S from grub2
>
>Okuji, can I commit this patch when it works for Lode?  Are there
>copyright issues?
>

I think there should not be copyright issues: there's only 1 line of code,
and Okuji wrote it :-)

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-07-11 14:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-21  7:09 GRUB2 / pxe lode leroy
2004-06-27 12:11 ` 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

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.