Port-zaurus archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD/zaurus 8.1 problems and possible fixes

> > > - zaudio(4) is not proped properly on all C700, C1000, and C3x00,
>  :
> > Filed as PR kern/54658:
> >  https://gnats.netbsd.org/54658
> The following minimum change (visible behaivor change from 8.x)
> also makes zaudio(4) attached and functional again:

Note zaudio(4) doesn't work on 8.x (devices are attached, but fails to
playing sound) but it's a bit hard to fix without isaki-audio2 branch.

More issue on 9.0_BETA:

(1) options WSDISPLAY_COMPAT_RAWKBD for Xorg server

On 9.0_BETA, options WSDISPLAY_COMPAT_RAWKBD is commented out
in zaurus/conf/GENERIC, but it's necessary to use Xorg server.

I'll put it back to GENERIC and send a pullup request.

(2) zrc.c fails to build with options WSDISPLAY_COMPAT_RAWKBD

When I enable options WSDISPLAY_COMPAT_RAWKBD arch/zaurus/dev/zrc.c
gets build error, undefined symbols RAWKEY_Null, RAWKEY_AudioMute,
RAWKEY_AudioLower, and RAWKEY_AudioRaise.

On 8.x and prior, it happens to work because zrc.c doesn't
explicitly include "opt_wsdisplay_compat.h" and the option
WSDISPLAY_COMPAT_RAWKBD is not pulled properly. (Oh well)

With the following fixes Xorg server functional with audio:
(though rotation problem on 8.x is not addressed yet)

I'll also send a pullup request for zrc.c for both netbsd-8
and netbsd-9:

Index: zaurus/conf/GENERIC
RCS file: /cvsroot/src/sys/arch/zaurus/conf/GENERIC,v
retrieving revision 1.86
diff -u -p -d -r1.86 GENERIC
--- zaurus/conf/GENERIC	26 Jul 2019 07:09:47 -0000	1.86
+++ zaurus/conf/GENERIC	2 Nov 2019 15:50:27 -0000
@@ -143,7 +143,7 @@ options 	WS_KERNEL_FG=WSCOL_GREEN
 # compatibility to other console drivers
 options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
 options 	WSDISPLAY_COMPAT_USL		# wsconscfg VT handling
-# options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
+options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
 # Development and Debugging options
Index: zaurus/dev/zrc.c
RCS file: /cvsroot/src/sys/arch/zaurus/dev/zrc.c,v
retrieving revision 1.9
diff -u -p -d -r1.9 zrc.c
--- zaurus/dev/zrc.c	27 Oct 2012 17:18:14 -0000	1.9
+++ zaurus/dev/zrc.c	2 Nov 2019 15:50:27 -0000
@@ -17,6 +17,8 @@
+#include "opt_wsdisplay_compat.h"
 #include <sys/cdefs.h>
 __KERNEL_RCSID(0, "$NetBSD: zrc.c,v 1.9 2012/10/27 17:18:14 chs Exp $");
@@ -131,6 +133,11 @@ static const keysym_t zrc_keydesc[] = {
+/* XXX see OpenBSD's <sys/dev/wscons/wskbdraw.h> */
+#define	RAWKEY_Null		0x00
+#define	RAWKEY_AudioMute	0x85
+#define	RAWKEY_AudioLower	0x86
+#define	RAWKEY_AudioRaise 	0x87
 #define	RAWKEY_AudioRewind	0xa0
 #define	RAWKEY_AudioForward	0xa1
 #define	RAWKEY_AudioPlay	0xa2

Izumi Tsutsui

Home | Main Index | Thread Index | Old Index