LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-04-2005, 01:55 AM   #1
BobT
LQ Newbie
 
Registered: Feb 2005
Location: Holland, Michigan USA
Distribution: Suse 9.2
Posts: 5

Rep: Reputation: 0
Inspiron 600m PCMCIA Compact Flash Problem


I'm having problems getting my PCMCIA Compact Flash card reader to work with my Dell Inspiron 600m running Suse 9.2.

When I insert the card I get two beeps and CPU utilization goes to 95% (and stays there).

If I issue: cardctl eject

I get two more beeps and CPU utilization drops back to normal levels.

After examining /proc/iomem and /proc/ioports I've been trying various include/exclude options in /etc/pcmcia/config.opts

Presently I'm using:

#include port 0x100-0x3af, port 0x3e0-0x4ff, port 0x800-0x80f, port 0x820-0x8ff, port 0xc00-0xcff
include port 0x100-0x16f, port 0x400-0x4ff

#include memory 0xc0000-0xfffff
include memory 0xd0000-0xeffff
#include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
include memory 0xa0000000-0xa0ffffff

dmesg gives the following:

Probing IDE interface ide2...
hde: SanDisk SDCFB-64, CFA DISK drive
ide2 at 0x100-0x107,0x10e on irq 3
hde: max request size: 128KiB
hde: 125440 sectors (64 MB) w/1KiB Cache, CHS=490/8/32
hde: cache flushes not supported
hde: hde1
ide-cs: hde: Vcc = 3.3, Vpp = 0.0
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde: hde1
hde:end_request: I/O error, dev hde, sector 0
Buffer I/O error on device hde, logical block 0
end_request: I/O error, dev hde, sector 1
Buffer I/O error on device hde, logical block 1
end_request: I/O error, dev hde, sector 2
Buffer I/O error on device hde, logical block 2
end_request: I/O error, dev hde, sector 3
Buffer I/O error on device hde, logical block 3
end_request: I/O error, dev hde, sector 4
Buffer I/O error on device hde, logical block 4
end_request: I/O error, dev hde, sector 5
Buffer I/O error on device hde, logical block 5
end_request: I/O error, dev hde, sector 6
Buffer I/O error on device hde, logical block 6
end_request: I/O error, dev hde, sector 7
Buffer I/O error on device hde, logical block 7
end_request: I/O error, dev hde, sector 0
Buffer I/O error on device hde, logical block 0
end_request: I/O error, dev hde, sector 1
Buffer I/O error on device hde, logical block 1
end_request: I/O error, dev hde, sector 2
Buffer I/O error on device hde, logical block 2
end_request: I/O error, dev hde, sector 3
Buffer I/O error on device hde, logical block 3
end_request: I/O error, dev hde, sector 4
Buffer I/O error on device hde, logical block 4
end_request: I/O error, dev hde, sector 5
Buffer I/O error on device hde, logical block 5
end_request: I/O error, dev hde, sector 6
Buffer I/O error on device hde, logical block 6
end_request: I/O error, dev hde, sector 7
Buffer I/O error on device hde, logical block 7
end_request: I/O error, dev hde, sector 2147483640
Buffer I/O error on device hde, logical block 2147483640
end_request: I/O error, dev hde, sector 2147483641
Buffer I/O error on device hde, logical block 2147483641
end_request: I/O error, dev hde, sector 2147483642
Buffer I/O error on device hde, logical block 2147483642
end_request: I/O error, dev hde, sector 2147483643
Buffer I/O error on device hde, logical block 2147483643
end_request: I/O error, dev hde, sector 2147483644
Buffer I/O error on device hde, logical block 2147483644
end_request: I/O error, dev hde, sector 2147483645
Buffer I/O error on device hde, logical block 2147483645
end_request: I/O error, dev hde, sector 2147483646
Buffer I/O error on device hde, logical block 2147483646
end_request: I/O error, dev hde, sector 2147483640
Buffer I/O error on device hde, logical block 2147483640
end_request: I/O error, dev hde, sector 2147483641
Buffer I/O error on device hde, logical block 2147483641
end_request: I/O error, dev hde, sector 2147483642
Buffer I/O error on device hde, logical block 2147483642
end_request: I/O error, dev hde, sector 2147483643
Buffer I/O error on device hde, logical block 2147483643
end_request: I/O error, dev hde, sector 2147483644
Buffer I/O error on device hde, logical block 2147483644
end_request: I/O error, dev hde, sector 2147483645
Buffer I/O error on device hde, logical block 2147483645
end_request: I/O error, dev hde, sector 2147483646
Buffer I/O error on device hde, logical block 2147483646
end_request: I/O error, dev hde, sector 0
Buffer I/O error on device hde, logical block 0
end_request: I/O error, dev hde, sector 1
Buffer I/O error on device hde, logical block 1
end_request: I/O error, dev hde, sector 2
Buffer I/O error on device hde, logical block 2
end_request: I/O error, dev hde, sector 3
Buffer I/O error on device hde, logical block 3
end_request: I/O error, dev hde, sector 4
Buffer I/O error on device hde, logical block 4
end_request: I/O error, dev hde, sector 5
Buffer I/O error on device hde, logical block 5
end_request: I/O error, dev hde, sector 6
Buffer I/O error on device hde, logical block 6
end_request: I/O error, dev hde, sector 7
Buffer I/O error on device hde, logical block 7
ldm_validate_partition_table(): Disk read failed.
end_request: I/O error, dev hde, sector 0
Buffer I/O error on device hde, logical block 0
end_request: I/O error, dev hde, sector 1
Buffer I/O error on device hde, logical block 1
end_request: I/O error, dev hde, sector 2
Buffer I/O error on device hde, logical block 2
end_request: I/O error, dev hde, sector 3
Buffer I/O error on device hde, logical block 3
end_request: I/O error, dev hde, sector 4
Buffer I/O error on device hde, logical block 4
end_request: I/O error, dev hde, sector 5
Buffer I/O error on device hde, logical block 5
end_request: I/O error, dev hde, sector 6
Buffer I/O error on device hde, logical block 6
end_request: I/O error, dev hde, sector 7
Buffer I/O error on device hde, logical block 7
unable to read partition table

Any ideas? This card works in my Inspiron 3800 running Suse 9.0.

If I insert a modem card in the 600m PCMCIA slot I don't have any high CPU utilization issues.
 
Old 02-12-2005, 01:21 AM   #2
BobT
LQ Newbie
 
Registered: Feb 2005
Location: Holland, Michigan USA
Distribution: Suse 9.2
Posts: 5

Original Poster
Rep: Reputation: 0
Related thread:

http://www.linuxquestions.org/questi...hreadid=284709

If I stop hotplug I can mount the card manually and it works properly.
 
Old 02-14-2005, 12:53 AM   #3
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
Hello Bob,

it may be that we have a little bit different set-up regarding hotplug and PCMCIA.

1) I do not use /etc/pcmcia/ide.opts or more precise i "commented-out" the
options in ide.opts. I am just using subfs for mounting PCMCIA cards.
Below the section regarding ide-cards from my /etc/pcmcia/ide.opts.
As you can see, all the entries related to mounting PCMCIA ide
devices are commented-out.
......
case "$ADDRESS" in
*,*,*,1)
#INFO="Sample IDE setup"
#DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
#FSTYPE="msdos"
#OPTS=""
#MOUNTPT="/mnt/ide"
;;
.......

As I can see in Larry's /var/log/messages output:
.....................
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: executing: './ide start hde 2>&1'
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + /sbin/fsck -Ta /dev/hde1
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + open /dev/hde1: No such file or directory
Jan 31 20:43:3
6 HPLapLinux cardmgr[3382]: + Aborting.dosfsck 2.10, 22 Sep 2003, FAT32, LFN
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount -v -t vfat /dev/hde1 /mnt/ide
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount: special device /dev/hde1 does not exist
.....................

So I think in his case the mount options in /etc/pcmcia/ide.opts are enabled.
I assume that /dev/ede1 is not present since SuSE 9.2 is using udev, that creates
the /dev entry for a particular device only when the deivice is really there and deletes
it afterwards.

So you may consider to disable the mount options in your /etc/pcmcia/ide.opts


2) Check your:
/etc/sysconfig/hotplug file and check the settings for
HOTPLUG_DO_MOUNT and HOTPLUG_MOUNT_TYPE
I have there:
for
HOTPLUG_DO_MOUNT="yes"
and for
HOTPLUG_MOUNT_TYPE="fstab"

