barry2212 Posted July 30, 2019 Posted July 30, 2019 Hi, I'm the new guy and I started use orange pi boards so go straight to the problem: I'm trying to turn my orange pi plus board into a fully function cd player.I have done the code. So when I try to connect the USB cd drive to the board and type:"ls /dev/cdrom" And it shown "ls: cannot access '/dev/cdrom': No such file or directory" that happened to "sr0" too. I don't know how to solve this Please help me.Thanks for reading this
martinayotte Posted July 30, 2019 Posted July 30, 2019 59 minutes ago, barry2212 said: I don't know how to solve this Unplug and Replug the USB device and check the few last lines of the output of "dmesg" command, and report back those few lines here.
barry2212 Posted July 31, 2019 Author Posted July 31, 2019 6 hours ago, martinayotte said: Unplug and Replug the USB device and check the few last lines of the output of "dmesg" command, and report back those few lines here. Here is my termian output about the usb cd drive: [ 92.009005] usb 3-1: new high-speed USB device number 3 using ehci-platform [ 92.166692] usb 3-1: New USB device found, idVendor=05e3, idProduct=0701, bcdDevice= 0.33 [ 92.166710] usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 92.166720] usb 3-1: Product: USB TO IDE [ 92.167854] usb-storage 3-1:1.0: USB Mass Storage device detected [ 92.168274] usb-storage 3-1:1.0: Quirks match for vid 05e3 pid 0701: 520 [ 92.168447] scsi host0: usb-storage 3-1:1.0 [ 93.277422] scsi 0:0:0:0: CD-ROM TEAC DW-224E-V C.CC PQ: 0 ANSI: 0 [ 93.278267] scsi 0:0:0:0: Attached scsi generic sg0 type 5
guidol Posted July 31, 2019 Posted July 31, 2019 My terminal output ist also a /dev/sg0 device: [1339704.355462] usb 5-1: new high-speed USB device number 2 using ehci-platform [1339704.516262] usb 5-1: New USB device found, idVendor=0e8d, idProduct=1836, bcdDevice= 0.00 [1339704.516278] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [1339704.516289] usb 5-1: Product: SES084D [1339704.516300] usb 5-1: Manufacturer: TSST Inc [1339704.516310] usb 5-1: SerialNumber: R96X542 [1339704.519631] usb-storage 5-1:1.0: USB Mass Storage device detected [1339704.532320] scsi host0: usb-storage 5-1:1.0 [1339705.554226] scsi 0:0:0:0: CD-ROM TSSTcorp CDDVDW SE-S084F TS00 PQ: 0 ANSI: 0 [1339705.555057] scsi 0:0:0:0: Attached scsi generic sg0 type 5 On the net I do only found a information that https://forums.gentoo.org/viewtopic-p-1316644.html /dev/sg0 is a character-device and onyl /dev/sr0 would be a block-device A block device is needed for the text-cdaudio-player packages "cdtool" or "cdcd". The URL also tells that block-device support has to be compiled in the kernel. I dont know if armbian has that block-device-support in there So with my /dev/sg0 (as yours) I only do get the following message from cdtool: root@npi-k1-plus(192.168.6.70):~# cdplay -d /dev/sg0 cdplay: can't open cdrom (/dev/sg0): not a block device. # apt-cache search cdtool cdtool - text-based audio CD player and CD-ROM control commands # apt-cache search cdcd cdcd - command line or console based CD player The following URL tells how to play audio-cd via comman line:http://www.pc-freak.net/blog/how-to-play-audio-music-cds-in-gnulinux-and-freenetopen-bsds/ Its also possible via mplayer on the commandline: mplayer cdda:// /dev/cdrom You can add a track number or range after the // (ex: cdda://1-5), if you want. [EDIT] normally armbian seems to support /dev/sr0 because of the udev-rule in /lib/udev/rules.d/50-udev-default.rules: SUBSYSTEM=="block", GROUP="disk" SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom" SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom" KERNEL=="sch[0-9]*", GROUP="cdrom" KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" KERNEL=="pktcdvd", GROUP="cdrom"
barry2212 Posted July 31, 2019 Author Posted July 31, 2019 37 minutes ago, guidol said: [1339704.355462] usb 5-1: new high-speed USB device number 2 using ehci-platform [1339704.516262] usb 5-1: New USB device found, idVendor=0e8d, idProduct=1836, bcdDevice= 0.00 [1339704.516278] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [1339704.516289] usb 5-1: Product: SES084D [1339704.516300] usb 5-1: Manufacturer: TSST Inc [1339704.516310] usb 5-1: SerialNumber: R96X542 [1339704.519631] usb-storage 5-1:1.0: USB Mass Storage device detected [1339704.532320] scsi host0: usb-storage 5-1:1.0 [1339705.554226] scsi 0:0:0:0: CD-ROM TSSTcorp CDDVDW SE-S084F TS00 PQ: 0 ANSI: 0 [1339705.555057] scsi 0:0:0:0: Attached scsi generic sg0 type 5 On the net I do only found a information that https://forums.gentoo.org/viewtopic-p-1316644.html /dev/sg0 is a character-device and onyl /dev/sr0 would be a block-device A block device is needed for the text-cdaudio-player packages "cdtool" or "cdcd". The URL also tells that block-device support has to be compiled in the kernel. I dont know if armbian has that block-device-support in there So with my /dev/sg0 (as yours) I only do get the following message from cdtool: root@npi-k1-plus(192.168.6.70):~# cdplay -d /dev/sg0 cdplay: can't open cdrom (/dev/sg0): not a block device. # apt-cache search cdtool cdtool - text-based audio CD player and CD-ROM control commands # apt-cache search cdcd cdcd - command line or console based CD player This is a little bit confused cause my orange pi one detect the device and more than that it have "cdrom" inside /dev This is a little bit confuse cause my orange pi one detect the device and it have the /dev/cdrom and the orange pi zero is not
guidol Posted July 31, 2019 Posted July 31, 2019 33 minutes ago, barry2212 said: This is a little bit confuse cause my orange pi one detect the device and it have the /dev/cdrom and the orange pi zero is not "ls: cannot access '/dev/cdrom': No such file or directory" is normal then a audio-syste has no "real" filesystem (for a computer). is you got /dev/sr0 or /dev/cdrom, then you could try to install cdtools (apt intall cdtools) and then try the command cdplay -d /dev/sr0 or cdplay -d /dev/cdrom
barry2212 Posted July 31, 2019 Author Posted July 31, 2019 (edited) 8 minutes ago, guidol said: "ls: cannot access '/dev/cdrom': No such file or directory" is normal then a audio-syste has no "real" filesystem (for a computer). is you got /dev/sr0 or /dev/cdrom, then you could try to install cdtools (apt intall cdtools) and then try the command cdplay -d /dev/sr0 or cdplay -d /dev/cdrom i have a another problem that wish to be helped that i try to play the cd with mplayer but i cant get the audio out cause unlike the orange pi zero it doesnt have analog audio out so i move on to the orange pi zero.But now this problem came in. So do you know how to get the audio out of the board.That would be great Edited July 31, 2019 by barry2212 i dont have any kind of hdmi tv right now so that suck :((
guidol Posted July 31, 2019 Posted July 31, 2019 48 minutes ago, barry2212 said: So do you know how to get the audio out of the board.That would be great You have two options with the OPi One 1.) buy a cheap HDMI2VGA adaptor on eBay - they also provide a 3.5mm audio-out-jack - like https://www.ebay.co.uk/itm/PC-TV-1080p-HDMI-Male-to-VGA-Female-Converter-Adapter-with-3-5mm-Audio-Cable/223582664227 2.) buy a USB-soundcard
barry2212 Posted July 31, 2019 Author Posted July 31, 2019 10 minutes ago, guidol said: You have two options with the OPi One 1.) buy a cheap HDMI2VGA adaptor on eBay - they also provide a 3.5mm audio-out-jack - like https://www.ebay.co.uk/itm/PC-TV-1080p-HDMI-Male-to-VGA-Female-Converter-Adapter-with-3-5mm-Audio-Cable/223582664227 2.) buy a USB-soundcard Thanks for your suggestion :)))
Recommended Posts