linux-mips
[Top] [All Lists]

SNI RM - booting from disk

To: linux-mips@linux-mips.org, debian-mips@lists.debian.org
Subject: SNI RM - booting from disk
From: Florian Lohoff <flo@rfc822.org>
Date: Mon, 13 Aug 2007 23:23:31 +0200
Cc: tsbogend@alpha.franken.de
Organization: rfc822 - pure communication
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.13 (2006-08-11)
Hi,
this is just a short announcement about a rough way to boot the SNI RM
series from disk. As Thomas Bogendoerfer found out the SNI RM needs
an additional "Volume Trailer" to the SGI Volhdr to find its partitions.

Last weekend we wrote a little program to generate a minimal Volume
Trailer and thus allow the Prom to find the partitions and volume
header.

Also we modified arcboot to be able to boot on the SNI machines. This
contains a very crude hack to find the prom_seek entry point which is
not officially exported by the SNI Prom. 

We successfully bootet an RM200-225, RM200-C40 and an RM400-220.



Here is the tool to write the SNI Volume Trailer. Beware - this writes
to your disk and probably even within your last partition. The Volume
Trailer is on the last cylinder the last 2 tracks so you better shrink
your last partition by one cylinder. To successfully boot/write a
Volume Trailer all partitions need to start on a cylinder boundary.

Currently it is hardcoded to /dev/sda. It trys to find the Disk Geometry
with SCSI Mode Page and READ_CAPACITY calls and parses the SGI Volhdr
into the Volume Trailer.

This should be integrated into fdisk and/or parted which both have
bugs in creating cylinder boundary partitions.

http://silicon-verl.de/home/flo/projects/snirm/software/snitrail.20070813.tgz



Here is the modified arcboot. Its not well integrated yet and just a
hack get it to work. Build the arcboot code with SUBARCH=SNIRM
and store the resulting ext2load with dvhtool into your volume header.
You should strip the filename as the prom fails to get more than 20
chars in the bootfile variable (remember the dkncr(0,0,X)).

Currently the OSPartition is hardcoded to "dkncr(0,0,1)" as the SNI Prom
lacks the option. Also the OSOption is missing thus the arcboot.conf
label is hardcoded to "linux".

http://silicon-verl.de/home/flo/projects/snirm/software/arcboot-0.3.8.8.snirm.20070813.tgz

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-171-2280134
        Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>
  • SNI RM - booting from disk, Florian Lohoff <=