So Hotplug shall mount and the mount type is fstab.
Do not forget to restart the hotplug system after changing something in the hotplug file.

Try then the script I posted in this thread. Does it work now ?

REMARK: It takes caouple of seconds until the card get's mounted. Check with
mount
from time to time if and where the card get's mounted (it may be that subfs creates
it's own mountpoint and mounts the device there)

If nothing helps try the brute-force approach:

Tke a look on /etc/dev.d/block/51-subfs.dev

In the last section of the script (independent whether the on eposted here or the original)
you will find a case branch block.
It looks like
.
.
.
case $ACTION in
add)
mesg "mount block device $DEVPATH"
.
.it may be that we have a little bit different set-up regarding hotplug and PCMCIA.

1) I do not use /etc/pcmcia/ide.opts or more precise i "commented-out" the
options in ide.opts. I am just using subfs for mounting PCMCIA cards.
Below the section regarding ide-cards from my /etc/pcmcia/ide.opts.
As you can see, all the entries related to mounting PCMCIA ide
devices are commented-out.
......
case "$ADDRESS" in
*,*,*,1)
#INFO="Sample IDE setup"
#DO_FSTAB="y" ; DO_FSCK="y" ; DO_MOUNT="y"
#FSTYPE="msdos"
#OPTS=""
#MOUNTPT="/mnt/ide"
;;
.......

As I can see in Larry's /var/log/messages output:
.....................
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: executing: './ide start hde 2>&1'
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + /sbin/fsck -Ta /dev/hde1
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + open /dev/hde1: No such file or directory
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + Aborting.dosfsck 2.10, 22 Sep 2003, FAT32, LFN
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount -v -t vfat /dev/hde1 /mnt/ide
Jan 31 20:43:36 HPLapLinux cardmgr[3382]: + mount: special device /dev/hde1 does not exist
.....................

So I think in his case the mount options in /etc/pcmcia/ide.opts are enabled.
I assume that /dev/ede1 is not present since SuSE 9.2 is using udev, that creates
the /dev entry for a particular device only when the deivice is really there and deletes
it afterwards.

So you may consider to disable the mount options in your /etc/pcmcia/ide.opts


2) Check your:
/etc/sysconfig/hotplug file and check the settings for
HOTPLUG_DO_MOUNT and HOTPLUG_MOUNT_TYPE
I have there:
for
HOTPLUG_DO_MOUNT="yes"
and for
HOTPLUG_MOUNT_TYPE="fstab"

So Hotplug shall mount and the mount type is fstab.
Do not forget to restart the hotplug system after changing something in the hotplug file.

Try then the script I posted in this thread. Does it work now ?

REMARK: It takes caouple of seconds until the card get's mounted. Check with
mount
from time to time if and where the card get's mounted (it may be that subfs creates
it's own mountpoint and mounts the device there)

If nothing helps try the brute-force approach:

Tke a look on /etc/dev.d/block/51-subfs.dev

In the last section of the script (independent whether the on eposted here or the original)
you will find a case branch block.
It looks like
.
.
.
case $ACTION in
add)
mesg "mount block device $DEVPATH"
.
.
.

Put it in the row just abowe case $ACTION
do_mount=yes

So it shall look now like:
.
.
.
do_mount=yes
case $ACTION in
add)
mesg "mount block device $DEVPATH"
.
.
.
.

Put it in the row just abowe case $ACTION
do_mount=yes

So it shall look now like:
.
.
.
do_mount=yes
case $ACTION in
add)
mesg "mount block device $DEVPATH"
.
.
.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipw2100 and compact flash card problem Michal Pecek Linux - Wireless Networking 0 07-25-2005 08:50 AM
Taking apart an inspiron 600m redjokerx General 6 12-31-2004 10:15 PM
Compact Flash PCMCIA Reader LinuxBlackBox Linux - Hardware 4 05-22-2004 12:01 PM
mounting PCMCIA (compact flash) IDE device superbondbond Linux - Laptop and Netbook 1 02-02-2004 05:07 PM
PCMCIA Compact Flash Boot kroberts740 Linux - Hardware 0 03-18-2003 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration