Wed 05/12, 2010

udl(4) on NetBSD/kurobox [Computer and Networking ]

kurobox-udl初代玄箱を入手したので「玄箱でNetBSDを動かす」を手本に NetBSD-5.0.2/evbppc を載せてみた。samba を動かせば元のファームと同様にファイルサーバとして使える。写真はついでに udl(4) も仕込んで getty を動かしたところ。スペックとしては LANDISK/USL-5P に近いが、ユーザランドを載せて gcc などを動かすととても遅い。gcc が妙にメモリを食っているようだが詳細は不明。

kurobox-udl-2.jpgシリアルコンソールでの起動ログはこんな感じ。

******* Product Information *******
----------------------------------
Product Name: KURO-BOX(IETSUNA)
          VER: 1.02
         Date: 2004/4/16 11:46:41
----------------------------------
Firmware check:done.

>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_kuro-box (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20010315 (release/MontaVista)) #4 2004?? 4月 16日 金曜日 11:45:05 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.407680 MHz
rtc sec count 1273771278
Calibrating delay loop... 129.84 BogoMIPS
Memory: 60532k available (1124k kernel code, 520k data, 188k init, 0k highmem)
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: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
    ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 5A320J0, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: 632672208 sectors (323928 MB) w/2048KiB Cache, CHS=39382/255/63, UDMA(100)
Partition check:
 hda: hda1 hda2 hda3 hda4
loop: loaded (max 8 devices)
FLASHDISK:Initialized [FUJITSU MBM29PL32TM]
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
tulip0:  MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:0D:xx:xx:xx:xx, IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2077k freed
Boot from /dev/hda1.
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Boot from /dev/hda1.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
change_root: old root has d_count=2
Trying to unmount old root ... okay
Freeing unused kernel memory: 188k init
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.78 booting
   --- bootsel/nbloader による NetBSD の起動
NetBSD loader module loaded
kernel=/boot/netbsd.bin
load address=0x00090000
boot device=0x00000000
boot flags=0x00000000
cmdline=bootdev=wd0h
flushing ide devices: hda
[ 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.0.2 (myKUROBOX) #2: Wed May 12 10:11:30 JST 2010
        root@x24:/ext/NetBSD/usr.502/src/evbppc.obj/sys/arch/evbppc/compile/myKUROBOX
total memory = 65536 KB
avail memory = 59164 KB
mainbus0 (root)
cpu0 at mainbus0: 8245 (Revision 0.4), ID 0 (primary)
cpu0: HID0 90c000<DOZE,DPM,ICE,DCE>, powersave: 1
cpu0: 195.10MHz
eumb0 at mainbus0
ociic0 at eumb0 addr 0xfc003000 irq 5: On-Chip I2C controller
iic0 at ociic0: I2C bus
rs5c372rtc0 at iic0 addr 0x32: RICOH RS5C372[AB] Real-time Clock
com0 at eumb0 addr 0xfc004600 irq 14: ns16550a, working fifo
com0: console
com1 at eumb0 addr 0xfc004500 irq 13: ns16550a, working fifo
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1057 product 0x0006 (rev. 0x14)
tlp0 at pci0 dev 11 function 0: ADMtek AN985 Ethernet, pass 1.1
tlp0: interrupting at irq 0
tlp0: Ethernet address 00:0d:xx:xx:xx:xx
ukphy0 at tlp0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00e092, model 0x0001, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cmdide0 at pci0 dev 12 function 0
cmdide0: Silicon Image 0680 (rev. 0x02)
cmdide0: primary channel wired to native-PCI mode
cmdide0: using irq 1 for native-PCI interrupt
atabus0 at cmdide0 channel 0
cmdide0: secondary channel wired to native-PCI mode
atabus1 at cmdide0 channel 1
ohci0 at pci0 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci0: interrupting at irq 3
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci1: interrupting at irq 3
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x04)
ehci0: interrupting at irq 3
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub0 at usb1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2 at usb0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3 at uhub1 port 2: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/7.02, addr 2
uhub3: single transaction translator
uhidev0 at uhub3 port 1 configuration 1 interface 0
uhidev0: vendor 0x05d5 KEYBOARD, rev 1.10/1.01, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0 mux 1
uhidev1 at uhub3 port 1 configuration 1 interface 1
uhidev1: vendor 0x05d5 KEYBOARD, rev 1.10/1.01, addr 3, iclass 3/1
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
ums0 at uhidev1 reportid 3: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus0 drive 0: <Maxtor 5A320J0>
wd0: 301 GB, 627651 cyl, 16 head, 63 sec, 512 bytes/sect x 632672208 sectors
udl0 at uhub3 port 2
udl0: DisplayLink I-O DATA LCD-USB7X, rev 2.00/0.02, addr 4
wsdisplay0 at udl0 kbdmux 1
Kernelized RAIDframe activated
boot device: wd0
root on wd0h dumps on wd0b
root file system type: ffs
Thu May 13 17:21:36 JST 2010
Starting file system checks:
/dev/rwd0h: ** Swapped byte order
/dev/rwd0h: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
kern.no_sa_support: 0 -> 1
ddb.onpanic: 1 -> 0
Starting network.
Hostname: kuro-box
IPv6 mode: host
Configuring network interfaces: tlp0.
Adding interface aliases:.
add net default: gateway 192.168.1.1
Building databases: dev, utmp, utmpx done
Starting syslogd.
Checking for core dump...
savecore: no core dump (invalid dumplo)
Mounting all filesystems...
Clearing temporary files.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: adding /swap as swap device at priority 1
Starting virecover.
Starting local daemons:.
Updating motd.
Starting sshd.
Starting nmbd.
Starting smbd.
Starting inetd.
Starting cron.
Thu May 13 17:21:50 JST 2010

