CF 付きカーネル

とりあえずカーネルを作ってみた。まだマルチユーザモードに到達してない。

  • カーネル起動直後の SCIF 出力がおかしい現象は arch/sh3/dev/scif.c:InitializeScif() の delay() する値を 2000 に増やしたら収まった。
  • SH 固有の仕様で bus_space(9) 周辺でハマりにハマった。これからもハマれそう。
  • PCI は当分まだ。bus_dma(9) も必要だし。
  • wdc は shb 直付けじゃなくて、適当にバスをでっち上げてくっつけた方が良いかな。shb だとアドレス指定とかできないし。
NetBSD 2.99.15 (USL-5P) #97: Fri Feb 25 08:04:44 JST 2005
        nonaka@koharu:/sys/arch/landisk/compile/USL-5P
total memory = 65536 KB
avail memory = 59864 KB
mainbus0 (root)
cpu0 at mainbus0: HITACHI SH4 266.666MHz PCLOCK 33.333 MHz
16KB/32B 2-way set-associative Instruction cache.
32KB/32B 2-way set-associative Data cache.
P0, U0, P3 write-through P1 write-through
full-associative 4 ITLB, 64 UTLB entries
multiple virtual storage mode, SQ access: kernel, wired 61
shb0 at mainbus0
wdc0 at shb0
atabus0 at wdc0 channel 0
scif0 at shb0
scif0: console
rn_init: radix functions require max_keylen be set
wd0 at atabus0 drive 0: <SanDisk SDCFB-96>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 93952 KB, 734 cyl, 8 head, 32 sec, 512 bytes/sect x 187904 sectors
root device: wd0
dump device (default wd0b):
file system (default generic):
root on wd0a dumps on wd0b
root file system type: ffs
WARNING: preposterous clock chip time
 -- CHECK AND RESET THE DATE!
init path (default /sbin/init):
init: trying /sbin/init
/etc/rc.conf is not configured.  Multiuser boot aborted.