NetBSD/macppc
  CDROM 起動
  全体の流れ (OF3)
  全体の流れ (OF 1/2)
  getting OF
  Boot from CDROM
sysinst
  overall flow
  installboot
  入力が出来ない
区画
  区画方針
  OS X CDROM を使う
  pdisk を使う
  sysinst と区画
  初めての pdisk
    結果
    変更前
    操作
    実際の操作
    pdisk/help
sysinst 後
  check the partition #
  first boot
  regular boot with CDROM
  /etc/rc.conf
    root login refused
boot-device
  hfsutils
  OF boot
    CDROM
    after install
X11
  X11R6.6+XF86
    binary
    source
      20061211
      for 4.99.1 (gcc-4.1.2)
      for 3.99.17
      3.99.8
      3.99.9
    XF86Config
  xorg
packages
  binary
  pkgsrc
  bulk build
  chroot
    準備
    実行
  bulk build 実際
status
  20070724 4.99.
  20070526 4.99.20
  20070203 4.99.9
  20061008 4.99.3
  20060822 4.99.1
  20060702 3.99.21
  20060527 3.99.20
  20060506 3.99.x
  20060407 3.99.17
  20060101 3.99.15
  20050928 3.99.9
  20050918 3.99.9
    packages
  20050829 3.99.8
  pkgsrc
    meta-pkg
    gimp
    gdb on Emacs
    FireFox
    rtk
    tlp
  20050707
  20050605
  20050416
  20050405
  tips for mini
URL
  

Software 入口 | NetBSD 解説 | pkgsrc 各論 | macppc | TsubaiBSD 絹/software/全文検索

NetBSD/macppc

Last Update: "2007/08/16 12:09:20 makoto"

status

20070724 4.99.

MACPPC=070717
TNFDATE=2007-07-24
  • hfs の下の整合性がうまく取れないので
    cvs update -r TNF /export/20070724ts/checkout/src/sys/fs/hfs
  • /export/20070724ts/checkout/src/sys/dist/ipf/netinet/ip_compat.h:739: 
    	error: redefinition of typedef 'caddr_t'
    ./powerpc/types.h:43: error: previous declaration of 'caddr_t' was here
    
  • openfirmio.c:(.text+0x498): undefined reference to `OF_setprop'
patch

20070526 4.99.20

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20070526ts/ installboot は /dev/wd0c のように、r 無で a でなく c を指定する
./installboot -v /mnt/boot bootxx /dev/wd0c

20070203 4.99.9

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20070203ts/
NOT REBUILDING gengtype-lex.c

cc -c -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wold-style-definition
-Wmissing-format-attribute -Wno-error -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild
-I/export/20070203/checkout/src/tools/gcc/../../gnu/dist/gcc4/gcc
-I/export/20070203/checkout/src/tools/gcc/../../gnu/dist/gcc4/gcc/build
-I/export/20070203/checkout/src/tools/gcc/../../gnu/dist/gcc4/gcc/../include
-I/export/20070203/checkout/src/tools/gcc/../../gnu/dist/gcc4/gcc/../libcpp/include
-DNETBSD_TOOLS -o build/gengtype-lex.o gengtype-lex.c

cc: gengtype-lex.c: No such file or directory
cc: no input files
nbgmake[1]: *** [build/gengtype-lex.o] Error 1
nbgmake[1]: Leaving directory `/export/20070203/checkout/src/tools/gcc/obj/build/gcc'
nbgmake: *** [all-gcc] Error 2

*** Failed target:  .build_done
interim fix:
ttyr8:makoto@mini 19:13:49/070318(...checkout/src)> 
sudo ln gnu/dist/gcc4/gcc/gengtype-lex.c /export/20070203/checkout/src/tools/gcc/obj/build/gcc/gengtype-lex.c
cc1: warnings being treated as errors
/amd/st4200/20070203/checkout/src/lib/libc/gdtoa/ldtoa.c: In function '__ldtoa':
/amd/st4200/20070203/checkout/src/lib/libc/gdtoa/ldtoa.c:107: warning: return discards qualifiers from pointer target type
ttyrb:makoto@mini 0:54:48/070319(...checkout/src)> diff -u lib/libc/gdtoa/ldtoa.c{.*,}
--- lib/libc/gdtoa/ldtoa.c.~1.1.1.1.~	2007-02-04 14:17:01.000000000 +0900
+++ lib/libc/gdtoa/ldtoa.c	2007-03-18 22:47:05.000000000 +0900
@@ -104,6 +104,6 @@
 		*decpt = INT_MAX;
 	return ret;
 #else
-	return "";
+	return NULL;
 #endif
 }
ttyrb:makoto@mini 0:54:52/070319(...checkout/src)> 
booting netbsd-GENERIC_MD.gz
0 > boot 20070203.gz
>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@st4200, Fri Sep 30 15:39:02 JST 2005)
no active package7434004+217264=0x74c318
 start=0x100000
panic: kernel diagnostic assertion "symstart != NULL && strstart != NULL" failed: file "/amd/st4200/20070203/checkout/src/sys/kern/kern_ksyms.c", line 450
Stopped; curlwp = 0x848998, curproc is NULL at  0x3fa260:       addi    1,1,16
db> 
tlp0: filter setup and transmit timeout
tlp0: transmit process failed to idle: state RUNNING - WAIT
ahc0: Timedout SCB already complete. Interrupts may not be functioning.
tlp0: filter setup and transmit timeout
tlp0: transmit process failed to idle: state RUNNING - WAIT
tlp0: filter setup and transmit timeout
This is fixed by chs on 2007/04/02
Loading ELF

>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@mini, Mon Mar 19 07:49:49 JST 2007)
7434004+217264=0x74c318
 start=0x100000
panic: kernel diagnostic assertion "symstart != NULL && strstart != NULL" failed: file "/amd/st4200/20070203/checkout/src/sys/kern/kern_ksyms.c", line 450
Stopped; curlwp = 0x848998, curproc is NULL at  0x3fa260:       addi    1,1,16
db> 

20061008 4.99.3

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20061008ts/
0 > boot cd:,ofwboot.elf  hd:3/20061008.gz load-size=dadc adler32=afe2694d 

Loading ELF

>> NetBSD/macppc OpenFirmware Boot, Revision 1.5
>> (root@st4200, Tue Sep  5 04:27:45 JST 2006)
open /netbsd: No such file or directory
open /netbsd.gz: No such file or directory
7233932+203968=0x7181a0
 start=0x800000
Stopped; curlwp = 0xf14888, curproc is NULL at  0xadc8c8:       addi    1,1,16
db> bt
at 0xae97dc
at 0x800090
db> 
同じところで二度落ちた後、三回目は無事通過 (?)

mozilla がなくなったというので代りの seamonkey を作って見ますが、 Segmentation fault します(多分)。代案の一つは 2006-09-15 の www/mozilla を作ることです。
sysinst 中に:

panic: kernel diagnostic assertion "pg->wire_count == 0" failed: file "/export/20061008/checkout/src/sys/uvm/uvm_pdpolicy_clock.c", line 300
Stopped in pid 10.1 (pagedaemon) at     0x3ee878:       addi    1,1,16
db>

20060822 4.99.1

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20060822ts/
この版は ex が差さっていると、trap 300 で落ちてしまいます。 また sysinst の途中で次のように落ちることがあります (UMAX Pulsar 1500, G3/400MHz, 144MB, rtk 8139)
     Status: Running
    Command: progress -zf /mnt2//macppc/binary/sets/comp.tgz tar --chroot -xhepf
 -

--------------------------------------------------------------------------------
 83% |******************************       | 80966 KB    1.88 MB/s    00:08 ETA
Stopped in pid 6.1 (pagedaemon) at      0:      .long   0x015d5000
db> bt
at 0x9f65d0
at 0x9f5a88
at 0xade9c0
db> 
この部分の再現性はありません。二度同じことをやると、通過したりします。また sysinst の最後に umount で panic というのもありました。
=> Generating pre-install file lists
=> Running PRE-INSTALL script actions
cd /export/pkgsrc/lang/ruby18-base/work.st4200/ruby-1.8.5; /usr/bin/find . -name '*.orig' -exec /bin/rm -f {} \;
*** Error code 212

20060702 3.99.21

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20060702ts/
この版は NFS サーバの動作が不安定な気がします。

20060527 3.99.20

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20060527ts/

20060506 3.99.x

20060407 3.99.17

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20060408ts/

20060101 3.99.15

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20060101ts/
zs: ch 0: rxdmabuf half full (3794)
(cache_lookup_entry 問題なし 2006/11/15)

20050928 3.99.9

