kloader(4) for zaurus

やっと動く様になったよー。これで毎回 D キーと B キーを押しながら起動しなくてすむよー。
あと bootinfo を再構築して新しいカーネルに渡す処理を書かないとな。ここ書かないと毎回ルートデバイス入力する事になるしね。

zaurus# shutdown -r now
Shutdown NOW!
shutdown: [pid 375]
zaurus# wall: You have write permission turned off; no reply possible
*** FINAL System shutdown message from root@zaurus.myhome.local ***          
System going down IMMEDIATELY                                                  
Mar 10 22:38:12 zaurus shutdown: reboot by root: 

System shutdown time has arrived

About to run shutdown hooks...
Stopping cron.
Stopping inetd.
Removing block-type swap devices
swapctl: removing /dev/wd0b as swap device
Tue Mar 10 22:38:15 JST 2009

Done running shutdown hooks.
Mar 10 22:38:20 zaurus syslogd[104]: Exiting on signal 15
kloader: kernel file name: /netbsd
kloader_load: reading 0x17c bytes of .shstrtab at 0x393351
kloader_load: segment 0 size = file 0x2e4298 memory 0x2e4298
kloader_load: segment 1 size = file 0x87e54 memory 0x87e54
kloader_load: segment 2 size = file 0x0 memory 0x36818
kloader_load: ksyms size = 0x5f37b
kloader_alloc_memory: allocated 981 pages.
kloader_load_segment: memory 0xc0200000 0x2e4298 <- file 0x8000 0x2e4298
kloader_load_segment: memory 0xc04e8000 0x87e54 <- file 0x2f0000 0x87e54
kloader_load_segment: memory 0xc056fe80 0x36818 <- file 0x36fe80 0x0
kloader_load: ksyms ELF header
kloader_load: ksyms section headers
kloader_load: ksyms .shstrtab
kloader_load: ksyms .symtab
kloader_load: ksyms .strtab
kloader_load: argv: old 0xc05a0d8c -> new 0xc0605b1c
kloader_load: bootinfo
kloader_load: [loader] addr=0xc0b91000 sp=0xc0b92000 [kernel] entry=0xa0200000
kloader: [page tag chain]
[ 0] next 0xc07c1000 src 0xc07c0010 dst 0xc0200000 sz 0xff0
[ 1] next 0xc07c2000 src 0xc07c1010 dst 0xc0200ff0 sz 0xff0
[ 2] next 0xc07c3000 src 0xc07c2010 dst 0xc0201fe0 sz 0xff0
[ 3] next 0xc07c4000 src 0xc07c3010 dst 0xc0202fd0 sz 0xff0
[ 4] next 0xc07c5000 src 0xc07c4010 dst 0xc0203fc0 sz 0xff0
[ 5] next 0xc07c6000 src 0xc07c5010 dst 0xc0204fb0 sz 0xff0
[ 6] next 0xc07c7000 src 0xc07c6010 dst 0xc0205fa0 sz 0xff0
[ 7] next 0xc07c8000 src 0xc07c7010 dst 0xc0206f90 sz 0xff0
[ 8] next 0xc07c9000 src 0xc07c8010 dst 0xc0207f80 sz 0xff0
[ 9] next 0xc07ca000 src 0xc07c9010 dst 0xc0208f70 sz 0xff0
[10] next 0xc07cb000 src 0xc07ca010 dst 0xc0209f60 sz 0xff0
[11] next 0xc07cc000 src 0xc07cb010 dst 0xc020af50 sz 0xff0
[12] next 0xc07cd000 src 0xc07cc010 dst 0xc020bf40 sz 0xff0
[13] next 0xc07ce000 src 0xc07cd010 dst 0xc020cf30 sz 0xff0
[14] next 0xc07cf000 src 0xc07ce010 dst 0xc020df20 sz 0xff0
[976(last)] next 0x00000000 src 0xc0b90010 dst 0xc06050a8 sz 0xb74
syncing disks... done
unmounting file systems... done
kloader: Rebooting...
[ Kernel symbol table missing! ]
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    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 5.99.7 (GENERIC) #175: Tue Mar 10 22:38:18 JST 2009
total memory = 65536 KB
avail memory = 57924 KB
mainbus0 (root)