3653.402u 1572.460s 1:48:59.66 79.9% 0+0k 15130+322043io 7356pf+91w ... CC=/export/current-ts/src/tools/obj/tools.NetBSD-1.5ZC-powerpc/bin/powerpc--netbsd-gcc /export/current-ts/src/tools/obj/tools.NetBSD-1.5ZC-powerpc/bin/nbmkdep -a -I/export/current-ts/src/usr.sbin/apm/../apmd -nostdinc -isystem /export/current-ts/20020722d/usr/include /export/current-ts/src/usr.sbin/apm/apm.c /export/current-ts/src/usr.sbin/apm/../apmd/apmsubr.c /export/current-ts/src/usr.sbin/apm/apm.c:45: machine/apmvar.h: No such file or directory /export/current-ts/src/usr.sbin/apm/../apmd/apmsubr.c:48: machine/apmvar.h: No such file or directory nbmkdep: compile failed. *** Error code 1これには二通りの対処方が考えられる
--- src/usr.sbin/apm/apm.c-1.11 Mon Jul 22 06:55:28 2002 +++ src/usr.sbin/apm/apm.c Mon Jul 22 22:00:54 2002 @@ -302,10 +302,10 @@ ac_state(api->ac_state)); if (dostatus) printf("Power management enabled\n"); - if (api->nbattery) { + /*if (api->nbattery) { printf("Number of batteries: %u\n", api->nbattery); - } + } */ } else { if (dobstate) printf("%d\n", api->battery_state);
STRIP=/ex2/current-ts/src/tools/obj/tools.NetBSD-1.6A-powerpc/bin/powerpc--netbsd-strip /ex2/current-ts/src/tools/obj/tools.NetBSD-1.6A-powerpc/bin/nbinstall -c -r -o root -g wheel -m 444 ustarboot /ex2/current-ts/20020722d/usr/mdec/ustarboot(以前の自分の覚えを見ると) ustarboot の付近で make しておけばいいとあるが、 これって build.sh には適用出来ないはず。
nbinstall: ustarboot: stat: No such file or directory
src/sys/arch/macppc/stand/ src/sys/arch/macppc/stand/ustarboot のどちらで make と入力しても make してくれる
build.sh を起動して、cleandir が終ったことを見はからって、make しておく :-)
PAX=/export/current-ts/src/tools/obj/tools.NetBSD-1.5ZC-powerpc/bin/nbpax sh /export/current-ts/src/distrib/common/buildfloppies.sh -i "/export/current-ts/src/tools/obj/tools.NetBSD-1.5ZC-powerpc/bin/nbinstallboot -v -m macppc -t raw -B 17 @IMAGE@ /export/current-ts/20020725d/usr/mdec/bootxx /export/current-ts/20020725d/usr/mdec/ofwboot" -m 2 -s .fs boot 2880 boot netbsd Running instboot: /export/current-ts/src/tools/obj/tools.NetBSD-1.5ZC-powerpc/bin/nbinstallboot -v -m macppc -t raw -B 17 floppy.11661.tar /export/current-ts/20020725d/usr/mdec/bootxx /export/current-ts/20020725d/usr/mdec/ofwboot nbinstallboot: `/export/current-ts/20020725d/usr/mdec/bootxx' cannot be larger than 2048 bytes nbinstallboot: Set bootstrap operation failed File system: floppy.11661.tar File system type: raw (blocksize 8192, needswap 0) Primary bootstrap: /export/current-ts/20020725d/usr/mdec/bootxx Secondary bootstrap: /export/current-ts/20020725d/usr/mdec/ofwboot *** Error code 1これは次のところが出している。 usr.sbin/installboot/bbinfo.c
160 if (params->s1stat.st_size > 161 bbparams->maxsize - bbparams->headeroffset) { 162 warnx("`%s' cannot be larger than %lu bytes", 163 params->stage1, (unsigned long)(bbparams->maxsize - 164 bbparams->headeroffset)); 165 goto done; 166 }2048 以下のことと言っているが、いままでの bootxx はそれ以上の大きさがある (多分、だから、引数が違っていると思う)
--- src/sys/sys/bootblock.h-1.10 Sun Jun 2 19:44:30 2002 +++ src/sys/sys/bootblock.h Fri Jul 26 23:21:51 2002 @@ -252,7 +252,7 @@ #define MACPPC_BOOT_BLOCK_OFFSET 2048 #define MACPPC_BOOT_BLOCK_BLOCKSIZE 512 -#define MACPPC_BOOT_BLOCK_MAX_SIZE 2048 /* XXX: could be up to 6144 */ +#define MACPPC_BOOT_BLOCK_MAX_SIZE 4096 /* XXX: could be up to 6144 */ /* Magic string -- 32 bytes long (including the NUL) */ #define MACPPC_BBINFO_MAGIC "NetBSD/macppc bootxx 20020515"
nbinstallboot: `/export/current-ts/20020726d/usr/mdec/bootxx' is an ELF executable; need raw binary nbinstallboot: Set bootstrap operation failedと言われてしまった。
installboot を使う場所というと distrib/macppc/floppies/bootfloppy かな。私のソースではそこはとのこと。
FLOPPYINSTBOOT= "dd if=${MDEC}/ustarboot of=@IMAGE@ conv=notrunc"
103 6:29 setenv DESTDIR /export/current-ts/20020727d 104 6:29 setenv RELEASEDIR /export/current-ts/20020727d 105 6:29 setenv RELEASEDIR /export/current-ts/20020727r 106 6:29 setenv NETBSDSRCDIR /export/current-ts/src差分を見ると、かなり作られていない ものがある気がする。yp 関係等。