ftp://ftp.ki.nu/pub/NetBSD/snapshot/20050928ts/
macppc macppc-050928.tar.gz
others cvs update -D 20050928-UTC src
sysinst install
sysinst upgradeNG3.99.9 -> 3.99.9 on S900
sysinst NFSNGmount_nfs: rpcbind to nfs on server: RPC: Unable to send
manual installboot(OF 1/2 only) YES
missing libgcc_s_pic.aYEScp macppc/missing/libgcc_s_pic.a /usr/lib
/etc/ttystty00 -> ttyZ0
OF 1/2 の場合、installboot を手動で行なう必要があるが、どうも serial が、そこまで 耐えられなくて、化けてしまう。

20050918 から変更があったものは次の通り

--- gnu/dist/gcc/gcc/gcc.c      29 Aug 2005 00:00:27 -0000      1.3
--- lib/libc/arch/powerpc/Makefile.inc  12 Oct 2003 00:00:24 -0000      1.3
--- lib/libc/arch/powerpc/gen/Makefile.inc      16 Apr 2005 00:00:27 -0000      1.10
--- lib/libc/arch/powerpc/gen/setjmp.S  17 Aug 2002 00:00:22 -0000      1.1
--- lib/libc/arch/powerpc/gen/sigsetjmp.S       17 Aug 2002 00:00:22 -0000      1.1
--- lib/libc/arch/powerpc/sys/__sigaction14_sigtramp.c  3 Apr 2004 00:00:26 -0000       1.4
--- sbin/mount_hfs/mount_hfs.c  10 Feb 2005 00:00:27 -0000      1.2
--- sys/arch/macppc/conf/GENERIC        29 Aug 2005 00:00:27 -0000      1.33
--- sys/arch/macppc/conf/SUMOMO 29 Aug 2005 00:00:27 -0000      1.17
--- sys/arch/macppc/conf/majors.macppc  4 Aug 2005 00:00:27 -0000       1.4
--- sys/arch/macppc/conf/std.macppc     11 Dec 2004 00:00:27 -0000      1.3
--- sys/arch/macppc/dev/akbdmap.h       15 Jun 2002 00:00:17 -0000      1.2
--- sys/arch/macppc/dev/daca.c  15 Jan 2005 00:00:27 -0000      1.3
--- sys/arch/macppc/dev/z8530tty.c      1 Jan 2005 00:00:27 -0000       1.6
--- sys/arch/powerpc/include/aout_machdep.h     7 Jan 2003 00:00:25 -0000       1.3
--- sys/arch/powerpc/include/reloc.h    12 Apr 2002 00:00:19 -0000      1.2
--- sys/arch/powerpc/powerpc/compat_13_machdep.c        25 Jan 2003 00:00:24 -0000      1.4
--- sys/arch/powerpc/powerpc/compat_16_machdep.c        18 Oct 2003 00:00:24 -0000      1.1
--- sys/fs/hfs/hfs.h    22 Jan 2005 00:00:27 -0000      1.2
--- sys/fs/hfs/hfs_vfsops.c     5 Apr 2005 00:00:27 -0000       1.6
--- sys/fs/hfs/hfs_vnops.c      15 Jan 2005 00:00:28 -0000      1.3
sysinst Segmentation fault at Upgrade or Install -< Use Existing partition
 The following is the list of distribution sets that will be used.
 
    Distribution set         Selected
    ------------------------ --------
 a: Kernel (GENERIC)            Yes
 b: Base                        Yes
 c: System (/etc)               Yes
 d: Compiler Tools              Yes
 e: Games                       Yes
 f: Online Manual Pages         Yes
 g: Miscellaneous               Yes
 h: Text Processing Tools       Yes
 i: X11 sets                    None
uid 0, pid 18, command sysinst, on /: file system full

/: write failed, file system is full
[1]   Segmentation fault      /sysinst
# # stty echo
# 
gdb ./ramdisk/obj/work/sysinst ~/macppc/sysinst.core
...
(gdb) bt
#0  0x0193e088 in ?? ()
 193e07c:       41 9e 00 34     beq-    cr7,0x193e0b0
 193e080:       88 69 00 00     lbz     r3,0(r9)
 193e084:       39 29 00 01     addi    r9,r9,1
 193e088:       88 04 00 00     lbz     r0,0(r4)
 193e08c:       38 84 00 01     addi    r4,r4,1
 193e090:       2f 83 00 00     cmpwi   cr7,r3,0
 193e094:       7c 03 00 00     cmpw    r3,r0
Last Update: Sat, 07 Jun 2014 13:16:17 GMT 1.66 2008/03/08