Subject: Re: 425e and the boot prom
To: None <port-hp300@netbsd.org>
From: Michael Joosten <joost@c-lab.de>
List: port-hp300
Date: 02/20/2001 01:09:32
Michael Joosten wrote:

> As I said earlier (did I reply to the list ???):
>
> If the 425e also has the Apollo personality in its PROM, then a stupid serial link
> and kermit/whatever is sufficient. Just dump the PROM out, mangle it through a
> script (must dig a little in my stuff) and there you have your *.bin.
>
>

Found it... very simple and ugly Perl...
I used kermit on an old laptop and the 'D' command on an Apollo DN4500, logged that
part of the session and ran the following script (this was, I think, some perl 4.??)

open (OUT, ">out.bin");
$num = 0;

while (<>)
{
    chomp();
    next if /^$/;
    ($offset, $sh0, $sh1, $sh2,$sh3, $sh4, $sh5, $sh6, $sh7) = split();
    $sixteenbytes =
pack("n8",hex($sh0),hex($sh1),hex($sh2),hex($sh3),hex($sh4),hex($sh5),hex($sh6),hex($sh7));

    $num = syswrite (OUT,$sixteenbytes,16);
}