OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 Hardware => Topic started by: John Galt on September 09, 2006, 05:56:36 pm

Title: Cd Players And C3000
Post by: John Galt on September 09, 2006, 05:56:36 pm
Is it possible to play CDs by connecting a  CD player to the SL C3000? 」 have seen in Meanie's Zbook that you one can connect a DVD/CD through USB, but when I tried to mount the devise I got the following error message:

"mount: Mounting /dev/scd0 on /mnt/cdrom failed: Invalid argument ".

Thanks
Title: Cd Players And C3000
Post by: InSearchOf on September 09, 2006, 07:11:19 pm
what was the full mount command you used?

Late
Title: Cd Players And C3000
Post by: John Galt on September 09, 2006, 08:10:53 pm
Quote
what was the full mount command you used?

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141039\"][{POST_SNAPBACK}][/a][/div]

This is what I used:

su
mkdir -p /mnt/cdrom
mount -o ro /dev/scd0 /mnt/cdrom
Title: Cd Players And C3000
Post by: Da_Blitz on September 10, 2006, 03:22:10 am
you dont need the -o ro, its implied automatically

it looks like the device node is there and the usb driver has attached to it but i would check it, first do a ls -l /dev/scd0 then check your dmesg logs when you attach/detach the device (try with the cd in)

if you have mplayer try mplayer cdda://1 or mplayer cddb://1 and see if any sound comes out, note that the cdrom drive dosent have to be mounted for it to play music or DVDs as it reads from the raw device (and enforces 1x mode so its quite)
Title: Cd Players And C3000
Post by: John Galt on September 10, 2006, 02:26:13 pm
Quote
you dont need the -o ro, its implied automatically

it looks like the device node is there and the usb driver has attached to it but i would check it, first do a ls -l /dev/scd0 then check your dmesg logs when you attach/detach the device (try with the cd in)

if you have mplayer try mplayer cdda://1 or mplayer cddb://1 and see if any sound comes out, note that the cdrom drive dosent have to be mounted for it to play music or DVDs as it reads from the raw device (and enforces 1x mode so its quite)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141056\"][{POST_SNAPBACK}][/a][/div]

That's great, thank you!. Not using -o ro seemed to work. At least the device mounts without a problem when there is an mp3 CD in. The message I get is:

mount: /dev/scd0 is write-protected, mounting read-only

After that I am able to find the mp3s by using zplayer, adding them to a playlist and enjoy them.

If I have a non-mp3 CD in the drive I get this:
a series of the above message and then,

Mounting /dev/scd0 on /mnt/cdrom failed: Invalid argument.

Also, the mplayer commands returned errors:

MPlayer 1.0pre7-3.4.2 © 2000-2005 MPlayer Team
 for Zaurus 1.1.5 © 2004-2005 AGAWA Koji (atty)
CPU: ARM
CPUflags: iWMMXt
 
85 audio & 196 video codecs
CommandLine: 'cdda://1'
Failed to open /dev/rtc: Device or resource busy (it should be readable by the user.)
Playing cdda://1.
Option stream url: This URL doesn't have a hostname part.
[file] No filename
Failed to open cdda://1

Exiting... (End of file)

I suppose if i had more familiarity with Linux I may be able to determine why I get that error.
Title: Cd Players And C3000
Post by: Da_Blitz on September 11, 2006, 03:48:29 am
the failed to open cdda device might be because there isnt a symlink from /dev/cdrom to /dev/scd0 (ln -s /dev/cdrom /dev/scd0)

if this still dosent work, specify the cd by -dvd-device=/dev/scd0 ar try cddb://1
Title: Cd Players And C3000
Post by: John Galt on September 11, 2006, 11:18:25 pm
cddb://1 unfortunately returned the same error as cdda, even after symlinking the cdrom. How do I specify the cd using your command Da_Blitz? When I try it in the terminal I get:

# -dvd-device=dev/scd0
-dvd-device=dev/scd0: not found
#
Title: Cd Players And C3000
Post by: adf on September 11, 2006, 11:25:55 pm
Quote
cddb://1 unfortunately returned the same error as cdda, even after symlinking the cdrom. How do I specify the cd using your command Da_Blitz? When I try it in the terminal I get:

# -dvd-device=dev/scd0
-dvd-device=dev/scd0: not found
#
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141179\"][{POST_SNAPBACK}][/a][/div]
er... is it as simple as putting a slash before dev?--/dev/scd0
Title: Cd Players And C3000
Post by: Da_Blitz on September 12, 2006, 04:42:03 am
yeah, if you forget to put the / its reletive to the current dir, if you add the slash, it starts from the root dirictorey (which is what you want)
Title: Cd Players And C3000
Post by: John Galt on September 17, 2006, 10:02:06 am
Quote
yeah, if you forget to put the / its reletive to the current dir, if you add the slash, it starts from the root dirictorey (which is what you want)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141197\"][{POST_SNAPBACK}][/a][/div]


OK. I undestand the / . I had missed initially. But when I try this command from the terminal, I still get

-dvd-device=/dev/scd0: not found

I do appreciate your patience. Here's what I've tried so far and nothing seems to be working in terms of playing music CDs. I can play mp3 CDs without a problem, maybe because the Z recognizes the mp3 CD as a usb storage device.

Anyway:

