Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » Debian/Angstorm On Zaurus

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
想配cf卡,更想用dma模式访问高速cf卡
View previous topic :: View next topic  
Author Message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-May-03 Sat, am1:03 Reply with quote
 Post subject: 想配cf卡,更想用dma模式访问高速cf卡

不知道是否有人试过,能否给点建议啊
Back to top
View user's profile Send private message
Enigma



Joined: 09 Apr 2007
Posts: 60

小企鹅: 1733

PostPosted: 2008-May-04 Sun, pm9:18 Reply with quote
 Post subject:

http://www.oesf.org/forum/index.php?act=findpost&pid=165221
请参考.

_________________
SL-C1000, 1G CF, 2G SD,1G SD,4G SD
SL-C3100, Symbol CF WIFI.4G SD挂载/home
PC:Freebsd 7.0,Ubuntu Linux 8.10
Debian+Octave绝配.
Back to top
View user's profile Send private message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-May-06 Tue, pm11:02 Reply with quote
 Post subject:

oesf上这篇我已经看过了,没有明确结论,从其中一个CPLD/ATA控制器spec上看支持Multi word DMA 0,1,2,但同样是这篇spec里面提到这颗控制器的速度只有7Mbps,也就是1MB/s都没有,这显然不对,所以可能这个控制器并不是真实用在zaurus C1000里面的
另外,目前133x,266x,300x的cf(符合4.0标准)已经支持了DMA模式,在IDE模式的cf接口上应该可以开启dma模式,这样可以减少cpu在访问存储时的占用率,oesf这篇谈到了可能有相应的DMA硬件连线没有连通,但pcmcia/cf的硬件连线是标准/可配置的,其中DREQ/DACK/TC三个关键连线必然是连通的,因为这三根线同时也是cf接口的io卡需要用到的硬件连线,所以oesf上这位Australia的老兄讲的cf连接器上没有dma硬件连线的说法是不对的,只能说zaurus没有给cf接口做dma资源设计,这有点不太可能,当然这只是我的直觉,因为没有dma的奔四大概使用起来就像奔腾166,大量的io操作会跑死x86,更不要说arm,不过我没有更多的设计经验来证明.
还有一种可能是zaurus中设计的pcmcia的控制器(HBA)是否支持dma,这一点确实没有资料可查,单纯从pxa270的数据手册中可以看到dma是明显支持的
目前cf卡支持是由ide-cs模块提供,我搜索了有关这个模块的信息,但还不明确是否能够支持dma
网上有没有zaurus的硬件原理图呢,哪位大侠指点一下

_________________
c1000, 2G TOSHIBA SDHC class 4, 256M PQI CF(慢卡), XI-825 11M Wireless CF
Back to top
View user's profile Send private message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-May-06 Tue, pm11:29 Reply with quote
 Post subject:

其实买一块266x的cf回来试试应该是不错的办法,不过舍不得银子,手上一块256M慢卡和IBM microdrive 1G都试过了,不过本来就不支持dma的卡,试了也没有意义,矛盾要不要买266x;有没有人可以上一个133x/266x的cf的hdparm -Tt /dev/hda的结果可以借鉴一下呢?
另外,开启DMA的方法是 hdparm -d 1 /de/hda,如果不能打开,系统会回复拒绝操作,不会损伤机器和cf卡的

_________________
c1000, 2G TOSHIBA SDHC class 4, 256M PQI CF(慢卡), XI-825 11M Wireless CF
Back to top
View user's profile Send private message
Enigma



Joined: 09 Apr 2007
Posts: 60

小企鹅: 1733

PostPosted: 2008-May-07 Wed, pm6:20 Reply with quote
 Post subject:

新的测试
创见2g/133x高速卡
不可以打开dma模式

_________________
SL-C1000, 1G CF, 2G SD,1G SD,4G SD
SL-C3100, Symbol CF WIFI.4G SD挂载/home
PC:Freebsd 7.0,Ubuntu Linux 8.10
Debian+Octave绝配.
Back to top
View user's profile Send private message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-May-07 Wed, pm10:19 Reply with quote
 Post subject:

多谢Enigma,不过多问一下,是yonggun核心吗? 2g/133x的读取速度是多少呢?

Enigma wrote:
新的测试
创见2g/133x高速卡
不可以打开dma模式

_________________
c1000, 2G TOSHIBA SDHC class 4, 256M PQI CF(慢卡), XI-825 11M Wireless CF
Back to top
View user's profile Send private message
Enigma



Joined: 09 Apr 2007
Posts: 60

小企鹅: 1733

PostPosted: 2008-May-07 Wed, pm11:27 Reply with quote
 Post subject:

是yonggun核心,debian,系统装在SD上,
133x 2G CF测速是2.45M/S.
比普速1G的2.4M/S提升很小.
改天找266x的和300x的来试试.

_________________
SL-C1000, 1G CF, 2G SD,1G SD,4G SD
SL-C3100, Symbol CF WIFI.4G SD挂载/home
PC:Freebsd 7.0,Ubuntu Linux 8.10
Debian+Octave绝配.
Back to top
View user's profile Send private message
zd



Joined: 30 Apr 2008
Posts: 14

小企鹅: 473

PostPosted: 2008-May-08 Thu, pm10:55 Reply with quote
 Post subject:

多谢Enigma的数据,看来cf卡也并没有比sd快多少;这两天我看了一下pcmcia的协议,其中pcmcia支持的ATA界面并不支持dma方式;相反,如果有linux下完全利用pxa270 sd接口的驱动,从硬件上讲sd能够获得的理论速度要比目前pcmcia上接的cf卡高很多;不过由于sd本身的权利金和专利保护并不与GPL精神一致,这样的driver好像不能在阳光下发展.

接下来要仔细看看cf spec 4.1版本,cf卡只有在true ide UDMA mode下才能达到真正的高速效果(速度快,同时不累死CPU),现在感觉可能需要真正的ide控制器才能打开高速cf的dma mode,zaurus上基本没希望开dma mode了,现在插卡的驱动都是ide-cs,也就是走pcmcia接口

Enigma wrote:
是yonggun核心,debian,系统装在SD上,
133x 2G CF测速是2.45M/S.
比普速1G的2.4M/S提升很小.
改天找266x的和300x的来试试.

_________________
c1000, 2G TOSHIBA SDHC class 4, 256M PQI CF(慢卡), XI-825 11M Wireless CF
Back to top
View user's profile Send private message
Enigma



Joined: 09 Apr 2007
Posts: 60

小企鹅: 1733

PostPosted: 2008-May-10 Sat, am1:07 Reply with quote
 Post subject:

我很奇怪的是133x的高速卡读写速度也并没有快多少
虽然容量大了读写速度会下降.
据反馈,zaurus用高速CF是有效果的.改日去找scandisk的来试

_________________
SL-C1000, 1G CF, 2G SD,1G SD,4G SD
SL-C3100, Symbol CF WIFI.4G SD挂载/home
PC:Freebsd 7.0,Ubuntu Linux 8.10
Debian+Octave绝配.
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » Debian/Angstorm On Zaurus All times are GMT + 8 Hours
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
You cannot attach files in this forum
You cannot download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional