Re: [Etherboot-developers] Etherboot 5.1.2rc7 released
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Doug A. <amb...@am...> - 2002-10-23 04:16:51
|
Eric W. Biederman writes: | Doug Ambrisko <amb...@am...> writes: | If you build a relocateable image this problem will go away, as etherboot | will then live at the true top of memory. And since you are using an | eepro100 that should not be a problem. The e1000 and the e100 have | been both tested, with relocation, and multicasting support. | -DRELOCATION. I'll try that. | > diff -r -u etherboot-5.1.2rc7.orig/src/nrv2b.c etherboot-5.1.2rc7/src/nrv2b.c | > --- etherboot-5.1.2rc7.orig/src/nrv2b.c Wed Aug 21 13:00:14 2002 | > +++ etherboot-5.1.2rc7/src/nrv2b.c Mon Oct 21 09:05:20 2002 | > @@ -36,7 +36,11 @@ | > #include <string.h> | > #include <ctype.h> | > #include <errno.h> | > +#ifdef __FreeBSD__ | > +#include <inttypes.h> | > +#else | > #include <stdint.h> | > +#endif | > #include <limits.h> | > #include <assert.h> | > #if UCLPACK_COMPAT | > diff -r -u etherboot-5.1.2rc7.orig/src/osloader.c | > etherboot-5.1.2rc7/src/osloader.c | | You don't have a standards compliant C setup? | I know stdint.h was introduced in something like C95 or C99 but that | was at least three years ago. 4.X -stable was released a relatively long while ago. It's in 5.0 -current stream to be released. Eventually it won't be needed. Maybe you have a better solution? A bunch of people do use Etherboot on FreeBSD. | > --- etherboot-5.1.2rc7.orig/src/osloader.c Tue Oct 15 05:56:37 2002 | > +++ etherboot-5.1.2rc7/src/osloader.c Mon Oct 21 12:46:24 2002 | > @@ -1390,7 +1390,7 @@ | > freebsd_howto |= 0x80000000; | > } | > | > - xstart32(entry, freebsd_hofwto, NODEV, 0, 0, 0, | > + xstart32(entry, freebsd_howto, NODEV, 0, 0, 0, | > virt_to_phys(&info.bsdinfo), 0, 0, 0); | > longjmp(restart_etherboot, -2); | > } | | Sorry about that. Would it be possible to setup the FreeBSD compile | so it can compile on something besides FreeBSD so these kinds of | things can at least be compile tested? Just enable -DELF_IMAGE -DAOUT_IMAGE -DIMAGE_FREEBSD -DFREEBSD_KERNEL_ENV Might be usefull to define a build target that turns all options on. If building on FreeBSD the Makefile turns these on the basic FreeBSD support automatically. BTW several FreeBSD users use these options with rom-a-matic to build FreeBSD boot roms. So it really doesn't matter what system compiles Etherboot. Doug A. |