1d7974182e
Overwrite the device descriptor's IRQ number with whatever the legacy driver's probe() routine fills in in nic->irqno. This is so that non-interrupt-capable legacy drivers which set nic->irqno=0 will end up reporting IRQ#0 via PXENV_UNDI_GET_INFORMATION; this in turn means that the calling PXE NBP will (should) hook the timer interrupt, and everything will sort of work.
Michael Brown2007-12-15 19:32:32 +00:00
bd2607305c
Correct e1000 interrupt routine to enable on 1 disable on 0. duh.
Marty Connor2007-12-13 11:20:45 -05:00
1a867bfb39
Remove *_fill_nic() calls, and directly set nic->ioaddr and nic->irqno .
Marty Connor2007-12-13 11:08:40 -05:00
9747c1a486
Remove the obsolete pre-aBFT AoE boot table.
Michael Brown2007-12-12 14:32:02 +00:00
3ab571006e
Yet another attempt to autodetect an appropriate "echo -e".
Michael Brown2007-12-07 14:25:02 -06:00
27b414da81
Ignore .echocheck internal housekeeping file.
Michael Brown2007-12-08 00:51:24 +00:00
a8bddfe153
Another (hopefully more robust) attempt to find a usable substitute for "echo -e" on the host system.
Michael Brown2007-12-08 00:50:57 +00:00
2c7a9e803c
Remove the (unused) option to override _prefix_link_addr, _textdata_link_addr, _load_addr and _max_align in the linker scripts. A bug in some versions of ld causes segfaults if the DEFINED() macro is used in a linker script *and* the -Map option to ld is present.
Michael Brown2007-12-07 01:34:11 -06:00
cf895a8c7c
Avoid Makefile syntax that requires make >= 3.81.
Michael Brown2007-12-07 04:14:06 +00:00
3b58fc0baf
Try to fix echo-detection to work on all systems that provide any suitable "echo -e" substitute.
Michael Brown2007-12-07 03:35:32 +00:00
1949641d10
Fix compiler warnings that appear only on OpenBSD.
Michael Brown2007-12-06 14:16:46 -06:00
798f7f6b8e
Kill off some warnings-problematic debug statements in ndp.c; the code is non-functional anyway.
Michael Brown2007-12-07 01:51:08 +00:00
6b0e147e0d
Don't complain when callers provide too-short buffers for PXENV_GET_CACHED_INFO. NTLDR does this.
Michael Brown2007-12-07 01:06:37 +00:00
f770744ee0
Quick hack to be able to accept transfers from servers that don't supply options.
Michael Brown2007-11-25 16:06:29 +00:00
7f1518b236
Merge branch 'mdc-working' of ssh://git.etherboot.org//pub/scm/people/mdc/gpxe
Marty Connor2007-11-23 21:54:26 -05:00
838ecba131
Provide individually cached constructed copies of DHCP packets via PXENV_GET_CACHED_INFO. If we dont do this, Altiris' NBP screws up; it relies on being able to grab pointers to each of the three packets and then read them at will later.
Michael Brown2007-11-22 04:43:11 +00:00
3a2473f123
Do not fill in the BufferLimit field in struct s_PXENV_GET_CACHED_INFO, because this field doesn't exist in earlier versions of the PXE spec, and some callers don't allocate space for it.
Michael Brown2007-11-22 00:31:21 +00:00
b3abf25e3c
Allow DHCP server to instruct gPXE to ignore ProxyDHCP (which will also avoid waiting for ProxyDHCP offers).
Michael Brown2007-11-21 22:10:04 +00:00
83c5a37aae
Added netdev_nullify to natsemi_remove()
Marty Connor2007-11-21 10:33:51 -05:00
fb809da2df
Remove some assumptions about DHCP obtaining only a single options block.
Michael Brown2007-11-21 04:48:18 +00:00
8d18338ae7
Add PXE-required DHCP options to DHCPDISCOVER and DHCPREQUEST packets.
Michael Brown2007-11-21 03:57:30 +00:00
26f3a09ccf
Add UUID to DHCP request as option 97 (if available).
Michael Brown2007-11-21 03:29:53 +00:00
2d60a3963f
Fixed receive instability by not enabling interrupts. duh.
Marty Connor2007-11-20 21:33:42 -05:00
899f5b8ab2
Added definition of a UUID and uuid_ntoa() (for debugging), and implemented smbios_get_uuid().
Michael Brown2007-11-21 02:27:07 +00:00
68c438954d
Update SMBIOS internal API to be easier to use, and not to require potentially exorbitant amounts of stack space.
Michael Brown2007-11-21 01:58:27 +00:00
645a752bc2
This version now transmits and receives.
Marty Connor2007-11-20 16:23:12 -05:00
8973caa1e6
Autonegotiation fixes. NIC now autonegotiates to whatever the switch supports.
Marty Connor2007-11-20 12:06:22 -05:00
e41550b0ba
A version of the new e1000 driver that transmits.
Marty Connor2007-11-20 10:23:32 -05:00
6855c357a5
Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown2007-11-19 20:14:49 +00:00
a1e243d504
Add bin/pci_VVVV_DDDD target to allow building ROM images without needing to know the gPXE internal ROM name.
Michael Brown2007-11-19 20:14:20 +00:00
e21391d7b5
Add e1000 directory to build, since the driver compiles cleanly.
Marty Connor2007-11-18 10:57:20 -05:00
8b0d86914b
Rename e1000_main.c to e1000.c to so we can type 'make bin/e1000.dsk' instead of 'make bin/e1000_main.dsk'
Marty Connor2007-11-18 10:54:42 -05:00
048a234dce
Add errfile definition for new e1000.c
Marty Connor2007-11-18 10:45:20 -05:00
c194b0c4bf
Work around a bug in the OpenSolaris iSCSI target.
Michael Brown2007-11-05 13:29:05 +00:00
755cb8379d
Allow space for the kernel's real-mode .bss. Previously we weren't allowing any space for this, which makes it surprising that bzImage loading ever worked.
Michael Brown2007-11-04 04:27:38 +00:00
c482fef058
Add missing attribute(packed) to two structures.
Michael Brown2007-10-29 21:22:00 +00:00
82124ea688
Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown2007-10-29 17:22:27 +00:00
35ee7e4479
Ensure that empty e820 regions are skipped even at the end of the memory map. (We achieve this by setting CF on the last entry if it is zero-length; this avoids the need to look ahead to see at each entry if the *next* entry would be both the last entry and zero-length).
Michael Brown2007-10-10 20:12:25 +01:00
e445c2c07c
Ensure that empty e820 regions are skipped even at the end of the memory map. (We achieve this by setting CF on the last entry if it is zero-length; this avoids the need to look ahead to see at each entry if the *next* entry would be both the last entry and zero-length).
Michael Brown2007-10-10 20:12:25 +01:00
8069598a99
Add a missing PCI ID that is tested as working.
Michael Brown2007-10-10 02:07:18 +01:00
9ac0377fbb
Force a netdevice poll in net_tx() before attempting to transmit packet, to work around the problem whereby small TX rings get backed up because we haven't yet poll()ed for TX completions.
Michael Brown2007-10-04 14:46:56 +01:00
2303c45d65
Force a netdevice poll in net_tx() before attempting to transmit packet, to work around the problem whereby small TX rings get backed up because we haven't yet poll()ed for TX completions.
Michael Brown2007-10-04 14:46:56 +01:00
56550e400e
Redefine bzimage_exec_context::mem_limit to be the highest permissible byte, rather than the number of permissible bytes (i.e. subtract one from the value under the previous definition to get the value under the new definition).
Michael Brown2007-09-28 01:23:06 +01:00
14fb6ba189
Quick and very dirty hack to get r8169 driver working again, prior to any rewrite.
Michael Brown2007-09-26 17:58:51 +01:00
ed5ff61790
Standardise DBG_PRINTF()->DBG(), and remove custom definitions for DBG_PRINTF() and assert().
Michael Brown2007-09-26 17:38:36 +01:00
881dd8e102
Switch rm_ss and rm_sp back to being words; it'll make it less confusing to read the code.
Michael Brown2007-09-25 20:16:32 +01:00
42d96bcb07
Don't use the "rep ss movsb" trick to copy the RM stack to the PM stack; it breaks vmxassist.
Michael Brown2007-09-25 20:14:20 +01:00
0ed066bc50
rm_ss, rm_sp, and pm_esp don't need to be accessed from anywhere outside of librm.S.
Michael Brown2007-09-25 19:20:38 +01:00
b8a8eea850
Minor refactoring to eliminate duplication.
Michael Brown2007-09-25 19:06:38 +01:00
dec325fe43
Use full protected mode for access to high memory within prefix, to work around limitations in real-mode virtualisation support on Intel VT-capable chips.
Michael Brown2007-09-25 18:01:15 +01:00
44461b1854
Merge branch 'master' into 3leaf-delivery
Michael Brown2007-09-21 01:27:03 +01:00
1e677b2024
Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown2007-09-21 01:26:06 +01:00
5793dbe96f
Infinband requires longer link-layer addresses and headers than Ethernet.
Michael Brown2007-09-21 01:23:57 +01:00
2ee76d0c93
Added defines for Infiniband files (which can't be committed to the main tree yet, but reserving the error numbers now avoids problems later).
Michael Brown2007-09-21 01:19:04 +01:00
af303db75d
Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us to construct DHCP packets suitable for Infiniband.
Michael Brown2007-09-13 01:53:04 +01:00
9c264faa0c
Add const attribute to byte-swapping functions
Michael Brown2007-09-15 18:44:35 +01:00
7e3527a658
Don't get stuck in an infinite loop on negative integers!
Michael Brown2007-09-16 17:39:29 +01:00
f09173326c
Moved iobuf.h assertions outside the static inline functions, so that the assert message's file and line number gives some clue as to the real location of the problem.
Michael Brown2007-09-17 18:38:04 +01:00
0f60150c44
Reverted driver/net/mlx_ipoib to clean master state
Michael Brown2007-09-18 07:07:04 +01:00