Subject: Re: ADB problems
To: None <ender@macbsd.com>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 12/16/1998 23:02:21
At 22:06 Uhr +0100 16.12.1998, Colin Wood wrote:
>Hauke Fath wrote:
>> How about the Duo 280? I built a kernel two days ago just for fun, and it
>> made it to "root on sd0a" when it froze. ADB was probed successfully, but
>> besides aed0 no devices showed up, neither docked nor undocked.
>
>what was the line printed out about the adb?  the adb pretty much probes
>regardless of whether or not it works (perhaps this should change, but
>that's a job for later).

See the attached log. There are some video mapping quirks, too. I recall
comparing the output of the "NetBSD_ROM" tool for the Duo 280 with what is
assumed in machdep.c and finding differences. I let it slip then because I
couldn't make much sense of it.

>> Another peculiarity: I don't see any serial activity when the Duo is docked
>> (neither mini dock nor dock II) whereas I can boot the undocked Duo to
>> serial console just fine.
>
>i don't think we support the dock at all...

I found it peculiar that the serial ports (2!) are probed (?) just fine but
cannot be used. On second thought, it may well be that the docks have their
own set of peripheral chips and the Duo's internal ports are disabled when
it is docked.

The line about the IWM is a lie, too.  ;)

	hauke


-------------------------------------------------------------------------
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 18874368 bytes in 4608 pages.
     Low = 0x0, high = 0x1200000
Checking for Internal Video mapping: PB/IIvx (0x60?00000).  Does it never end?
               Forcing VRAM size to a conservative 1024K.
  PB/IIvx (0x60?00000) internal video at addr 0x60000000 (phys 0x60000000), len
0x100000.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40800000 to 0x9f8000.
Video address 0x60000000 -> 0xbf8000.
[ preserving 282282 bytes of netbsd symbol table ]
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.3H (DUO280) #3: Mon Dec 14 23:25:39 CET 1998

hauke@q700.hf.org:/home/hauke/work/netbsd/current/sys/arch/mac68k/compile/DU
O280
Apple Macintosh PowerBook Duo 280  (68040)
cpu: delay factor 355
real mem = 18874368
avail mem = 15044608
using 256 buffers containing 1048576 bytes of memory
mrg: kernel has no ROM vectors for this machine!
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (direct, PowerBook): 0 targets
aed0 at adb0 addr 0: ADB Event device
asc0 at obio0: Apple Sound Chip
intvid0 at obio0 @ 60000000: On-board video
intvid0: 640 x 400, monochrome
grf0 at intvid0
ite0 at grf0 (minimal console)
iwm0 at obio0: Apple GCR floppy disk controller
ncrscsi0 at obio0
scsibus0 at ncrscsi0: 8 targets
scsipi_inqmatch: 2/0/0 <, , >
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST9235N, 0509> SCSI2 0/direct fixed
sd0: 200MB, 1522 cyl, 6 head, 44 sec, 512 bytes/sect x 409760 sectors
zsc0 at obio0 chip type 0
zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
zstty0 at zsc0 channel 0 (console)
zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
zstty1 at zsc0 channel 1
nubus0 at mainbus0
fpu0 at mainbus0 (emulator)
boot device: sd0
root on sd0a dumps on sd0b
Stopped at      _Debugger+0x6:  unlk    a6
db> t
_Debugger(fc,126d40,8e862,3ada30,8) + 6
_zs_abort(3ada30,8,3ada30,3ada00,126d58) + 3a
_zstty_stint(3ada30) + 38
_zsc_intr_hard(3ada00,a2358,126d78,9803a,3ada00) + 56
_zshard(3ada00,0,126db4,3464,70) + 16
_intr_dispatch(70) + 46
_intrhand(126dc0) + a
_lev2intr(?)
_mi_switch(2714,2200,0,6000,c) + 14
_tsleep(3ac000,11,82b84,0) + 162
_scsipi_execute_xs(3ac000) + d6
_scsi_scsipi_cmd(3a5e40,126ee6,6,0,0) + bc
_scsipi_prevent(3a5e40,1,180) + 50
_sdopen(401,0,6000,0) + e0
_sdsize(401,2704,124184,122200,60000000) + 56
_cpu_dumpconf(0,0) + 4c
uvm_fault(0xb6e5c, 0x129000, 0, 0x1) -> 0x1
  type 8, code [mmu,,ssw]: 505
trap type 8, code = 0x505, v = 0x129ffa
kernel program counter = 0x8ed82
kernel: MMU fault trap
Caught exception in ddb.
_main() + 346
_main() + 346
db> reboot
syncing disks...



--
"It's never straight up and down"     (DEVO)