contents
FreeBSDで遊ぶ
ここは、むとうがFreeBSD(というか、BSD)で遊んだ記録です。
- Squeak関係はこっち
最近の作業
OSC2011 Kansai@Kyoto 一日目
- 2011年07月15日(金)
OSC2011 Kansai@Kyoto 一日目に、K*BUGブースの一員として参加した。 OSC2011 Kansai@Kyotoに参加するのは、実に3年ぶりだ。 今回は、土曜日に用事があるので、今日のみの参加だ。
今回から会場がKRPに変わって、京都から一駅行ったところになっている。
K*BUGブース
K*BUGブースは、入り口を入って、一番右奥の場所。
K*BUGブースは、一日目はいしはらさんとむとうで展示を行っていた。
OSC2011 Kansai@Kyoto K*BUGブース配布物
以下のチラシをブースで配っていました。
- K*BUG配布チラシ x 100 ( /100)
- むとう展示説明用チラシ x 20
他にも以下のものを配っていました。
- NetBSD缶バッチ 大, 小 提供: JNUG おかのさん
NetBSD/xen (Dom0) で、 {Net, Free, Open, DragonFly}BSD (DomU) by いしはらさん
発表の詳細は、以下のページで。
makeの様子をsyslog経由で可視化する by のださん
組み合せ爆発: {Free,Net}BSD × Squeak / Processing × Gainer / Arduino × 木彫 by むとう
むとうがやり残したこと
- FreeBSD 9-currentで、onscripter(my port)を動かす
- ScratchのCameraPluginを安定的に動かす
JNUG関連
K*BUGブースのお隣は、いつものJNUGさん。
JNUGブース
JNUGさんは、ご当地マシンのOMRON LUNAをはじめとして、NEWS, sum3のm68kのワークステーション3台構成。 完全なおっさんホイホイ構成だ。 今回は、LUNAがあったので、開発に関わった人が入れ替わり立ち代わり解説者となるなど、すごい展示だった。
展示に関しては、写真も含めて筒井さんご本人が説明ページを作っておられます。
配布物は以下のようなものがあったようです。
- Opensource Conference 2011 Kyoto 観光ガイド x 15?
- NetBSDステッカー (ロゴ、萌など)
JNUG 「NetBSDのご紹介」セミナー
デ変研 祇園祭 2011参加
mutoh_20110621
mutoh% sudo mkdir -p /usr/netbsd/usr/src Password: mutoh% sudo chown mutoh /usr/netbsd/usr/src mutoh% cd /usr/netbsd/usr/src mutoh% cd /usr/netbsd/usr mutoh% export CVS_RSH="ssh" mutoh% export CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot" mutoh% cd .. mutoh% cvs checkout -P src (snip)
mutoh% uname -a
FreeBSD mutoh.int.sacraya.net 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Mon Jun 20 22:22:22 JST 2011 root@mutoh.int.sacraya.net:/usr/obj/usr/src/sys/GENERIC i386
mutoh% ./build.sh -m hpcarm tools |& tee build-tools-hpcarm.20110621.txt
(snip)
cc -O -I. -I/usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/include/nbinclude -I/usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/include -I/usr/netbsd/usr/src/tools/compat/obj -I/usr/netbsd/usr/src/tools/compat/obj/include -I/usr/netbsd/usr/src/tools/makefs/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs -I/usr/netbsd/usr/src/sbin/mknod -I/usr/netbsd/usr/src/usr.sbin/mtree -I/usr/netbsd/usr/src/sys/fs/cd9660 -c -o cd9660_eltorito.lo.o /usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs/cd9660/cd9660_eltorito.c
In file included from /usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs/cd9660/cd9660_eltorito.c:39:
/usr/include/sys/endian.h:101: error: conflicting types for 'be16dec'
/usr/netbsd/usr/src/sys/fs/cd9660/iso.h:199: error: previous implicit declaration of 'be16dec' was here
/usr/include/sys/endian.h:109: error: conflicting types for 'be32dec'
/usr/netbsd/usr/src/sys/fs/cd9660/iso.h:224: error: previous implicit declaration of 'be32dec' was here
/usr/include/sys/endian.h:125: error: conflicting types for 'le16dec'
/usr/netbsd/usr/src/sys/fs/cd9660/iso.h:192: error: previous implicit declaration of 'le16dec' was here
/usr/include/sys/endian.h:133: error: conflicting types for 'le32dec'
/usr/netbsd/usr/src/sys/fs/cd9660/iso.h:217: error: previous implicit declaration of 'le32dec' was here
*** Failed target: cd9660_eltorito.lo
*** Failed command: cc -O -I. -I/usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/include/nbinclude -I/usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/include -I/usr/netbsd/usr/src/tools/compat/obj -I/usr/netbsd/usr/src/tools/compat/obj/include -I/usr/netbsd/usr/src/tools/makefs/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs -I/usr/netbsd/usr/src/sbin/mknod -I/usr/netbsd/usr/src/usr.sbin/mtree -I/usr/netbsd/usr/src/sys/fs/cd9660 -c -o cd9660_eltorito.lo.o /usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs/cd9660/cd9660_eltorito.c
*** Error code 1
Stop.
nbmake: stopped in /usr/netbsd/usr/src/tools/makefs
*** Failed target: dependall
*** Failed command: cd "/usr/netbsd/usr/src/tools/makefs"; /usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /usr/netbsd/usr/src/tools/makefs
*** Failed target: dependall-makefs
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/netbsd/usr/src/tools" ;; *) this="${dir}/"; real="/usr/netbsd/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget makefs dependall
*** Error code 1
Stop.
nbmake: stopped in /usr/netbsd/usr/src/tools
ERROR: Failed to make dependall in "tools"
*** BUILD ABORTED ***
mutoh% ./build.sh -m hpcarm tools |& tee -a build-tools-hpcarm.20110621.txt
(snip)
*** Failed target: cd9660_eltorito.lo
*** Failed command: cc -O -I. -I/usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/include/nbinclude -I/usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/include -I/usr/netbsd/usr/src/tools/compat/obj -I/usr/netbsd/usr/src/tools/compat/obj/include -I/usr/netbsd/usr/src/tools/makefs/../compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs -I/usr/netbsd/usr/src/sbin/mknod -I/usr/netbsd/usr/src/usr.sbin/mtree -I/usr/netbsd/usr/src/sys/fs/cd9660 -c -o cd9660_eltorito.lo.o /usr/netbsd/usr/src/tools/makefs/../../usr.sbin/makefs/cd9660/cd9660_eltorito.c
*** Error code 1
Stop.
nbmake: stopped in /usr/netbsd/usr/src/tools/makefs
*** Failed target: dependall
*** Failed command: cd "/usr/netbsd/usr/src/tools/makefs"; /usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /usr/netbsd/usr/src/tools/makefs
*** Failed target: dependall-makefs
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/netbsd/usr/src/tools" ;; *) this="${dir}/"; real="/usr/netbsd/usr/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/netbsd/usr/src/obj/tooldir.FreeBSD-9.0-CURRENT-i386/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget makefs dependall
*** Error code 1
Stop.
nbmake: stopped in /usr/netbsd/usr/src/tools
ERROR: Failed to make dependall in "tools"
*** BUILD ABORTED ***
まわりに転がっているものとか
- 2009年11月23日(月)
ひつまぶし^H^H^H^H^H暇つぶしに、回りに転がっているUSBなものを刺したり抜いたりしてみた。
なんか、動かなくなっているもの、動かないものが多いので、なんとかせねばいかんところ。
fuji [ ~ ] % uname -a FreeBSD fuji.mutoh.dyndns.org 8.0-PRERELEASE FreeBSD 8.0-PRERELEASE #26: Wed Nov 18 02:16:50 JST 2009 root@fuji.mutoh.dyndns.org:/usr/obj/usr/src/sys/GENERIC i386
ugen0.3: <Strawberry Linux Co.,Ltd.> at usbus0 uhid0: <Strawberry Linux Co.,Ltd. Hygrometer/Thermometer, class 0/0, rev 1.10/1.00, addr 3> on usbus0
ugen0.4: <BUILDWIN> at usbus0 umass0: <DPF Mate> on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 cd0 at umass-sim0 bus 0 target 0 lun 0 cd0: <buildwin Photo Frame 1.01> Removable CD-ROM SCSI-2 device cd0: 1.000MB/s transfers cd0: cd present [4096 x 2048 byte records]
fuji [ ~ ] % sudo mount_cd9660 /dev/cd0 /mnt fuji [ ~ ] % ls -lR /mnt total 242 -r-xr-xr-x 1 root wheel 47 6 2 00:48 Autorun.inf -r-xr-xr-x 1 root wheel 122880 6 20 01:49 DPFMate.exe -r-xr-xr-x 1 root wheel 21936 6 18 01:34 LanguageUnicode.ini -r-xr-xr-x 1 root wheel 101608 6 2 00:55 MacDPFmate.zip -r-xr-xr-x 1 root wheel 834 8 15 14:33 StartInfoUnicode.ini -r-xr-xr-x 1 root wheel 1440 12 28 2008 flashlib.dat
ugen0.4: <Canon Inc.> at usbus0
ugen0.4: <Generic> at usbus0 umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/2.05, addr 4> on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION csi:0,aa,55,1 asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed field replaceable unit: 1 (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Multi Flash Reader 1.00> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 3897MB (7982080 512 byte sectors: 255H 63S/T 496C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary.
fuji [ ~ ] % sudo mount_msdosfs /dev/da0s1 /mnt fuji [ ~ ] % ls -lR /mnt total 160 drwxr-xr-x 1 root wheel 32768 7 13 09:41 Autorun drwxr-xr-x 1 root wheel 32768 11 22 16:12 DCIM drwxr-xr-x 1 root wheel 32768 11 18 15:51 EyeFi drwxr-xr-x 1 root wheel 32768 11 18 12:39 START HERE -rwxr-xr-x 1 root wheel 156 10 24 2007 autorun.inf /mnt/.Trashes/502: total 0 /mnt/Autorun: total 352 -rwxr-xr-x 1 root wheel 134864 3 11 2009 Autorun.exe -rwxr-xr-x 1 root wheel 135804 11 23 2008 EyeFi.ico drwxr-xr-x 1 root wheel 32768 7 13 09:41 Locales /mnt/Autorun/Locales: total 32 -rwxr-xr-x 1 root wheel 3072 3 11 2009 AutoRunJPN.dll /mnt/DCIM: total 64 drwxr-xr-x 1 root wheel 32768 11 22 16:12 100CANON drwxr-xr-x 1 root wheel 32768 11 23 11:07 CANONMSC /mnt/DCIM/100CANON: total 0 /mnt/DCIM/CANONMSC: total 32 -rwxr-xr-x 1 root wheel 292 11 23 11:07 M0100.CTG /mnt/EyeFi: total 128 -rwxr-xr-x 1 root wheel 16384 11 22 16:10 REQC -rwxr-xr-x 1 root wheel 16384 11 22 16:10 REQM -rwxr-xr-x 1 root wheel 16384 11 18 15:51 RSPC -rwxr-xr-x 1 root wheel 16384 11 18 15:51 RSPM /mnt/START HERE: total 64 drwxr-xr-x 1 root wheel 32768 11 18 12:39 Mac OS X drwxr-xr-x 1 root wheel 32768 7 13 09:41 Windows /mnt/START HERE/Mac OS X: total 5824 -rwxr-xr-x 1 root wheel 5958018 3 12 2009 Eye-Fi.dmg /mnt/START HERE/Windows: total 2656 -rwxr-xr-x 1 root wheel 2709800 3 11 2009 Setup.exe
ugen0.4: <MDS> at usbus0
ugen0.4: <vendor 0x0a12> at usbus0
ugen0.4: <Prolific Technology Inc.> at usbus0 uplcom0: <Prolific Technology Inc. USB-Serial Controller D, class 0/0, rev 1.10/4.00, addr 4> on usbus0
fuji [ ~ ] % sudo cu -l /dev/ttyU0 -s 38400 Connected $GPGGA,064438.000,3437.1335,N,13545.6810,E,0,00,0.0,111.6,M,0.0,M,,0000*69 $GPGSA,A,1,,,,,,,,,,,,,0.0,0.0,0.0*30 $GPGSV,3,1,10,17,83,343,,04,43,296,,20,40,046,,23,35,097,*70 $GPGSV,3,2,10,13,26,139,,28,26,199,,11,16,089,,32,15,043,*7F $GPGSV,3,3,10,02,1$GPGGA,064440.000,3437.1335,N,13545.6810,E,0,00,0.0,111.6,M,0.0,M,,0000*66 $GPGSA,A,1,,,,,,,,,,,,,0.0,0.0,0.0*30 $GPRMC,064440.000,V,3437.1335,N,13545.6810,E,000.0,000.0,231109,,,N*72 $GPVTG,000.0,T,,M,000.0,N,000.0,K,N*02
ugen0.4: <vendor 0x0d8c> at usbus0 uaudio0: <vendor 0x0d8c product 0x0001, class 0/0, rev 1.10/0.10, addr 4> on usbus0 uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format uaudio0: No recording! uaudio0: No midi sequencer pcm0: <USB audio> on uaudio0
ugen0.4: <Microsoft> at usbus0
miibus1: <MII bus> on axe0 ukphy0: <Generic IEEE 802.3u media interface> PHY 16 on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: <USB Ethernet> on axe0 ue0: Ethernet address: 00:1e:c2:ff:92:21 ue0: link state changed to DOWN
ugen0.4: <HTC> at usbus0 ugen0.4: <HTC> at usbus0 (disconnected) ugen0.4: <HTC> at usbus0 umass0: <HTC Storage, class 0/0, rev 2.00/0.00, addr 4> on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < > Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 1947MB (3987456 512 byte sectors: 255H 63S/T 248C) GEOM: da0: partition 1 does not start on a track boundary. GEOM: da0: partition 1 does not end on a track boundary.
UNIXを学びながら笑ったものいろいろ
- 2009年10月24日(土)
UNIXを学びながら笑ったものいろいろ。 うーん、いい感じです。
UNIX エンジニアの失われた10年
- 2009年10月14日(水)
twitterでの誰だったかのつぶやきから、 UNIX エンジニアの失われた10年。
そうか、オレ、失われた世代だったから、違和感があるのか?
でも、私が学部生(1992-1994)だったころは、jus関西などはそれなりに活況だったと思う。 4.3BSDの話とか、ワクワクしながら聞いてたもん。 あと、飲み会の規模も、とてつもなくでかかったと思うんだ。
これって、関西方面だけの話?
ついでに…
RemotePadをbuildしてみる
- 2009年09月19日(土)
さて、連休1日目、タイミングよくiPhone SDKが利用できるMacが手に入ったので、ちょっと使ってみる。
具体的なスペックは、以下の通り。
- CPU: Core 2 Duo 1.8GHz
- Memory: 2GB
- Disk: SAMSUNG HS082HB 74.53 GB
- Graphics: GMA X3100
実は、今までPowerPCのMacしか使ったこと無かったので、あまりの早さに驚いている。
currentすっか、そうっすか
- 2009年06月23日(火)
current見てみと天の声があったので、環境を用意する。
Anonymous CVS サーバー を参考にcurrent持ってくる。
で、kernel作る。
===> Summary of results:
build.sh command: ./build.sh -m hpcmips kernel=GENERIC
build.sh started: Tue Jun 23 19:00:28 JST 2009
NetBSD version: 5.99.14
MACHINE: hpcmips
MACHINE_ARCH: mipsel
Build platform: FreeBSD 7.2-RELEASE-p1 amd64
HOST_SH: /bin/sh
TOOLDIR path: /usr/home/mutoh/work/NetBSD/current/src/tooldir.FreeBSD-7.2-RELEASE-p1-amd64
DESTDIR path: /usr/home/mutoh/work/NetBSD/current/src/destdir.hpcmips
RELEASEDIR path: /usr/home/mutoh/work/NetBSD/current/src/releasedir
makewrapper: /usr/home/mutoh/work/NetBSD/current/src/tooldir.FreeBSD-7.2-RELEASE-p1-amd64/bin/nbmake-hpcmips
Updated /usr/home/mutoh/work/NetBSD/current/src/tooldir.FreeBSD-7.2-RELEASE-p1-amd64/bin/nbmake-hpcmips
Building kernel without building new tools
Building kernel: GENERIC
Build directory: /usr/home/mutoh/work/NetBSD/current/src/sys/arch/hpcmips/compile/obj/GENERIC
Kernels built from GENERIC:
/usr/home/mutoh/work/NetBSD/current/src/sys/arch/hpcmips/compile/obj/GENERIC/netbsd
build.sh ended: Tue Jun 23 19:04:57 JST 2009
===> .
ダメだ…
--------HPCBOOT--------
sysinfo.dwPageSize = 1024
MemoryManager: LockPages
FileManager: UFS
hpcboot build number: 14
NEC MC-R530 (cpu=0x04104300 machine=0x00420206)
[progress] 2
[0] 0x80000000 size 0x04000000
_WIN32_WCE = 211
GetVersionEx
Windows CE 2.11
GetSystemInfo:
wProcessorArchitecture 0x1
wProcessorLevel 0x4
wProcessorRevision 0xc60
dwPageSize 0x400
dwAllocationGranularity 0x00010000
dwProcessorType 0xfa0
Display: 640x240 16bpp
VR41
[progress] 3
[progress] 4
open file "netbsd" (4403581 byte).
[progress] 5
Loader: ELF
[progress] 6
file size: 0x34f310+[ksyms: header 0x690, symtab 0x3d6e0, strtab 0x3b345 = 0x790b5]+[extra: 0xfc0] = 0x3c9475 bytes
address translation table 3968 pages. (0x7c00 bytes)
allocated 3968 page. mapped 3968 page.
[progress] 7
2nd bootloader vaddr=0x0048fc00 paddr=0x00d1bc00
2nd bootloader copy done.
[progress] 8
seg[1] vaddr 0x80000000 file size 0x34f310 mem size 0x3b3640
->load 0x80000000+0x003b3640=0x803b3640 ofs=0x00000000+0x34f310
->zero 0x8034f310+0x00064330=0x803b3640
ksyms
->load 0x803b3640+0x00000690=0x803b3cd0
->load 0x803b3cd0+0x0003d6e0=0x803f13b0 ofs=0x003ba758+0x3d6e0
->load 0x803f13b0+0x0003b345=0x8042c6f5 ofs=0x003f7e38+0x3b345
[progress] 9
load link 3935, zero clear link 1
kernel entry address: 0x80001000
framebuffer: 640x240 type=5 linebytes=1280 addr=0xaa180100
console = 2
[progress] 10
jump to 0x80d1bc00 (info=0x80d1b800, pvec=0x8093ac00)
mem_cluster_cnt = 2
mem_clusters[0] = {0x0,0x42f000}
mem_clusters[1] = {0x42f000,0xbd1000}
loading 0x42f000,0xbd1000
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.14 (GENERIC) #0: Tue Jun 23 19:04:56 JST 2009
root@gig-test2.kclab.nict.go.jp:/usr/home/mutoh/work/NetBSD/current/src/sys/arch/hpcmips/compile/obj/GENERIC
NEC MC-R530 (NEC VR4121 rev1.2 168.521MHz)
total memory = 16384 KB
avail memory = 11492 KB
WARNING: module error: can't find `layerfs'
mainbus0 (root)
cpu0 at mainbus0: NEC VR4100 CPU (0xc60) Rev. 6.0 with software emulated floating point
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 32 TLB entries
cpu0: 8KB/16B direct-mapped write-back L1 Data cache
vr4102ip0 at mainbus0
vrbcu0 at vr4102ip0 addr 0x0b000000-001f
vrbcu0: CPU 168.521MHz, bus 28.086MHz, ram 56.173MHz
vrcmu0 at vr4102ip0 addr 0x0b000060-007f
vrgiu0 at vr4102ip0 addr 0x0b000100-011f
button1 at vrgiu0 port=3 id=13 active=high sense=edge
button2 at vrgiu0 port=2 id=16 active=high sense=edge
pwctl0 at vrgiu0 port=46 id=0 on=1
pwctl3 at vrgiu0 port=44 id=6 on=1
vrdmaau0 at vr4102ip0 addr 0x0b000020-0037
vrdcu0 at vr4102ip0 addr 0x0b000040-004b
com0 at vr4102ip0 addr 0x0c000000-0007: ns16550a, working fifo
com0: console
vrrtc0 at vr4102ip0 addr 0x0b0000c0-00df
vrkiu0 at vr4102ip0 addr 0x0b000180-019f
hpckbd0 at vrkiu0
wskbd0 at hpckbd0 mux 1
vrpmu0 at vr4102ip0 addr 0x0b0000a0-00bf
vrpmu: Deadman's switch detected
vrdsu0 at vr4102ip0 addr 0x0b0000e0-00e7
vrled0 at vr4102ip0 addr 0x0b000240-024f
vrpiu0 at vr4102ip0 addr 0x0b000120-013f, 0x0b0002a0-02bf
wsmouse0 at vrpiu0 mux 0
vrpiu0: WARNING: powerhook_establish is deprecated
mqvideo0 at vr4102ip0 addr 0x0a000000-7fffff: MQ200 Rev.00 video controller
mqvideo0: framebuffer address: 0xaa180100
mqvideo0: WARNING: powerhook_establish is deprecated
hpcfb0 at mqvideo0
wsdisplay0 at hpcfb0 kbdmux 1
hpcfb0: WARNING: powerhook_establish is deprecated
vrc4172pwm0 at vr4102ip0 addr 0x15003880-3885
vraiu0 at vr4102ip0 addr 0x0b000160-017f
audio0 at vraiu0: half duplex
vrisab0 at vrgiu0: ISA port 0x14000000-0x18000000 mem 0x10000000-0x14000000
isa0 at vrisab0
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0x70000-0x73fff irq 589827
pcic0: controller 0 (Ricoh RF5C396) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
btnmgr0 at mainbus0
wskbd1 at btnmgr0 mux 1
hpcapm0 at mainbus0: pseudo power management module
apmdev0 at hpcapm0: Power Management spec V1.2
pcic0: using irq 589827 for socket events
pcic0: WARNING: powerhook_establish is deprecated
pcic0: WARNING: powerhook_establish is deprecated
WARNING: module error: can't find `layerfs'
boot device: <unknown>
root device:
うむ、イベントまでの時間がなくなって来た…
- 2009年06月20日(土)
ああ、イベントまでの時間が無くなってきたぁ。
いつものとおり、調子にのって、NetBSD/hpcmipsを更新したら、どうも5.0ではディスクが見えない。
インストールカーネルだと見えるけども、どうも認識されているのが遅い気がする。 これって、どっかにwaitを入れると解決するような気もするんだけど、どうすればいいんだろうか?
まあ、MicroDrive 6GBなんてものを使っているのが悪い気もするけども…
NetBSD 3.1の時
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.1 (GENERIC) #0: Tue Oct 31 02:56:39 UTC 2006
builds@b1.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/hpcmips/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/hpcmips/compile/GENERIC
NEC MC-R530 (NEC VR4121 rev1.2 168.521MHz)
total memory = 16384 KB
avail memory = 11952 KB
mainbus0 (root)
cpu0 at mainbus0: NEC VR4100 CPU (0xc60) Rev. 6.0 with software emulated floating point
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 32 TLB entries
cpu0: 8KB/16B direct-mapped write-back L1 Data cache
vr4102ip0 at mainbus0
vrbcu0 at vr4102ip0 addr 0x0b000000-001f
vrbcu0: CPU 168.521MHz, bus 28.086MHz, ram 56.173MHz
vrcmu0 at vr4102ip0 addr 0x0b000060-007f
vrgiu0 at vr4102ip0 addr 0x0b000100-011f
button1 at vrgiu0 port=3 id=13 active=high sense=edge
button2 at vrgiu0 port=2 id=16 active=high sense=edge
pwctl0 at vrgiu0 port=46 id=0 on=1
pwctl3 at vrgiu0 port=44 id=6 on=1
vrdmaau0 at vr4102ip0 addr 0x0b000020-0037
vrdcu0 at vr4102ip0 addr 0x0b000040-004b
com0 at vr4102ip0 addr 0x0c000000-0007: ns16550a, working fifo
com0: console
vrrtc0 at vr4102ip0 addr 0x0b0000c0-00df
vrkiu0 at vr4102ip0 addr 0x0b000180-019f
hpckbd0 at vrkiu0
wskbd0 at hpckbd0 mux 1
vrpmu0 at vr4102ip0 addr 0x0b0000a0-00bf
vrdsu0 at vr4102ip0 addr 0x0b0000e0-00e7
vrled0 at vr4102ip0 addr 0x0b000240-024f
vrpiu0 at vr4102ip0 addr 0x0b000120-013f, 0x0b0002a0-02bf
wsmouse0 at vrpiu0 mux 0
mqvideo0 at vr4102ip0 addr 0x0a000000-7fffff: MQ200 Rev.00 video controller
mqvideo0: framebuffer address: 0xaa180100
hpcfb0 at mqvideo0
wsdisplay0 at hpcfb0 kbdmux 1
wsmux1: connecting to wsdisplay0
wskbd0: connecting to wsdisplay0
vrc4172pwm0 at vr4102ip0 addr 0x15003880-3885
vraiu0 at vr4102ip0 addr 0x0b000160-017f
audio0 at vraiu0: half duplex
vrisab0 at vrgiu0: ISA port 0x14000000-0x18000000 mem 0x10000000-0x14000000
isa0 at vrisab0
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0x70000-0x73fff irq 589827
pcic0: controller 0 (Ricoh RF5C396) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
btnmgr0 at mainbus0
wskbd1 at btnmgr0 mux 1
wskbd1: connecting to wsdisplay0
hpcapm0 at mainbus0: pseudo power management module
apmdev0 at hpcapm0: Power Management spec V1.2
pcic0: using irq 589827 for socket events
wdc1 at pcmcia0 function 0: <HITACHI, microdrive>
pcic0: port 0x14000400-0x1400040f
wdc1: i/o mapped mode
pcmcia0: card irq 3
hpcapm: battery life 80%
hpcapm: battery state high
atabus0 at wdc1 channel 0
wd0 at atabus0 drive 0: <HMS360606D5CF00>
wd0: drive supports 32-sector PIO transfers, LBA addressing
wd0: 5859 MB, 11905 cyl, 16 head, 63 sec, 512 bytes/sect x 12000556 sectors
wd0: drive supports PIO mode 4
boot device: wd0
root on wd0a dumps on wd0b
pcmcia0: card irq 3
pcmcia0: card irq 3
root file system type: ffs
WARNING: preposterous clock chip time
-- CHECK AND RESET THE DATE!
panic: init died (signal 0, exit 1)
Stopped in pid 1.1 (init) at netbsd:cpu_Debugger+0x4: jr ra
bdslot: nop
db>
NetBSD 5.0の時
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008
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 (GENERIC) #0: Sun Apr 26 17:20:03 UTC 2009
builds@b1.netbsd.org:/home/builds/ab/netbsd-5-0-RELEASE/hpcmips/200904260229Z-obj/home/builds/ab/netbsd-5-0-RELEASE/src/sys/arch/hpcmips/compile/GENERIC
NEC MC-R530 (NEC VR4121 rev1.2 168.521MHz)
total memory = 16384 KB
avail memory = 11368 KB
mainbus0 (root)
cpu0 at mainbus0: NEC VR4100 CPU (0xc60) Rev. 6.0 with software emulated floating point
cpu0: 16KB/16B direct-mapped L1 Instruction cache, 32 TLB entries
cpu0: 8KB/16B direct-mapped write-back L1 Data cache
vr4102ip0 at mainbus0
vrbcu0 at vr4102ip0 addr 0x0b000000-001f
vrbcu0: CPU 168.521MHz, bus 28.086MHz, ram 56.173MHz
vrcmu0 at vr4102ip0 addr 0x0b000060-007f
vrgiu0 at vr4102ip0 addr 0x0b000100-011f
button1 at vrgiu0 port=3 id=13 active=high sense=edge
button2 at vrgiu0 port=2 id=16 active=high sense=edge
pwctl0 at vrgiu0 port=46 id=0 on=1
pwctl3 at vrgiu0 port=44 id=6 on=1
vrdmaau0 at vr4102ip0 addr 0x0b000020-0037
vrdcu0 at vr4102ip0 addr 0x0b000040-004b
com0 at vr4102ip0 addr 0x0c000000-0007: ns16550a, working fifo
com0: console
vrrtc0 at vr4102ip0 addr 0x0b0000c0-00df
vrkiu0 at vr4102ip0 addr 0x0b000180-019f
hpckbd0 at vrkiu0
wskbd0 at hpckbd0 mux 1
vrpmu0 at vr4102ip0 addr 0x0b0000a0-00bf
vrdsu0 at vr4102ip0 addr 0x0b0000e0-00e7
vrled0 at vr4102ip0 addr 0x0b000240-024f
vrpiu0 at vr4102ip0 addr 0x0b000120-013f, 0x0b0002a0-02bf
wsmouse0 at vrpiu0 mux 0
vrpiu0: WARNING: powerhook_establish is deprecated
mqvideo0 at vr4102ip0 addr 0x0a000000-7fffff: MQ200 Rev.00 video controller
mqvideo0: framebuffer address: 0xaa180100
mqvideo0: WARNING: powerhook_establish is deprecated
hpcfb0 at mqvideo0
hpcfb0: WARNING: powerhook_establish is deprecated
wsdisplay0 at hpcfb0 kbdmux 1
vrc4172pwm0 at vr4102ip0 addr 0x15003880-3885
vraiu0 at vr4102ip0 addr 0x0b000160-017f
audio0 at vraiu0: half duplex
vrisab0 at vrgiu0: ISA port 0x14000000-0x18000000 mem 0x10000000-0x14000000
isa0 at vrisab0
pcic0 at isa0 port 0x3e0-0x3e1 iomem 0x70000-0x73fff irq 589827
pcic0: controller 0 (Ricoh RF5C396) has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
btnmgr0 at mainbus0
wskbd1 at btnmgr0 mux 1
hpcapm0 at mainbus0: pseudo power management module
apmdev0 at hpcapm0: Power Management spec V1.2
pcic0: using irq 589827 for socket events
pcic0: WARNING: powerhook_establish is deprecated
pcic0: WARNING: powerhook_establish is deprecated
boot device: <unknown>
root device:
arduino用avrdude ports作成
- 2009年06月14日(日)
環境の復旧に腹立たしくなってきたら、もうportsを作るタイミングだ;-p
というわけで、作った。
CLCD-BOOSTERのセンサースケッチをベースに、 パッチを当てたものが期待通りに動いているような気がする。
arduino本体もportsにしたいんだけども、こういう展開一発もんはなぁ…
Arduino環境調整
- 2009年06月13日(土)
何も考えずにportupgrade -aを重ねている都合で、avrdudeが更新されて上書きされていたので、arduino版avrdudeに戻す。
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo mv /usr/local/bin/avrdude /usr/local/bin/avrdude.5.6
Password:
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo cp avrdude /usr/local/bin
fuji [ work/arduino/avrdude-5.4-arduino-src ] % avrdude -v
avrdude: Version 5.4-arduino, compiled on Jun 13 2009 at 14:41:12
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/usr/local/etc/avrdude.conf"
error at /usr/local/etc/avrdude.conf:316 unrecognized character: "a"
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo mv /usr/local/etc/avrdude.conf /usr/local/etc/avrdude.conf.5.6
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo cp avrdude.conf /usr/local/etc
fuji [ work/arduino/avrdude-5.4-arduino-src ] % avrdude -v
avrdude: Version 5.4-arduino, compiled on Jun 13 2009 at 14:41:12
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/usr/local/etc/avrdude.conf"
User configuration file is "/home/mutoh/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
avrdude: no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again
これで、(以前どうやって設定したのか覚えていない)Arduino 11 alphaは動いた。
Arduino 16 for Linux
java.io.IOException: Cannot run program "/usr/home/mutoh/work/arduino/arduino-0016/hardware/tools/avr/bin/avr-g++": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.Library.build(Library.java:436)
at processing.app.LibraryManager.buildAllUnbuilt(LibraryManager.java:228)
at processing.app.Editor.prepareLibraries(Editor.java:384)
at processing.app.Base.<init>(Base.java:149)
at processing.app.Base.main(Base.java:104)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 7 more
Unspecified platform, no launcher available.
fuji [ work/arduino/arduino-0016 ] % cd hardware/tools/ fuji [ arduino-0016/hardware/tools ] % mkdir avr fuji [ hardware/tools/avr ] % ln -s /usr/local/bin
IDEの文字化け対応
FreeBSD 上の Java で日本語が文字化け参考に直す。
fuji [ work/arduino/CLCD_BOOSTER ] % sh -c 'for i in `find /usr/local/*jdk* -name fonts | grep lib`; do (cd $i && sudo ln -s /usr/local/lib/X11/fonts/TrueType fallback); done'

