hns - 日記自動生成システム - Version 2.19.9

先月 2008年01月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2008年01月26日() 旧暦 [n年日記] [更新:"2008/01/27 09:39:54"]

#1 [NetBSD] TNF/macppc

知合いに頼まれたという理由で Mac mini に NetBSD-4.0 を入れて見ている。 まず 「C を押しながら起動」が出来るように CDROM を作り直す。 macpcccd.iso をもって来て、
sudo vnconfig /dev/vnd0c macppccd.iso
sudo mkdir /vnd
sudo mount -t cd9660 -o ro /dev/vnd0c /vnd
しておいて、
rsync -a /vnd/ dir/
で写して boot/bootinfo.txt を加え mac.map も用意しておいて
.txt    Ascii   'chrp'  'tbxi' "Mac Boot File"
次のようにして作った
mkdir -volid macppc/20071216 -part -hfs    -r -J -l -hfs-bless dir/boot -map mac.map -o 20080126.iso dir
(実はその他に OF 1/2 用の CD/installboot も手動で入れてある) しかし、「C を押しながら起動」は出来なかった。 出来ないというか、確かに CDROM から起動している音がするが 画面が半暗転していて、何も進んでいるようには見えない。 ただ
boot cd:,\\:tbxi
は出来る。何かな..

sysinst:

これを使って 3.1 が入っていた機械に上書 (Upgrade NetBSD) で入れる。

xf86cfg:

しかし
sudo env PATH=/usr/X11R6/bin:${PATH} xf86cfg
をしても
(II) RADEON(0): initializing int10

Fatal server error:
xf86MapVidMem: could not mmap screen [s=20000,a=a0000] (Invalid argument)
これで 動かない。
port-macppc/2007/08/24/0006.html
port-macppc/2007/08/24/0007.html
2007/08/20 の日記 | X11 情報 | modular-xorg を入れる ?
meta-pkgs/modular-xorg-libs で make すると
ERROR: This package has set PKG_FAIL_REASON:
ERROR: The package tools installed on this system are out of date.
...
ERROR:     (cd /home/pkgsrc/pkgtools/pkg_install && /usr/bin/make clean && /usr/bin/make update)
とか言われる。ところが pkg_install の binary は 見つからない し、make しようとしても
In file included from /usr/include/sys/select.h:39,
                 from /usr/include/sys/time.h:258,
                 from /home/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat/time.h:47,
                 from /home/pkgsrc/pkgtools/pkg_install/work/libnbcompat/nbcompat.h:72,
                 from __glob13.c:35,
                 from glob.c:12:
/usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'
と言われて出来ない。そこで 4.99.9 の機械で sudo make package したもの を pkg_add する。それから
cd meta-pkgs/modular-xorg-libs
make clean && make
checking for fd_set.__fds_bits... no
configure: error: Could not determine how to access the fds_bits or equivalent
                  structure in fd_set on your platform.
*** Error code 1

Stop.
make: stopped in /home/pkgsrc/x11/xproto
*** Error code 1

./build.sh tools:

:   203  14:05   cvs -d /e/cvsync/cvsync update -r netbsd-4-0 -dP .
   204  14:49   time sudo ./build.sh -j 2 tools > & tools-log
cc  -O -D_PATH_DEFSHELLDIR="/bin" 
-D_BASENAME_DEFSHELL="sh" -DHAVE_SETENV=1 -DHAVE_STRDUP=1 
-DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1  -c /home/src/tools/make
/../../usr.bin/make/arch.c
In file included from /usr/include/sys/select.h:39,
                 from /usr/include/sys/time.h:258,
                 from /usr/include/sys/stat.h:46,
                 from /home/src/tools/make/../../usr.bin/make/arch.c:133:
/usr/include/sys/fd_set.h:63: error: redefinition of `struct fd_set'

ERROR: Build of nbmake failed
*** BUILD ABORTED ***
ttyp1:makoto@trapani 14:49:26/080126(/home/src)> 
まさか、こんなことではないはず
--- /usr/include/sys/fd_set.h-orig	2005-12-11 21:25:20.000000000 +0900
+++ /usr/include/sys/fd_set.h	2008-01-26 16:34:08.000000000 +0900
@@ -60,9 +60,12 @@
 #define	FD_SETSIZE	256
 #endif
 
+#ifndef FD_SET_H
+#define FD_SET_H
 typedef	struct fd_set {
 	__fd_mask	fds_bits[__howmany(FD_SETSIZE, __NFDBITS)];
 } fd_set;
+#endif
 
 #define	FD_SET(n, p)	\
     ((p)->fds_bits[(n)/__NFDBITS] |= (1 << ((n) % __NFDBITS)))
cc -O -D_PATH_DEFSHELLDIR="/bin" -D_BASENAME_DEFSHELL="sh"
-DHAVE_SETENV=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1
-DHAVE_STRFTIME=1 -DHAVE_VSNPRINTF=1 -c
/home/src/tools/make/../../usr.bin/make/lst.lib/lstSucc.c

cc  -O -o nbmake *.o  
nbmake: no system rules (sys.mk).

#2 TNF/macppc 入直しで X11 は動く

一回目のは 3.1 に上書き (Upgrade) だったので、もう一度 初めから NetBSD Install でやり直して見た。 そうしたら、(root で) startx と入れるだけで twm の画面になった。

ただ、auto-boot? true では画面が半暗転して、動いているのかどうか 分らない。「C を押しながら起動」でうまく行かなかったのも、これと 同じだと思う。 ofwboot を (TsubaiBSD のものと) 入替えて見ようと思う。 -- やはり、そのようだ。 CD-ROM を作り直しておこう。

Upgrade でなく Install なのに:

不思議なことがあって、
  1. 「既存の区画を使う」を指定したつもりなのに区画の編集が出来た
  2. Upgrade でなく 新規 Install を選んだつもりなのに以前の譜は消されないで 残っている
この二つ目の方は newfs を指定しなかったからかな。

todo list:

  • ofwboot を調べる
  • boot/bootinfo.txt の内容について
  • pbulk を調べる
  • macppccd.iso をもう一度作る
  • Tsutsui 式 bootable CD の作り方



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)