Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdparm with SCSI emulation
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
Snakey
n00b
n00b


Joined: 19 Aug 2003
Posts: 10

PostPosted: Thu Aug 21, 2003 9:51 pm    Post subject: hdparm with SCSI emulation Reply with quote

Hi people!
I was just wondering, after I emulated SCSI for my IDE Burner (adding the hdc=ide-scsi on my grub.conf kernel line), is there still a way to use hdparm to enable DMA? Trying for /dev/cdrom says it's not supported and trying for /dev/hdc says unknown device.

Thank you!
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Fri Aug 22, 2003 1:08 am    Post subject: Reply with quote

scsi devices have other names. something with s. maybe sc0 i dont remember. and hdparm dosnt support scsi devices

greets, hulk
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Fri Aug 22, 2003 2:27 am    Post subject: Reply with quote

yep! Just echo to the /proc settings. I've put this on my /etc/conf.d/local.start

Code:

echo "unmaskirq:1">> /proc/ide/ide1/hdc/settings
echo "ide_scsi:1">> /proc/ide/ide1/hdc/settings
echo "current_speed:69">> /proc/ide/ide1/hdc/settings
echo "io_32bit:1">> /proc/ide/ide1/hdc/settings


Just change ide1/hdc for your CD location
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Snakey
n00b
n00b


Joined: 19 Aug 2003
Posts: 10

PostPosted: Fri Aug 22, 2003 7:42 pm    Post subject: Reply with quote

Hi pilla!
Thanks for the help,
I understood where to edit (the local.start file) but I didn't understand what you meant by changing ide1/hdc for my CDROM. Sorry I'm a linux newbie hehe.
During boot-up it says it detects hdc as my CDROM. My CD-ROM is located on /dev/cdroms/cdrom0
I do have a /proc/ide/ide1/hdc folder so I don't know if the code you pasted is already right for me or would I have to change something?
And after those 4 line, I put in what hdparm code? Would it be hdparm -d 1 /dev/hdc?
Thank you! :)
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Aug 22, 2003 8:45 pm    Post subject: Reply with quote

/dev/cdroms/cdrom0 is just a symlink. If you're using scsi emulation then it will point to the simulated scsi device though and not hdc or whatever. If your cdrom is the master on the secondary ide channel then it is hdc. Probably is what you have.
The commands pilla gave are all you need. You don't need to call hdparm at all for that drive and in fact hdparm won't work at all with scsi emulation.
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Sat Aug 23, 2003 8:49 am    Post subject: Reply with quote

Been wondering how to setup dma on scsi-emulated cd burner, just noticed that a while ago when I edited the hdparm settings that scsi is not supported.
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Sat Aug 23, 2003 2:35 pm    Post subject: Reply with quote

jaska wrote:
Been wondering how to setup dma on scsi-emulated cd burner, just noticed that a while ago when I edited the hdparm settings that scsi is not supported.


Just follow my tip. Scsi-emulation hides /dev/hdxx devices that hdparm can address, but the actual device settings can be accessed by the /proc interface.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Sat Aug 23, 2003 7:50 pm    Post subject: Reply with quote

pilla wrote:
yep! Just echo to the /proc settings. I've put this on my /etc/conf.d/local.start

Code:

echo "unmaskirq:1">> /proc/ide/ide1/hdc/settings
echo "ide_scsi:1">> /proc/ide/ide1/hdc/settings
echo "current_speed:69">> /proc/ide/ide1/hdc/settings
echo "io_32bit:1">> /proc/ide/ide1/hdc/settings


Just change ide1/hdc for your CD location


What is "ide-scsi" used for? I have a dvd on /dev/hdc and CDRW on /dev/hdd. However both media do not have this option.
Also, although I used the above setting for the speed, the speed that I final have is slower. Am I doing something wrong?

Thanks
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