1. I created a symlink from /dev/cdrom to /dev/scd0
2. I tried the following commands,
     mkdir -p /mnt/cdrom
     mount /dev/scd0 /mnt/cdrom
This works for an mp3 CD but when I tried it without a music CD, I got the following error message: "mount: Mounting /dev/scd0 on /mnt/cdrom failed: No medium found" and with a CD: "mount: Mounting /dev/scd0 on /mnt/cdrom failed: invalid argument"

3. I tried mplayer cdda://1 and mplayer cddb://1 and I got the same message as posted previously.

Any ideas?

Thanks!
Title: Cd Players And C3000
Post by: Da_Blitz on September 18, 2006, 12:46:32 am
it seems to me that scd0 is not in fact the cdrom and most likly dosent exsist, i know on some older distros and those with older udev rules that a scusi cdrom somtimes comes up as sr0 or simmilar  however it seems wierd that you can mount it to /mnt/cdrom

perhaps change dvd-device to cdrom-device

anyway, from the mplayer manual:
mplayer [cdda|cddb]://track[-endtrack][:speed][/device] [options]

so perhaps mplayer cdda://1/dev/cdrom

and make sure that /dev/scd0 or whatever device node you use has actually been created, if unsure try cat <device node> if there is no driver attached to it it should print an error otherwise it will emit garbage
Title: Cd Players And C3000
Post by: John Galt on September 18, 2006, 09:47:29 am
Quote
it seems to me that scd0 is not in fact the cdrom and most likly dosent exsist, i know on some older distros and those with older udev rules that a scusi cdrom somtimes comes up as sr0 or simmilar  however it seems wierd that you can mount it to /mnt/cdrom

perhaps change dvd-device to cdrom-device

anyway, from the mplayer manual:
mplayer [cdda|cddb]://track[-endtrack][:speed][/device] [options]

so perhaps mplayer cdda://1/dev/cdrom

and make sure that /dev/scd0 or whatever device node you use has actually been created, if unsure try cat <device node> if there is no driver attached to it it should print an error otherwise it will emit garbage
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141696\"][{POST_SNAPBACK}][/a][/div]


Thank you for the suggestions. I will try them and post back.
Title: Cd Players And C3000
Post by: neo_com_3 on November 25, 2006, 01:44:07 am
Hi m8s...

Did you do anything finally?

I play mp3, but no audio cd so far...

I tried mplayer & xmms...
Title: Cd Players And C3000
Post by: John Galt on November 27, 2006, 02:04:09 pm
Quote
Hi m8s...

Did you do anything finally?

I play mp3, but no audio cd so far...

I tried mplayer & xmms...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147207\"][{POST_SNAPBACK}][/a][/div]

Same thing. The USB CDROM loads without a problem, but Zaurus sees it only as another storage device - in my case. I can play mp3s and I can play mpgs only because  the CDROM is recognized as a storage - no CDs or DVDs.

Maybe someone has luck and could share their findings.


N.
Title: Cd Players And C3000
Post by: neo_com_3 on May 04, 2007, 11:07:10 am
Quote
Quote
Hi m8s...

Did you do anything finally?

I play mp3, but no audio cd so far...

I tried mplayer & xmms...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147207\"][{POST_SNAPBACK}][/a][/div]

Same thing. The USB CDROM loads without a problem, but Zaurus sees it only as another storage device - in my case. I can play mp3s and I can play mpgs only because  the CDROM is recognized as a storage - no CDs or DVDs.

Maybe someone has luck and could share their findings.


N.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147354\"][{POST_SNAPBACK}][/a][/div]
I know it is an old matter, but I found solution. I install Goobox - full, all packages - for pdaxrom. Well it is not working, but afterwards I try xmms and then It was possible for xmms to mount and recognize Audio CD!!! Well, when I insert an Audio CD and I inport it to my playlist, xmms goes on line and update all titles and plays like a charm...
Good luck!!!
Title: Cd Players And C3000
Post by: John Galt on May 04, 2007, 05:12:27 pm
that's really interesting. I just flashed my C3000 to the latest version of pdaXii13 but haven't tried to see if the XMMS Player would recognize the audio CD. I'll give it a try.


Quote
Quote
Quote
Hi m8s...

Did you do anything finally?

I play mp3, but no audio cd so far...

I tried mplayer & xmms...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147207\"][{POST_SNAPBACK}][/a][/div]

Same thing. The USB CDROM loads without a problem, but Zaurus sees it only as another storage device - in my case. I can play mp3s and I can play mpgs only because  the CDROM is recognized as a storage - no CDs or DVDs.

Maybe someone has luck and could share their findings.


N.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147354\"][{POST_SNAPBACK}][/a][/div]
I know it is an old matter, but I found solution. I install Goobox - full, all packages - for pdaxrom. Well it is not working, but afterwards I try xmms and then It was possible for xmms to mount and recognize Audio CD!!! Well, when I insert an Audio CD and I inport it to my playlist, xmms goes on line and update all titles and plays like a charm...
Good luck!!!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160463\"][{POST_SNAPBACK}][/a][/div]
Title: Cd Players And C3000
Post by: Antikx on May 05, 2007, 01:25:59 am
I tired a while back too and couldn't get it working under goobox or xmms. Might have been my external DVD-burner, or a missing dependency that was the problem.