Linux IDE driver for CF card

View: New views
8 Messages — Rating Filter:   Alert me  

Linux IDE driver for CF card

by Thorsten M. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I've set up a a Linux system with strpped down kernel on my net4501
board. Now my problem is, that the CF card is really slow. hdparm shows
~2 MB/s transfer speed and UDMA is disabled.
My Question is: Which kernel driver (2.6.26.5) do I have to use to get
UDMA working?

Greetings
Thorsten
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Steve Clark :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thorsten M. wrote:

> Hi
>
> I've set up a a Linux system with strpped down kernel on my net4501
> board. Now my problem is, that the CF card is really slow. hdparm shows
> ~2 MB/s transfer speed and UDMA is disabled.
> My Question is: Which kernel driver (2.6.26.5) do I have to use to get
> UDMA working?
>
> Greetings
> Thorsten
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech@...
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>
Hi Thorsten,

I am running Centos 5.2 compiled for 586 on a net5501.[root@centos ~]# uname -a
Linux centos.seclark.com 2.6.18-92.1.10.el5.soekris #1 SMP Fri Sep 12 14:33:06 EDT 2008 i586 i586 i386 GNU/Linux
[root@centos ~]# hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   756 MB in  2.00 seconds = 377.90 MB/sec
 Timing buffered disk reads:   76 MB in  3.07 seconds =  24.75 MB/sec

I am using a 4gb Transcend CF 266x TS4GCF266 about $40USD at newegg.com.

Steve


_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Emilio Perea :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 01, 2008 at 08:35:57PM +0200, Thorsten M. wrote:
> I've set up a a Linux system with strpped down kernel on my net4501
> board. Now my problem is, that the CF card is really slow. hdparm shows
> ~2 MB/s transfer speed and UDMA is disabled.
> My Question is: Which kernel driver (2.6.26.5) do I have to use to get
> UDMA working?

Before you spend too much time on this, it might be worth asking whether
your board supports UDMA in the CF socket.  My 4801 does not, having
been built the month before DMA support was added on 040226, so if yours
was not built more recently it may be impossible to make it work.

If it's brand-new, sorry about the noise...
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Thorsten M. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
It's a brand new board, so UDMA should work.
The CF card has started working after activating "generic/default IDE
chipset support (IDE_GENERIC)" support in the kernel. I guess this
driver doesn't support UDMA, but the "National SCx200 chipset support"
or "AMD CS5535 chipset support" drivers didn't work.


On Wed, 1 Oct 2008 16:05:25 -0500
Emilio Perea <eperea@...> wrote:

> If it's brand-new, sorry about the noise...
>
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Thorsten M. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I'm using 2 GB industrial grade CF card but I think the problem is the lack of UDMA
support. Perhaps you could post the output of "lsmod"?

Greetings
Thorsten

On Wed, 01 Oct 2008 15:30:45 -0400
Steve Clark <sclark@...> wrote:

> Hi Thorsten,
>
> I am running Centos 5.2 compiled for 586 on a net5501.[root@centos ~]# uname -a
> Linux centos.seclark.com 2.6.18-92.1.10.el5.soekris #1 SMP Fri Sep 12 14:33:06 EDT 2008 i586 i586 i386 GNU/Linux
> [root@centos ~]# hdparm -tT /dev/hda
>
> /dev/hda:
>  Timing cached reads:   756 MB in  2.00 seconds = 377.90 MB/sec
>  Timing buffered disk reads:   76 MB in  3.07 seconds =  24.75 MB/sec
>
> I am using a 4gb Transcend CF 266x TS4GCF266 about $40USD at newegg.com.
>
> Steve
>
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Stuart Henderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2008-10-01, Thorsten M. <thenktor@...> wrote:
> I've set up a a Linux system with strpped down kernel on my net4501

You do mean _4501_ not 5501?

> board. Now my problem is, that the CF card is really slow. hdparm shows
> ~2 MB/s transfer speed and UDMA is disabled.

I don't think 4501 has UDMA.


_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Jan Ceuleers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thorsten,

Thorsten M. wrote:
> I've set up a a Linux system with strpped down kernel on my net4501
> board. Now my problem is, that the CF card is really slow. hdparm shows
> ~2 MB/s transfer speed and UDMA is disabled.
> My Question is: Which kernel driver (2.6.26.5) do I have to use to get
> UDMA working?

In addition to the advice others have given, one thing that I have found
necessary getting the 4801 IDE interface to work properly is that I've
had to exclude the generic IDE driver from the initrd image such that it
would not prevent the correct driver from being loaded.

HTH, Jan

_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: Linux IDE driver for CF card

by Thorsten M. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know if UDMA is possible with the 4501 but I thought so.
Perhaps someone could clarify this pr post the output of hdparm -t and
hdparm -i.

On Thu, 2 Oct 2008 10:18:51 +0000 (UTC)
Stuart Henderson <stu@...> wrote:

> I don't think 4501 has UDMA.
>
>
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech
LightInTheBox - Buy quality products at wholesale price!