Subject: NetBSD/arc status
To: None <jonathan@DSG.Stanford.EDU, soda@sra.co.jp>
From: Noriyuki Soda <soda@sra.co.jp>
List: port-mips
Date: 07/23/1998 19:06:33
Hi, I'm sorry to be late.
This is current status of NetBSD arc port.

Good news:
	- Now merged with (almost) -current. (based on Jul 17, 1998)

Bad news:
	- System hangs as soon as spl0() is called (I'm missing
	  something in merge process). Probably something is wrong
	  in trap() or somewhere, but I don't begin to find the error,
	  yet, because the time when I encountered this problem is
	  today. :-)
	- new wscons is not merged, yet. currently only COMCONSOLE
	  can be used. (I hope this is easy one)
	- only "M402COM" (NEC RISCstation) kernel configuration
	  can be compiled. (this is really easy one)

I've put the source code on the following URL.
	ftp://ftp.sra.co.jp/pub/os/NetBSD/misc/arc/netbsd-1.3f-1998-07-16.arc-0.5.2.tar.gz

Could anyone test that the patch included in the tar.gz doesn't break
existing pmax MIPS R4000 port ?
(file name of the path is "netbsd-1.3f-1998-07-16.patch" in the tar.gz)

btw, thanks nisimura-san for suggestion and providing bioscons code.

[kernel output of Jul 17, 1998 -current based kernel]
------------------------------------------------------------------------
Copyright (c) 1996, 1997, 1998
    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.3F (M402COM) #2: Tue Jul 23 02:18:02 JST 1998
    soda@floyd:/usr/current/netbsd/netbsd/src/sys/arch/arc/compile/M402COM
real mem = 33554432
avail mem = 30511104
using 819 buffers containing 3354624 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: MIPS R4400 CPU Rev. 5.0 with MIPS R4010 FPC Rev. 0.0
        L1 cache: 16kb Instruction, 16kb Data. Direct mapped.
        No L2 cache or Snooping L2 cache.
pica0 at mainbus0
aclock0 at pica0 slot 0 offset 0x0: mc146818 or compatible
lpt0 at pica0 slot 1 offset 0x0
fdc0 at pica0 slot 2 offset 0x0
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
sn0 at pica0 slot 5 offset 0x0: bufsize 28480 address 00:00:11:11:33:33
asc0 at pica0 slot 6 offset 0x0: NCR53CF9X-2, target 7
scsibus0 at asc0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <CONNER, CFA540S, 090> SCSI2 0/direct fixed
sd0: 515MB, 2800 cyl, 4 head, 94 sec, 512 bytes/sect x 1056708 sectors
cd0 at scsibus0 targ 1 lun 0: <CHINON, CD-ROM CDS-535, Q20> SCSI2 5/cdrom removable
sd1 at scsibus0 targ 3 lun 0: <nEC, D3845, 0311> SCSI2 0/direct fixed
sd1: 1032MB, 2097 cyl, 16 head, 63 sec, 512 bytes/sect x 2113776 sectors
pckbd at pica0 slot 7 offset 0x0 not configured
pms at pica0 slot 8 offset 0x0 not configured
com0 at pica0 slot 9 offset 0x0: ns16550a, working fifo
com0: console
com1 at pica0 slot 10 offset 0x0: ns16550a, working fifo
fb at pica0 slot 11 offset 0x0 not configured
isabr0 at mainbus0
isa0 at isabr0 isa_io_base 0xe2000000 isa_mem_base 0xe3000000
------------------------------------------------------------------------
(and the system just hangs up.)

[kernel output of Mar 17, 1997 based kernel]
------------------------------------------------------------------------
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.2D (M402COM) #55: Tue Jul 14 07:39:16 JST 1998
    soda@floyd:/amd/james/mnt1/bsd/work/soda/netbsd/src/sys/arch/arc/compile/M402COM
real mem = 33554432
avail mem = 28889088
using 435 buffers containing 1781760 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: MIPS R4400 CPU Rev. 5.0 with MIPS R4010 FPC Rev. 0.0
Primary cache size: 16kb Instruction, 16kb Data. Direct mapped.
No L2 cache or Snooping L2 cache.
pica0 at mainbus0
clock0 at pica0 slot 0 offset 0x0: mc146818 or compatible
lpt0 at pica0 slot 1 offset 0x0
fdc0 at pica0 slot 2 offset 0x0
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
sn0 at pica0 slot 5 offset 0x0: bufsize 28480 address 00:00:11:11:33:33
asc0 at pica0 slot 6 offset 0x0: NCR53CF9X-2, target 7
scsibus0 at asc0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <CONNER, CFA540S, 090> SCSI2 0/direct fixed
sd0: 515MB, 2800 cyl, 4 head, 94 sec, 512 bytes/sec
cd0 at scsibus0 targ 1 lun 0: <CHINON, CD-ROM CDS-535, Q20> SCSI2 5/cdrom removable
sd1 at scsibus0 targ 3 lun 0: <nEC, D3845, 0311> SCSI2 0/direct fixed
sd1: 1032MB, 2097 cyl, 16 head, 63 sec, 512 bytes/sec
pckbd at pica0 slot 7 offset 0x0 not configured
pms at pica0 slot 8 offset 0x0 not configured
com0 at pica0 slot 9 offset 0x0: ns16550a, working fifo
com0: console
com1 at pica0 slot 10 offset 0x0: ns16550a, working fifo
fb at pica0 slot 11 offset 0x0 not configured
isabr0 at mainbus0
isa0 at isabr0 isa_io_base 0xe2000000 isa_mem_base 0xe3000000
boot device: <unknown>
root device: 

use one of: fd0[a-p] sn0 sd0[a-p] cd0[a-p] sd1[a-p] halt
root device: sn0
file system (default generic): 
proc 0 = u:80206000, sp:0, pc:0
mountroot: trying ffs...
mountroot: trying nfs...
nfs_boot: using network interface 'sn0'
nfs_boot: client_addr=0xc0a87904
nfs_boot: server_addr=0xc0a87901
nfs_boot: hostname=carter
root on james:/mnt1/bsd/export/carter/openbsd.2.1
root time: 0x33f231f1
WARNING: clock gained 334 days -- CHECK AND RESET THE DATE!
swap on james:/mnt1/bsd/export/carter/swap
swap size: 0x4000 (blocks)
root file system type: nfs
create proc 1
create proc 2
scheduler
start_init
init: check_console
start_pagedaemon
bcopy pagedaemon
init: vm_pageout
vm_pageout: spl0
vm_pageout: simple_lock
vm_pageout: thread_sleep
init: allocate stack
init: allocated
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
init: copied
init: execve
exec success, go to user mode
Process (pid 1) got signal 11
------------------------------------------------------------------------
(this version successfully mounts root filesystem.)
--
soda