linux on vw540 with 1.0006 PROM
OK, I know this is probably an exercise in futility (given SGI's apparent lack of interest in seeing Linux on these machines) but I'm trying my darndest to get linux up on a couple of 540's. I finally did get the kernel loaded after working around a PROM bug that causes arclx.exe to lock up on boot.
I've enclosed the patch below. You can get a binary from
http://www.lcse.umn.edu/~adi/visws/
Also there are the kernel config files I used. Apparently something in 2.2.12 breaks on the visws, so I'm using 2.2.10+visws.2210.28jul99.patch .
The machine is up now, but it seems to have some "issues"; mostly I've noticed problems with device drivers (loading floppy.o locked up the machine once; mounting a CD-ROM locked it up for a good 5 seconds, etc). I haven't really pounded on the machine yet, though.
arclib/arc.c +9 -1
@@ -177,11 +177,18 @@return FVector->Close (FileID); }LONG ArcRead (ULONG FileID,VOID *Buffer,ULONG N ,ULONG *Count) { -return FVector->Read (FileID, Buffer,N , Count); +/* XXX adi on our 540's with firmware version 1.006, passing a NULL +* to Read blows up. Thus this workaround. +*/ +LONG retval; +ULONG mycount; + retval = FVector->Read (FileID, Buffer,N , &mycount); +if (Count) + *Count = mycount; +return retval; }
loadlx/arclx.c +1 -1
@@ -321,7 +322,7 @@ _start(LONG argc, CHAR *argv[], CHAR *envp[]) { /* Print identification */ - printf(ANSI_CLEAR "\nARC Linux unified loader, 21jul99\n\n"); + printf(ANSI_CLEAR "\nARC Linux unified loader, 13jan2000\n\n");InitMalloc ();
loadlx/io.c +6 -0
@@ -289,6 +289,8 @@LONG status;ULONG nb =strlen (partition) +strlen (filename);CHAR *path = (CHAR *)malloc (nb); + +printf ("arc_file_open\n" );if (path ==NULL ) {Fatal ("Malloc of %d for %s and %s failed\n" , nb, partition, filename);
@@ -318,6 +320,7 @@if (status !=ESUCCESS ) {Fatal ("Read of 0x%x bytes at 0x%x failed\n" , nb, off); } +printf ("ARC read finished\n" ); }
@@ -329,10 +332,13 @@ino_t file_inode;errcode_t status; +printf ("file_open: %s %s\n" , partition, filename);initialize_ext2_error_table (); +printf ("calling ext2open...\n" ); status =ext2fs_open (partition,0 ,0 ,0 , arc_io_manager, &fs);if (status !=0 ) { +printf ("ext2open failed, trying arc_file_open\n" );/* Maybe ARC can read it directly (FAT floppy, etc) */ return arc_file_open (partition, filename); }
Signature · 2 lines
Andy Isaacson http://web.mr-happy.com/~adisaacs/ Fight Spam, join CAUCE: [email protected] [email protected] [email protected] www.cauce.org