NetBSD/evbppc (kuro-box) (console)

login: root
Password:
May 13 17:24:47 kuro-box login: ROOT LOGIN (root) ON console
Last login: Thu May 13 16:57:15 2010 on console
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.0.2 (myKUROBOX) #2: Wed May 12 10:11:30 JST 2010

Welcome to NetBSD!

Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
kuro-box# uname -a
NetBSD kuro-box 5.0.2 NetBSD 5.0.2 (myKUROBOX) #2: Wed May 12 10:11:30 JST 2010  root@x24:/ext/NetBSD/usr.502/src/evbppc.obj/sys/arch/evbppc/compile/myKUROBOX evbppc
kuro-box#

インストールメモ

  • シリアル用のピンヘッダを半田付けする前に R75, R76 の実装を忘れないこと。
  • http://www.ki.nu/hardware/kuro-box/netbsd.html こちらも参考に。
  • 最初の Linux をインストールする際、mfdisk を使ってマニュアルでパーティションを切る。単に mfdisk /dev/hda とすると、デフォルトのパーティションが切られる。Linux 箱として使わないならこの 3 パーティションでも良いが、/ が少なくて開発ツールを入れるのに不足する。mfdisk の使用方法は http://www.ki.nu/hardware/kuro-box/mfdisk.html を参考に。
  • パーティションを切って nbloader, bootsel を入れたら、HDD を外して別の NetBSD 機に取り付けて sysinst 無しでインストールするのが手っ取り早いと思う。あるいはそのようにしてインストールした USB メモリを kurobox に取り付けて起動し、そこから HDD にインストールする。

Posted by masato at 11:46 PM
このエントリーのトラックバックURL: http://bird.dip.jp/cgi-bin/mt/mt-tb.cgi/1757
コメントする

おそらく携帯電話等からは投稿できません。日本語文字列を含まないコメントやトラックバック、および当サイトへの言及を含まないトラックバックは御遠慮いただいております。また、90日以上経過した記事へのコメントはできません。










名前、アドレスを登録しますか?