Subject: Re: spontaneous reboot only once after power-up
To: None <port-dreamcast@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-dreamcast
Date: 10/30/2002 00:09:44
In article <200210291429.g9TETdn06942@pl374.nas911.nara.nttpc.ne.jp>
itohy@netbsd.org wrote:

> However, I have a weird problem.
> The kernel reboot at the context switching (tsleep(), kthread_create1()),
> only once after power-up.
> Load the kernel again, and it works without problems.
 :
> I use IP slave to load a kernel.
> On my Dreamcast, this kernel reboots itself after detecting BbA
> (rtk0 and ukphy0) only once after power-up.

I try your kernel with kloader, it does not cause reboot.
(Maybe the primary kernel initialize all memories?)
When I boot it from CDROM, it reboots after probing g2bus,
but sometimes just hangs at the same point.

It would be caused some uninitilized memory, but
I don't think kthread code on dreamcast has problem
since kthread of atapibus0 is working fine anytime on my DC.
--
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp

---
[...]
shb0 at mainbus0
scif0 at shb0
maple0 at shb0: SH4 IRL 9
mapleA at maple0 port 0: a 0x2 fn 0x40 d 0x1020080,0,0: Keyboard
mkbd0 at mapleA func 6: Japanese keyboard
wskbd0 at mkbd0: console keyboard
mapleB at maple0 port 1: a 0xff fn 0x1 d 0xf06fe,0,0: Dreamcast Controller
mctrl0 at mapleB func 0: Controller
mctlr0: buttons: A B X Y START u d l r aR aL aH aV
mapleB1 at maple0 port 1 subunit 1: a 0x2 fn 0xe d 0x7e7e3f40,0x51000,0xf4100: Visual Memory
mmem0 at mapleB1 func 1: Memory card: 1 part, 512 bytes/block, 4 acc/w, 1 acc/r
mlcd0 at mapleB1 func 2: LCD display: 1 LCD, 192 bytes/block, 1 acc/write
mapleB1 func3 not configured
mmem0.0: 128 KB, blk 255 0, inf 255, fat 254 1, dir 253 13, icon 255, data 200
mlcd0.0: 48x32 display, 192 bytes
pvr0 at shb0: 640 x 480, 16bpp, VGA, RGB
wsdisplay0 at pvr0 kbdmux 1: console (80x30, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
gdrom0 at shb0: SH4 IRL 9
g2bus0 at shb0
maple0: forked event thread, pid 2
unknown device major 0xffffffff
root device:
---