<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Still not having success with SM P4DPE</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Linuxbios.strip is 49152 bytes, and eepro100.elf is 22368.  So that gives a total of 71520...larger than 65536.  So one of them is too big.  Any idea which?</FONT></P>

<P><FONT SIZE=2>-Steve</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: steven james</FONT>
<BR><FONT SIZE=2>To: Atherton, Stephen</FONT>
<BR><FONT SIZE=2>Cc: 'linuxbios@clustermatic.org'</FONT>
<BR><FONT SIZE=2>Sent: 4/11/03 9:25 AM</FONT>
<BR><FONT SIZE=2>Subject: Re: Still not having success with SM P4DPE</FONT>
</P>

<P><FONT SIZE=2>Greetings,</FONT>
</P>

<P><FONT SIZE=2>It looks like the fallback image is being built wrong. </FONT>
</P>

<P><FONT SIZE=2>This can be hacked together manually. linuxbios.strip should be the</FONT>
<BR><FONT SIZE=2>actual</FONT>
<BR><FONT SIZE=2>LinuxBIOS code. The objective is to assemble a 64K (exactly) block</FONT>
<BR><FONT SIZE=2>containing:</FONT>
</P>

<P><FONT SIZE=2>1. etherboot</FONT>
<BR><FONT SIZE=2>2. null padding (can be generated with dd if=/dev/zero)</FONT>
<BR><FONT SIZE=2>3. linuxbios.strip.</FONT>
</P>

<P><FONT SIZE=2>I just use calctool to figure out how much padding to use and</FONT>
<BR><FONT SIZE=2>cat eepro100.elf pad linuxbios.strip >fallback.bin</FONT>
</P>

<P><FONT SIZE=2>the 64K fallback.bin can then be appended to the primary image to get</FONT>
<BR><FONT SIZE=2>the</FONT>
<BR><FONT SIZE=2>full rom image. </FONT>
</P>

<P><FONT SIZE=2>That's a little ugly, but it should get the job done.</FONT>
</P>

<P><FONT SIZE=2>Just as a final verification, in linuxbios.map, ZKERNEL_START for the</FONT>
<BR><FONT SIZE=2>fallback image should be 0xffff0000. That is whjere it will look for the</FONT>
<BR><FONT SIZE=2>fallback etherboot. Also, it will ljmp to ZKERNEL_START-8 to transfer</FONT>
<BR><FONT SIZE=2>control to the primary image. I'm slowly trying to disentangle that on</FONT>
<BR><FONT SIZE=2>the</FONT>
<BR><FONT SIZE=2>boards I have. Unfortunatly, I don't have a P4DPE.</FONT>
</P>

<P><FONT SIZE=2>G'day,</FONT>
<BR><FONT SIZE=2>sjames</FONT>
</P>
<BR>

<P><FONT SIZE=2>On Fri, 11 Apr 2003, Atherton, Stephen wrote:</FONT>
</P>

