Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155820 - PCMCIA not working on HP NX6310 laptop, Kernel 2.6.18
Summary: PCMCIA not working on HP NX6310 laptop, Kernel 2.6.18
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-20 17:46 UTC by John Huttley
Modified: 2007-01-21 18:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
lspci output (lscpi.txt,1.50 KB, text/plain)
2006-11-20 17:48 UTC, John Huttley
Details
dmesg output (dmesg.txt,22.05 KB, text/plain)
2006-11-20 17:50 UTC, John Huttley
Details
Kernel Config (my.config,46.40 KB, text/plain)
2006-11-20 17:51 UTC, John Huttley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Huttley 2006-11-20 17:46:57 UTC
Gentoo Base System version 1.12.6
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Intel(R) Celeron(R) M CPU        430  @ 1.73GHz
Last Sync: Mon, 20 Nov 2006 14:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -pipe -mno-tls-direct-seg-refs -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/postfix /etc/samba /etc/sasl2 /etc/squid /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium2 -O2 -pipe -mno-tls-direct-seg-refs -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks keepwork metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.95.254/gentoo-portage"
USE="x86 X acpi alsa apache2 bzip2 cairo crypt cups dbus dri elibc_glibc gif gmp gnome gpm gtk gtk2 hal input_devices_keyboard input_devices_mouse jpeg kernel_linux mp3 nptl pam pcmcia pcre pdf png readline sasl slp sse ssl theora tiff usb userland_GNU video_cards_810 video_cards_vesa xml xml2 xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Kernel 2.6.18 and also 2.16.19-rc5. The Kernels were compiled with ISA bus support and PCMCIA drivers as compiled in drivers, not as modules.

The laptop seems to have a yenta compatible chip, however pcmcia does not appear in /proc/devices. Thus pcmcia-cs won't start.
Also /sys/bus/pcmcia/devices is empty.

Please note that this is th first time I've tried to run linux on a laptop, so I'm quite sure how its supposed to work.
Comment 1 John Huttley 2006-11-20 17:48:45 UTC
Created attachment 102439 [details]
lspci output
Comment 2 John Huttley 2006-11-20 17:50:34 UTC
Created attachment 102440 [details]
dmesg output

It looks like its finding hardware.
Comment 3 John Huttley 2006-11-20 17:51:56 UTC
Created attachment 102441 [details]
Kernel Config
Comment 4 John Huttley 2006-11-20 17:56:21 UTC
When looking through the dmesg output, I saw messages about transparent bridges.
Following the suggestion I've booted with the kernel option 

pci=assign-busses,assign-irq

But it hasn't helped.
Comment 5 Thomas Tesone 2006-11-21 12:06:57 UTC
Tried emerging squid and this access violation appeared:

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-net-proxy_-_squid-2.6.4-r2-7494.log"

unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
--------------------------------------------------------------------------------

Here's what is in the log:

nlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
open_wr:   /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf
unlink:    /usr/src/linux-2.6.18-gentoo-r2/scripts/kconfig/conf


My emerge --info is:

Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2 i686)
=================================================================
System uname: 2.6.18-gentoo-r2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.6
Last Sync: Mon, 20 Nov 2006 15:30:02 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
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.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://gentoo.localhost.net.ar/ ftp://mirrors.localhost.net.ar/pub/mirrors "
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa apache2 berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gif gpm hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux libg++ mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl php png postgresql ppds pppd python qt3 qt4 readline real reflection session slang spl ssl tcpd tiff truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia vorbis win32codecs xine xorg xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Thomas Tesone 2006-11-21 16:24:14 UTC
(In reply to comment #5)

Delete this, I got mixed up with bugs
Comment 7 John Huttley 2007-01-21 18:56:37 UTC
This is is now solved.
This needs documenting for the sake of others.
The current docs are in the www.kernel.org site.
The PCMCIA interface changed in the kernel as of 2.6.13. 
Most people will be using modern 'cardbus' cards which is a 32bit hotpluggable pci interface. So we don't need need the ISA bus or the other drivers. We need the yenta_socket for most laptops or the tcic for toshibas.

emerge sysfsutils.
If you have been trying to use pcmcia-cs, unmerge it and delete the /etc/pcmcia directory. remove pcmcia from your startup options.

emerge pcmciautils WITH THE "udev"  USE FLAG. There is no need for a cardmgr process any more, there is nothing in /etc/init.d

The lspcmcia command should show the socket status. Insert a card and the status changes. Don't expect much detail.
At this point the pcmcia system is probably working. If you are not seeing a socket, try booting with the pci=assign-busses kernel option.

pcmcia does not appear in /proc/devices.

The documentation says that /sys/bus will now contain 'pcmcia'. Actually it doesn't for me, perhaps it will with a 16bit card.
What has happened is that pcmcia (cardbus) is not a 'real' thing anymore. It is a kind of pci bus. You can have all sorts of devices on a pci bus. In my case i'm using a Sierra Wireless 580 evdo card. After inserting the card, lspci now shows a OHCI usb controller. This is interesting as the motherboard is Intel based and only has the UHCI ports. Naturally I had not compiled support for OHCI into my kernel. From resources on the net i knew the card appeared as 2 usb-serial ports, so I checked the config (kernel 2.6.19-r2 now) and found that the sierra card had its own usb-serial driver. Good.
reboot and plug in the card and we get /dev/ttyUSB0 and /dev/ttyUSB1.
problem solved. /sys/bus still doesn't show pcmcia, but it will now show usb-serial.

This really ought to be expanded and added to gentoo documentation.