[Etherboot-discuss] etherboot file an exact multiple of 1432 bytes fails
Brought to you by:
marty_connor,
stefanhajnoczi
From: John L. <ja...@ho...> - 2007-05-21 22:29:52
|
Turned up on OpenBSD 4.1, the OpenBSD file "pxeboot" (Version 4.1) is 51552 bytes, = 35*1432, and fails. Fix it by adding a couple of bytes onto the end. On OpenBSD 4.0, the "pxeboot" file is 49724 bytes, = 34*1432 + 1016, and works. Console message on failure is Boot from (N)etwork or (Q)uit? Probing pci nic... [nforce2]nforce2: MAC Address 00:30:1B:38:DE:54, Searching for server (DHCP).... No IP address .. Me: 192.168.1.21, DHCP: 192.168.1.14, TFTP: 192.168.1.14 Loading 192.168.1.14:/pxeboot ...(PXE)........TFTP download complete, but Unable to load file. <sleep> <abort> Poking around the code, I suspect the tftp_block routine, which checks len < blocksize. Maybe that should be len <= blocksize? A crude guess, any way. --John _________________________________________________________________ Windows Live Hotmail. Now with better security, storage and features. www.newhotmail.ca?icid=WLHMENCA149 |