Re: [PATCH] PXE support for grub2

2008-08-05 Thread Bean
On Tue, Aug 5, 2008 at 11:15 PM, Bean <[EMAIL PROTECTED]> wrote: > Fixed and committed. Fixed a few bugs, also add some doc in the wiki for pxe boot: http://grub.enbug.org/PXEBOOT -- Bean ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.g

Re: [PATCH] PXE support for grub2

2008-08-05 Thread Bean
On Tue, Aug 5, 2008 at 4:16 PM, Marco Gerards <[EMAIL PROTECTED]> wrote: > Bean <[EMAIL PROTECTED]> writes: > +GRUB_MOD_INIT(pxe) +{ + (void) mod;/* To stop warning. */ + + grub_pxe_detect (); + if (grub_pxe_pxenv) +{ + gru

Re: [PATCH] PXE support for grub2

2008-08-05 Thread Marco Gerards
Bean <[EMAIL PROTECTED]> writes: >>> +GRUB_MOD_INIT(pxe) >>> +{ >>> + (void) mod;/* To stop warning. */ >>> + >>> + grub_pxe_detect (); >>> + if (grub_pxe_pxenv) >>> +{ >>> + grub_disk_dev_register (&grub_pxe_dev); >>> + grub_fs_register (&grub_pxefs_fs); >

Re: [PATCH] PXE support for grub2

2008-08-04 Thread Bean
On Tue, Aug 5, 2008 at 5:08 AM, Marco Gerards <[EMAIL PROTECTED]> wrote: > Actually, I would prefer: > > pxe --info > > pxe --blksize=size > > pxe --unload > > You kinda reimplemented an argument parser. The advantage of the > build in argument parser is that it supports generation of --help > doc

Re: [PATCH] PXE support for grub2

2008-08-04 Thread Marco Gerards
Hi, Bean <[EMAIL PROTECTED]> writes: > This patch add the (pxe) device that can be used to load files using > the pxe service. It also add a user land command pxe that can be used > to show pxe information as well as set some parameter. Great! :-) > To create a pxe boot image: > > ./grub-mkimag

Re: [PATCH] PXE support for grub2

2008-08-02 Thread Robert Millan
On Sat, Aug 02, 2008 at 07:20:31PM +0800, Bean wrote: > >> --- a/kern/i386/pc/startup.S > >> +++ b/kern/i386/pc/startup.S > >> @@ -2053,3 +2053,102 @@ FUNCTION(grub_vbe_bios_set_palette_data) > >> popl%ebx > >> popl%ebp > >> ret > >> + > >> + > >> +pxe_rm_entry: > >> +

Re: [PATCH] PXE support for grub2

2008-08-02 Thread Bean
On Sat, Aug 2, 2008 at 6:48 PM, Robert Millan <[EMAIL PROTECTED]> wrote: > On Thu, Jul 31, 2008 at 12:50:22AM +0800, Bean wrote: >> +#if 1 >> +#define GRUB_PXE_BOOTP_DHCPVEND 1024/* DHCP extended vendor field >> size */ >> +#else >> +#define GRUB_PXE_BOOTP_DHCPVEND 312 /* DHCP st

Re: [PATCH] PXE support for grub2

2008-08-02 Thread Robert Millan
On Thu, Jul 31, 2008 at 12:50:22AM +0800, Bean wrote: > +#if 1 > +#define GRUB_PXE_BOOTP_DHCPVEND 1024/* DHCP extended vendor field > size */ > +#else > +#define GRUB_PXE_BOOTP_DHCPVEND 312 /* DHCP standard vendor field > size */ > +#endif A comment would be helpful to explain

Re: [PATCH] PXE support for grub2

2008-08-01 Thread Bean
On Sat, Aug 2, 2008 at 12:59 AM, Bean <[EMAIL PROTECTED]> > Hi, > > This kind of usage have been around for some time. In grub legacy, it > generates pxe image by catenating pxeloader and pre_stage2. > pxeboot.img is basiclly identical to pxeloader.S, and pre_stage2 and > core.img loaded at the sam

Re: [PATCH] PXE support for grub2

2008-08-01 Thread Bean
On Sat, Aug 2, 2008 at 12:21 AM, Pavel Roskin <[EMAIL PROTECTED]> wrote: > On Fri, 2008-08-01 at 13:32 +0200, Robert Millan wrote: >> On Thu, Jul 31, 2008 at 11:52:43PM -0400, Pavel Roskin wrote: >> > On Fri, 2008-08-01 at 11:46 +0800, Bean wrote: >> > > On Thu, Jul 31, 2008 at 12:50 AM, Bean <[EMA

Re: [PATCH] PXE support for grub2

2008-08-01 Thread Pavel Roskin
On Fri, 2008-08-01 at 13:32 +0200, Robert Millan wrote: > On Thu, Jul 31, 2008 at 11:52:43PM -0400, Pavel Roskin wrote: > > On Fri, 2008-08-01 at 11:46 +0800, Bean wrote: > > > On Thu, Jul 31, 2008 at 12:50 AM, Bean <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > This patch add the (pxe) dev

Re: [PATCH] PXE support for grub2

2008-08-01 Thread Robert Millan
On Thu, Jul 31, 2008 at 11:52:43PM -0400, Pavel Roskin wrote: > On Fri, 2008-08-01 at 11:46 +0800, Bean wrote: > > On Thu, Jul 31, 2008 at 12:50 AM, Bean <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > This patch add the (pxe) device that can be used to load files using > > > the pxe service. It a

Re: [PATCH] PXE support for grub2

2008-07-31 Thread Pavel Roskin
On Fri, 2008-08-01 at 11:46 +0800, Bean wrote: > On Thu, Jul 31, 2008 at 12:50 AM, Bean <[EMAIL PROTECTED]> wrote: > > Hi, > > > > This patch add the (pxe) device that can be used to load files using > > the pxe service. It also add a user land command pxe that can be used > > to show pxe informati

Re: [PATCH] PXE support for grub2

2008-07-31 Thread Bean
On Thu, Jul 31, 2008 at 12:50 AM, Bean <[EMAIL PROTECTED]> wrote: > Hi, > > This patch add the (pxe) device that can be used to load files using > the pxe service. It also add a user land command pxe that can be used > to show pxe information as well as set some parameter. > > To create a pxe boot

[PATCH] PXE support for grub2

2008-07-30 Thread Bean
Hi, This patch add the (pxe) device that can be used to load files using the pxe service. It also add a user land command pxe that can be used to show pxe information as well as set some parameter. To create a pxe boot image: ./grub-mkimage -d . -o core.img pxe cat pxeboot.img core.img > g2pxe