1 Subject: Look Mom, no PROM burner! (eepro100b flashing instructions) :-)
2 Date: Sun, 23 Jan 2000 01:53:08 -0500
3 x-sender: mdc%thinguin.org@cdi.entity.com
4 x-mailer: Claris Emailer 2.0v3, January 22, 1998
5 From: Marty Connor <mdc@thinguin.org>
6 To: "Netboot List" <netboot@baghira.han.de>
8 Content-Type: text/plain; charset="US-ASCII"
9 Message-ID: <1263512144-341319205@entity.com>
11 Continuing the Etherboot World Domination theme, I noticed that there was
12 a PCI ethernet card on my bookshelf that still contained the original
13 vendor's code in its flash memory. The card virtually cried out to be
14 flashed with Etherboot 4.4.1. :-)
16 After having figured out how to flash the 3C905C last week, and owing to
17 the fact that the temperature here in Cambridge, Massachusetts (USA) has
18 dropped well below freezing, I decided to explore the possibility of
19 flashing the Intel eepro100b that was sitting on my bookcase.
21 After determining that it was unlikely that one could flash the chip in
22 user mode under linux like the 3C509C, I turned to other options. (the
23 reason is that the flash is memory mapped to a place that causes a core
24 dump if accessed. i suppose one could to patch the kernel to flash the
25 card, or add a linux device driver, but... :-)
27 By the way, If you are ever looking for Linux utilities for Ethernet
28 cards, you may want to check out:
30 http://cesdis.gsfc.nasa.gov/linux/diag/
32 which is a treasure trove of tools for manipulating and testing Ethernet
33 cards, all with source, courtesy of Donald Becker.
35 At this point, I felt it was time to make a virtual trip to the Intel
36 site (http://www.intel.com/), and search for utilities that might work
37 with the eepro100B. I found two candidates: FUTIL and FBOOT. I
38 downloaded, decompressed, and transferred them to a DOS formatted floppy.
39 Next I determined (after a few tries) that F8 will let me get to DOS
40 instead of booting windows. (I tend to avoid Windows when I can).
42 I first tried FUTIL.EXE. No good. It told me it didn't recognize the
43 flash on my eepro100B. how unfortunate. and I had such hopes :-)
45 Next I tested FBOOT.EXE (available at
46 http://support.intel.com/support/network/adapter/pro100/100PBOOT.htm)
47 This program did in fact recognize my eepro100b card.
49 The thing about FBOOT however, is that it thinks it only can load certain
50 files. I of course needed to load an Etherboot image. It appeared to
51 have no option for doing that. Things looked grim.
53 Then I noticed that FBOOT was kind enough to do the following dialog:
55 Select Option (U)pdate or (R)estore: U
57 I chose Update and it then offered to back up my flash rom for later
60 Create Restore Image (Y)es or (N)o: Y
62 I chose "Y" and it proceeded to write a file of my flash memory, which
63 contained the Intel code.
65 Writing FLASH image to file... 100%
67 It then erased the device:
69 Erasing FLASH Device... 100%
71 and then programmed it with fresh code (stored inside the program, no
74 Programming FLASH Device... 100%
76 So now I had a backup of the Intel boot code in a file strangely called:
80 Hmmmm, interesting name. The MAC address of the card is 09902794FC60.
81 They just name the file with the last 4 octets of the MAC address and
82 .FLS. The file is exactly 65536 bytes, which would make sense for a 64K
85 Then I got to thinking, I wonder how carefully the "restore" part of
86 FBOOT looks at what it is loading? What if I took an Etherboot .rom
87 file, padded it with 48K of 0xFFs and named it 2794FC60.FLS. What if I
88 then told FBOOT.EXE to "restore" that?
90 Well, I guess by now, you know it worked :-)
92 The card came up with the delightful Etherboot banner, Did DHCP, tftp,
95 The only unfortunate part is that you need to do this under DOS because
96 you seem to need to be in real mode to program the card. Oh well,
97 sacrifices have to be made :-)
99 So, in summary, to prepare Etherboot image for flashing into the Intel
100 EEPRO100B card with FBOOT, you need to first make an eepro100.rom file,
103 Then, see how large it is, with an "ls -l eepro100.rom". the answer will
104 probably be 16,384. You need to pad it with hex FFs to make it 64K for
105 FBOOT. I used the following two lines to create the flash image file.
107 $ perl -e 'print "\xFF" x 49152' > 48kpad.bin
108 $ cat eepro100.rom 48kpad.bin > 2794FC60.FLS
110 Next write it to a DOS Floppy:
112 $ mount -t msdos /dev/fd0 /mnt/floppy
113 $ cp 2794FC60.FLS /mnt/floppy
116 Now you need to get to DOS. You could actually use a bootable DOS floppy
117 with FBOOT.EXE and 2794FC60.FLS on it. I started a Windows box and hit
118 F8 right before Windows started, and chose option 5, "Command Prompt
119 Only", which gives you DOS. This program can't run in a DOS window under
120 Windows or anything like that. You need to be in real DOS.
122 Next it's time to run FBOOT. It will detect your ethernet card(s), ask
123 you which one you want to program, and let you choose it from a menu.
127 Select Option (U)pdate or (R)estore: R
128 Erasing FLASH Device... 100%
129 Writing FLASH image from file... 100%
131 Time to reboot and let Etherboot take over.
133 So there you go, a way to make Intel EEPRO100Bs play nicely with
134 Etherboot. Maybe we should put these instructions in the Etherboot
135 contrib directory so people who have eepro100b cards will be able to
136 avoid 3C905C envy :-)
138 I hope this helps a few people out.
145 Name: Martin D. Connor
146 US Mail: Entity Cyber, Inc.; P.O. Box 391827; Cambridge, MA 02139; USA
147 Voice: (617) 491-6935, Fax: (617) 491-7046
148 Email: mdc@thinguin.org
149 Web: http://www.thinguin.org/