Skip to contentSkip to conversation

Introduction, errors in devfs and ARC, success: 2.4.16 on R4K I2, oops with 2.5.1

DISCUSSION [email protected] 2 participants 2 messages Dec 30, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

Hi there,

as this is my first post, i'd like to introduce myself, although it may be a bit off-topic ;-) My pseudonym is FAKE, i'm from germany and proud owner of an Indigo2 R4k. I just found enough time (thanks, santa) to fire up linux on it. My System is:

Indigo2, ~160MB RAM, GR3-XZ Gfx Board, R4400 proc.

this is my /dev/cpuinfo:
system type : SGI Indigo2
processor : 0
cpu model : R4000SC V5.0 FPU V0.0
BogoMIPS : 74.75
byteorder : big endian
wait instruction : no
microsecond timers : yes
extra interrupt vector : no
hardware watchpoint : yes
VCED exceptions : 23868
VCEI exceptions : 32852

(the PROM hinv says i have a R4400 and a FPU ... is cpuinfo right?)

Anyways, i want to contribute, and so i got the 2.5.1 kernel from oss.sgi.com via cvs and compiled it. it boots, but exactly when the scsi-driver is about to add the disk it oopses and i get the message

<1>Unable to handle kernel paging request at virtual address 00000000, epc == 880db32c, ra == 880 db270
Oops in fault.c:do_page_fault, line 204:
.... ( insert useless stack trace here, becuz of non-saved system map *dough*)

sorry for not saving the System.map >_< i'll check in more deeply if i get oopses in future.

then i compiled 2.4.14, it worked, but somehow debian didn't like it, but that's not the kernel's fault. Anyways, now i compiled the 2.4.16 and everything just works fine - except devfs and the ARC console. Devfsd says:

Error getting protocol revision Inappropriate ioctl for device

and the ARC console (one thing i especially want to get to work) behaves strange:
As the kernel starts writing output the PROM console adds black lines to the screen, whilest the data from before the kernel started output (boot linux console=ttyS0... etc) nicely scrolls UP........ what to do? i tried to find information about the PROM on oss.sgi.com and toolbox.sgi.com, but both seem _DAMN_ outdated (the newest "news" are from 2000 or something) so i'm stuck....

i would enjoy helping, but i'm still learning, as i am very new to the mips platform... i have some experiences with linux/the kernel in general on the intel32 platform.

well, plz reply, so i can start coding ^-^

greetz & thanx in advance

FAKE

#1 lore raw
Quoted 2 lines · On Sun, Dec 30, 2001 at 03:16:58AM +0100, [email protected] wrote:

as this is my first post, i'd like to introduce myself, although it may be a bit off-topic ;-) My pseudonym is FAKE, i'm from germany

People here tend to have the courage of using their real name ;-)

Quoted 9 lines

and proud owner of an Indigo2 R4k. I just found enough time (thanks, santa) to fire up linux on it. My System is:

Indigo2, ~160MB RAM, GR3-XZ Gfx Board, R4400 proc.

this is my /dev/cpuinfo:
system type : SGI Indigo2
processor : 0
cpu model : R4000SC V5.0 FPU V0.0

Interesting. Thanks for reporting.

Quoted 10 lines

BogoMIPS : 74.75
byteorder : big endian
wait instruction : no
microsecond timers : yes
extra interrupt vector : no
hardware watchpoint : yes
VCED exceptions : 23868
VCEI exceptions : 32852

(the PROM hinv says i have a R4400 and a FPU ... is cpuinfo right?)

Yes and no. R4000 and R4400 are basically the same thing aside of the R4400 having less (that is different ;-) bugs, the version number and the R4400 having twice as much cache. In other words the marketing droids were in need of a new CPU type back in time, I guess ;-)

Quoted 8 lines

Anyways, i want to contribute, and so i got the 2.5.1 kernel from oss.sgi.com via cvs and compiled it. it boots, but exactly when the scsi-driver is about to add the disk it oopses and i get the message

<1>Unable to handle kernel paging request at virtual address 00000000, epc == 880db32c, ra == 880 db270
Oops in fault.c:do_page_fault, line 204:
.... ( insert useless stack trace here, becuz of non-saved system map *dough*)

That's almost as expected, unfortunately. 2.5.1 changes blockdevice I/O entirely and our SCSI drivers don't yet reflect that.

Quoted 2 lines

sorry for not saving the System.map >_< i'll check in more deeply if i get oopses in future.

An unstripped vmlinux ELF binary has all the information of System.map in it.

Quoted 6 lines

then i compiled 2.4.14, it worked, but somehow debian didn't like it, but that's not the kernel's fault. Anyways, now i compiled the 2.4.16 and everything just works fine - except devfs and the ARC console. Devfsd says:

Error getting protocol revision Inappropriate ioctl for device

Which ioctl / device?

Most people on MIPS seem to try to get away without devfs so it's heavily untested. This one should be easy to fix though as devfs doesn't have alot of portability problems.

Quoted 7 lines

and the ARC console (one thing i especially want to get to work) behaves
strange: As the kernel starts writing output the PROM console adds black lines to the screen, whilest the data from before the kernel started output (boot linux console=ttyS0... etc) nicely scrolls UP........ what to do? i tried to find information about the PROM on oss.sgi.com and toolbox.sgi.com, but both seem _DAMN_ outdated (the newest "news" are from 2000 or something) so i'm stuck....

The firmware is not exactly well documented. The closest document is a MS Word document which used to available from (surprise) at
http://www.microsoft.com/hwdev/download/respec/riscspec.zip seems it's no longer available. The document is (C) by MIPS, so I hope it's still available somewhere on the net. Anyway, SGI's ARCS implementation violates the ARC specification quite badly so this is just a rough guideline.

Yes, we're not the kings of documentation :-)

Quoted 2 lines

i would enjoy helping, but i'm still learning, as i am very new to the mips platform...

Welcome to hell. We'll do everything to make this a warm place during your stay ;-)

Ralf