Subject: Re: mac68k 1.5.4 instkernel build fails
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-install
Date: 09/21/2003 21:32:41
At 21:46 Uhr +0200 19.9.2003, Hauke Fath wrote:
>[I'm a bit unsure where this belongs. It's obviously not -current.]
>
>I am trying to build a 1.5.4 snapshot on a 1.6K mac68k box. By
>chrooting to a 1.5.4alpha snapshot this goes pretty well, but then
>stops in '/usr/src/distrib/mac68k/instkernel/ramdisk' with
>
>cc -static -o ramdiskbin ramdiskbin.o cat.cro chmod.cro chown.cro
>chroot.cro cp.cro dd.cro df.cro disklabel.cro ed.cro fsck.cro fsck_ffs.cro
>ftp.cro gzip.cro ifconfig.cro init.cro less.cro ln.cro ls.cro mkdir.cro
>mknod.cro mount.cro mount_cd9660.cro mount_ffs.cro mount_msdos.cro
>mount_nfs.cro mount_kernfs.cro mt.cro mv.cro newfs.cro ping.cro pwd.cro
>reboot.cro restore.cro rm.cro route.cro sed.cro sh.cro shutdown.cro
>slattach.cro stty.cro swapctl.cro sync.cro test.cro tip.cro umount.cro
>sysinst.cro pax.cro tset.cro -L/build/destdir/usr/lib  -lbz2 -ledit -lutil
>-lcurses -ltermcap -lrmt -lcrypt -ll -lm
>strip ramdiskbin
>dd if=/dev/zero of=ramdisk.fs count=5120
>5120+0 records in
>5120+0 records out
>2621440 bytes transferred in 8 secs (327680 bytes/sec)
>vnconfig -v -c /dev/vnd0c ramdisk.fs
>/dev/vnd0c: 2621440 bytes on ramdisk.fs
>newfs -m 0 -o space -i 5120 /dev/rvnd0a
>Warning: 1024 sector(s) in last cylinder unallocated
>/dev/rvnd0a:    5120 sectors in 3 cylinders of 64 tracks, 32 sectors
>        2.5MB in 1 cyl groups (16 c/g, 16.00MB/g, 512 i/g)
>super-block backups (for fsck -b #) at:
> 32,
>newfs: ioctl (WDINFO): Invalid argument
>newfs: /dev/rvnd0a: can't rewrite disk label
>*** Error code 1

For the list archive: Pulling up a newer change

[hauke@q700] /<6>instkernel/ramdisk > cvs diff -u -r 1.10 -r 1.11 Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/src/distrib/mac68k/instkernel/ramdisk/Makefile,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -u -r1.10 -r1.11
--- Makefile    2001/10/13 06:15:17     1.10
+++ Makefile    2002/02/05 23:10:02     1.11
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2001/10/13 06:15:17 jmc Exp $
+#      $NetBSD: Makefile,v 1.11 2002/02/05 23:10:02 wormey Exp $

 .ifndef NOTESOBJDIR
 NOTESOBJDIR!=cd ${.CURDIR}/../../../notes/mac68k; ${MAKE} ${MAKEFLAGS} -V
.OBJDIR
@@ -31,6 +31,8 @@
        dd if=/dev/zero of=${IMAGE} count=5120
        vnconfig -v -c ${VND_CDEV} ${IMAGE}
 #      disklabel -rw ${VND_CDEV} ${DISKTYPE}
+       -disklabel ${VND} >tmplabel
+       disklabel -r -R ${VND} tmplabel
        newfs -m 0 -o space -i 5120 ${VND_RDEV}
        mount ${VND_DEV} ${MOUNT_POINT}
        ${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -u


fixes the problem, and lets me finish the build successfully.

Could anybody please request a pull-up to the 1.5 release branch, or should
I send-pr?

	hauke

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards