Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kernel] upgrade to 2.6 > keyboard not detected (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2295
Location: Bretagne

PostPosted: Sun Aug 20, 2006 2:09 pm    Post subject: [kernel] upgrade to 2.6 > keyboard not detected (solved) Reply with quote

Hi! :)
I've just upgraded today to 2006.1 profile and 2.6.17.7 vanilla-sources. Everything went fine and my system boots perfectly but I have a big problem though: My keyboard is no longer detected.... :?
The keyboard is a sun type 6 keyboard (it's written on the back of it) and was perfectly detected as sun type 5 on 2.4.32-sparc-r6 kernel with the following kernel options:
Code:
CONFIG_SUN_KEYBOARD=y
# CONFIG_INPUT_KEYBDEV is not set

and:
Code:

# dmesg | grep key
Sun TYPE 5 keyboard detected without keyclick


I'm using these options for 2.6 kernel and it won't work:
Code:
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ATKBD is not set
CONFIG_KEYBOARD_SUNKBD=y
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYS is not set


Is there something I'm missing in the kernel options? Or may this be a bug?


Last edited by Adrien on Wed Aug 23, 2006 10:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Sun Aug 20, 2006 5:36 pm    Post subject: Reply with quote

Assume you've changed the kepmap to ="us" (or "fr"?) instead of "sunkeymap" in /etc/rc.conf?

I would be interested to see what you did to migrate, as I am considering it? The 2.4 - 2.6 migration guide seems a bit over the top for sparc users, and I would appreciate a simple minimum list of things you must do...

Cheers,

Mark
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2295
Location: Bretagne

PostPosted: Sun Aug 20, 2006 6:49 pm    Post subject: Reply with quote

marky9074 wrote:
Assume you've changed the kepmap to ="us" (or "fr"?) instead of "sunkeymap" in /etc/rc.conf?

Hi! Thanks for your answer! :)
It has nothing to do with keymappings, no keyboard is being detected at all, I mean nothing appears on the screen when I type on the keys, so I can't even login.

marky9074 wrote:
I would be interested to see what you did to migrate, as I am considering it? The 2.4 - 2.6 migration guide seems a bit over the top for sparc users, and I would appreciate a simple minimum list of things you must do...

Cheers,

Mark

The guide is ok, but you'll have to adapt it a little bit. You should definitely have a look at this too.
For a start I guess this should be ok (I assume you have a sparc64 system and you want to switch to 2006.1 profile):
Code:
# rm -f /etc/make.profile
# ln -snf /usr/portage/profiles/default-linux/sparc/sparc64/2006.1 /etc/make.profile

Not sure the 2006.1 profile is secure yet btw but haven't had any warnings from portage.
Code:
# emerge --sync
# emerge -au world

It may also be a good idea to switch to udev with:
Code:
# emerge -av udev

and of course the new kernel:
Code:
# emerge -av vanilla-sources

You can now compile your new kernel, but I heard it's not recommended to "make oldconfig" from a 2.4 .config file.
If you want to autoload modules, you'll obviously prefer the /etc/modules.autoload.d/kernel-2.6 file instead of 2.4.

So, don't forget I'm very new to sparc and therefore, I may be wrong about some points.
From know I'm not sure about what to do. glibc should be reinstalled against the new kernel headers but the thing is it refuses to compile for me as the kernel is too old, so it may be a better idea to reboot first....
Then an emerge -e world is required, and you should also remove devfs...
Have fun! :) Hope this helps.
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Mon Aug 21, 2006 7:25 am    Post subject: Reply with quote

Hi again!

Thanks for the instructions, I may be brave and have a go later!

I am wondering if you are using a USB based Sparc? This may be the problem. I think weeve or ferris mentioned this on one of the other 2.4/2.6 keymapping bashing threads...

Mark
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Mon Aug 21, 2006 1:18 pm    Post subject: Reply with quote

I am not the one who mentioned anything, but I do have SB1000+USB+type6 kbd. On this system, in the kernel .config I use

Code:

CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_KEYBOARD_SUNKBD=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y

and some other USB options.

Then, with KEYMAP="us" in /etc/conf.d/keymaps, everything works as expected. I do not recall just how much USB stuff I needed to turn on in the kernel to get the keyboard detected, but there was at a minimum what I just mentioned.
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2295
Location: Bretagne

PostPosted: Mon Aug 21, 2006 1:21 pm    Post subject: Reply with quote

Ferris wrote:
I am not the one who mentioned anything, but I do have SB1000+USB+type6 kbd. On this system, in the kernel .config I use

Code:

CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_KEYBOARD_SUNKBD=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y

and some other USB options.

Then, with KEYMAP="us" in /etc/conf.d/keymaps, everything works as expected. I do not recall just how much USB stuff I needed to turn on in the kernel to get the keyboard detected, but there was at a minimum what I just mentioned.

Well, thanks a lot for this, :D will give it a try, but is your keyboard USB? Cause mine is PS/2, so do you still think it would change anything??
Back to top
View user's profile Send private message
marky9074
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 196
Location: UK

PostPosted: Mon Aug 21, 2006 2:15 pm    Post subject: Reply with quote

Adrien,

I just migrated to the latest gentoo-sources kernel with absolutely no problems whatsoever (even better now they are unmasked and stable)....

My set up is a U60 with PS/2 keyboard. I did not do anything different apart from following the Gentoo Handbook for what to turn on when compiling a 2.6 kernel...

The only thing I forgot was to compile ufs support, but as it always crashes my disk I probably wont bother!

Sorry not been of much more help. Maybe tell us what you are running? U1/2 5 10 60 etc?

Mark
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2295
Location: Bretagne

PostPosted: Mon Aug 21, 2006 3:19 pm    Post subject: Reply with quote

