Subject: Re: Cobalt Port not really viable???
To: Takao Shinohara <shin@sm.sony.co.jp>
From: None <marius@alchemy.franken.de>
List: port-cobalt
Date: 12/23/2001 04:13:10
--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> 
> Try latest kernel of netbsd-1-5 branch, or, at the minimum, revision
> 1.99.2.2 of syssrc/sys/arch/mips/mips/pmap.c.
> 

netbsd/cobalt kernel build with netbsd-1-5 sources as of yesterday is
broken because cobalt/cobalt/conf.c of that branch didn't receive the
change from 'ca' to 'ld', after patching that it compiled just fine

i rebooted with the new kernel and invoked a 'make build' (started with a
clean /usr/obj ...) but when the new libc was installed it stopped:
<...>
ln -s libc.so.12.62.1  /usr/lib/libc.so.12
rm -f /usr/lib/libc.so
ln -s libc.so.12.62.1  /usr/lib/libc.so
install -r  -c  -o root  -g wheel -m 444 llib-lc.ln /usr/libdata/lint
*** Signal 11

Stop.
*** Error code 1
<...>

at that point nearly every program i tried to start immediately coredumped,
after re-installing libc.so from 1.5.2 everything was fine again; i re-built
a kernel with 1.5.2 sources but pmap.c version 1.99.2.2, rebooted, removed
what was left over in /usr/obj and started a 'make build' again; this time
it stopped somewhere compiling heimdal-stuff again with signal 11 but
leaving no coredump and i was able to resume the build by
'make -DNOCLEANDIR build'

> This shuould fix /bin/sh core dump problem.

for some strange reason this never occured on my raq 2 so far, even
building nbsd 1.5.2 previously nor building several packages didn't
trigger it...


--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="conf.c.patch"

--- conf.c.orig	Fri Dec 14 15:23:04 2001
+++ conf.c	Mon Dec 17 05:11:13 2001
@@ -71,7 +71,7 @@
 cdev_decl(scsibus);
 #include "ses.h"
 cdev_decl(ses);
-#include "ca.h"
+#include "ld.h"
 
 struct bdevsw bdevsw[] =
 {
@@ -85,7 +85,7 @@
 	bdev_disk_init(NSD,sd),		/* 7: SCSI disk */
 	bdev_disk_init(NCD,cd),		/* 8: SCSI CD-ROM */
 	bdev_tape_init(NST,st),		/* 9: SCSI tape */
-	bdev_disk_init(NCA,ca),         /* 10: Compaq array */
+	bdev_disk_init(NLD,ld),         /* 10: logical disk driver */
 	bdev_lkm_dummy(),		/* 11 */
 	bdev_lkm_dummy(),		/* 12 */
 	bdev_lkm_dummy(),		/* 13 */
@@ -133,7 +133,7 @@
 	cdev_scsibus_init(NSCSIBUS,scsibus), /* 24: SCSI bus */
 	cdev_ses_init(NSES,ses),	/* 25: SCSI SES/SAF-TE */
 	cdev_tty_init(NCOM,com),        /* 26: com serial port */
-	cdev_disk_init(NCA,ca),         /* 27: Compaq array */
+	cdev_disk_init(NLD,ld),         /* 27: logical disk driver */
 };
 int	nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 

--uAKRQypu60I7Lcqm--