From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: srm upgrade 6.7 -> 7.0
Date: Fri, 31 Dec 1999 10:12:04 -0700 (MST) [thread overview]
Message-ID: <199912311712.KAA27470@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <0E6A4256E11CD2119E2F0000F802538C7AB058@COMWID01> from "Waibel Niki" at Dec 31, 99 09:33:50 am
Waibel Niki wrote:
>
>
> 1) get the latest firmware from
> ftp://ftp.digital.com/pub/DEC/Alpha/firmware/index.html
> (choose your machine on the left)
.....
>
> the next step is somehow a hack.
If you already booted Linux then you have various tools in stock.
For example you can use the following Perl program:
#!/usr/bin/perl
$bootfile = shift || die "A name of a boot file is required\n";
print chr(0) x (512-32); # fill most of a bootblock with nulls
# how many 512-bytes blocks;
$blocks = int (((stat $bootfile)[7] + 511) / 512);
$start_offset = 1; # block from which to load our file
$flag = 0; # always zero - so far
$mark = pack "Lx4Lx4Lx4Lx4", $blocks, $start_offset, $flag,
$blocks + $start_offset + $flag;
print $mark; # last 32 bytes of a bootblock
open BF, $bootfile || die "cannot read $bootfile: $!\n";
# dump all contents of a $bootfile on stdout
print @_ = <BF>;
exit 0;
The above is assuming that you are running this on a little-endian
machine (Alpha or x86) so values are "pack"'ed in the order we expect.
Otherwise adjust as needed. The program above can be made shorter,
but I wanted to keep it readable. :-)
I also assumed that by "determine the size of the firmware file,
divide by 512" you really wanted to know how many 512 byte blocks
you really want to load later; with the last one not necessary full.
Say you called it 'write_boot'; then you are using it like this
write_boot as255_v8_1.exe > /dev/fd0
and, accordingly to the posted recipe, you are done.
> maybe there is a better way to do it - pls inform me!
See above. :-)
Michal
next prev parent reply other threads:[~1999-12-31 17:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-31 8:33 srm upgrade 6.7 -> 7.0 Waibel Niki
1999-12-31 15:29 ` janina
1999-12-31 17:12 ` Michal Jaegermann [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-01-03 7:45 Waibel Niki
2000-01-03 18:19 ` janina
2000-01-04 12:58 Waibel Niki
2000-01-04 16:14 ` Janina Sajka
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox