Re: Error tftp'ing kernel 2.2.12
Andreas Jaehnigen wrote:
> Hi all...
>
> I've got a strange problem here:
> When I start loading my kernel via TFTP (machine will be a diskless client),
> everything starts ok... After the last block, the machine just stops loading,
> but does NOT start the kernel. After five minutes (or so), it gives
> receive failed
> and finally boots up the kernel.
> [...]
>
> But: If I replace the 2.2.12 kernel image with a 2.0.35 one, to which I had
> apllied the Sparc patches, booting works as usual...
> And yes, I've gunzipped the kernel image and converted it to a.out ...
>
> The client is a Sparc clone with 64 megs RAM installed.
>
> Any clues????!!!!
>
> Thank you for everything!! :-)))) (in advance)
Pad the kernel file to get its size a multiple of 4 bytes ;-)
Some old boot PROMs seem to get tftp data by block of 4 bytes.
I ran into troubles many times before someone posted in this list discovered
this problem (many thanks to him).
Now every kernel provided by the boot-floppies package is processed through the
next statements:
size=`ls -l kernel | awk '{print $5}'`
rem=`expr \( 4 - $size % 4 \) % 4`
dd if=/dev/zero bs=1 count=$rem >> kernel
Hope this helps you.
--
Eric Delaunay | "La guerre justifie l'existence des militaires.
delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)
Reply to: