* [parisc-linux] The config for 712 hp boxes
@ 2000-11-16 17:18 Thomas Marteau
2000-11-16 18:10 ` Grant Grundler
2000-11-16 21:28 ` Helge Deller
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Marteau @ 2000-11-16 17:18 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
[-- Attachment #1: Type: text/plain, Size: 589 bytes --]
Hi all,
Here is the config file we use to compile a new kernel from the test10
sources. We have the console with the STI and an extra term on the serial
port.
Also, in this mail, you have the diff between our hp_keyb.c and the official
one but it gives you the ~ and the ' and others scancodes.
All this works for the 712 boxes. We were forced to reboot our box to test
the new kernel but before the uptime was 3 days and 4 hours during which we
ran dselect and did some compiling.
All the files inclosed are downloadable at
http://www.esiee.fr/~puffin/code/dl.html
Bye,
ESIEE Team
[-- Attachment #2: keyb.patch --]
[-- Type: application/octet-stream, Size: 2387 bytes --]
diff -urN linux2/drivers/char/hp_keyb.c linux/drivers/char/hp_keyb.c
--- linux2/drivers/char/hp_keyb.c Thu Nov 16 17:39:03 2000
+++ linux/drivers/char/hp_keyb.c Thu Nov 16 17:18:54 2000
@@ -70,12 +70,12 @@
#define K_F8 0x42
#define K_F9 0x43
#define K_F10 0x44
-#define K_F11 87
-#define K_F12 88
+#define K_F11 0x57
+#define K_F12 0x58
#define K_PRNT 0x54
-#define K_SCRL 70
-#define K_BRK 119
-#define K_AGR K_NONE
+#define K_SCRL 0x46
+#define K_BRK 0x77
+#define K_AGR 0x29
#define K_1 0x02
#define K_2 0x03
#define K_3 0x04
@@ -89,10 +89,10 @@
#define K_MINS 0x0c
#define K_EQLS 0x0d
#define K_BKSP 0x0e
-#define K_INS 110
-#define K_HOME 102
-#define K_PGUP 104
-#define K_NUML 69
+#define K_INS 0x6e
+#define K_HOME 0x66
+#define K_PGUP 0x68
+#define K_NUML 0x45
#define KP_SLH 0x62
#define KP_STR 0x37
#define KP_MNS 0x4a
@@ -111,13 +111,13 @@
#define K_RSBK 0x1b
#define K_ENTR 0x1c
#define K_DEL 111
-#define K_END 107
-#define K_PGDN 109
+#define K_END 0x6b
+#define K_PGDN 0x6d
#define KP_7 0x47
#define KP_8 0x48
#define KP_9 0x49
-#define KP_PLS 118
-#define K_CAPS 58
+#define KP_PLS 0x4e
+#define K_CAPS 0x3a
#define K_A 0x1e
#define K_S 0x1f
#define K_D 0x20
@@ -146,7 +146,7 @@
#define K_DOT 0x34
#define K_FSLH 0x35
#define K_RSFT 0x36
-#define K_UP 103
+#define K_UP 0x67
#define KP_1 0x4f
#define KP_2 0x50
#define KP_3 0x51
@@ -156,11 +156,11 @@
#define K_SPCE 0x39
#define K_RALT 0x64
#define K_RCTL 0x61
-#define K_LEFT 105
-#define K_DOWN 108
-#define K_RGHT 106
-#define KP_0 82
-#define KP_DOT 83
+#define K_LEFT 0x69
+#define K_DOWN 0x6c
+#define K_RGHT 0x6a
+#define KP_0 0x52
+#define KP_DOT 0x53
static unsigned char keycode_translate[256] =
{
@@ -198,7 +198,7 @@
/* ----- the following code stolen from pc_keyb.c */
-#ifdef CONFIG_MAGIC_SYSRQ
+
unsigned char pckbd_sysrq_xlate[128] =
"\000\0331234567890-=\177\t" /* 0x00 - 0x0f */
"qwertyuiop[]\r\000as" /* 0x10 - 0x1f */
@@ -207,7 +207,6 @@
"\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */
"230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */
"\r\000/"; /* 0x60 - 0x6f */
-#endif
/*
* Translation of escaped scancodes to keycodes.
[-- Attachment #3: config --]
[-- Type: application/octet-stream, Size: 7581 bytes --]
#
# Automatically generated by make menuconfig: don't edit
#
CONFIG_PARISC=y
# CONFIG_UID16 is not set
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
#
# General options
#
# CONFIG_SMP is not set
# CONFIG_KWDB is not set
CONFIG_GSC=y
CONFIG_IOMMU_CCIO=y
CONFIG_GSC_LASI=y
CONFIG_PCI=y
CONFIG_GSC_DINO=y
CONFIG_PCI_LBA=y
CONFIG_IOSAPIC=y
CONFIG_IOMMU_SBA=y
#
# Loadable module support
#
# CONFIG_MODULES is not set
#
# General setup
#
CONFIG_NET=y
# CONFIG_SYSVIPC is not set
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
# CONFIG_BINFMT_SOM is not set
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_BINFMT_JAVA is not set
#
# Parallel port support
#
CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_OTHER is not set
# CONFIG_PARPORT_1284 is not set
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
#
# Networking options
#
# CONFIG_PACKET is not set
# CONFIG_NETLINK is not set
# CONFIG_NETFILTER is not set
# CONFIG_FILTER is not set
# CONFIG_UNIX is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_LLC is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
#
# SCSI support
#
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_SD_EXTRA_DEVS=40
# CONFIG_CHR_DEV_ST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
#
# SCSI low-level drivers
#
CONFIG_SCSI_LASI=y
CONFIG_SCSI_ZALON=y
CONFIG_SCSI_SYM53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20
# CONFIG_SCSI_NCR53C8XX_PROFILE is not set
# CONFIG_SCSI_NCR53C8XX_IOMAPPED is not set
#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_LASI_82596=y
#
# ARCnet devices
#
# CONFIG_ARCNET is not set
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_NET_SB1000 is not set
#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not set
# CONFIG_CS89x0 is not set
# CONFIG_DE4X5 is not set
CONFIG_TULIP=y
# CONFIG_DGRS is not set
# CONFIG_DM9102 is not set
# CONFIG_EEPRO100 is not set
# CONFIG_LNE390 is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_NE3210 is not set
# CONFIG_ES3210 is not set
# CONFIG_RTL8129 is not set
# CONFIG_8139TOO is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set
# CONFIG_WINBOND_840 is not set
# CONFIG_NET_POCKET is not set
#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_SK98LIN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set
#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set
#
# Wan interfaces
#
# CONFIG_WAN is not set
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_GSC_PS2=y
# CONFIG_HIL is not set
CONFIG_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set
CONFIG_SERIAL_GSC=y
# CONFIG_SERIAL_EXTENDED is not set
# CONFIG_SERIAL_NONSTANDARD is not set
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
# CONFIG_PRINTER is not set
# CONFIG_PPDEV is not set
#
# I2C support
#
# CONFIG_I2C is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_MOUSE is not set
#
# Joysticks
#
# CONFIG_JOYSTICK is not set
# CONFIG_QIC02_TAPE is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
CONFIG_GENRTC=y
# CONFIG_INTEL_RNG is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set
#
# File systems
#
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_ADFS_FS_RW is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_JFFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_RAMFS is not set
CONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
# CONFIG_MINIX_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS_RW is not set
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not set
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
# CONFIG_DEVPTS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX4FS_RW is not set
# CONFIG_ROMFS_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
# CONFIG_SYSV_FS_WRITE is not set
# CONFIG_UDF_FS is not set
# CONFIG_UDF_RW is not set
# CONFIG_UFS_FS is not set
# CONFIG_UFS_FS_WRITE is not set
#
# Network File Systems
#
# CONFIG_CODA_FS is not set
CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is not set
# CONFIG_NCPFS_PACKET_SIGNING is not set
# CONFIG_NCPFS_IOCTL_LOCKING is not set
# CONFIG_NCPFS_STRONG is not set
# CONFIG_NCPFS_NFS_NS is not set
# CONFIG_NCPFS_OS2_NS is not set
# CONFIG_NCPFS_SMALLDOS is not set
# CONFIG_NCPFS_MOUNT_SUBDIR is not set
# CONFIG_NCPFS_NDS_DOMAINS is not set
# CONFIG_NCPFS_NLS is not set
# CONFIG_NCPFS_EXTRAS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
# CONFIG_NLS is not set
#
# Sound Drivers
#
# CONFIG_SOUND is not set
#
# Console drivers
#
#
# Frame-buffer support
#
# CONFIG_FB is not set
CONFIG_STI_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
#
# Kernel hacking
#
CONFIG_MAGIC_SYSRQ=y
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] The config for 712 hp boxes
2000-11-16 17:18 [parisc-linux] The config for 712 hp boxes Thomas Marteau
@ 2000-11-16 18:10 ` Grant Grundler
2000-11-16 18:25 ` Helge Deller
2000-11-16 21:28 ` Helge Deller
1 sibling, 1 reply; 5+ messages in thread
From: Grant Grundler @ 2000-11-16 18:10 UTC (permalink / raw)
To: Thomas Marteau; +Cc: parisc-linux
"Thomas Marteau" wrote:
> Hi all,
>
> Here is the config file we use to compile a new kernel from the test10
> sources. We have the console with the STI and an extra term on the serial
> port.
Thomas - excellent - thanks!
> Also, in this mail, you have the diff between our hp_keyb.c and the official
> one but it gives you the ~ and the ' and others scancodes.
I noticed this mail was directed to me - but I can't take ownership
of this code. I have too many other things going on.
Helge - can you commit this fix too?
thanks,
grant
Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] The config for 712 hp boxes
2000-11-16 18:10 ` Grant Grundler
@ 2000-11-16 18:25 ` Helge Deller
0 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2000-11-16 18:25 UTC (permalink / raw)
To: Grant Grundler, Thomas Marteau; +Cc: parisc-linux
On Thursday 16 November 2000 19:10, Grant Grundler wrote:
> "Thomas Marteau" wrote:
> > Hi all,
> >
> > Here is the config file we use to compile a new kernel from the test10
> > sources. We have the console with the STI and an extra term on the serial
> > port.
>
> Thomas - excellent - thanks!
>
> > Also, in this mail, you have the diff between our hp_keyb.c and the
official
> > one but it gives you the ~ and the ' and others scancodes.
>
> I noticed this mail was directed to me - but I can't take ownership
> of this code. I have too many other things going on.
>
> Helge - can you commit this fix too?
Ok. I will test & evtl. commit it today.
>
> thanks,
> grant
>
> Grant Grundler
> Unix Systems Enablement Lab
> +1.408.447.7253
>
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] The config for 712 hp boxes
2000-11-16 17:18 [parisc-linux] The config for 712 hp boxes Thomas Marteau
2000-11-16 18:10 ` Grant Grundler
@ 2000-11-16 21:28 ` Helge Deller
[not found] ` <000f01c05083$89805240$a832d793@esiee.fr>
1 sibling, 1 reply; 5+ messages in thread
From: Helge Deller @ 2000-11-16 21:28 UTC (permalink / raw)
To: Thomas Marteau; +Cc: parisc-linux
On Thursday 16 November 2000 18:18, Thomas Marteau wrote:
> Hi all,
>
> [....]
> Also, in this mail, you have the diff between our hp_keyb.c and the official
> one but it gives you the ~ and the ' and others scancodes.
> [....]
Hi ESIEE-Team !
Thanks for your patch !
I committed your patch into CVS and just tweaked it a little for
CONFIG_MAGIC_SYSRQ. I hope this is ok for you ?
If your time permits, I would like to ask, if you maybe also want to look at
getting the CAPS-Lock-, Scroll-Lock- & Num-Lock-LED's working ?
Furthermore you mention in your project-history on your homepage something
about "keyboard and soundchip problems" (Oct. 24). I'm asking just out of
curiousity: Did you thought about programming the on-board sound-chips (which
I believe would be a hard job.) ?
> Bye,
> ESIEE Team
Best regards,
Helge Deller.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [parisc-linux] The config for 712 hp boxes
[not found] ` <000f01c05083$89805240$a832d793@esiee.fr>
@ 2000-11-17 14:34 ` Helge Deller
0 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2000-11-17 14:34 UTC (permalink / raw)
To: Thomas Marteau; +Cc: parisc-linux
[CC'ed the list, so maybe someone else can comment too....]
On Friday 17 November 2000 11:45, Thomas Marteau wrote:
> Hi Helge,
Hi,
>
>
> ----- Original Message -----
> From: Helge Deller <deller@gmx.de>
> To: Thomas Marteau <marteaut@esiee.fr>
> Cc: <parisc-linux@puffin.external.hp.com>
> Sent: Thursday, November 16, 2000 10:28 PM
> Subject: Re: [parisc-linux] The config for 712 hp boxes
>
>
> > On Thursday 16 November 2000 18:18, Thomas Marteau wrote:
> > > Hi all,
> > >
> > > [....]
> > > Also, in this mail, you have the diff between our hp_keyb.c and the
> official
> > > one but it gives you the ~ and the ' and others scancodes.
> > > [....]
> >
> > Hi ESIEE-Team !
> >
> > Thanks for your patch !
> >
> > I committed your patch into CVS and just tweaked it a little for
> > CONFIG_MAGIC_SYSRQ. I hope this is ok for you ?
> We didn't really understand why pckbd_sysrq_xlate was here for.
> If you can explain to us, it will be fine.
The best documentation you can find is in linux/Documentation/sysrq.txt.
The copy of pckbd_sysrq_xlate[] is a simple implementation of
keyboard-scancodes to chars, which is used by drivers/char/keyboard.c to call
handle_sysrq() from /drivers/char/sysrq.c.
This means, that you can press Alt-PrintScr (=> SysRQ) and a char at the
keyboard simultaniously and your machine for example syncs the disks, mounts
all discs read-only or reboots your machine immediately.
> > If your time permits, I would like to ask, if you maybe also want to look
> at
> > getting the CAPS-Lock-, Scroll-Lock- & Num-Lock-LED's working ?
> Normally, you can see yours leds switching on/off but we did not init them.
> So they are like boot admin switch them...
^^^^^^^ ^^^^^ ^^^
Sorry ?
> But we would like to know how and where we have to init them
> because we know how to. We have made test and it was working...
I'm not sure, but I think you should check the code in lasikbd_leds() in
hp_psaux.c.
The initialization should maybe be done in the same file in the function
lasi_ps2_register() before calling register_kbd_ops().
>
> > Furthermore you mention in your project-history on your homepage something
> > about "keyboard and soundchip problems" (Oct. 24). I'm asking just out of
> > curiousity: Did you thought about programming the on-board sound-chips
> (which
> > I believe would be a hard job.) ?
> Yes, it is in our internal todo list, if we have time to. Because we look at
> it with Thierry, we saw that, for LASI,
> you have an interface and then the chip to configure. But it is very
> interesting...
Yes it is, and it would be great if you worked on that too !
>
> Also, we want to rule the power leds but they are different if the box is
> 712 or B132 or ... So our question is how to implement
> this kind of initialsation and deinitialisation in a linux kernel and in a
> second time, how to do for differents kind of boxes.
As far as I know / have heard, there are only two types of LED's (but I may
be wrong here !). One is where the LED's are organized in a row on the front
panel (as my local machines here), and the other one, where you have
(LED/)LCD-Numbers on your front panel ?
They differ how to be accessed and where the controlling registers are
located. One method to distiguish them is maybe to place the special
initialisation code into drivers/gsc/lasi.c and asp.c, depending on the
machine and which method needs to be used.
Since I don't have any real documentation or knowledge of the programming of
the LEDs (beside of the PDC-calls I placed into setup.c), maybe someone else
can better comment on that or give some documentation ?
>
> Thanks for your answers, Helge
> Bye,
> ESIEE Team
Best regards,
Helge Deller.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-11-17 14:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-16 17:18 [parisc-linux] The config for 712 hp boxes Thomas Marteau
2000-11-16 18:10 ` Grant Grundler
2000-11-16 18:25 ` Helge Deller
2000-11-16 21:28 ` Helge Deller
[not found] ` <000f01c05083$89805240$a832d793@esiee.fr>
2000-11-17 14:34 ` Helge Deller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.