network boot

Eric Norum eric.norum at usask.ca
Wed Sep 26 14:42:54 UTC 2001


Davide Del Vento wrote:
> 
> Hi all.
> I would like to configure RTMES (on a PC104 and with a 3c509 Ethernet card)
> to obtain a boot via network (NFS? FTP?). I found something on this archive,
> eg. the threads:
> 
> http://usa.oarcorp.com/rtems/maillistArchives/rtems-users/2001/april/msg00076.html
> http://usa.oarcorp.com/rtems/maillistArchives/rtems-users/2001/april/msg00065.html
> 
> but I miss something...
> Could someone give me some suggestions?

Chris is the expert on this, but I'll throw in my $0.02 anyhow.

I use etherboot to boot my PC targets.  I picked up the bootstrap PROM
image from http://www.rom-o-matic.net/.  Here's the script I use to
produce a netboot image from the xxxxxx.exe produced by the RTEMS
application makefiles.

=====================================
#!/bin/sh

set -e

case "$#" in
	1)	;;
	*)	echo "Usage: $0 file.exe" >&2 ; exit 1 ;;
esac
n=`basename "$1" .exe`

code=2
trap 'rm -f /tmp/jnk$$.bin ; exit $code' 0 1 2 3

i386-rtems-objcopy -O binary "$1" /tmp/jnk$$.bin
/opt/rtems/i386-rtems/pc386/build-tools/bin2boot -v "$n.bt" 0x00097E00
/opt/rtems/i386-rtems/pc386/lib/start16.bin 0x00097C00 0 /tmp/jnk$$.bin
0x00100000 0

code=0
=====================================

I put the resulting xxxxxx.bt image on my TFTP server.  The PC starts
up, gets its IP information from my DHCP server and downloads the
executable using TFTP.
-- 
Eric Norum                                 eric.norum at usask.ca
Department of Electrical Engineering       Phone: (306) 966-5394
University of Saskatchewan                 FAX:   (306) 966-5407
Saskatoon, Canada.



More information about the users mailing list