今日は神崎の海水浴場。
そのまえに魚っ知舘なるものに行ってきた。エネ研とかいうやつの施設の一部らしい。
へとへとになりつつ帰宅。
餃子の王将で大量に食べる。
やっと戻ってきました。
いやぁ、もう少し余裕のある行程にしたいものです。
やっと時間が取れたので、kernelだけ作ってみました。
ひさしぶりなので、色々と手間取ったけれど、いちばん困ったのはgenassym問題。
今までgenassymは特に指定なしで動かしていたけれど、今日はgenassymが見付からないといって止まってしまったので、nbgenassymを使うようにMakefile.mpc860を修正した。これは、これまで必要のなかった修正なのでちょっと不思議に思う。
kernelができたら起動したくなるのが人情。しかし、userlandまで含めて完走するのは結構先のような気がする、ということでftp.ki.nuからts版の050707のsnapshotを貰ってくることを思い付いた。
base.tgz, etc.tgzを展開してMAKEDEVしてbootptabに設定を書いていざ起動。
>> OpenBlockS Boot, Revision 1.2 >> (tokuda@cube.home.tokuda.net, Tue Apr 1 08:00:45 JST 2003) net_open: client addr: 192.168.100.60 net_open: subnet mask: 255.255.255.0 net_open: server addr: 192.168.100.37 net_open: server path: /usr/obs50 net_open: file name: /netbsd Using IP address: 192.168.100.60 root addr=192.168.100.37 path=/usr/obs50 1468612+77744 [93648+81174]=0x1a46d8 start=0x10000 ssym = 189874, esym = 1bd000 NetBSD 3.99.7 (MPC860) #0: Wed Aug 3 12:17:56 JST 2005 root@r1.home.tokuda.net:/export/s/20050728/src/sys/arch/mpc860/compile/MPC860 total memory = 16384 KB avail memory = 14236 KB mainbus0 (root) cpu0 at mainbus0: 860 (Revision 0) pbus0 at mainbus0 scc0 at pbus0: vec 9 (console) fec0 at pbus0: vec 7 address 00:80:6d:47:29:d5 tqphy0 at fec0 phy 1: 78Q2120 10/100 media interface, rev. 11 tqphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto sce0 at pbus0: vec 9 address 00:80:6d:47:29:d6 obus0 at mainbus0 wdc0 at obus0: vec 8 addr 0x80000010 atabus0 at wdc0 channel 0 wd0 at atabus0 drive 0:wd0: drive supports 16-sector PIO transfers, LBA addressing wd0: 11513 MB, 23392 cyl, 16 head, 63 sec, 512 bytes/sect x 23579136 sectors wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66) boot device: fec0 root on fec0 nfs_boot: trying DHCP/BOOTP nfs_boot: BOOTP next-server: 192.168.100.37 nfs_boot: my_name=obs50 nfs_boot: my_addr=192.168.100.60 nfs_boot: my_mask=255.255.255.0 root on r1.home.tokuda.net:/usr/obs50 root file system type: nfs Process (pid 1) got signal 11 Process (pid 1) got signal 11 Process (pid 1) got signal 11 Process (pid 1) got signal 11 Process (pid 1) got signal 11 Process (pid 1) got signal 11
ありゃー、/sbin/init起動しようとしてsignal 11ですか。なんか、おなじみの気がするけど、何が変なのかなぁ。
そういえばmissingというディレクトリがあったと思い、その中に格納されているlibgcc_s_pic.aを/usr/libに配置してみたけれどsignal11で変わらない。
また大変そうな香りがする...
関係ないけど、そういえばfstab書くの忘れてるな。
朝から荷物が届いたり。
ハラバこと秋葉原に散歩。暑い。歩いているだけで、汗をブルブルにかいてしまう。
帰りの電車で座らせてもらえてうれしい。
待望のSERIAL-KITが届いた。
さっそく試そうとUSL-5Pを分解する。
ネジは一本だけなので楽勝。
しかし、ケースがうまく外れない。しばらく苦戦していたが、やっと開いた。コツを掴めば二回目からは簡単。
コンスルーコネクタってどういう代物かと思っていた。実物を見て、「ほー、なるほどー」と思った。
スルホール基板のような穴の内側にもちゃんと接するような工夫がされているわけで、普通のピンのように一本じゃなく、丸くなっている。ゼムクリップのような感じで円みを帯びている。
SERIAL-KITは5pinでUSL-5Pは4pinなので一本抜いてUSL-5Pに刺してみるとなんとかうまく刺さってくれる。
で、USL-5Pを起動すると、見事に動かない。
うーん、どうやらやっぱりハンダづけが必要な気がする。が、コネクタやプラグの部材がない。
ということで、部品の買い出し。
ピンヘッダやらコネクタやら。
で、買ってきたコネクタを試すとピッチが狭い。おかしいなと思って2mmのピンヘッダを試すとこれまた狭い。
LANDISK関係は2mmピッチとどこかに書かれていたので秋葉原までわざわざ買い出しに出かけたのに使えない。
他のキットで使っていたピンヘッダを使うことを思いたち試してみる。すると、ピッチは適切だがピンが太く、角ばっているため入らない。2.54mmピッチで細いピンのピンヘッダが必要なのである。
SERIAL-KITはお蔵入りだし、炎天下の中に買ってきた部品は使えず、がっかりである。
本日より二泊で多摩方面へ。
昨日の雪辱を晴らすべく、部品の買い出し。
今日は千石じゃなくてマルツへ。店員さんがイマイチ反応が悪くてちょっとがっかり。
USBメモリはArmadillo-9につけてサーバとして運用しようと計画しているので。512Mbytesもあればそれなりに動いてくれるかなと。
16Port HUBは、今までずいぶん買おうか迷っていたんだけど思いきって買ってしまった。というのも、小さい計算機が増えてきてポートが足りておらず、かといって新しく8Portを買ってもすぐに埋まってしまうので、オーバースペックではあるけれどしばらくは大丈夫だろうということで購入。
USBマウスとUSB HUBは衝動買い。まぁ、いいか。
512Mbytes CFはUSL-5P用に。これで、自分を追い詰めるのであった。
結構な荷物を抱えてもつ19へ。
参加者は直前のアナウンスにもかかわらず、飛び入り参加も含めて11名。大盛況でした。
話題。
マルチタスク不要論。
日本四大「jun」の一人が遂に参加。
カーネル読書会のイメージ。「シャープ!」、「インクルード!」。
次の日歯医者の人がニンニク丸揚げを注文する暴挙に。
印紙は張っとけ。
BoFどうすんだっけ。
NetBSD/macppcなCD-ROMに感激。
Emacs本買いましょう。
Armadillo-9のAC'97は使えませんか、雑誌に書いてありましたか。
Linux kernel 2.6移植に肉薄するNetBSD porting。なぜかプレッシャーを感じるらしい。
USL-5Pの説明。とにかく、買え。
領収書とレシートの同時発行は禁じられております。
Mac miniのXF86Configください。
Netwinder動いたぜ。さすがだ。
暑かったのでホッピー飲み過ぎて、わりと会話が蛇行していたらしい。微妙に自覚症状があったのですが。
とても楽しい会でした。またやりたいな。
プールらしい。
これまでは借用していたArmadillo-9を使っていて、自分で買った青いArmadillo-9は使っておらずもったいない状態だった。
今日はまとまった時間がとれるので設定するぞ。
これまではfirmwareのkernelを直接書き換えていたが、CFからもkernelがブートできることをMLでHさんに教えてもらっていたのでそれをやることに。
まずはCF上のkernelを読み込むようにArmadillo-9のJP2をショートさせる。
JP2のショートって、てっきりケースを開けないとできないと思っていて、実際にケースを開けて気づいた。前面にJP2が出ていることに。開けなくても良かったのか...
手順はメールにかかれたとおりで、Linuxを起動してCFに対してfdisk, ext2作成, Image.gzという名前でkernelを/bootに置く、の順に作業をする。
[root@armadillo9 (ttyAM0) ~]# fdisk /dev/hdc hdc: hdc1 hdc2 The number of cylinders for this disk is set to 1043. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): t Partition number (1-4): 1 Hex code (type L to list codes): L 0 Empty 12 Compaq diagnost 81 Minix / old Lin a8 Darwin UFS 1 FAT12 14 Hidden FAT16 <3 82 Linux swap a9 NetBSD 4 FAT16 <32M 16 Hidden FAT16 83 Linux ab Darwin boot 5 Extended 17 Hidden HPFS/NTF 84 OS/2 hidden C: b7 BSDI fs 6 FAT16 1b Hidden Win95 FA 85 Linux extended b8 BSDI swap 7 HPFS/NTFS 1c Hidden Win95 FA 86 NTFS volume set be Solaris boot a OS/2 Boot Manag 1e Hidden Win95 FA 87 NTFS volume set eb BeOS fs b Win95 FAT32 3c PartitionMagic 8e Linux LVM ee EFI GPT c Win95 FAT32 (LB 41 PPC PReP Boot 9f BSD/OS ef EFI (FAT-12/16/ e Win95 FAT16 (LB 42 SFS a0 IBM Thinkpad hi f0 Linux/PA-RISC b f Win95 Ext'd (LB 63 GNU HURD or Sys a5 FreeBSD f2 DOS secondary 11 Hidden FAT12 80 Old Minix a6 OpenBSD fd Linux raid auto Hex code (type L to list codes): 83 Changed system type of partition 1 to 83 (Linux) Command (m for help): P Disk /dev/hdc: 256 MB, 256327680 bytes 15 heads, 32 sectors/track, 1043 cylinders Units = cylinders of 480 * 512 = 245760 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 13 3104 83 Linux /dev/hdc2 * 14 1043 247200 a9 NetBSD Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. hdc: hdc1 hdc2 hdc: hdc1 hdc2 WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks. [root@armadillo9 (ttyAM0) ~]# [root@armadillo9 (ttyAM0) ~]# mke2fs -O none /dev/hdc1 mke2fs 1.25 (20-Sep-2001) hdc: hdc1 hdc2 hdc: hdc1 hdc2 Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 392 inodes, 3104 blocks 155 blocks (4%) reserved for the super user First data block=1 1 block group 8192 blocks per group, 8192 fragments per group 392 inodes per group Writing inode tables: done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 36 mounts or 180.00 days, whichever comes first. Use tune2fs -c or -i to override. [root@armadillo9 (ttyAM0) ~]# [root@armadillo9 (ttyAM0) ~]# mount /dev/hdc1 /mnt hdc: hdc1 hdc2 hdc: hdc1 hdc2 ext3: No journal on filesystem on ide1(22,1) hdc: hdc1 hdc2 hdc: hdc1 hdc2 [root@armadillo9 (ttyAM0) ~]#
こんな感じで準備をしたらImage.gzを設置する。
で、USBメモリにdisklabelを書いてsetsを展開して、といつもの流れ。
と、今のままだと起動時にroot fsを聞いてくるので指定したkernelを入れてやる。
sshdも動かして、リモートからメンテナンスできるようになりました。
さて、何をやらせようかな。namedあたりはやってほしいかも。
昨日購入した部材を使ってシリアルを生やす。
まずは、ピンヘッダをハンダづけ。なかなかハンダがなじまず、苦戦。少し外側に傾いてくっついてしまった...
シリアルケーブルは携帯電話接続ケーブルをぶった切って作る作戦に。
USL-5Pのシリアルの穴は基板上のボタン電池の近くにあり、四つの穴が開いている。
▼マークが目印となっていて▼から順に1, 2, 3, 4とすると、
と並んでいるらしい。
一方、携帯電話ケーブルは四本の線から構成されている。線は色でわけられており、茶、黒、オレンジ、赤の四色となる。
それぞれの役割は次のようになっているらしい。
さっきの基板上のパターンとあわせると赤のControlをのぞいた三本の線を接続すれば良い。
つまり、
となる。ということで、合計600円弱でシリアルケーブルは作れます。ハンダづけも非常に少なくてすむし。
いざ、接続してきどうしてみたら文字化けした文字がとめどなく流れて、うーむ、失敗したか。
と、ふとUSL-5Pのパワーボタンを押すと、読める文字でLinuxが起動するじゃないですか。どうやら、うまく動いているみたいだ。
ということで、Linuxブートの様子。
SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc. This software comes with ABSOLUTELY NO WARRANTY; for details type `w'. This is free software, and you are welcome to redistribute it under certain conditions; type `l' for details. 2002/09/09 Making. 2004/09/08 I-O DATA NSU Update. 266:133:33 on base clock 22.22MHz and SDRAM 4 burst. CF boot. PCIC initialization done. MASTER:48bit LBA mode non support Disk drive detected: Hitachi XXM2.3.0 Rev 3.00 X0210 20041202112304 LBA: 0001E900 DiskSize: 64094208Byte PIO MODE1 Set Transfer Mode result: 51 > b Set Transfer Mode result: 51 Initialize Device Parameters result: 50 IDLE result: 50 LILO boot: first-image Loading linux....................done. 64M console=ttySC1,9600 Kernel Start Linux version 2.4.21 (root@ELITEPC) (gcc version 3.2.3) #46 2004年 9月 28日 火曜日 14:13:12 JST On node 0 totalpages: 16384 zone(0): 16384 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: mem=64M console=ttySC1,9600 CPU clock: 266.68MHz Bus clock: 133.34MHz Module clock: 33.33MHz Interval = 5207 Calibrating delay loop... 266.24 BogoMIPS Memory: 62668k/65536k available (1659k kernel code, 2868k reserved, 271k data, 52k init) Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) Inode cache hash table entries: 4096 (order: 3, 32768 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) CPU: SH7751R POSIX conformance testing by UNIFIX PCI: Using configuration type 1 SH7751R PCI: Finished initialization of the PCI controller Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Allocate Area5/6 success. Julian Shutdown button driver initialized Starting kswapd Journalled Block Device driver loaded Installing knfsd (copyright (C) 1996 okir@monad.swb.de). NTFS driver 2.1.6b [Flags: R/O]. pty: 256 Unix98 ptys configured SuperH SCI(F) driver initialized ttySC0 at 0xffe00000 is a SCI ttySC1 at 0xffe80000 is a SCIF Real Time Clock Driver v1.10e Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx hda: Hitachi XXM2.3.0, CFA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 10 hda: attached ide-disk driver. hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x04 { DriveStatusError } hda: 125184 sectors (64 MB) w/1KiB Cache, CHS=978/4/32 ide-floppy driver 0.99.newide Partition check: hda: hda1 ide-floppy driver 0.99.newide SCSI subsystem driver Revision: 1.00 scsi0 : SCSI host adapter emulation for IDE ATAPI devices NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 4096 bind 8192) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: AppleTalk 0.18a for Linux NET4.0 hda: hda1 hda: hda1 hda: hda1 hda: hda1 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 52k freed init started: BusyBox v0.60.5 (2004.07.22-09:20+0000) multi-call binary Mounting proc filesystem: [ OK ] Configuring kernel parameters: [ OK ] Timed out waiting for time change. Setting clock (localtime): Sat Jan 1 09:24:16 JST 2000 [ OK ] Setting hostname usl-5p: [ OK ] Mounting USB filesystem: [ OK ] Remounting root filesystem in read-write mode: [ OK ] Finding module dependencies: [ OK ] Checking filesystems Checking all file systems. [ OK ] Mounting local filesystems: [ OK ] Setting network parameters: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Determining IP information for eth0... failed. [FAILED] Starting portmapper: [ OK ] Starting httpd: [ OK ] Starting SMB services: [ OK ] Starting NMB services: [ OK ] Starting crond: [ OK ] Starting button_daemon: [ OK ] Start Shutdown button surveillance Done Starting usbhdmng: [ OK ] getty: ioctl() T Lineo Linux Kernel 2.4.21 on an sh4 usl-5p login:
rootでログインできないな。まぁ、いいか。
ということで、シリアルも動き、あとはNetBSDをいれるだけ。
昨日のうちにhpcshのreleaseは済ませているのでlandiskのkernelとstand配下のmbr, bootxx, bootなどを作れば道具は揃ったことになる。
hpcshで作ったtoolchainでkernel, mbr, bootxx, bootをさくっと作り、IRCで色々と教えてもらいながらCFを作る。
基本的にはnonakapさんの日記のhttp://d.hatena.ne.jp/nonakap/20050219#p2の手順を踏襲していけばうまくいく。一点だけinstallbootに-m landiskを付ける必要がある。
というか、i386側のinstallbootはlandisk対応コードが入った物にしておく必要がある。今回はi386側を全部20050728+landisk patchにしたので特に意識する必要はなかった。
root@r1>dd if=/dev/zero of=/dev/rsd0d count=100 100+0 records in 100+0 records out 51200 bytes transferred in 0.568 secs (90140 bytes/sec) root@r1>pwd [/export/s/20050728/src/sys/arch/landisk/compile/GENERIC] /export/s/20050728/src/sys/arch/landisk/compile/GENERIC root@r1>cd ../.. [/export/s/20050728/src/sys/arch/landisk/compile/GENERIC] root@r1>cd stn [/export/s/20050728/src/sys/arch/landisk] cd: no such file or directory: stn root@r1>cd stand [/export/s/20050728/src/sys/arch/landisk] root@r1>dd if=mbr/mbr/mbr of=/dev/rsd0d bs=512 count=1 1+0 records in 1+0 records out 512 bytes transferred in 0.008 secs (64000 bytes/sec) root@r1>fdisk -0 -u sd0 [/export/s/20050728/src/sys/arch/landisk/stand] Disk: /dev/rsd0d NetBSD disklabel disk geometry: cylinders: 488, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1000944 BIOS disk geometry: cylinders: 488, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1000944 Do you want to change our idea of what BIOS thinks? [n] Partition 0: <UNUSED> The data for partition 0 is: <UNUSED> sysid: [0..255 default: 169] start: [0..489cyl default: 32, 0cyl, 0MB] size: [0..489cyl default: 1000912, 489cyl, 489MB] bootmenu: [] NetBSD Installed bootfile doesn't support required options. Update the bootcode from /usr/mdec/mbr_bootsel? [n] We haven't written the MBR back to disk yet. This is your last chance. Partition table: 0: NetBSD (sysid 169) bootmenu: NetBSD start 32, size 1000912 (489 MB, Cyls 0-488/47/17) 1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. Should we write new partition table? [n] y root@r1>fdisk -a sd0 [/export/s/20050728/src/sys/arch/landisk/stand] Disk: /dev/rsd0d NetBSD disklabel disk geometry: cylinders: 488, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1000944 BIOS disk geometry: cylinders: 489, heads: 64, sectors/track: 32 (2048 sectors/cylinder) total sectors: 1000944 Partition table: 0: NetBSD (sysid 169) bootmenu: NetBSD start 32, size 1000912 (489 MB, Cyls 0-488/47/17) 1: <UNUSED> 2: <UNUSED> 3: <UNUSED> Bootselector disabled. Do you want to change the active partition? [n] y Choosing 4 will make no partition active. active partition: [0..4 default: 4] 0 Are you happy with this choice? [n] y We haven't written the MBR back to disk yet. This is your last chance. Should we write new partition table? [n] y root@r1>pwd [/export/s/20050728/src/sys/arch/landisk/stand] /export/s/20050728/src/sys/arch/landisk/stand root@r1>installboot -v /dev/rsd0a bootxx/bootxx_ffsv1/bootxx_ffsv1 installboot: Opening file system `/dev/rsd0a' read-write: Device not configured root@r1>disklabel sd0 [/export/s/20050728/src/sys/arch/landisk/stand] # /dev/rsd0d: type: SCSI disk: mydisk label: fictitious flags: removable bytes/sector: 512 sectors/track: 32 tracks/cylinder: 64 sectors/cylinder: 2048 cylinders: 488 total sectors: 1000944 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 5 partitions: # size offset fstype [fsize bsize cpg/sgs] c: 1000912 32 unused 0 0 # (Cyl. 0*- 488*) d: 1000944 0 unused 0 0 # (Cyl. 0 - 488*) e: 1000912 32 4.2BSD 0 0 0 # (Cyl. 0*- 488*)disklabel: boot block size 0 disklabel: super block size 0 root@r1>a [/export/s/20050728/src/sys/arch/landisk/stand] zsh: command not found: a root@r1>disklabel -i -I sd0 [/export/s/20050728/src/sys/arch/landisk/stand] partition> P 5 partitions: # size offset fstype [fsize bsize cpg/sgs] c: 1000912 32 unused 0 0 # (Cyl. 0*- 488*) d: 1000944 0 unused 0 0 # (Cyl. 0 - 488*) e: 1000912 32 4.2BSD 0 0 0 # (Cyl. 0*- 488*) partition> a Filesystem type [?] [unused]: 4.2BSD Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: 32s Partition size ('$' for all remaining) [0c, 0s, 0M]: $ a: 1000912 32 4.2BSD 0 0 0 # (Cyl. 0*- 488*) partition> P 5 partitions: # size offset fstype [fsize bsize cpg/sgs] a: 1000912 32 4.2BSD 0 0 0 # (Cyl. 0*- 488*) c: 1000912 32 unused 0 0 # (Cyl. 0*- 488*) d: 1000944 0 unused 0 0 # (Cyl. 0 - 488*) e: 1000912 32 4.2BSD 0 0 0 # (Cyl. 0*- 488*) partition> W Label disk [n]? y disklabel: partitions a and e overlap Label written partition> Q root@r1>mount -t ffs /dev/sd0a /mnt root@r1>cd /mnt [/export/s/20050728/src/sys/arch/landisk/stand] root@r1>ls [/mnt] boot* netbsd* root@r1>ls /export/r/20050728/hpcsh/binary/sets [/mnt] BSDSUM base.tgz kern-GENERIC.tgz text.tgz CKSUM comp.tgz kern-HPW650PA.tgz MD5 etc.tgz man.tgz SYSVSUM games.tgz misc.tgz root@r1>ls /export/r/20050728/hpcsh/binary/sets/!kern* [/mnt] zsh: event not found: kern root@r1>ls /export/r/20050728/hpcsh/binary/sets/ [/mnt] BSDSUM base.tgz kern-GENERIC.tgz text.tgz CKSUM comp.tgz kern-HPW650PA.tgz MD5 etc.tgz man.tgz SYSVSUM games.tgz misc.tgz root@r1>ls /export/r/20050728/hpcsh/binary/sets/*.tgz [/mnt] /export/r/20050728/hpcsh/binary/sets/base.tgz /export/r/20050728/hpcsh/binary/sets/comp.tgz /export/r/20050728/hpcsh/binary/sets/etc.tgz /export/r/20050728/hpcsh/binary/sets/games.tgz /export/r/20050728/hpcsh/binary/sets/kern-GENERIC.tgz /export/r/20050728/hpcsh/binary/sets/kern-HPW650PA.tgz /export/r/20050728/hpcsh/binary/sets/man.tgz /export/r/20050728/hpcsh/binary/sets/misc.tgz /export/r/20050728/hpcsh/binary/sets/text.tgz root@r1>foreach i (base comp etc games man misc text) [/mnt] foreach> echo pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/$i.tgz foreach> end pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/base.tgz pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/comp.tgz pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/etc.tgz pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/games.tgz pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/man.tgz pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/misc.tgz pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/text.tgz root@r1>foreach i (base comp etc games man misc text) [/mnt] pax -rzpe -f /export/r/20050728/hpcsh/binary/sets/$i.tgz end root@r1>cd dev [/mnt] root@r1>./MAKEDEV all [/mnt/dev] root@r1>cd .. [/mnt/dev] root@r1>cd etc [/mnt] root@r1>echo /dev/sd0a / ffs rw,softdep 1 1 > fstab [/mnt/etc] root@r1>umount /mnt [/mnt/etc] umount: /mnt: Device busy root@r1>cd / [/mnt/etc] root@r1>umount /mnt [/] umount: /mnt: Device busy root@r1> [/]
ということで、bootとkernelだけ書いた状態でbootさせると/sbin/initがないといってpanicした、ということは動いている。
よーし、とばかりにsetsを展開し、いざ起動。
SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc. This software comes with ABSOLUTELY NO WARRANTY; for details type `w'. This is free software, and you are welcome to redistribute it under certain conditions; type `l' for details. 2002/09/09 Making. 2004/09/08 I-O DATA NSU Update. 266:133:33 on base clock 22.22MHz and SDRAM 4 burst. CF boot. PCIC initialization done. MASTER:48bit LBA mode non support Disk drive detected: SanDisk SDCFB-512 HDX 3.07 012007E2405S5803 LBA: 000F45F0 DiskSize: 512483328Byte PIO MODE1 Set Transfer Mode result: 50 > b Set Transfer Mode result: 50 Initialize Device Parameters result: 50 IDLE result: 50 NetBSD MBR boot NetBSD/landisk ffsv1 Primary Bootstrap >> NetBSD/hpcsh Boot, Revision 1.0 >> (root@r1.home.tokuda.net, Sat Aug 6 09:26:11 JST 2005) Press return to boot now, any other key for boot menu booting hd0e:netbsd - starting in 0 3866892+188748 [205104+191450]=0x43f2e0 Start @ 0x8c001000 [1=0x8c3df258-0x8c4402e0]... Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 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 3.99.7 (GENERIC) #0: Sat Aug 6 09:39:20 JST 2005 root@r1.home.tokuda.net:/export/s/20050728/src/sys/arch/landisk/compile/ Model: I-O DATA LANDISK total memory = 65536 KB avail memory = 58524 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-back P1 write-back full-associative 4 ITLB, 64 UTLB entries multiple virtual storage mode, SQ access: kernel, wired 61 shpcic0 at mainbus0: HITACHI SH7751R pci0 at shpcic0 pci0: i/o space, memory space enabled rtk0 at pci0 dev 0 function 0: Realtek 8139 10/100BaseTX rtk0: interrupting at irq 5 rtk0: Ethernet address 00:a0:b0:65:1e:c7 ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface ukphy0: OUI 0x000000, model 0x0000, rev. 0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ohci0 at pci0 dev 2 function 0: NEC USB Host Controller (rev. 0x43) ohci0: interrupting at irq 7 ohci0: OHCI version 1.0 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1 at pci0 dev 2 function 1: NEC USB Host Controller (rev. 0x43) ohci1: interrupting at irq 8 ohci1: OHCI version 1.0 usb1 at ohci1: USB revision 1.0 uhub1 at usb1 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0 at pci0 dev 2 function 2: NEC USB Host Controller (rev. 0x04) ehci0: interrupting at irq 5 ehci0: EHCI version 1.0 ehci0: companion controllers, 3 ports each: ohci0 ohci1 usb2 at ehci0: USB revision 2.0 uhub2 at usb2 uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 5 ports with 5 removable, self powered shb0 at mainbus0 scif0 at shb0 scif0: console obio0 at mainbus0 wdc0 at obio0 port 0x14000000-0x1400000f irq 10 atabus0 at wdc0 channel 0 Kernelized RAIDframe activated wd0 at atabus0 drive 0: <SanDisk SDCFB-512> wd0: drive supports 4-sector PIO transfers, LBA addressing wd0: 488 MB, 993 cyl, 16 head, 63 sec, 512 bytes/sect x 1000944 sectors wd0: drive supports PIO mode 4, DMA mode 2 boot device: wd0 root on wd0e dumps on wd0b root file system type: ffs WARNING: preposterous clock chip time -- CHECK AND RESET THE DATE!
あれ、先に進まない。どうしちゃったんだー。
今日は江戸川の花火。四年ぶりぐらいだっけ。
オリジン弁当でおにぎりと唐揚げなどを買っておく。
都営新宿線がとんでもない混雑。
到着して会場に向かう途中から花火は始まった。
小さい花火は問題なし。大きい花火はだめですか。
帰りは電車を避けてバスで。一之江と葛西にだけ止まる特別便。
一之江で下車して徒歩で帰った。来年は一之江までは自転車で来るのが良さそうだな。
-- CHECK AND RESET THE DATE! で止まる問題。
MAKEDEVがhpcshそのままじゃないか、ということをIRCで教えてもらった。
気づけばttysもlandisk用を使うべきだった。
landisk用のMAKEDEV諸々をつくるべく、etc.hpcshにetc.landiskのMAKEDEV.confおよびttysをコピーし、hpcsh用のtoolchainを使ってsrc/etcでnbmake-hpcsh install-etc-filesする。
CF上の/devを全部消して新しいMAKEDEV一式を入れて./MAKEDEV allする。うーん、unknownとか出てますが、気にしなくてよさそう?
これでも状況は変わらず、-- CHECK AND RESET THE DATE!で止まる。
/sbin/initがなくてpanicしたときはpanicメッセージが出たという気がするので、なんか変だなと思う。
ステップをふんでやり直すべく、newfsからやりなおし。
newfsして、installbootしてbootをコピーして、kernelをコピーする。
/sbin/initと/rescue/shもコピーして、いざ、起動。
中略 wd0 at atabus0 drive 0:wd0: drive supports 4-sector PIO transfers, LBA addressing wd0: 488 MB, 993 cyl, 16 head, 63 sec, 512 bytes/sect x 1000944 sectors wd0: drive supports PIO mode 4, DMA mode 2 boot device: wd0 root on wd0a dumps on wd0b root file system type: ffs WARNING: preposterous clock chip time -- CHECK AND RESET THE DATE! warning: no /dev/console exec /sbin/init: error 8 init: trying /sbin/oinit exec /sbin/oinit: error 2 init: trying /sbin/init.bak exec /sbin/init.bak: error 2 init: not found panic: no init Stopped in pid 1.1 (init) at netbsd:cpu_Debugger+0x6: mov r14, r15 db>
おぉー、panicした。あれ? initが見付かりませんで止まってるぞ。initはコピーしたはずなんだけど。もしかしてdynamic linkだから動かないとか。あたりまえか。
ということで/rescue/initを/sbin/initとしてコピーして強引に起動できないか試す。
中略 wd0 at atabus0 drive 0:wd0: drive supports 4-sector PIO transfers, LBA addressing wd0: 488 MB, 993 cyl, 16 head, 63 sec, 512 bytes/sect x 1000944 sectors wd0: drive supports PIO mode 4, DMA mode 2 boot device: wd0 root on wd0a dumps on wd0b root file system type: ffs WARNING: preposterous clock chip time -- CHECK AND RESET THE DATE! warning: no /dev/console
あれ、止まっちまったな。今度はinitが見付かったけど、initの先に進んでいないということなのかな。
warning: no /dev/consoleは無視してよい?
./MAKEDEV allのエラーについて記録しておく。
root@r1>./MAKEDEV all [/mnt/dev] ./MAKEDEV: usb: unknown device ./MAKEDEV: usb0: unknown device ./MAKEDEV: usb1: unknown device ./MAKEDEV: usb2: unknown device ./MAKEDEV: usb3: unknown device ./MAKEDEV: usb4: unknown device ./MAKEDEV: usb5: unknown device ./MAKEDEV: usb6: unknown device ./MAKEDEV: usb7: unknown device ./MAKEDEV: uhid0: unknown device ./MAKEDEV: uhid1: unknown device ./MAKEDEV: uhid2: unknown device ./MAKEDEV: uhid3: unknown device ./MAKEDEV: ulpt0: unknown device ./MAKEDEV: ulpt1: unknown device ./MAKEDEV: ttyU0: unknown device ./MAKEDEV: ttyU1: unknown device ./MAKEDEV: urio0: unknown device ./MAKEDEV: uscanner0: unknown device ./MAKEDEV: uscanner1: unknown device ./MAKEDEV: ugen0: unknown device ./MAKEDEV: music: unknown device ./MAKEDEV: rmidi0: unknown device ./MAKEDEV: rmidi1: unknown device ./MAKEDEV: rmidi2: unknown device ./MAKEDEV: rmidi3: unknown device ./MAKEDEV: rmidi4: unknown device ./MAKEDEV: rmidi5: unknown device ./MAKEDEV: rmidi6: unknown device ./MAKEDEV: rmidi7: unknown device ./MAKEDEV: altq: unknown device ./MAKEDEV: irframe0: unknown device ./MAKEDEV: kttcp: unknown device root@r1>ls -l cons* [/mnt/dev] crw------- 1 root wheel 2, 0 Aug 6 22:27 console crw------- 1 root wheel 2, 1 Aug 6 22:27 constty
動いている人の/dev/consoleは
crw------- 1 root wheel 0, 0 Aug 6 22:27 console
みたいに0,0になっているらしい。
hpcsh/conf/majors.hpcshをみる。たしかにconsoleが2になる。あー、landisk/conf/majors.landiskを使わなきゃダメですね。
root@r1>/export/t/20050728/hpcsh/bin/nbmake-hpcsh install-etc-files
MAKEDEVの中身を見て、consoleが0,0になっているのを確認して、起動。
中略 wd0 at atabus0 drive 0:wd0: drive supports 4-sector PIO transfers, LBA addressing wd0: 488 MB, 993 cyl, 16 head, 63 sec, 512 bytes/sect x 1000944 sectors wd0: drive supports PIO mode 4, DMA mode 2 boot device: wd0 root on wd0a dumps on wd0b root file system type: ffs WARNING: preposterous clock chip time -- CHECK AND RESET THE DATE! sh: Can't open /etc/rc Aug 6 13:44:33 init: /etc/pwd.db: No such file or directory Enter pathname of shell or RETURN for /rescue/sh: # ls -l ls: not found # pwd / # echo * boot dev netbsd rescue sbin #
おぉ、動いたよー。
まとめ。
MAKEDEV, ttysはちゃんと作りなおしましょう。
明日はuserlandを入れよう。
夏恒例の葛西臨海公園。写真撮影四回めとか。
まだ少し遊び足りないようだけど夕食へ。
近くの平城苑にて焼肉。
昨日の段階で、/rescue/initが動いて/rescue/shが動いたので、あとはもうbase.tgz, etc.tgz展開して、設定をちょいとすれば動くだろうと思っていたら大きな間違い。
base.tgz, etc.tgz展開して起動すると、-- CHECK AND RESET THE DATE! で止まる問題が復活。
MAKEDEV, ttysなど見直してもおかしなところはないので悩む。昨日うまく動いたパターンの/sbin/initを/rescue/initに置き換えて起動する。
うーむ。起動するな。
ということは、dynamic linkなファイルが動かないということかなぁ。
LANDISKで動かしているOさんから20050625のsnapshot (dreamcast用) を提供してもらってkernel (20050728) + userland(20050625)で起動させるとうまく起動する。
やっぱり20050728なuserland (hpcsh) は何か問題がありそうだということか。
そんな中、Oさんから20050808なsnapshot (私製landisk) を提供してもらう。
さっそくダウンロードして展開と設定を行い、いざ起動。
中略 shb0 at mainbus0 scif0 at shb0 scif0: console obio0 at mainbus0 panic: tlb_handler: invalid user-space access from kernel mode va=0x00000000, ssr=0x400000f0, spc=0x00000000 lwp=0x8c3dfb40 onfault=0x0 Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x6: mov r14, r15 db> tr cpu_Debugger() at netbsd:panic+0xe6 panic() at netbsd:tlb_exception+0x70 tlb_exception() at 0x8c000484 <EXPEVT 040; SSR=400000f0> at 0 () at 0 db> reboot
あり。panicですな。
IRCで泣きついて色々と話を聞く。で、kernelを20050728にしたらどうかとアドバイスを貰う。
するとマルチユーザモードであっさりと動く。ということは、userlandのdynamic link問題は解消されているということみたい。
整理すると次のような感じかなぁ。
さて、昨日までの起動時のメッセージからすると、obio0 at mainbus0のあとはwdc0 at obio0 port 0x14000000-0x1400000f irq 10ということなのでwdcが怪しいのかなぁ。という話になり、IRCでいろいろと助言をいただく。
まず、db>のときにpsと打つとどうなるかについても記録をしておく。
db> ps PID PPID PGRP UID S FLAGS LWPS COMMAND WAIT >0 -1 0 0 2 0x20200 1 swapper db>
ということでwdcのkernelプロセスで死んでいるのではないかもという推測がされる。
次にboot -cで起動してwdc0をdisableしたらどうなるかについて調べる。
NetBSD MBR boot NetBSD/landisk ffsv1 Primary Bootstrap >> NetBSD/hpcsh Boot, Revision 1.0 >> (root@r1.home.tokuda.net, Sat Aug 6 09:26:11 JST 2005) Press return to boot now, any other key for boot menu booting hd0a:netbsd - starting in 0 type "?" or "help" for help. > boot hd0a:netbsd.0807 -c booting hd0a:netbsd.0807 (howto 0x1000) 3885384+188872 [207344+193187]=0x444b20 Start @ 0x8c001000 [1=0x8c3e3b10-0x8c445b20]... Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 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 3.99.7 (GENERIC) #0: Sun Aug 7 21:19:05 JST 2005 root@XXXX:/export/current/daily/20050807/obj/landisk/sys/arch/landisk/compile/GENERIC Model: I-O DATA LANDISK total memory = 65536 KB avail memory = 58508 KB userconf: configure system autoconfiguration: uc> disable wdc0 [ 8] wdc0 disabled uc> quit Continuing... 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-back P1 write-back full-associative 4 ITLB, 64 UTLB entries multiple virtual storage mode, SQ access: kernel, wired 61 shpcic0 at mainbus0: HITACHI SH7751R pci0 at shpcic0 pci0: i/o space, memory space enabled rtk0 at pci0 dev 0 function 0: Realtek 8139 10/100BaseTX rtk0: interrupting at irq 5 rtk0: Ethernet address 00:a0:b0:65:1e:c7 ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface ukphy0: OUI 0x000000, model 0x0000, rev. 0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ohci0 at pci0 dev 2 function 0: NEC USB Host Controller (rev. 0x43) ohci0: interrupting at irq 7 ohci0: OHCI version 1.0 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1 at pci0 dev 2 function 1: NEC USB Host Controller (rev. 0x43) ohci1: interrupting at irq 8 ohci1: OHCI version 1.0 usb1 at ohci1: USB revision 1.0 uhub1 at usb1 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0 at pci0 dev 2 function 2: NEC USB Host Controller (rev. 0x04) ehci0: interrupting at irq 5 ehci0: EHCI version 1.0 ehci0: companion controllers, 3 ports each: ohci0 ohci1 usb2 at ehci0: USB revision 2.0 uhub2 at usb2 uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 5 ports with 5 removable, self powered shb0 at mainbus0 scif0 at shb0 scif0: console obio0 at mainbus0 Kernelized RAIDframe activated boot device: <unknown> root device:ddb Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x6: mov r14, r15 db> ps PID PPID PGRP UID S FLAGS LWPS COMMAND WAIT 5 0 0 0 2 0x20200 1 usb2 4 0 0 0 2 0x20200 1 usb1 3 0 0 0 2 0x20200 1 usbtask usbtsk 2 0 0 0 2 0x20200 1 usb0 1 0 0 0 2 0x20000 1 init initexe >0 -1 0 0 2 0x20200 1 swapper db>
ということで、wdcをdisableにしたらちゃんと進んでいるっぽい所までわかったような気がする。
一週間と一日ぶりに朝から通常。
朝から新型車両で良かったね。
OさんにwdcをbackoutしたGENERIC kernelをもらって試してみる。
booting hd0a:netbsd-GENERIC-20050808 3886992+188872 [207408+193249]=0x4451e8 Start @ 0x8c001000 [1=0x8c3e4158-0x8c4461e8]... Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 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 3.99.7 (GENERIC) #1: Mon Aug 8 10:40:53 JST 2005 root@sweety:/export/current/daily/20050807/obj/landisk/sys/arch/landisk/compile/GENERIC Model: I-O DATA LANDISK total memory = 65536 KB avail memory = 58504 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-back P1 write-back full-associative 4 ITLB, 64 UTLB entries multiple virtual storage mode, SQ access: kernel, wired 61 shpcic0 at mainbus0: HITACHI SH7751R pci0 at shpcic0 pci0: i/o space, memory space enabled rtk0 at pci0 dev 0 function 0: Realtek 8139 10/100BaseTX rtk0: interrupting at irq 5 rtk0: Ethernet address 00:a0:b0:65:1e:c7 ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface ukphy0: OUI 0x000000, model 0x0000, rev. 0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ohci0 at pci0 dev 2 function 0: NEC USB Host Controller (rev. 0x43) ohci0: interrupting at irq 7 ohci0: OHCI version 1.0 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1 at pci0 dev 2 function 1: NEC USB Host Controller (rev. 0x43) ohci1: interrupting at irq 8 ohci1: OHCI version 1.0 usb1 at ohci1: USB revision 1.0 uhub1 at usb1 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0 at pci0 dev 2 function 2: NEC USB Host Controller (rev. 0x04) ehci0: interrupting at irq 5 ehci0: EHCI version 1.0 ehci0: companion controllers, 3 ports each: ohci0 ohci1 usb2 at ehci0: USB revision 2.0 uhub2 at usb2 uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 5 ports with 5 removable, self powered shb0 at mainbus0 scif0 at shb0 scif0: console obio0 at mainbus0 wdc0 at obio0 port 0x14000000-0x1400000f irq 10 atabus0 at wdc0 channel 0 Kernelized RAIDframe activated wd0 at atabus0 drive 0: <SanDisk SDCFB-512> wd0: drive supports 4-sector PIO transfers, LBA addressing wd0: 488 MB, 993 cyl, 16 head, 63 sec, 512 bytes/sect x 1000944 sectors wd0: drive supports PIO mode 4, DMA mode 2 boot device: wd0 root on wd0a dumps on wd0b root file system type: ffs Tue Aug 9 08:18:20 UTC 2005 Checking for botched superblock upgrades: done. Starting file system checks: /dev/rwd0a: file system is clean; not checking Setting tty flags. Setting sysctl variables: Starting network. Hostname: usl5p IPv6 mode: host Configuring network interfaces: rtk0. add net default: gateway 192.168.100.1 Adding interface aliases: Building databases... Starting syslogd. rtk0: watchdog timeout Checking for core dump... savecore: can't find device 560/940080 Aug 9 08:18:35 usl5p savecore: can't find device 560/940080 Mounting all filesystems... Clearing /tmp. Checking quotas: done. Setting securelevel: kern.securelevel: 0 -> 1 /etc/rc: WARNING: No swap space configured! Starting virecover. Starting local daemons:. Updating motd. Starting sshd. Starting sendmail. Starting inetd. Starting cron. Tue Aug 9 08:19:35 UTC 2005 NetBSD/landisk (usl5p) (console) login: root Aug 9 08:20:53 usl5p login: ROOT LOGIN (root) ON console Last login: Tue Aug 9 08:16:30 2005 on console Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 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 3.99.7 (GENERIC) #1: Mon Aug 8 10:40:53 JST 2005 Welcome to NetBSD! Terminal type? [unknown] Terminal type is unknown. We recommend creating a non-root account and using su(1) for root access. usl5p# usl5p# uname -a NetBSD usl5p 3.99.7 NetBSD 3.99.7 (GENERIC) #1: Mon Aug 8 10:40:53 JST 2005 root@XXXXX:/export/current/daily/20050807/obj/landisk/sys/arch/landisk/compile/GENERIC landisk usl5p#
わーい。動いた。やっぱりwdcへの変更が原因だった模様。
sys/dev/ic/wdc.cに加えられた次の修正が関係しているってことかな。(http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/wdc.c.diff?r1=1.224&r2=1.225)
一週間と一日ぶりに朝から通常。
朝から新型車両で良かったね。
おみやげに国鉄色の雷鳥。
なんかAPMが動いていないのに気がついた。
20050728-UTCに入れ替えてからだな。
かなり困るなぁ。なにがいけないんだろう。
wdcの問題を修正したlandiskがリリースされた。
*** nbsd-landisk-20050717/src/sys/arch/landisk/dev/wdc_obio.c Sat Jun 11 18:47:10 2005 --- nbsd-landisk-20050809/src/sys/arch/landisk/dev/wdc_obio.c Wed Aug 10 01:14:46 2005 *************** *** 119,124 **** --- 119,125 ---- goto outunmap; } + wdc.reset = wdc_do_reset; result = wdcprobe(&ch); if (result) { oa->oa_nio = 1;
ということらしい。prepのdev/wdc_obio.cも同様の対策がされたらしい。
20050808-UTCのsnapshotを作ろうと作業していたんだけど、いろいろ止まるので20050809を作りなおし。
今回は、NetBSD/dreamcastをネタにしております。
朝も夜も。
早めのシャワーに珍しく同意したな。
なんか、以前に比べて良く食べる気がする。
build.sh releaseを始めたまでは良かったのだけれど、HDDを食いつぶしてしまう。
不要なものを消したり、何度も対策したのだけれど最後のtgzが作れない。
evbarmはサポートしているboardがたくさんあるためkernelをすごくたくさん作る。全部で200Mbytes以上のディスクを消費していたみたい。
これではUSL-5Pで遊べないので泣く泣く消去。
メールはこちらへ...[BSD小僧 (tokuda @(at) tokuda .(dot) net)]
この日記は、GNSを使用して作成されています。