Good news! and glad it worked for you! :D
To answer you, the machine is a Sun Ultra 2 station.
Unfortunately the thing is I got desperate and therefore, tried a Solaris 10 installation, which failed for some reasons I couldn't fix.
I'm tryin' to reinstall gentoo at the moment...
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Mon Aug 21, 2006 11:04 pm    Post subject: Reply with quote

So far as I know, U2+type6+latest gentoo-sources should work as in the handbook. However, be aware that unfortunately for many of us, no 2.6 kernel is completely stable on U2. For many (perhaps most) U2 sustems, kernel-2.6.latest is fine, but for some os (for me included), it is not at all fine. But since this is a new installation, if you run into the instabilities, all you lose is some time. If you are successful with 2.6, please let us all know. (And if you install it but find it to be unstable, let us know that, too. The instability is dramatic (completely dead system), so if you experience it, you will know.)
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2295
Location: Bretagne

PostPosted: Tue Aug 22, 2006 7:27 pm    Post subject: Reply with quote

Ok my reinstallation is now over and I'll try again to switch to 2.6 using gust4voz's kernel configs from his experimental livecd, as I noticed the livecd detected my keyboard.
The thing is there's something weird with the default .config after I emerged gentoo-sources: It seems like a lot of options are missing and fully disabled in it, for example:
Code:
sp4rcbl4ze linux-2.6.17-gentoo-r5 # grep USB .config
# USB support
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
# CONFIG_USB_ARCH_HAS_EHCI is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
# USB Gadget Support
# CONFIG_USB_GADGET is not set

There should be much more options for USB in it, and if I look at gust4voz's config:
Code:
sp4rcbl4ze ~ # grep USB kernel-config-sparc64-2.6.17-gentoo-r4
# CONFIG_USB_DABUSB is not set
# USB support
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
# CONFIG_USB_ISP116X_HCD is not set
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
# CONFIG_USB_SL811_HCD is not set
# USB Device Class drivers
CONFIG_USB_ACM=m
# CONFIG_USB_PRINTER is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
# may also be needed; see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_LIBUSUAL=y
# USB Input Devices
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
CONFIG_USB_HIDDEV=y
# USB HID Boot Protocol drivers
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_ACECAD is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_TOUCHSCREEN is not set
# CONFIG_USB_YEALINK is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
# CONFIG_USB_ATI_REMOTE2 is not set
# CONFIG_USB_KEYSPAN_REMOTE is not set
# CONFIG_USB_APPLETOUCH is not set
# USB Imaging devices
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# USB Network Adapters
CONFIG_USB_CATC=m
CONFIG_USB_KAWETH=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_USBNET=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_CDCETHER=m
CONFIG_USB_NET_GL620A=m
CONFIG_USB_NET_NET1080=m
CONFIG_USB_NET_PLUSB=m
CONFIG_USB_NET_RNDIS_HOST=m
CONFIG_USB_NET_CDC_SUBSET=m
CONFIG_USB_ALI_M5632=y
CONFIG_USB_AN2720=y
CONFIG_USB_BELKIN=y
CONFIG_USB_ARMLINUX=y
CONFIG_USB_EPSON2888=y
CONFIG_USB_NET_ZAURUS=m
# CONFIG_USB_MON is not set
# USB port drivers
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# USB Miscellaneous drivers
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGETKIT is not set
# CONFIG_USB_PHIDGETSERVO is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TEST is not set
# USB DSL modem support
CONFIG_USB_ATM=m
CONFIG_USB_SPEEDTOUCH=m
CONFIG_USB_CXACRU=m
CONFIG_USB_UEAGLEATM=m
CONFIG_USB_XUSBATM=m
# USB Gadget Support
# CONFIG_USB_GADGET is not set


Sorry for the huge amount of code but I'm curious about how such a thing is possible.... :roll:

EDIT:
Ok well, the question is quite stupid....nevermind :lol:
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2295
Location: Bretagne

PostPosted: Wed Aug 23, 2006 10:01 pm    Post subject: Reply with quote

Ok good news here, it works now, for whatever reasons I couldn't find. I used gust4voz's config for gentoo-sources-2.6.17-r5 without changing it first, it worked fine and keyboard was detected. After that I striped the .config as much as I could (according to my needs of course) in order to try to find out which option I missed before or which one shouldn't have been enabled but without success. Anyway, everything's just fine for my ultra 2

For the moment everything seems to be really stable, just a little display bug when the kernel starts (harmless though) and the problem with the hme driver which is not caused by 2.6.

Here are some extra informations, hope it helps, I can also send my kernel .config on demand:
Code:
sp4rcbl4ze ~ # lssbus
0: Video Controller: Sun FFB 67MHz Creator
1: Network Controller: Sun Quad Ethernet
2: Network Controller: Sun Happy Meal Ethernet
3: SCSI Controller: Sun Swift (ESP)
4: Multimedia audio controller: CS4231 APC DMA (SBUS)


and some more:
Code:
Portage 2.1-r2 (default-linux/sparc/sparc64/2006.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r5 sparc64)
=================================================================
System uname: 2.6.17-gentoo-r5 sparc64 sun4u
Gentoo Base System version 1.6.14
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r6

Glibc has been compiled with nptl and nptlonly


Thanks a lot for your precious help! :D
Back to top
View user's profile Send private message
w.hill
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 133
Location: Perth, Western Australia

PostPosted: Fri Sep 08, 2006 2:53 am    Post subject: Reply with quote

Hi,

I have just installed 2006.1 with the 2.6.17.11 kernel onto an Ultra 5 with a Sun Type 5 (PS2) keyboard.

I am experiencing the same problem in that the keyboard in not detected by the kernel.

I was wondering if any discoveries have been made in relation to this thread.

TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum