people/lynusvaz/gpxe.git
13 years agoAdd .pdsk target (padded .dsk, suitable for qemu).
Michael Brown [Thu, 5 Jul 2007 22:37:17 +0000 (23:37 +0100)]
Add .pdsk target (padded .dsk, suitable for qemu).

13 years agoPad ROM images to 512 bytes, not powers of two
Michael Brown [Thu, 5 Jul 2007 22:36:45 +0000 (23:36 +0100)]
Pad ROM images to 512 bytes, not powers of two

13 years agoAllocate heap at first usage, rather than assuming we can fit it in
Michael Brown [Thu, 5 Jul 2007 21:30:34 +0000 (22:30 +0100)]
Allocate heap at first usage, rather than assuming we can fit it in
below _text.  This should help with the gPXE-on-gPXE-via-PXE case.

13 years agoRemap EBADF to PXENV_STATUS_TFTP_FILE_NOT_FOUND; the only user is
Michael Brown [Thu, 5 Jul 2007 17:47:46 +0000 (18:47 +0100)]
Remap EBADF to PXENV_STATUS_TFTP_FILE_NOT_FOUND; the only user is
posix_io.c and this PXE error makes more sense in this context.

13 years agoAdd concept of DHCP option applicators.
Michael Brown [Thu, 5 Jul 2007 17:38:14 +0000 (18:38 +0100)]
Add concept of DHCP option applicators.

13 years agoFirst draft of PXE extensions API.
Michael Brown [Thu, 5 Jul 2007 17:03:09 +0000 (18:03 +0100)]
First draft of PXE extensions API.

13 years agoUse netdev_rx_err() to report receive errors.
Michael Brown [Thu, 5 Jul 2007 16:23:03 +0000 (17:23 +0100)]
Use netdev_rx_err() to report receive errors.

13 years agoAllow recording of TX and RX errors to aid in end-user debugging.
Michael Brown [Thu, 5 Jul 2007 16:18:27 +0000 (17:18 +0100)]
Allow recording of TX and RX errors to aid in end-user debugging.

13 years agoUse partition type 0xeb ("EtherBoot"), to avoid any attempts to mount
Michael Brown [Thu, 5 Jul 2007 13:20:55 +0000 (14:20 +0100)]
Use partition type 0xeb ("EtherBoot"), to avoid any attempts to mount
the Etherboot partition.

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Thu, 5 Jul 2007 13:15:58 +0000 (14:15 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoAdd .usb target
Michael Brown [Thu, 5 Jul 2007 13:15:43 +0000 (14:15 +0100)]
Add .usb target

13 years agoReplace natsemi driver with Indolent's updated one that uses the gPXE API
Marty Connor [Thu, 5 Jul 2007 12:54:12 +0000 (08:54 -0400)]
Replace natsemi driver with Indolent's updated one that uses the gPXE API

This version uses the gPXE driver API rather than the legacy wrapper API.

13 years agoWorking with multi-sector reads
Michael Brown [Thu, 5 Jul 2007 12:30:49 +0000 (13:30 +0100)]
Working with multi-sector reads

13 years agohdprefix that works for LBA only
Michael Brown [Thu, 5 Jul 2007 11:58:16 +0000 (12:58 +0100)]
hdprefix that works for LBA only

13 years agoMiscellaneous efficiency improvements, and extend read_sectors to
Michael Brown [Thu, 5 Jul 2007 11:36:39 +0000 (12:36 +0100)]
Miscellaneous efficiency improvements, and extend read_sectors to
handle multiple sectors.

13 years agoMake masking constants unsigned, to avoid a gcc3-only compiler warning.
Michael Brown [Thu, 5 Jul 2007 11:04:53 +0000 (12:04 +0100)]
Make masking constants unsigned, to avoid a gcc3-only compiler warning.

13 years agoSwitch compiler warning on tcp_open() to a #warning
Michael Brown [Thu, 5 Jul 2007 11:00:35 +0000 (12:00 +0100)]
Switch compiler warning on tcp_open() to a #warning

13 years agoWarnings purge for via-velocity.[ch]
Marty Connor [Thu, 5 Jul 2007 01:58:28 +0000 (21:58 -0400)]
Warnings purge for via-velocity.[ch]

13 years agoUpdate warnings in depca.c ns8390.c
Marty Connor [Thu, 5 Jul 2007 00:14:10 +0000 (20:14 -0400)]
Update warnings in depca.c ns8390.c

13 years agoPurge warnings from tg3.c
Marty Connor [Wed, 4 Jul 2007 23:49:46 +0000 (19:49 -0400)]
Purge warnings from tg3.c

13 years agoMerge branch 'master' of /pub/scm/gpxe
Marty Connor [Wed, 4 Jul 2007 23:47:13 +0000 (19:47 -0400)]
Merge branch 'master' of /pub/scm/gpxe

13 years agoPurge warnings from prism2 drivers
Marty Connor [Wed, 4 Jul 2007 23:47:01 +0000 (19:47 -0400)]
Purge warnings from prism2 drivers

13 years agoAdded active partition locator, and simple MBR built using it.
Michael Brown [Wed, 4 Jul 2007 23:21:01 +0000 (00:21 +0100)]
Added active partition locator, and simple MBR built using it.

13 years agoRevert "Added master boot record capable of locating active partition"
Michael Brown [Wed, 4 Jul 2007 23:20:04 +0000 (00:20 +0100)]
Revert "Added master boot record capable of locating active partition"

This reverts commit 844d088c514bb962b3cbd00892db67bad4daa203.

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Wed, 4 Jul 2007 23:05:36 +0000 (00:05 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoAdded master boot record capable of locating active partition
Michael Brown [Wed, 4 Jul 2007 23:05:26 +0000 (00:05 +0100)]
Added master boot record capable of locating active partition
(including logical partitions).

13 years agoKill off lots of warnings in via-velocity.c by correcting these definitions.
Michael Brown [Wed, 4 Jul 2007 22:36:16 +0000 (23:36 +0100)]
Kill off lots of warnings in via-velocity.c by correcting these definitions.

13 years agoMerge branch 'master' of /pub/scm/gpxe
Marty Connor [Wed, 4 Jul 2007 22:33:22 +0000 (18:33 -0400)]
Merge branch 'master' of /pub/scm/gpxe

13 years agoRemove deprecation of pci_bar_size()
Marty Connor [Wed, 4 Jul 2007 22:28:37 +0000 (18:28 -0400)]
Remove deprecation of pci_bar_size()

13 years agoWarnings purge of drivers (continued)
Marty Connor [Wed, 4 Jul 2007 09:52:56 +0000 (05:52 -0400)]
Warnings purge of drivers (continued)

13 years agoUNDI loader entry point implemented; seems to work.
Michael Brown [Wed, 4 Jul 2007 02:23:02 +0000 (03:23 +0100)]
UNDI loader entry point implemented; seems to work.

13 years ago!PXE and PXENV+ structures are in code segment, not data segment.
Michael Brown [Wed, 4 Jul 2007 02:20:18 +0000 (03:20 +0100)]
!PXE and PXENV+ structures are in code segment, not data segment.

13 years agoFix typo
Michael Brown [Wed, 4 Jul 2007 01:25:07 +0000 (02:25 +0100)]
Fix typo

13 years agoCope with builds with differing debug options within a second of each
Michael Brown [Wed, 4 Jul 2007 01:24:24 +0000 (02:24 +0100)]
Cope with builds with differing debug options within a second of each
other.

13 years agoAdd (untested) UNDI loader C-level implementation.
Michael Brown [Tue, 3 Jul 2007 22:41:35 +0000 (23:41 +0100)]
Add (untested) UNDI loader C-level implementation.

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Tue, 3 Jul 2007 22:10:16 +0000 (23:10 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoSeparated out initialisation functions from startup/shutdown functions.
Michael Brown [Tue, 3 Jul 2007 22:09:56 +0000 (23:09 +0100)]
Separated out initialisation functions from startup/shutdown functions.

13 years agoremove obsolete file: src/arch/i386/prefix/int19exit.c
Marty Connor [Tue, 3 Jul 2007 20:24:06 +0000 (16:24 -0400)]
remove obsolete file:  src/arch/i386/prefix/int19exit.c

13 years agoAdded missing line to set return status code.
Michael Brown [Tue, 3 Jul 2007 20:22:12 +0000 (21:22 +0100)]
Added missing line to set return status code.

13 years agoLine buffer API changed a while ago
Michael Brown [Tue, 3 Jul 2007 20:21:50 +0000 (21:21 +0100)]
Line buffer API changed a while ago

13 years agoWarnings purge iscsiboot.c
Marty Connor [Tue, 3 Jul 2007 20:20:54 +0000 (16:20 -0400)]
Warnings purge iscsiboot.c

13 years agoAdded missing "extern"
Michael Brown [Tue, 3 Jul 2007 20:12:54 +0000 (21:12 +0100)]
Added missing "extern"

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Tue, 3 Jul 2007 20:09:26 +0000 (21:09 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoMerge branch 'master' of /pub/scm/gpxe
Marty Connor [Tue, 3 Jul 2007 20:02:26 +0000 (16:02 -0400)]
Merge branch 'master' of /pub/scm/gpxe

13 years agoWarnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
Marty Connor [Tue, 3 Jul 2007 20:02:15 +0000 (16:02 -0400)]
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot

13 years agoThis comment is no longer relevant.
Michael Brown [Tue, 3 Jul 2007 19:39:47 +0000 (20:39 +0100)]
This comment is no longer relevant.

13 years agoShould be using the generic device probe mechanism, when (if) they
Michael Brown [Tue, 3 Jul 2007 19:39:30 +0000 (20:39 +0100)]
Should be using the generic device probe mechanism, when (if) they
eventually get updated.

13 years agoWe don't actually use the reset functions anywhere, and nothing really
Michael Brown [Tue, 3 Jul 2007 19:34:51 +0000 (20:34 +0100)]
We don't actually use the reset functions anywhere, and nothing really
provides them.

13 years agoMove pxe_netdev and set_pxe_netdev to pxe_undi.c and remove
Michael Brown [Tue, 3 Jul 2007 19:21:16 +0000 (20:21 +0100)]
Move pxe_netdev and set_pxe_netdev to pxe_undi.c and remove
now-obsolete pxe.c.

13 years agoUse a linker-table based system to automatically mark and start up
Michael Brown [Tue, 3 Jul 2007 19:09:14 +0000 (20:09 +0100)]
Use a linker-table based system to automatically mark and start up
permanent processes, rather than requiring each one to have its own
initialisation function.

13 years agoMerge branch 'master' of /pub/scm/gpxe
Marty Connor [Tue, 3 Jul 2007 17:20:54 +0000 (13:20 -0400)]
Merge branch 'master' of /pub/scm/gpxe

13 years agoWarnings purge: src/{crypto,hci,net}
Marty Connor [Tue, 3 Jul 2007 17:20:22 +0000 (13:20 -0400)]
Warnings purge: src/{crypto,hci,net}

13 years agoImplemented (untested) PXENV_START_UNDI.
Michael Brown [Tue, 3 Jul 2007 17:17:14 +0000 (18:17 +0100)]
Implemented (untested) PXENV_START_UNDI.

13 years agoReport our interface type as "gPXE" to avoid working around Etherboot
Michael Brown [Tue, 3 Jul 2007 14:57:32 +0000 (15:57 +0100)]
Report our interface type as "gPXE" to avoid working around Etherboot
5.4 bugs when driving ourselves via UNDI.

13 years agoWork around Etherboot 5.4 bug when multiple packets are received.
Michael Brown [Tue, 3 Jul 2007 14:53:29 +0000 (15:53 +0100)]
Work around Etherboot 5.4 bug when multiple packets are received.

13 years agoKill off now-redundant _irq() methods.
Michael Brown [Tue, 3 Jul 2007 14:37:56 +0000 (15:37 +0100)]
Kill off now-redundant _irq() methods.

13 years agoKill off PXENV_UNDI_FORCE_INTERRUPT support; we have no reason to
Michael Brown [Tue, 3 Jul 2007 14:36:29 +0000 (15:36 +0100)]
Kill off PXENV_UNDI_FORCE_INTERRUPT support; we have no reason to
suspect that we need it, and implementing it would require needlessly
complicating the net device API.

13 years agoAvoid double free on I/O buffer when rtl_transmit() returns failure.
Michael Brown [Tue, 3 Jul 2007 13:44:33 +0000 (14:44 +0100)]
Avoid double free on I/O buffer when rtl_transmit() returns failure.

Convert printf() to DBG(); printf() is not allowed in drivers.

13 years agoIt's not just Etherboot that fails to generate TX completions.
Michael Brown [Tue, 3 Jul 2007 13:43:57 +0000 (14:43 +0100)]
It's not just Etherboot that fails to generate TX completions.

13 years agoNever attempt to route the broadcast address.
Michael Brown [Tue, 3 Jul 2007 12:55:45 +0000 (13:55 +0100)]
Never attempt to route the broadcast address.

13 years agoDocument TX completion bug.
Michael Brown [Tue, 3 Jul 2007 12:17:58 +0000 (13:17 +0100)]
Document TX completion bug.

13 years agoEnable/disable interrupts in driver open/close.
Michael Brown [Tue, 3 Jul 2007 11:50:58 +0000 (12:50 +0100)]
Enable/disable interrupts in driver open/close.

13 years agoReserve space for link-layer header in pxenv_undi_transmit() when not
Michael Brown [Tue, 3 Jul 2007 03:05:30 +0000 (04:05 +0100)]
Reserve space for link-layer header in pxenv_undi_transmit() when not
handed a P_UNKNOWN packet.

13 years agoEnable/disable interrupts at open/close time.
Michael Brown [Tue, 3 Jul 2007 02:34:08 +0000 (03:34 +0100)]
Enable/disable interrupts at open/close time.

13 years agoAdd missing call to free_iob() in pxenv_undi_isr().
Michael Brown [Mon, 2 Jul 2007 23:57:53 +0000 (00:57 +0100)]
Add missing call to free_iob() in pxenv_undi_isr().

Correct typo in pxenv_set_station_address().

13 years agoEnable/disable interrupts on open/close.
Michael Brown [Mon, 2 Jul 2007 23:57:04 +0000 (00:57 +0100)]
Enable/disable interrupts on open/close.

13 years agoAdd trivial net device statistics (TX and RX packet count), reported
Michael Brown [Mon, 2 Jul 2007 23:15:53 +0000 (00:15 +0100)]
Add trivial net device statistics (TX and RX packet count), reported
via UNDI API and also by ifstat command; may be useful for debugging.

13 years agoEnsure that pxe_netdev is set before starting up PXE NBP.
Michael Brown [Mon, 2 Jul 2007 23:02:26 +0000 (00:02 +0100)]
Ensure that pxe_netdev is set before starting up PXE NBP.

13 years agoPlace netdev_open()/netdev_close() calls in appropriate places.
Michael Brown [Mon, 2 Jul 2007 23:02:06 +0000 (00:02 +0100)]
Place netdev_open()/netdev_close() calls in appropriate places.

13 years agoAdd mechanism for providing TX completion events.
Michael Brown [Mon, 2 Jul 2007 22:49:00 +0000 (23:49 +0100)]
Add mechanism for providing TX completion events.

13 years agoMerge branch 'master' of ssh://rom.etherboot.org/pub/scm/gpxe
Marty Connor [Mon, 2 Jul 2007 19:36:19 +0000 (15:36 -0400)]
Merge branch 'master' of ssh://rom.etherboot.org/gpxe

13 years agoWarnings purge
Marty Connor [Mon, 2 Jul 2007 19:33:34 +0000 (15:33 -0400)]
Warnings purge

13 years agoWarnings purge
Marty Connor [Mon, 2 Jul 2007 19:29:37 +0000 (15:29 -0400)]
Warnings purge

13 years agoWarnings purge
Marty Connor [Mon, 2 Jul 2007 19:28:55 +0000 (15:28 -0400)]
Warnings purge

13 years agoWarnings purge of src/core
Marty Connor [Mon, 2 Jul 2007 19:26:40 +0000 (15:26 -0400)]
Warnings purge of src/core

13 years agoAdd untested support for UNDI transmit and receive.
Michael Brown [Mon, 2 Jul 2007 19:05:58 +0000 (20:05 +0100)]
Add untested support for UNDI transmit and receive.

13 years agoUse a common base-memory packet buffer for DHCP construction (as used
Michael Brown [Mon, 2 Jul 2007 17:33:41 +0000 (18:33 +0100)]
Use a common base-memory packet buffer for DHCP construction (as used
by PXE and NBI) and UNDI packets (as used by undinet and UNDI).

13 years agopxe_netdev now holds a reference to the network device.
Michael Brown [Mon, 2 Jul 2007 16:43:32 +0000 (17:43 +0100)]
pxe_netdev now holds a reference to the network device.

Use generic fields in struct device_description rather than assuming
that the struct device * is contained within a pci_device or
isapnp_device; this assumption is broken when using the undionly
driver.

Add PXENV_UNDI_SET_STATION_ADDRESS.

13 years agoBuild bochs with ne2000 support, and add sample lines in bochsrc.txt
Michael Brown [Mon, 2 Jul 2007 02:14:27 +0000 (03:14 +0100)]
Build bochs with ne2000 support, and add sample lines in bochsrc.txt
to match.

13 years agoCall shutdown() from pxenv_undi_shutdown(). Probably not totally
Michael Brown [Mon, 2 Jul 2007 02:12:35 +0000 (03:12 +0100)]
Call shutdown() from pxenv_undi_shutdown().  Probably not totally
correct, but it's enough to get RIS working.

13 years agoImprove debugging
Michael Brown [Sun, 1 Jul 2007 21:04:19 +0000 (22:04 +0100)]
Improve debugging

13 years agoRemoving obsolete files.
Michael Brown [Sun, 1 Jul 2007 14:30:12 +0000 (15:30 +0100)]
Removing obsolete files.

13 years agoSupport cards such as natsemi which treat the data as little-endian
Michael Brown [Sun, 1 Jul 2007 14:22:12 +0000 (15:22 +0100)]
Support cards such as natsemi which treat the data as little-endian
(i.e. LSB transmitted first on the wire), even though SPI commands and
addresses always have to be big-endian.

13 years agoCan't use strncpy() to copy strings that aren't NUL-terminated to
Michael Brown [Sun, 1 Jul 2007 02:22:28 +0000 (03:22 +0100)]
Can't use strncpy() to copy strings that aren't NUL-terminated to
begin with.

13 years agoHack together far enough to support ne2k-pci.
Michael Brown [Sat, 30 Jun 2007 23:37:29 +0000 (00:37 +0100)]
Hack together far enough to support ne2k-pci.

13 years agoHow has the legacy wrapper been working for the past month or so...?
Michael Brown [Sat, 30 Jun 2007 23:36:48 +0000 (00:36 +0100)]
How has the legacy wrapper been working for the past month or so...?

13 years agoDUMP_GDBSYM should not be enabled by default.
Michael Brown [Sat, 30 Jun 2007 23:05:36 +0000 (00:05 +0100)]
DUMP_GDBSYM should not be enabled by default.

13 years agoAdd ability to resolve relative symbols as well as locate absolute ones.
Michael Brown [Sat, 30 Jun 2007 21:59:15 +0000 (22:59 +0100)]
Add ability to resolve relative symbols as well as locate absolute ones.

13 years agoAdd gdbsym.c object to help with running gdb-to-qemu
Michael Brown [Sat, 30 Jun 2007 21:43:31 +0000 (22:43 +0100)]
Add gdbsym.c object to help with running gdb-to-qemu

13 years agoPlace the actual version string in .data16, rather than just the
Michael Brown [Sat, 30 Jun 2007 20:36:54 +0000 (21:36 +0100)]
Place the actual version string in .data16, rather than just the
pointer to it.

13 years agoImplement the two UNDI API calls used by RIS.
Michael Brown [Sat, 30 Jun 2007 14:56:00 +0000 (15:56 +0100)]
Implement the two UNDI API calls used by RIS.

13 years agoImplement the "overwrite TFTP filename" Microsoft RIS bug workaround.
Michael Brown [Sat, 30 Jun 2007 14:13:18 +0000 (15:13 +0100)]
Implement the "overwrite TFTP filename" Microsoft RIS bug workaround.

13 years agoSeparate out pxe_start_nbp() from pxe_image.c into pxe_call.c
Michael Brown [Sat, 30 Jun 2007 13:56:35 +0000 (14:56 +0100)]
Separate out pxe_start_nbp() from pxe_image.c into pxe_call.c

Implement PXENV_RESTART_TFTP.

13 years agoDon't build option-overloaded packets; they just confuse people (ISC
Michael Brown [Sat, 30 Jun 2007 00:32:53 +0000 (01:32 +0100)]
Don't build option-overloaded packets; they just confuse people (ISC
DHCPD and Windows RIS in particular).

13 years agoI really, really screwed up the semantics of BufferSize and BufferLimit.
Michael Brown [Fri, 29 Jun 2007 19:16:30 +0000 (20:16 +0100)]
I really, really screwed up the semantics of BufferSize and BufferLimit.

13 years agoWindows RIS now gets as far as downloading NTLDR.
Michael Brown [Fri, 29 Jun 2007 00:42:59 +0000 (01:42 +0100)]
Windows RIS now gets as far as downloading NTLDR.

13 years agoInitial notes on RIS
Michael Brown [Thu, 28 Jun 2007 23:15:36 +0000 (00:15 +0100)]
Initial notes on RIS

13 years agoFix stack on return from PXE NBP so that we can return properly.
Michael Brown [Thu, 28 Jun 2007 22:37:49 +0000 (23:37 +0100)]
Fix stack on return from PXE NBP so that we can return properly.

13 years agoUse internal real-mode stack from non-returnable prefixes
Michael Brown [Thu, 28 Jun 2007 20:56:14 +0000 (21:56 +0100)]
Use internal real-mode stack from non-returnable prefixes

13 years agoRevert "Move stack to below 0x7c00; leaving it at the default location"
Michael Brown [Thu, 28 Jun 2007 20:50:36 +0000 (21:50 +0100)]
Revert "Move stack to below 0x7c00; leaving it at the default location"

This reverts commit 03ca71c38da9cc6df01ecd9ef16e97a0edb6a4e9.