Function | Include plugin
You can include other page.
Example
ここは、むとうがFreeBSD(というか、BSD)で遊んだ記録です。
- Squeak関係はこっち
最近の作業
K*BUGでの発表
- 2012年04月21日(土)
K*BUG研究会2012/04/21で、 FreeBSD port lang/squeak4.4.7-2375への道 を発表しました。
FreeBSDで音楽CDを作る(3)
- 2012/03/29
FreeBSDで音楽CDを作る(3)
FreeBSDで音楽CDを作る(2)のつづき。
wavデータの分割
- audio/xwave
- audio/audacity http://audacity.sourceforge.net
audacity
insp700m [ ~ ] % cat /var/db/ports/audacity/options _OPTIONS_READ=audacity-1.2.4b_9 WITH_ID3TAG=true WITH_MAD=true WITH_VORBIS=true
FreeBSDで音楽CDを作る(2)
- 2012/03/26
FreeBSDで音楽CDを作る(2)
FreeBSDで音楽CDを作る などのつづき。
オーディオ入力 (cont'd)
今回録音した時のmixerの設定は、以下のとおり。
insp700m [ ~ ] % mixer Mixer vol is currently set to 90:90 Mixer pcm is currently set to 90:90 Mixer speaker is currently set to 90:90 Mixer line is currently set to 90:90 Mixer mic is currently set to 90:90 Mixer cd is currently set to 75:75 Mixer rec is currently set to 90:90 Mixer igain is currently set to 50:50 Mixer ogain is currently set to 50:50 Mixer line1 is currently set to 75:75 Mixer phin is currently set to 0:0 Mixer phout is currently set to 0:0 Mixer video is currently set to 75:75 Recording source: mic
この設定で、パソコンのマイク入力から取ったデータは、そのままスピーカやヘッドフォンに出力される。
オーティオデータは、soxで読み取るのが楽そう。
raw データなら、/dev/dsp0.0をcatするという方法でも取得可能。
sox (audio/sox) のインストール
とりあえず、インストールする。
% sudo portinstall audio/sox |& tee -a ~/log/ports-sox.20120325.txt (snip)
今回のコンパイルオプション (ports knob) は、以下のとおり。
- /var/db/ports/sox/options
insp700m [ ~ ] % cat /var/db/ports/sox/options _OPTIONS_READ=sox-14.3.2_3 WITH_ALSA=true WITH_AO=true WITHOUT_AMRNB=true WITHOUT_AMRWB=true WITH_FFMPEG=true WITH_FLAC=true WITH_GSM=true WITH_ID3TAG=true WITHOUT_LADSPA=true WITH_LAME=true WITH_MAD=true WITH_PNG=true WITH_SNDFILE=true WITH_VORBIS=true WITH_WAVPACK=true
sox でのオーディオデータの読込
sox自体にコマンドラインオプションを指定して録音することもできるが、recコマンドがあるのでそれを使う。
% rec hoge.wav gain 20 Input File : 'default' (alsa) Channels : 2 Sample Rate : 48000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM In:0.00% 00:00:06.49 [00:00:00.00] Out:307k [ ====|==== ] Clip:0 ^C Aborted.
できたファイルは、以下のとおり。
% file hoge.wav hoge.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 48000 Hz
うちでは、ALSAを使うと不安定になることがあったため、以下のようにOSSを使うようにした。
% AUDIODRIVER=oss rec hoge.wav (snip)
soxでの再生
soxには、再生用のコマンドとして、playも用意されている。
% play hoge.wav hoge.wav: File Size: 1.23M Bit Rate: 1.54M Encoding: Signed PCM Channels: 2 @ 16-bit Samplerate: 48000Hz Replaygain: off Duration: 00:00:06.40 In:100% 00:00:06.40 [00:00:00.00] Out:307k [ -=|=- ] Clip:0 Done.
参考情報: 実際のCDデータに関して
とあるCDのデータは、以下のような感じ。
% file audio_01.wav audio_01.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz % play audio_01.wav audio_01.wav: File Size: 26.7M Bit Rate: 1.41M Encoding: Signed PCM Channels: 2 @ 16-bit Samplerate: 44100Hz Replaygain: off Duration: 00:02:31.27 In:0.80% 00:00:01.21 [00:02:30.06] Out:53.2k [ -==|==- ] Clip:0
wavの切り分けはどうしよう?
insp700m [ ~/hobby/cd ] % sudo portinstall audio/xwave|& tee -a ~/log/ports-xwave.20120325.txt (snip)
FreeBSDで音楽CDを作る など
- 2012/03/25
FreeBSDで音楽CDを作る(1)
ちょっと諸事情で、FreeBSDで音楽CDを作らなければならないので、調査する。
基本的には、以下の手順でいいみたい。
- 19.6 Creating and Using Optical Media (CDs) http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html
手順どおりにやってみよう (from Audio CD to Audio CD)
まず、CDドライブについて、調査する。
% dmesg|egrep cd orm0: <ISA Option ROMs> at iomem 0xc0000-0xccfff,0xcd000-0xcdfff,0xce000-0xcf7ff,0xdc000-0xdffff,0xe0000-0xe1fff pnpid ORM0000 on isa0 cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: <_NEC DVD+-RW ND-6500A 202C> Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present
% sudo cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.00 (i386-unknown-freebsd10.0) Copyright (C) 1995-2010 J#rg Schilling
Using libscg version 'schily-0.9'.
scsibus0:
0,0,0 0) '' '' '' NON CCS Disk
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus1:
1,0,0 100) '_NEC ' 'DVD+-RW ND-6500A' '202C' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
今回使うのは、
1,0,0 100) '_NEC ' 'DVD+-RW ND-6500A' '202C' Removable CD-ROM
になる。
リッピングする。
% sudo cdda2wav -vall -D1,0,0 -B -Owav|& tee -a ~/log/cdda2wav.20120325.txt (snip) index scan: 18... samplefile size will be 494124668 bytes. recording 2801.1600 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'... percent_done: 100% track 1 recorded successfully 100% track 2 recorded successfully 100% track 3 recorded successfully 100% track 4 recorded successfully 100% track 5 recorded successfully 100% track 6 recorded successfully 100% track 7 recorded successfully 100% track 8 recorded successfully 100% track 9 recorded successfully 100% track 10 recorded successfully 100% track 11 recorded successfully 100% track 12 recorded successfully 100% track 13 recorded successfully 100% track 14 recorded successfully 100% track 15 recorded successfully 100% track 16 recorded successfully 100% track 17 recorded successfully 100% track 18 recorded successfully
以下のように、wavフォーマットの音楽データが取り出せた。
% ls audio_01.inf audio_04.inf audio_07.inf audio_10.inf audio_13.inf audio_16.inf audio_01.wav audio_04.wav audio_07.wav audio_10.wav audio_13.wav audio_16.wav audio_02.inf audio_05.inf audio_08.inf audio_11.inf audio_14.inf audio_17.inf audio_02.wav audio_05.wav audio_08.wav audio_11.wav audio_14.wav audio_17.wav audio_03.inf audio_06.inf audio_09.inf audio_12.inf audio_15.inf audio_18.inf audio_03.wav audio_06.wav audio_09.wav audio_12.wav audio_15.wav audio_18.wav
insp700m [ ~/hobby/cd ] % sudo cdrecord dev=1,0,0 -audio *.wav|& tee -a ~/log/cdrecord.20120325.txt (snip)
Audio CDプレーヤで再生できたので、焼けたっぽい。
とりあえず、wavファイル作ってしまえば何とかなりそう。
オーディオ入力
今回、オーディオデータはカセットテープで用意されているので、サウンドカード経由で読み込む必要がある。
以下、順に手順を説明する。
KLDでサウンドデバイスドライバを読み込む (横着編)
オーディオ入力用サウンドデバイスドライバはマシンごとに違うので、適宜kernelを再構築などする。
めんどくさい場合は、とりあえず以下のように全部のサウンドデバイスのデバイスドライバをkldloadで読み込ませる。
% sudo kldload snd_driver.ko
見事に、いっぱい読み込まれている。
% kldstat Id Refs Address Size Name 1 108 0xc0400000 10cc898 kernel 2 1 0xc7e6a000 8000 linprocfs.ko 3 1 0xc7e84000 2a000 linux.ko 4 1 0xccff2000 2000 snd_driver.ko 5 1 0xccff4000 5000 snd_vibes.ko 6 1 0xccffa000 4000 snd_via82c686.ko 7 1 0xccffe000 5000 snd_t4dwave.ko 8 3 0xcd003000 2000 snd_spicds.ko 9 1 0xcd005000 5000 snd_solo.ko 10 4 0xcd00a000 4000 snd_sbc.ko 11 1 0xcd00e000 4000 snd_sb8.ko 12 1 0xcd012000 4000 snd_sb16.ko 13 1 0xcd016000 11000 snd_neomagic.ko 14 2 0xcd02b000 a000 snd_mss.ko 15 1 0xcd042000 a000 snd_maestro3.ko 16 1 0xcd06c000 8000 snd_maestro.ko 17 1 0xcd065000 4000 snd_fm801.ko 18 1 0xcd078000 5000 snd_ess.ko 19 1 0xcd07d000 7000 snd_envy24ht.ko 20 1 0xcd08f000 8000 snd_envy24.ko 21 1 0xcd097000 12000 snd_emu10kx.ko 22 1 0xcd0a9000 b000 snd_ds1.ko 23 2 0xcd0b4000 13000 snd_csa.ko 24 1 0xcd0c7000 5000 snd_cs4281.ko 25 1 0xcd0cc000 5000 snd_cmi.ko 26 1 0xcd0d1000 6000 snd_atiixp.ko 27 1 0xcd08a000 4000 snd_als4000.ko 28 1 0xcd0dd000 4000 snd_ad1816.ko
/dev/dsp0.0とかが生えていたら大丈夫(なはず?)。
適宜mixer (8) を使って、適切に音量を指定してください。
FreeBSDで音楽CDを作る(2)へつづく。
昔のおしごと
Web検索語による意識推定の試み (検索語解析ツールの構築と評価), 1999 奈良高専紀要35号
高専教官の同期と一緒にやった話。 単に、apacheの検索ログを拾って、どんな検索語で飛んできたのかを調べた。どこでもやっていた話だろうけど、高専の特性を生かして、情報工学科と機械工学科で検索語を調べたのがユニークなところかな?
情報工学科のサーバは、もちろんFreeBSDで動かしていた。
WWWを用いた情報処理技術者模擬試験の運用実績に関する報告, 平成10年度情報処理教育研究集会
ようは、マークシート方式などの選択式問題を自動で採点するシステムを作ったよってこと。 対象は、情報処理技術者試験の2種 (今だと基本情報処理だっけ?) だった。 実は、単にCGIが書きたかっただけ。 で、一番簡単にできるところをやっただけ。
でも、結構利用してもらえてたようだ。
一度、某セキュリティ会社からDoSを受けて、苦情言ったら「昨今、そういうこともありますので、是非弊社の方で…」とほざいたので、腹立ってブロックした。 つうか、普通DoSになるほどの頻度でクロールするか?
一度、情報処理技術者試験の自習サイト系の人たちが、京橋に集まって飲んだことがあった。 あれは、なんでだったんだろうか?
アルゴリズムアニメーションを用いた「アルゴリズムとデータ構造」授業の試み
- 2012/03/24
昔のおしごと
アルゴリズムアニメーションを用いた「アルゴリズムとデータ構造」授業の試み
うう、どこで発表したのか、覚えてないぞ…
FreeBSD上のTcl/Tkで、Sorterというアルゴリズムアニメーションのプログラムを書いた。 ただ単に、Tcl/Tkを使ってみたかっただけとも言う。 今は、もう使いたくない。 すごく汚いプログラムで、動けば正義だった。
あとは、Cで、main()をマクロで置き換えて、アルゴリズムアニメーション+時間計測するようなものもやっていた。 相変わらず、強引である。
今も、手元にdigital Systems Research Centerから送ってもらったAn Anthology of Alorithm Animation using Zeus by Marc H.Brown (August 30,1991) のVHS テープが残っている。 まさか、DECが亡くなるとは思ってなかった。
SL-C700でNetBSD/zaurus
- 2011年02月12日(日)
- オープンソースカンファレンス 2012 Oita(OSC2012Oita)開催記念!!
まだ書いている途中なので、内容が突然変わることがありえます
OSC2012 Oitaに向けて、NetBSD/zaurusのサポートがNetBSD本家に入りました。
ここでは、NetBSD/zaurusをSL-C700で動かす手順について簡単にまとめます。
SL-C700でNetBSD zaurusを動かす前提条件
SL-C700でNetBSDを動かすための前提条件は、以下の通りです。
- SDを使う場合は1GBでないとダメ
- CFの場合はこの限りではない(はず?)
- メンテナンスカーネルでの起動が必須
前者に関しては、SL-C700などのザウルスシリーズでの、2GB以上のSD/SDHCのサポートが十分でないためです。 独自にSDHCドライバを提供している以下のサイトがありますが、メンテナンスカーネルでは利用できません(よね?)。
後者は、SL-C700のメモリが少ないことが原因です。
SL-C700用1GB SDを作成
今回は、netbsd-zaurus-20120210-1GB-SD.img.gzを利用しました。
このイメージを、UNIXではdd、WindowsではRawrite32を使って、SDに書き込みます。
MacOSでのイメージ作成
今回は、MacOSを利用して、イメージを書き込みました。
基本的に、ddを使った方法ですが、SDがMacOSが認識できるフォーマットだとマウントされてしまっているので、これをアンマウントする必要があります。
以下の様に、diskutilを使って書き込むディスクを確認します。 この例では、disk1が書き込み対象です。
mutoubushinokonpyuta-4% diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS Macintosh HD 999.3 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *990.9 MB disk1 1: DOS_FAT_16 NO NAME 33.6 MB disk1s1 2: NetBSD 892.3 MB disk1s2 3: Linux_Swap 64.0 MB disk1s3 /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *2.0 TB disk2 1: EFI 209.7 MB disk2s1 2: Apple_HFS IO-Disk 2.0 TB disk2s2 /dev/disk4 #: TYPE NAME SIZE IDENTIFIER 0: Apple_partition_scheme *33.7 MB disk4 1: Apple_partition_map 32.3 KB disk4s1 2: Apple_HFS Dropbox Installer 33.7 MB disk4s2
この状態では、DOS_FAT_16を"NO NAME"という名前でマウントしているため、以下の様にddすると怒られます。
mutoubushinokonpyuta-4% zcat ~/Downloads/netbsd-zaurus-20120210-1GB-SD.img.gz|sudo dd of=/dev/disk1 bs=64k dd: /dev/disk1: Resource busy
そこで、以下の様にディスクをアンマウントします。
mutoubushinokonpyuta-4% sudo diskutil umountDisk disk1 Unmount of all volumes on disk1 was successful
これで、書き込みが成功するようになります。
mutoubushinokonpyuta-4% zcat ~/Downloads/netbsd-zaurus-20120210-1GB-SD.img.gz|sudo dd of=/dev/disk1 bs=64k 14144+0 records in 14144+0 records out 926941184 bytes transferred in 393.544240 secs (2355367 bytes/sec)
メンテナンスカーネルでSL-C700を立ち上げる
キーボードの[B]と[D]を押しながら、電池ぶたロックをロック、解除、ロックと動かします。 この状態で電源を入れると、メンテナンスカーネルでSL-C700が起動します。
NetBSD zaurusを起動
以下では、1GB SDからNetBSD zaurusを起動する例を説明します。
boot用カーネルモジュールの読込
メンテナンスカーネルから、以下の手順でboot用モジュールをロードします。
# cd /mnt/card # insmod -f zbsdboot.o (snip)
NetBSD kernelの起動方法について
NetBSDの起動方法には、以下の2つの方法があります。
- zbootを利用した起動
- /proc/zbootへのkernelコピーでの起動
前者は、bootオプションを渡せるため、より自由な起動方法と言えます。
zbootを利用した起動
zbootでの起動は、以下のとおりになります。
- zbootをコマンドラインから起動する
- スペースなどを入力し、ブートを止める (止めないとnetbsdカーネルをブートしようとしてしまいます)
- boot netbsd.c700と入力
- ここでは、kernelブート時に指定できるフラグ(シングルユーザモードの-s)などの指定も可能です。
# ./zboot >> NetBSD/zaurus Boot, Revision 1.2 (Fri Feb 10 21:17:07 JST 2012) disks: mmcd0* path* Press rerutn to boot now, any other key for boot menu booting mmcd0a:netbsd - starting in 0 type "?" or "help" for help. > boot netbsd.c700 booting mmcd0a:netbsd.c700 (snip)
/proc/zbootへのkernelコピーでの起動
# cp netbsd.c700 /proc/zboot (snip)
起動用パラメータの入力
起動中に、以下の様に聞かれるので、適切に答えます。 今回は、以下の通り答えました。
- root device
- SDなのでld0
- CFだとwd0を入力する
- dump device
- デフォルトのままエンター (ld0bが使われる)
- file system
- デフォルトのままエンター (genericが使われる)
- init path
- デフォルトのままエンター (/sbin/initが使われる)
(snip) boot device: <unknown> root device: ld0 dump device (default ld0b): file system (default generic): init path (default /sbin/init): (snip)
これで、NetBSD/zaurusが立ち上がります。
NetBSD zaurusの利用
キーボード配列
作成中
| 入力されるキー | ザウルスキーボード刻印 | 備考 |
| Escape | Cancel | |
| Control | 半/全 | |
| { | Fn+U (「) | |
| } | Fn+I (」) |
ログイン
初期状態では、rootにパスワードはついていませんので、
tpctlで画面キャリブレーション
はじめてXを利用する前に、tpctlを利用してタッチパネルのキャリブレーションを行う必要があります。
# tpctl -u
この補正結果は、/etc/tpctl.dat に保存されます。
再起動時にもこの補正データを有効にしたい場合は、/etc/rc.confに以下の設定を追加しておきます。
- /etc/rc.conf
tpctl=YES
Xの起動
以下のように、Xを起動します。
# startx
参考にしたページ
詳細(or 過程)は、以下のページが詳しい。
- NetBSDでザウルス SL-C700 サポートするぞ http://togetter.com/li/242873
- NetBSD/zaurus お試し用 1GB SDイメージ http://togetter.com/li/243703
- ザウルス SL-C700 シリアルケーブル作成 http://togetter.com/li/237198
実際の1GBイメージは、ここ。
- NetBSD/i386 5.1 ておくれLive Image http://www.ceres.dti.ne.jp/tsutsui/netbsd/liveimage/
カーネルに関するパッチはここ。
- NetBSD/zaurus on SL-C700 http://asterisk.s57.xrea.com/index.xcg?page=NetBSD/zaurus+on+SL-C700
アナウンスはこれ。
- Zaurus SL-C700/750/760/860 support added http://mail-index.netbsd.org/port-zaurus/2012/01/31/msg000049.html
- 日本語;NetBSD/zaurus installation tips http://www.na.rim.or.jp/~kano/tmp/msg000045ja.html
設定は、以下のページが参考になります。
- Jornada 6x0でNetBSD/hpcshを使う http://www.yagoto-urayama.jp/~oshimaya/netbsd/hpcsh/index.html
- フラッシュでNetBSDを使うときにするべき設定が詳しいです。
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.
{{include('FrontPage')}}FrontPageをとりこんで侮ヲします。
Functions list
- PluginDiary | Diary plugin
- You can create a diary page.
- PluginDiary_ja | 日記プラグイン
- 日記ページを作ります。
- album | Album plugin
- Show attached images in a window.
- backup | Show Backup pages
- You can see backup files.
- basic | Basic plugins
- Simple and Basic plugins.
- calc | Calicurator plugin
- You can sum numbers by simple table.
- christel | Takigawa Christel plugin
- You can embed Takigawa Christel image.
- chronology | Chronology of site
- You can see when the pages are created and updated.
- comment | Comment plugin
- You can show comment field.
- counter | Counter plugin
- You can show a conter for the page.
- describe | Description of functions
- You can see the description of each functions of qwikWeb.
- embed_html | Embed HTML plugin
- You can embed bare HTML in the page.
- files | Attach file function
- You can use attach files onto pages.
- graphviz | Graphviz plugin
- You can make a graph.
- include | Include plugin
- You can include other page.
- list | List editing plugin
- You can edit a list in the page.
- member | Member control function
- Member control.
- menu | Menu plugin
- You can show a pull down menu.
- monta | Monta method plugin
- You can hide a part of text by using JavaScript.
- password | Set password plugin
- You can lock a page by a password.
- plan | Sharing plan plugin
- You can show the plan of the site.
- presen | Presentaion plugin
- You can show the page in presentation mode.
- qrcode | QR-Code plugin
- You can input QR-Code to the page.
- qwikweb | qwikWeb functions
- You can see brief descriptions of qwikWeb functions.
- sample | Sample plugins
- These are sample plugins.
- schedule | Input your scuedule plugin
- You can input your schedule.
- search | Search plugin
- You can show a search form.
- secdb | Show a table of each section data
- You can create a table from data embedded as CSV format in each section.
- sitelog | Show SiteLog
- You can see sitelog of this site.
- smil | Video editing plugin
- You can control the timeline of the video.
- style | Style plugin
- You can specify styles of the page.
- summary | Show summary of a target page
- You can include summary of target page.
- table | Table edit plugin
- You can edit a table in the page.
- takahashi | Takahashi method plugin
- You can do your presentaion in Takahashi method.
- textarea | Textarea plugin
- You can show a simple textarea field.
- textformat | TextFormat
- You can see the text format of qwikWeb.
- textformat_simple | TextFormat
- You can see brief description of text format.
- theme_list | Theme list
- You can see theme list.
- typekey | TypeKey login
- You can login by using TypeKey authentication.
- webservice | Web service plugins
- You can use several external Web services.
- wema | Post-it plugin
- You can put post-it notes on the page.
- wysiwyg | WYSIWYG editing mode
- You can edit a page in wysiwyg mode.
