[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
panic: cnopen: no console device -> ofb.c change
- Subject: panic: cnopen: no console device -> ofb.c change
- From: 藤原 誠/ Makoto Fujiwara<makoto@ki.nu>
- To: port-powerpc-ja@jp.netbsd.org
- Date: Sat, 18 Jan 2003 11:29:00 +0900
- Message-ID: <yfmiswni42b.wl@u.ki.nu>
- In-Reply-To: <yfmd6o06why.wl@u.ki.nu>
- References: <yfm1y5sr729.wl@u.ki.nu><yfmvg2phhhf.wl@u.ki.nu><yfmd6o06why.wl@u.ki.nu>
- Delivered-To: mailing list port-powerpc-ja@jp.netbsd.org
- Mailing-List: contact port-powerpc-ja-help@jp.netbsd.org; run by ezmlm-idx
- User-Agent: Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2(Yagi-Nishiguchi) APEL/10.4 Emacs/21.2.93 (powerpc--netbsd) MULE/5.0(賢木)
> 千葉市中央区長洲
> 藤原 誠
To: port-powerpc-ja@jp.netbsd.org
From: 藤原 誠 / Makoto Fujiwara <makoto@ki.nu>
Subject: snapshot 20021214ts (1.6K)
Date: Wed, 18 Dec 2002 08:44:57 +0900
藤> snapshot 20021214ts (1.6K)
藤> 問題のあるもの
藤> (1)
藤> G4/800 MP ... 前回と同じ。
藤> root file system type: ffs
藤> panic: cnopen: no console device
藤> Stopped: pid 11(init) ...
藤> 1.6F snapshot/20020818ts/ では動いているのだが。
...
藤> つばいさんのところでは動いているということなのですが、...
と書きましたが、10/06,10/07 頃の変更が原因のようだったので、見
よう見真似で(最少限の変更で)戻そうと、添付のようにすると動きま
した。その時の dmesg の一部は次のようになっています。
-----------------------
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0
OF_getprop,devinfo: NVDA,GeForce2
OF_getprop,devname: NVDA,Parent
: Nvidia Corporation GeForce2 MX [NV11]
ofb0: 1280 x 1024, 8bpp
wsdisplay0 at ofb0 (kbdmux ignored): console (std, vt100 emulation)
-----------------------
(藤原)
Index: sys/arch/macppc/dev/ofb.c
===================================================================
RCS file: /export/cvsroot/src/sys/arch/macppc/dev/ofb.c,v
retrieving revision 1.2
diff -u -r1.2 ofb.c
--- sys/arch/macppc/dev/ofb.c 2003/01/15 08:08:47 1.2
+++ sys/arch/macppc/dev/ofb.c 2003/01/18 02:14:42
@@ -156,6 +156,7 @@
struct ofb_devconfig *dc;
int console, node;
char devinfo[256];
+ char devname[256];
node = getnodebypci(pa->pa_pc, pa->pa_tag);
if (node == 0) {
@@ -165,8 +166,12 @@
/* XXX There may be two child screens. */
bzero(devinfo, sizeof devinfo);
+ bzero(devname, sizeof devname);
OF_getprop(node, "device_type", devinfo, sizeof devinfo);
- if (strstr(devinfo, "Parent") || strstr(devinfo, "-parent"))
+ OF_getprop(node, "name", devname, sizeof devname);
+ printf("\nOF_getprop,devinfo: %s\n", devinfo);
+ printf("OF_getprop,devname: %s\n", devname);
+ if (strstr(devname, "Parent") || strstr(devinfo, "-parent"))
node = OF_child(node);
console = ofb_is_console(node);