Subject: Re: workaround for FreeBSD binary that hardcodes a device major (was:
To: None <simonb@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 09/24/2006 14:22:09
simonb@NetBSD.org wrote:

> The current problem wasn't that the "twa" major is in the MI majors
> file, but that it was referenced for a kernel config that didn't have
> a twa device.  So even if you put it in the i386 majors file and have
> a kernel that doesn't have twa (like say GENERIC_LAPTOP) you'll still
> lose.

We have to specify attribute for twa, as mentioned in config(9).
i.e. it should be:

Index: majors
===================================================================
RCS file: /cvsroot/src/sys/conf/majors,v
retrieving revision 1.28
diff -u -r1.28 majors
--- majors	23 Sep 2006 21:58:15 -0000	1.28
+++ majors	24 Sep 2006 05:20:47 -0000
@@ -27,4 +27,4 @@
 device-major	bthub		char 175		bthub
 device-major	amr		char 176		amr
 device-major	lockstat	char 177		lockstat
-device-major	twa		char 187
+device-major	twa		char 187		twa

---
Izumi Tsutsui