<P><FONT SIZE=2>> Ron and James, thanks for clueing me in on the fallback image stuff.</FONT>
<BR><FONT SIZE=2>I'm</FONT>
<BR><FONT SIZE=2>> still not quite doing something right though, it seems.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> My config files are below.  I based these on the samples in</FONT>
<BR><FONT SIZE=2>> mainboard/supermicro/p4dpe.  The fallback image is 81k and contains</FONT>
<BR><FONT SIZE=2>the</FONT>
<BR><FONT SIZE=2>> etherboot payload...this doesn't seem right to me but I don't know</FONT>
<BR><FONT SIZE=2>what else</FONT>
<BR><FONT SIZE=2>> to do.  If I don't specify the etherboot payload, it tries to use</FONT>
<BR><FONT SIZE=2>vmlinux</FONT>
<BR><FONT SIZE=2>> which is much, much bigger.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> So I run the config script on both files, then go to the fallback/ and</FONT>
<BR><FONT SIZE=2>> primary/ directories and run make, and I get a primary romimage of</FONT>
<BR><FONT SIZE=2>458752</FONT>
<BR><FONT SIZE=2>> bytes and a fallback image of 81920 bytes.  That doesn't seem right.</FONT>
<BR><FONT SIZE=2>What</FONT>
<BR><FONT SIZE=2>> am I doing wrong?  Oh and though I was doubtful, I did do a "cat</FONT>
<BR><FONT SIZE=2>> primary/romimage fallback/romimage > finalimage" and burned the final</FONT>
<BR><FONT SIZE=2>image.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Also, from the looks of the makeprocess my two image files are</FONT>
<BR><FONT SIZE=2>basically the</FONT>
<BR><FONT SIZE=2>> same binary stuff but one has a lot of null padding.  They both</FONT>
<BR><FONT SIZE=2>contain the</FONT>
<BR><FONT SIZE=2>> eepro100 elf image and linuxbios.rom...</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Anyone see what is wrong with this picture?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -Steve</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> fallback.config --------------------------------------------</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> target ./fallback</FONT>
<BR><FONT SIZE=2>> mainboard supermicro/p4dpe</FONT>
<BR><FONT SIZE=2>> option USE_FALLBACK_IMAGE=1</FONT>
<BR><FONT SIZE=2>> option ROM_SIZE=524288</FONT>
<BR><FONT SIZE=2>> option ROM_IMAGE_SIZE=49152</FONT>
<BR><FONT SIZE=2>> option SERIAL_CONSOLE=1</FONT>
<BR><FONT SIZE=2>> option TTYS0_BAUD=9600</FONT>
<BR><FONT SIZE=2>> option TTYS0_BASE=0x3f8</FONT>
<BR><FONT SIZE=2>> option TTYS0_LCS=0x3</FONT>
<BR><FONT SIZE=2>> option DEFAULT_CONSOLE_LOGLEVEL=9</FONT>
<BR><FONT SIZE=2>> option MAXIMUM_CONSOLE_LOGLEVEL=6</FONT>
<BR><FONT SIZE=2>> option USE_ELF_BOOT=1</FONT>
<BR><FONT SIZE=2>> option USE_GENERIC_ROM=1</FONT>
<BR><FONT SIZE=2>> payload ../eepro100.elf</FONT>
<BR><FONT SIZE=2>> option CPU_CLOCK_MULTIPLIER=XEON_X8</FONT>
<BR><FONT SIZE=2>> option MAINBOARD_POWER_ON_AFTER_POWER_FAIL=MAINBOARD_POWER_ON</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> primary.config --------------------------------------------------</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> target primary</FONT>
<BR><FONT SIZE=2>> mainboard supermicro/p4dpe</FONT>
<BR><FONT SIZE=2>> linux /usr/src/linux-2.4.18-14</FONT>
<BR><FONT SIZE=2>> commandline root=/dev/hda2 console=ttyS0,9600 single</FONT>
<BR><FONT SIZE=2>> option USE_FALLBACK_IMAGE=0</FONT>
<BR><FONT SIZE=2>> option ROM_SIZE=524288</FONT>
<BR><FONT SIZE=2>> option ROM_IMAGE_SIZE=49152</FONT>
<BR><FONT SIZE=2>> option SERIAL_CONSOLE=1</FONT>
<BR><FONT SIZE=2>> option TTYS0_BAUD=9600</FONT>
<BR><FONT SIZE=2>> option TTYS0_BASE=0x3f8</FONT>
<BR><FONT SIZE=2>> option TTYS0_LCS=0x3</FONT>
<BR><FONT SIZE=2>> option DEFAULT_CONSOLE_LOGLEVEL=9</FONT>
<BR><FONT SIZE=2>> option MAXIMUM_CONSOLE_LOGLEVEL=8</FONT>
<BR><FONT SIZE=2>> option USE_ELF_BOOT=1</FONT>
<BR><FONT SIZE=2>> option BOOT_IDE=1</FONT>
<BR><FONT SIZE=2>> payload ../eepro100.elf</FONT>
<BR><FONT SIZE=2>> option CPU_CLOCK_MULTIPLIER=XEON_X8</FONT>
<BR><FONT SIZE=2>> option MAINBOARD_POWER_ON_AFTER_POWER_FAIL=MAINBOARD_POWER_ON</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>-------------------------steven james, director of research, linux labs</FONT>
<BR><FONT SIZE=2>... ........ ..... ....                    230 peachtree st nw ste 2701</FONT>
<BR><FONT SIZE=2>the original linux labs                             atlanta.ga.us 30303</FONT>
<BR><FONT SIZE=2>      -since 1995                              <A HREF="http://www.linuxlabs.com" TARGET="_blank">http://www.linuxlabs.com</A></FONT>
<BR><FONT SIZE=2>                                   office 404.577.7747 fax 404.577.7743</FONT>
<BR><FONT SIZE=2>-----------------------------------------------------------------------</FONT>
</P>

</BODY>
</HTML>