Subject: Re: Worked around: BBBB fails on R140
To: None <port-arm26@netbsd.org>
From: Kjetil B. Thomassen <kjetil@thomassen.priv.no>
List: port-arm26
Date: 11/26/2000 02:07:28
On Sun 26 Nov, Ben Harris wrote:
> On Sat, 25 Nov 2000, Kjetil B. Thomassen wrote:
> 
> > Anyway, my R140 is now operational with Access+, and I have fetched the
> > BBBB program from the July snapshot on ftp.netbsd.org.
> 
> I'd recommend using a newer one.  You can get the current version from
> <URL:http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/
>  syssrc/sys/arch/arm26/stand/BBBB/BBBB>
> (once the cvsweb server catches up with cvs.netbsd.org -- till then try
> BBBB,fd1 instead).

OK, I will try that tomrrow (or rather later today).

> > *bbbb @.netbsd
> > >> BBBB, Revision 0.31
> > Machine has 128 pages of 32K each.  Total RAM: 4Mb
> > Lowering HIMEM: &A8000 -> &10000
> > --------/-------/-------/-------
> > SSSSmmf...a***.S0h.******...aaaa
> > ..*.*.*aa+******aa.*......aaaaaa
> > aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> > aammhmmmmmmmmmmmmmmmmmmmmmmmmmmm
> 
> That memory layout looks as if you tried to run BBBB from a running RISC
> OS system.  Owing to the way the BBBB loads the kernel, it works best if
> started from a Supervisor prompt on a fresh boot.  Start up the system
> holding down keypad-* and maybe shift if you've got it configured to
> autoboot.  Alternativly *Configure Language 0 and *Configure NoBoot.

OK, now it worked, but as I haven't configured a filesystem for it yet,
I didn't get a root mounted.

> For an explanation of BBBB's memory map, see
> <URL:http://mail-index.netbsd.org/port-arm26/2000/05/02/0001.html>.

OK.

> > BASIC -quit "Share::KjetilHP1.$.NetBSD.arm26.Test.bbbb" @.netbsd
> > Booting @.netbsd (howto = 0x0)
> > 998192Unknown or missing variable
> 
> This error message is caused by a bug in the code that reports that the
> memory layout isn't as BBBB would like it.

OK, I see.

> > When running it outside of a taskwindow, in half the cases, it starts
> > spinning the bar, and in half the cases it does not.
> 
> The prospect of starting BBBB in a taskwindow fills me with horror.  That
> doesn't mean that it shouldn't work, but I don't think it will yet.

No, you're right, it doesn't.

I also had to configure the screen mode to an 8-bit one. In a 4-bit one,
it told me that it was lower than 8-bit and just hung. The modes I have
been using are mode 35 and 36.

Dmesg is something like:

Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5G (FOURMEG) #11: Fri Oct 13 00:18:40 BST 2000
    
total memory = 4096 KB
avail memory = 2048 KB
using 16 buffers containing 288 KB of memory
cpu0 (root): ARM3 (rev. 0), cache enabled
iobus0 (root)
ioc0 at iobus0 base 0x200000
iic0 at ioc0
rtc0 at iic0 addr 0xa0: PCF8583
arckbd0 at ioc0 bank 0 offset 0x04
arckbd0: interrupting at IRQ 15 (rx) and IRQ 14 (tx)
arcwskbd0 at arckbd0
wskbd0 at arcwskbd0: console keyboard
arcwsmouse0 at arckbd0
wsmouse0 at arcwsmouse0
unixbp0 at ioc0 bank 6: not yet used
podulebus0 at ioc0 bank 4
ea0 at podulebus0 slot 1: address 00:02:07:02:70:80, SEEQ 8005
IDE Interface (000c:0022) at podulebus0 slot 2 not configured
podulebus0:3: ROM is not 8 bits wide; ignoring it
podule (a807:5929) at podulebus0 slot 3 not configured
arcvideo0 (root): VSYNC interrupts at IRQ 3
wsdisplay0 at arcvideo0: console (arccons, dumb emulation), using wskbd0
ioc0: 100 Hz clock interrupting at IRQ 5
ioc0: 100 Hz statclock interrupting at IRQ 6
arckbd0: layout 1
cpu0: 10000 loops in 1668 microseconds, delay factor = 6
root device:

This was as far as I got as I don't have any boxes that respond to mount
requests. I do have an ISDN router set up as a DHCP server, but nothing
else.

BTW, that reminds me. Is it possible to have the ISDN route provide the
IP address and then mount the root and swap from my NetBSD/sparc 1.4
box?
Also, are there any particular things to your setup of booting NetBSD
over the network? I didn't find any information that was relevant to
either arm32 or arm26.

A couple of other things about the probe above:
1) The internal ST-506 drive does not seem to have been found.
2) The IDE Interface in slot 2 is an HCCS one.
3) The card in slot 3 is an AKA-30 SCSI card with a PowerROM from Partis
   Computing. It does not seem like it works on pre-Risc PC computers,
   so this is something I will ask Partis about.

The good news here is that the R140 seems to act well, and now I need to
get the filesystems exported from my NetBSD/sparc box, and possibly
compile my own kernel (the cross-compiler is building as I speak).

I am also downloading the latest arm26 binary snapshot, and will try to
get this working tomorrow.

Thanks for your help so far!

Kjetil B.
mailto:kjetil@thomassen.priv.no
http://www.thomassen.priv.no/