Subject: mac68k 1.5.4 instkernel build fails
To: None <tech-install@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-install
Date: 09/19/2003 21:46:15
[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


-- when I try the command sequence 'outside' the chroot, i.e. with the
1.6K binaries, the result is the same:

[hauke@q700] ~ # cd /var/tmp
[hauke@q700] /var/tmp # dd if=/dev/zero of=ramdisk.fs count=5120
5120+0 records in
5120+0 records out
2621440 bytes transferred in 8.136 secs (322202 bytes/sec)
[hauke@q700] /var/tmp # vnconfig -v -c /dev/vnd1c ramdisk.fs
/dev/vnd1c: 2621440 bytes on ramdisk.fs
[hauke@q700] /var/tmp # newfs -m 0 -o space -i 5120 /dev/rvnd1a
Warning: 1024 sector(s) in last cylinder unallocated
/dev/rvnd1a:    5120 sectors in 3 cylinders of 64 tracks, 32 sectors
        2.5MB in 1 cyl groups (12 c/g, 12.00MB/g, 512 i/g)
super-block backups (for fsck -b #) at:
 32,
newfs: ioctl (WDINFO): Invalid argument
newfs: /dev/rvnd1a: can't rewrite disk label
[hauke@q700] /var/tmp # disklabel /dev/vnd1c
# /dev/vnd1c:
type: vnd
disk: vnd
label: default label
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 2
total sectors: 5120
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

3 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:      5120         0     4.2BSD      0     0     0   # (Cyl.    0 - 2*)
 b:      5120         0     4.2BSD      0     0     0   # (Cyl.    0 - 2*)
 c:      5120         0     4.2BSD      0     0     0   # (Cyl.    0 - 2*)
disklabel: boot block size 0
disklabel: super block size 0


-- Any ideas? How do others build 1.5.x snapshots?

   hauke