OKUJI Yoshinori:
> I'd like to do, but I wish you will fix several problems in there
> before committing your patches to the CVS.
>
> * The netboot support should be optional as well as the tftp
> support. The default should be --disable-netboot.
> * The netboot support MUST be omitted in the grub shell. Otherwise,
> you should implement the glue code.
> * The user should be able to choose what driver is included via the
> configure script.
> * The directory grub/stage2/netboot should be moved into grub/netboot.
I have now done these things, I think.
There's a patch at http://www.rano.demon.co.uk/tmp/grub_net_patch
The new files are at http://www.rano.demon.co.uk/tmp/grub_net.tar.gz
It worked when I built it under Debian 2.1 with
./configure --enable-tftp --enable-nepci
It doesn't compile under Red Hat 6.0 because of a problem with the way
netboot/netboot.h gets outb and friends (and htons and friends) from
/usr/include/asm/. It does compile if you add -DLINUX_OUT_MACROS to
netboot/Makefile.am, but I haven't tested the binaries you get after
that. I'm sure it's obvious to someone how to repair this. Presumably
one way would be to define the required functions in netboot.h using
static inline asm functions, but there may be a better solution. (I'd
be grateful for any explanations about this.)
I see outb already features in stage2/smp-imps.c. (What's that file
for, anyway?)
Edmund