From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15432 invoked from network); 31 Dec 1999 17:12:09 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 31 Dec 1999 17:12:09 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA20969 for ; Fri, 31 Dec 1999 12:12:08 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id KAA27470 for axp-list@redhat.com; Fri, 31 Dec 1999 10:12:05 -0700 From: Michal Jaegermann Message-Id: <199912311712.KAA27470@ellpspace.math.ualberta.ca> Subject: Re: srm upgrade 6.7 -> 7.0 To: axp-list@redhat.com Date: Fri, 31 Dec 1999 10:12:04 -0700 (MST) In-Reply-To: <0E6A4256E11CD2119E2F0000F802538C7AB058@COMWID01> from "Waibel Niki" at Dec 31, 99 09:33:50 am Content-Type: text 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 @_ = ; 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