Skip to contentSkip to conversation

CF Card Adapter White List Candidate

DISCUSSION Tom Denchfield 3 participants 4 messages Jan 6, 2011 – Jan 8, 2011 libata

lore
Share & tools
lore
#0 lore raw

Hello,

Robert, it looks like I may have found an answer to my UDMA speed question (see below) that I asked earlier today.  URL03 below has a picture (top-right) of an Addonics Dual CF-IDE HDD Adapter that looks to me like it can be connected to a motherboard IDE socket via a 80-wire IDE cable.  (This adapter's IDE socket is not shown in the picture. On second thought, maybe this device does not have a 40-pin IDE socket since the article is about laptop computers.)  The article says to use a (now) outdated patch, even with, I would guess, an 80-conductor IDE cable, to 'force 80c.'  With the outdated patch, URL03 has a dmesg excerpt in a table that shows a UDMA/100 CF card being configured by Linux as a UDMA/100 device.

Title: Compact Flash boot drive
URL03: http://www.thinkwiki.org/wiki/Compact_Flash_boot_drive

With my plug-in IDE adapter (pictured in URL01 below) that is plugged directly into a desktop computer's motherboard IDE socket, my UDMA/66 CF Card is configured by the Linux version 2.6.35-22-generic kernel that is used by the Ubuntu v10.10 LiveCD that I use, as a UDMA/33 device.  However, if I add libata.force=80c as a boot parameter, as recommended by Tejun, Linux configures my CF card as a UDMA/66 device.

(In the first email that I sent to [email protected], I attached a dmesg demonstrating that the added boot parameter produced the UDMA/66 configuration.  I attached two text files that I think totaled about 65KB, and maybe [email protected] strips files of this size from emails.  I also do not expect anyone to remember that far back when answering my questions.)

I do not know whether the following dmesg is the one that I originally sent, but it is typical of what happens with the liabat.forec=80c parameter:

[    0.000000] Kernel command line: file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz radeon.modeset=0 libata.force=80c toram -- .
[    5.088368] ata3: FORCE: cable set to 80c
[    5.088452] ata3.00: CFA: TS8GCF133, 20100804, max UDMA/66
[    5.088509] ata3.00: 15662304 sectors, multi 0: LBA
[    5.104301] ata3.00: configured for UDMA/66
.
[    5.564449] scsi 2:0:0:0: Direct-Access     ATA      TS8GCF133        2010 PQ: 0 ANSI: 5
[    5.564819] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    5.565631] sd 2:0:0:0: [sdb] 15662304 512-byte logical blocks: (8.01 GB/7.46 GiB)

The reason that I mentioned powering my CF adapter with a floppy drive power plug is that the first time I booted after inserting the adapter, I forgot to plug the floppy drive power plug into the adapter.  The adapter's power on LED did not light, and I think that Ubuntu did not see the CF card.

The reason that I mentioned the pin that was intentionally left out of the motherboard IDE socket was that I thought that the missing pin might have had something to do with needing to power the adapter with the floppy drive power plug given my experience with forgetting to plug the floppy power plug into the adapter as mentioned in the previous paragraph.

The pin that is missing from the motherboard IDE socket is very close to the middle of the IDE socket.  My guess is that the pin is in the in the range #18 to #24.  It is far away from pin #34.  I am going by memory here, but I clearly remember that the missing pin is in the middle.  Pin #34 is going into the CF card adapter when I insert it.  I do not know whether pin #34 is grounded at the mainboard.

When I asked my question, before I noticed and paid any real attention to the UDMA/100 CF card configured as UDMA/100 in URL03 above, I was concerned that there might be a UDMA/66 speed limit with the type of CF card adapter that I have. We may never know for sure until someone who has a CF card that is faster than UDMA/66 tries it in the URL01 adapter with Linux and the libata.force=80c boot parameter.

Robert, thank you for helping me. I hope that my additional comments and the information above will contribute to further Linux kernel development.

Tom

Quoted 187 lines · Robert Hancock

