Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CF Card instead of HDD (can only use UDMA2)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
liutom
n00b
n00b


Joined: 30 Sep 2004
Posts: 51

PostPosted: Thu Jan 08, 2009 10:11 am    Post subject: CF Card instead of HDD (can only use UDMA2) Reply with quote

Hello,

I use a CF to IDE adaptor an use 2 32 GB CF-Cards

These Cards are capable to do UDMA 4(!)

When i boot the kernel say something about "no 80pin cabel connected so max UDMA Mode = 2"

I don´t have any cabel connected - the adapter is directly connected...

So is there a option to force the kerel to use UDMA 4 ???
:?:

Thanx alot!
Liu
Back to top
View user's profile Send private message
Dairinin
n00b
n00b


Joined: 03 Feb 2008
Posts: 64
Location: MSK, RF

PostPosted: Thu Jan 08, 2009 12:55 pm    Post subject: Reply with quote

from drivers/ide/ide.c
Code:
module_param_call(ignore_cable, ide_set_ignore_cable, NULL, NULL, 0);
MODULE_PARM_DESC(ignore_cable, "ignore cable detection");
Back to top
View user's profile Send private message
liutom
n00b
n00b


Joined: 30 Sep 2004
Posts: 51

PostPosted: Thu Jan 08, 2009 2:39 pm    Post subject: Reply with quote

hey thanx alot !!!

... but i don´t understand exactly - so is it right to:

1.) make menuconfig
edit like i want to...


2.) edit kerneldirectory... /drivers/ide/ide.c
insert your code (where in the file?)

3.) compile kernel
make && make install

BUT - i don´t have modules aktivated!!!
can i compile this direktly in the kernel???

THANK you for your answer!!!
Back to top
View user's profile Send private message
Dairinin
n00b
n00b


Joined: 03 Feb 2008
Posts: 64
Location: MSK, RF

PostPosted: Thu Jan 08, 2009 5:07 pm    Post subject: Reply with quote

From kernel docs for ide:
Quote:
To force ignoring cable detection (this should be needed only if you're using
short 40-wires cable which cannot be automatically detected - if this is not
a case please report it as a bug instead) use "ignore_cable" kernel parameter:

* "ide_core.ignore_cable=[interface_number]" boot option if IDE is built-in
(i.e. "ide_core.ignore_cable=1" to force ignoring cable for "ide1")


Open /boot/grub/grub.conf, find your kernel load string (smth. like "kernel /bzImage-2.6.27-gentoo-r7 root=/dev/sda6") and add "ide_core.ignore_cable=x" where x is port number of your adapter (shown in dmesg).

This does not aply to libata, only to classic ide.
Back to top
View user's profile Send private message
liutom
n00b
n00b


Joined: 30 Sep 2004
Posts: 51

PostPosted: Thu Jan 08, 2009 9:13 pm    Post subject: Reply with quote

!!! PERFECT !!!

:P

performance boosts from 18 MB/sec to 45 MB/sec !

Great, Thanx again !!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
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