Re: ARP interfering with Etherboot TFTP?

John Connett/ENG/UK/Plasmon <[email protected]> Mon, 06 Mar 2006 11:50:14 +0000
Newsgroups gmane.network.etherboot.devel
Message-ID <[email protected]>
Geert, Tim,

Many thanks for your replies.

Geert Stappers <[email protected]> wrote:
> I think Server and Intruder are the same computer.

Correct.  Beiden == skylon.devel.pcs == 10.4.2.152.

Timothy Legge <[email protected]> wrote:
> Please try 5.4.1.  There were a couple of small changes to osloader
> post 5.4.

I have just tried 5.4.1 with broadly similar results.  The failing
block was 10233 rather than 10873 in the earlier example.

I have included the changes I made to src/Config below.  All other
files were unmodified.

> BTW, how big is the file and how many blocks are expected?

    # ls -l kernel
    -r-xr-xr-x  1 root root 14169262 Feb 28 12:07 kernel

The tftp server is using a blocksize of 512 which gives 27674.3
blocks.  However, I seem to remember that the loader will stop short
of reading the full file, perhaps ignoring symbols or other data not
needed to run the kernel?

I'm prepared to accept that the server end is at fault (it's a locally
written perl script).  However, I took a quick look at the source of
atftpd and didn't notice any specific code to ignore and retry if an
ECONNREFUSED error was encountered on a recv(2).

Thanks again
--
John Connett


----------------------------------------------------------------------

--- Config.orig 2005-08-29 02:47:37.000000000 +0100
+++ Config      2006-03-06 10:38:55.000000000 +0000
@@ -295,14 +295,14 @@
 # CFLAGS+=     -DCONFIG_PCMCIA
 
 # For prompting and default on timeout
-CFLAGS+=       -DASK_BOOT=3 -DBOOT_FIRST=BOOT_NIC
+# CFLAGS+=     -DASK_BOOT=3 -DBOOT_FIRST=BOOT_NIC
 # If you would like to attempt to boot from other devices as well as
the network.
 # CFLAGS+=     -DBOOT_SECOND=BOOT_FLOPPY
 # CFLAGS+=     -DBOOT_THIRD=BOOT_DISK
 # CFLAGS+=     -DBOOT_INDEX=0
 
 # If you prefer the old style rotating bar progress display
-# CFLAGS+=     -DBAR_PROGRESS
+CFLAGS+=       -DBAR_PROGRESS
 
 # Show size indicator
 # CFLAGS+=     -DSIZEINDICATOR
@@ -316,7 +316,7 @@
 # This can be used to reject replies from servers other than the one
 # we want to give out addresses to us, but it will prevent Etherboot
 # from getting an IP lease until you have configured DHCPD correctly
-# CFLAGS+=     -DREQUIRE_VCI_ETHERBOOT
+CFLAGS+=       -DREQUIRE_VCI_ETHERBOOT
 
 # EXPERIMENTAL! Set DHCP_CLIENT_ID to create a Client Identifier (DHCP
 # option 61, see RFC2132 section 9.14) when Etherboot sends the DHCP
@@ -383,6 +383,7 @@
 # provide the information.  If you do not specify this option, then
 # DHCP offers that do not contain bootfiles will be ignored.
 # CFLAGS+=     -DDEFAULT_BOOTFILE=\"tftp:///tftpboot/kernel\"
+CFLAGS+=       -DDEFAULT_BOOTFILE=\"tftp:///kernel\"
 
 # Limit the delay on packet loss/congestion to a more bearable value.
See
 # description above.  If unset, do not limit the delay between resend.
@@ -393,12 +394,12 @@
 # CFLAGS+=     -DEXIT_IF_NO_OFFER
 
 # For a serial console, which can run in parallel with FIRMWARE console
-# CFLAGS+=     -DCONSOLE_DUAL -DCOMCONSOLE=0x3F8 -DCONSPEED=9600
+CFLAGS+=       -DCONSOLE_DUAL -DCOMCONSOLE=0x3F8 -DCONSPEED=19200
 
 # Enable tagged image, generic ELF, Multiboot ELF
 # or FreeBSD ELF/a.out boot image support
-CFLAGS+=       -DTAGGED_IMAGE -DELF_IMAGE
-# CFLAGS+=     -DAOUT_IMAGE -DIMAGE_MULTIBOOT -DIMAGE_FREEBSD
+# CFLAGS+=     -DTAGGED_IMAGE -DELF_IMAGE
+CFLAGS+=       -DAOUT_IMAGE -DELF_IMAGE -DIMAGE_MULTIBOOT
-DIMAGE_FREEBSD
 # CFLAGS+=     -DAOUT_IMAGE -DAOUT_LYNX_KDI
 # CFLAGS+=     -DCOFF_IMAGE 
 # CFLAGS+=     -DRAW_IMAGE





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642