From: Robert Hancock <[email protected]>
Subject: Re: CF Card Adapter White List Candidate
To: "Tom Denchfield" <[email protected]>
Cc: "Tejun Heo" <[email protected]>, [email protected]
Date: Wednesday, January 5, 2011, 5:47 PM

Quoted 3 lines · Tom Denchfield

Hello,

Tejun, this CF card adapter plugs directly into an IDE

socket (Channel 0, in my case) on a desktop computer motherboard.  You can see a picture of the adapter in the following URL01:

Quoted 4 lines

URL01: http://preview.tinyurl.com/233u92u

I have to power the adapter with a floppy drive power

plug because my motherboard's IDE sockets were intentionally manufactured without the pin that could have supplied power through an IDE cable.

Quoted 2 lines

Does anyone have a top of the head opinion as to

whether there are inherent usage limitations in either this passive CF card adapter and/or in the Linux kernel used with Ubuntu v10.10 that would prevent users with CF cards faster than UDMA/66 (see URL02 below) from being configured by Linux to work at speeds above UDMA/66?  The reason that I ask this question is that I bought both my UDMA/66 CF card and the adapter from the URL01 seller.  It is foreseeable that a lot of customers might have purchased faster CF cards envisioning that they would work at speeds higher than UDMA/66 with the adapter.  The 'Technical Details' section of URL01 does not state anything about UDMA speed usage limitations.

Quoted 4 lines

URL02: http://www.hjreggel.net/cardspeed/index.html

I think that there are CF card adapters on eBay that

are similar to the one pictured in URL01 above, and there are also IDE adapters that will hold two CF cards.

The reason the speed is being limited to 33 is that the cable
detection code is detecting that an 80-wire cable doesn't appear to be
connected. In order for an 80-wire cable to be detected, pin 34 on the
cable is supposed to be grounded at the motherboard end. In the case
of this adapter, since it plugs directly into the motherboard, it
would have to be grounding pin 34 to get an 80-wire detection, but
presumably it's not.

Quoted 4 lines

Tom

--- On Wed, 1/5/11, Tejun Heo <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines

From: Tejun Heo <[email protected]>
Subject: Re: CF Card Adapter White List Candidate
To: "Robert Hancock" <[email protected]>
Cc: "Tom Denchfield" <[email protected]>,

[email protected]

Quoted 4 lines
Quoted 4 lines

Date: Wednesday, January 5, 2011, 5:51 AM Hello,

On Tue, Jan 04, 2011 at 10:19:17PM -0600, Robert

Hancock

Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:

On 01/04/2011 04:18 PM, Tom Denchfield

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

As you further recommended, in an attempt

to get

Quoted 2 lines
Quoted 2 lines

the SD-CF-IDE-DI

Quoted 1 line
Quoted 1 line

IDE to CF Adapter that holds my CF card

white

Quoted 4 lines
Quoted 4 lines

listed, I am

Quoted 2 lines
Quoted 2 lines

submitting the attached

libata_force_80c_CF_card_adapter_whitelist_candidate_information.txt

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

file that has the output from executing

four

Quoted 2 lines
Quoted 2 lines

terminal commands to

Quoted 1 line
Quoted 1 line

hopefully supply enough information to

get it

Quoted 5 lines
Quoted 5 lines

whitelisted.

Thanks.

Quoted 1 line
Quoted 1 line

Although I expect that my RV280 Radeon

9200 Pro

Quoted 2 lines
Quoted 2 lines

video card is too

Quoted 1 line
Quoted 1 line

old to expend much effort on, it would be

nice to

Quoted 2 lines
Quoted 2 lines

also get it

Quoted 1 line
Quoted 1 line

whitelisted so that future newbie Linux

users who

Quoted 2 lines
Quoted 2 lines

do not know about

Quoted 1 line
Quoted 1 line

using the radeon.modeset=0 parameter on

the kernel

Quoted 2 lines
Quoted 2 lines

command line

Quoted 1 line
Quoted 1 line

will not be looking at a black screen

with a

Quoted 2 lines
Quoted 2 lines

blinking cursor when

Quoted 1 line
Quoted 1 line

they attempt to use a LiveCD for

troubleshooting,

Quoted 3 lines
Quoted 3 lines

or whatever.

Quoted 2 lines
Quoted 2 lines

I purposely did not include the URL of

one of the

Quoted 2 lines
Quoted 2 lines

Internet sites

Quoted 1 line
Quoted 1 line

that sells the adapter in this email in

case this

Quoted 3 lines
Quoted 3 lines

is a no no.

I don't think that's a no no unless the intention

is

Quoted 3 lines
Quoted 3 lines

commercial.

Quoted 1 line
Quoted 1 line

Tejun, I am not sure that I will have

either the

Quoted 2 lines
Quoted 2 lines

time or the

Quoted 1 line
Quoted 1 line

interest to learn the intricacies of

editing

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

http://www.thinkwiki.org/wiki/Compact_Flash_boot_drive

to add

Quoted 1 line
Quoted 1 line

libata.force=80c to this site in lieu of

force_cbl=80: so that

Quoted 1 line
Quoted 1 line

fewer people will be asking you

questions.  I

Quoted 2 lines
Quoted 2 lines

have a ThinkPad

Quoted 1 line
Quoted 1 line

without a HDD plus a laptop adapter that

will hold

Quoted 2 lines
Quoted 2 lines

my CF card, but

Quoted 1 line
Quoted 1 line

my Think Pad is a lot older than the

ones

Quoted 2 lines
Quoted 2 lines

discussed on

Quoted 1 line
Quoted 1 line

Compact_Flash_boot_drive.  In addition,

I did

Quoted 2 lines
Quoted 2 lines

not see any recent

Quoted 1 line
Quoted 1 line

updates to this Internet page, but maybe

I can

Quoted 6 lines
Quoted 6 lines

find someone to

Quoted 1 line
Quoted 1 line

email who will update this page.

Yeah, just ping someone.

Quoted 1 line

Is there actually any way to identify the

adapter

Quoted 2 lines
Quoted 2 lines

automatically?

Quoted 1 line

AFAIK, these CF-IDE adapters are just

passive

Quoted 4 lines
Quoted 4 lines

circuitry and there's

Quoted 1 line

no way to identify them through software.

Hmmm... I was thinking this was somehing

integrated to the

Quoted 2 lines
Quoted 2 lines

machine (so
the dmidecode), in which case we can combine dmi +

pci

Quoted 2 lines
Quoted 2 lines

function # +
port # to whitelist the device, which we already

do for

Quoted 2 lines
Quoted 2 lines

some type of
quirks.  If it's a plug in device, we obviously

can't

Quoted 2 lines
Quoted 2 lines

identify it.
Tom, is the CF slot integrated to the machine or

is it

Quoted 12 lines
Quoted 8 lines

something you
put into the PCMCIA slot?

Thanks.

--
tejun

#1 lore raw
Quoted 5 lines · Tom Denchfield

The reason that I mentioned powering my CF adapter with a floppy drive power plug is that the first time I booted after inserting the adapter, I forgot to plug the floppy drive power plug into the adapter.  The adapter's power on LED did not light, and I think that Ubuntu did not see the CF card.

The reason that I mentioned the pin that was intentionally left out of the motherboard IDE socket was that I thought that the missing pin might have had something to do with needing to power the adapter with the floppy drive power plug given my experience with forgetting to plug the floppy power plug into the adapter as mentioned in the previous paragraph.

The pin that is missing from the motherboard IDE socket is very close to the middle of the IDE socket.  My guess is that the pin is in the in the range #18 to #24.  It is far away from pin #34.  I am going by memory here, but I clearly remember that the missing pin is in the middle.  Pin #34 is going into the CF card adapter when I insert it.  I do not know whether pin #34 is grounded at the mainboard.

If it's pin 20, that's a key pin that's always missing and which has the corresponding hole filled in on the cable side (from compliant connectors, anyway), to prevent plugging in the cable the wrong way around.

Not sure where the adapter would be potentially drawing power from on the IDE connector - as far as I know there aren't any pins on a standard IDE connector which provide continuous power. The adapters I've seen all use an extra power connector.

Quoted 207 lines

When I asked my question, before I noticed and paid any real attention to the UDMA/100 CF card configured as UDMA/100 in URL03 above, I was concerned that there might be a UDMA/66 speed limit with the type of CF card adapter that I have.  We may never know for sure until someone who has a CF card that is faster than UDMA/66 tries it in the URL01 adapter with Linux and the libata.force=80c boot parameter.

Robert, thank you for helping me.  I hope that my additional comments and the information above will contribute to further Linux kernel development.

Tom

Quoted 187 lines · Robert Hancock

From: Robert Hancock <[email protected]>
Subject: Re: CF Card Adapter White List Candidate
To: "Tom Denchfield" <[email protected]>
Cc: "Tejun Heo" <[email protected]>, [email protected]
Date: Wednesday, January 5, 2011, 5:47 PM

Quoted 3 lines · Tom Denchfield

Hello,

Tejun, this CF card adapter plugs directly into an IDE

socket (Channel 0, in my case) on a desktop computer motherboard.  You can see a picture of the adapter in the following URL01:

Quoted 4 lines

URL01: http://preview.tinyurl.com/233u92u

I have to power the adapter with a floppy drive power

plug because my motherboard's IDE sockets were intentionally manufactured without the pin that could have supplied power through an IDE cable.

Quoted 2 lines

Does anyone have a top of the head opinion as to

whether there are inherent usage limitations in either this passive CF card adapter and/or in the Linux kernel used with Ubuntu v10.10 that would prevent users with CF cards faster than UDMA/66 (see URL02 below) from being configured by Linux to work at speeds above UDMA/66?  The reason that I ask this question is that I bought both my UDMA/66 CF card and the adapter from the URL01 seller.  It is foreseeable that a lot of customers might have purchased faster CF cards envisioning that they would work at speeds higher than UDMA/66 with the adapter.  The 'Technical Details' section of URL01 does not state anything about UDMA speed usage limitations.

Quoted 4 lines

URL02: http://www.hjreggel.net/cardspeed/index.html

I think that there are CF card adapters on eBay that

are similar to the one pictured in URL01 above, and there are also IDE adapters that will hold two CF cards.

The reason the speed is being limited to 33 is that the cable
detection code is detecting that an 80-wire cable doesn't appear to be
connected. In order for an 80-wire cable to be detected, pin 34 on the
cable is supposed to be grounded at the motherboard end. In the case
of this adapter, since it plugs directly into the motherboard, it
would have to be grounding pin 34 to get an 80-wire detection, but
presumably it's not.

Quoted 4 lines

Tom

--- On Wed, 1/5/11, Tejun Heo <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines

From: Tejun Heo <[email protected]>
Subject: Re: CF Card Adapter White List Candidate
To: "Robert Hancock" <[email protected]>
Cc: "Tom Denchfield" <[email protected]>,

[email protected]

Quoted 4 lines
Quoted 4 lines

Date: Wednesday, January 5, 2011, 5:51 AM Hello,

On Tue, Jan 04, 2011 at 10:19:17PM -0600, Robert

Hancock

Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:

On 01/04/2011 04:18 PM, Tom Denchfield

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

As you further recommended, in an attempt

to get

Quoted 2 lines
Quoted 2 lines

the SD-CF-IDE-DI

Quoted 1 line
Quoted 1 line

IDE to CF Adapter that holds my CF card

white

Quoted 4 lines
Quoted 4 lines

listed, I am

Quoted 2 lines
Quoted 2 lines

submitting the attached

libata_force_80c_CF_card_adapter_whitelist_candidate_information.txt

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

file that has the output from executing

four

Quoted 2 lines
Quoted 2 lines

terminal commands to

Quoted 1 line
Quoted 1 line

hopefully supply enough information to

get it

Quoted 5 lines
Quoted 5 lines

whitelisted.

Thanks.

Quoted 1 line
Quoted 1 line

Although I expect that my RV280 Radeon

9200 Pro

Quoted 2 lines
Quoted 2 lines

video card is too

Quoted 1 line
Quoted 1 line

old to expend much effort on, it would be

nice to

Quoted 2 lines
Quoted 2 lines

also get it

Quoted 1 line
Quoted 1 line

whitelisted so that future newbie Linux

users who

Quoted 2 lines
Quoted 2 lines

do not know about

Quoted 1 line
Quoted 1 line

using the radeon.modeset=0 parameter on

the kernel

Quoted 2 lines
Quoted 2 lines

command line

Quoted 1 line
Quoted 1 line

will not be looking at a black screen

with a

Quoted 2 lines
Quoted 2 lines

blinking cursor when

Quoted 1 line
Quoted 1 line

they attempt to use a LiveCD for

troubleshooting,

Quoted 3 lines
Quoted 3 lines

or whatever.

Quoted 2 lines
Quoted 2 lines

I purposely did not include the URL of

one of the

Quoted 2 lines
Quoted 2 lines

Internet sites

Quoted 1 line
Quoted 1 line

that sells the adapter in this email in

case this

Quoted 3 lines
Quoted 3 lines

is a no no.

I don't think that's a no no unless the intention

is

Quoted 3 lines
Quoted 3 lines

commercial.

Quoted 1 line
Quoted 1 line

Tejun, I am not sure that I will have

either the

Quoted 2 lines
Quoted 2 lines

time or the

Quoted 1 line
Quoted 1 line

interest to learn the intricacies of

editing

Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

http://www.thinkwiki.org/wiki/Compact_Flash_boot_drive

to add

Quoted 1 line
Quoted 1 line

libata.force=80c to this site in lieu of

force_cbl=80: so that

Quoted 1 line
Quoted 1 line

fewer people will be asking you

questions.  I

Quoted 2 lines
Quoted 2 lines

have a ThinkPad

Quoted 1 line
Quoted 1 line

without a HDD plus a laptop adapter that

will hold

Quoted 2 lines
Quoted 2 lines

my CF card, but

Quoted 1 line
Quoted 1 line

my Think Pad is a lot older than the

ones

Quoted 2 lines
Quoted 2 lines

discussed on

Quoted 1 line
Quoted 1 line

Compact_Flash_boot_drive.  In addition,

I did

Quoted 2 lines
Quoted 2 lines

not see any recent

Quoted 1 line
Quoted 1 line

updates to this Internet page, but maybe

I can

Quoted 6 lines
Quoted 6 lines

find someone to

Quoted 1 line
Quoted 1 line

email who will update this page.

Yeah, just ping someone.

Quoted 1 line

Is there actually any way to identify the

adapter

Quoted 2 lines
Quoted 2 lines

automatically?

Quoted 1 line

AFAIK, these CF-IDE adapters are just

passive

Quoted 4 lines
Quoted 4 lines

circuitry and there's

Quoted 1 line

no way to identify them through software.

Hmmm... I was thinking this was somehing

integrated to the

Quoted 2 lines
Quoted 2 lines

machine (so
the dmidecode), in which case we can combine dmi +

pci

Quoted 2 lines
Quoted 2 lines

function # +
port # to whitelist the device, which we already

do for

Quoted 2 lines
Quoted 2 lines

some type of
quirks.  If it's a plug in device, we obviously

can't

Quoted 2 lines
Quoted 2 lines

identify it.
Tom, is the CF slot integrated to the machine or

is it

Quoted 12 lines
Quoted 8 lines

something you
put into the PCMCIA slot?

Thanks.

--
tejun

#2 lore raw
Quoted 12 lines · Robert Hancock
Quoted 5 lines · Tom Denchfield

The reason that I mentioned powering my CF adapter with a floppy drive power plug is that the first time I booted after inserting the adapter, I forgot to plug the floppy drive power plug into the adapter. The adapter's power on LED did not light, and I think that Ubuntu did not see the CF card.

The reason that I mentioned the pin that was intentionally left out of the motherboard IDE socket was that I thought that the missing pin might have had something to do with needing to power the adapter with the floppy drive power plug given my experience with forgetting to plug the floppy power plug into the adapter as mentioned in the previous paragraph.

The pin that is missing from the motherboard IDE socket is very close to the middle of the IDE socket. My guess is that the pin is in the in the range #18 to #24. It is far away from pin #34. I am going by memory here, but I clearly remember that the missing pin is in the middle. Pin #34 is going into the CF card adapter when I insert it. I do not know whether pin #34 is grounded at the mainboard.

If it's pin 20, that's a key pin that's always missing and which has the corresponding hole filled in on the cable side (from compliant connectors, anyway), to prevent plugging in the cable the wrong way around.

Quoted 4 lines

Not sure where the adapter would be potentially drawing power from on the IDE connector - as far as I know there aren't any pins on a standard IDE connector which provide continuous power. The adapters I've seen all use an extra power connector.

The 20th pin is actually used on some VIA EPIA (mini-itx) motherboards, exactly for this purpose: to provide power for CF cards like this. Some IDE to CF adaptors can be set up (with a jumper) to ger power to the card from there.

/mjt

#3 lore raw

Hello,

Michael, this is one of the CF card adapters that has a jumper, JP1, that has the Pin-20 power source option as you suggest below. The factory default position is external power (floppy disk power plug), and the alternative position is: "IDE Pin-20." The the settings for the three jumpers are on the jumper's printed circuit board under the CF Card. Sorry I didn't look at the one-sheet instruction sheet that I cannot find right now, but Michael's email reminded me to look under the CF Card.

Tom

Quoted 59 lines · Michael Tokarev

From: Michael Tokarev <[email protected]>
Subject: Re: CF Card Adapter White List Candidate
To: "Robert Hancock" <[email protected]>
Cc: "Tom Denchfield" <[email protected]>, "Tejun Heo" <[email protected]>, [email protected]
Date: Saturday, January 8, 2011, 4:48 AM
07.01.2011 07:22, Robert Hancock

Quoted 1 line · wrote:

On Wed, Jan 5, 2011 at 11:33 PM, Tom Denchfield <[email protected]>

Quoted 1 line · wrote:
Quoted 1 line

The reason that I mentioned powering my CF adapter

with a floppy drive power plug is that the first time I booted after inserting the adapter, I forgot to plug the floppy drive power plug into the adapter.  The adapter's power on LED did not light, and I think that Ubuntu did not see the CF card.

Quoted 2 lines
Quoted 2 lines

The reason that I mentioned the pin that was

intentionally left out of the motherboard IDE socket was that I thought that the missing pin might have had something to do with needing to power the adapter with the floppy drive power plug given my experience with forgetting to plug the floppy power plug into the adapter as mentioned in the previous paragraph.

Quoted 2 lines
Quoted 2 lines

The pin that is missing from the motherboard IDE

socket is very close to the middle of the IDE socket. My guess is that the pin is in the in the range #18 to #24.  It is far away from pin #34.  I am going by memory here, but I clearly remember that the missing pin is in the middle.  Pin #34 is going into the CF card adapter when I insert it.  I do not know whether pin #34 is grounded at the mainboard.

Quoted 2 lines

If it's pin 20, that's a key pin that's always missing

and which has

Quoted 1 line

the corresponding hole filled in on the cable side

(from compliant

Quoted 1 line

connectors, anyway), to prevent plugging in the cable

the wrong way

Quoted 3 lines

around.

Not sure where the adapter would be potentially

drawing power from on

Quoted 1 line

the IDE connector - as far as I know there aren't any

pins on a

Quoted 1 line

standard IDE connector which provide continuous power.

The adapters

Quoted 1 line

I've seen all use an extra power connector.

The 20th pin is actually used on some VIA EPIA (mini-itx) motherboards,
exactly for this purpose: to provide power for CF cards like this.
Some IDE to CF adaptors can be set up (with a jumper) to ger power
to the card from there.

/mjt