CDROM support for HC-2

Post Reply
jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

CDROM support for HC-2

Unread post by jgarr » Fri Aug 09, 2019 10:05 am

I'm trying to get a SATA Blu-ray drive to work on the HC-2. It appears that the distros I've tried (dietpi and debian stretch) remove all support for CD/DVD drives so i'm trying to add it back.

So far I've only added sr_mod and cdrom kernel modules but when I do a lsscsi or lshw the drive still doesn't show up.

Can someone help me figure out what else is needed to get a DVD drive plugged into the SATA port to work with the HC-2?

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: CDROM support for HC-2

Unread post by odroid » Fri Aug 09, 2019 10:23 am

The SoC in the HC2 has no native SATA port.
So we used the JMS578 USB 3.0 to SATA bridge IC. But the firmware in the bridge chip doesn't support the ODD probably. We will check it with the chip vendor.

BTW, can you show me a picture to learn how you connected the Blu-ray ODD to HC2?

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Fri Aug 09, 2019 3:56 pm

That's a bummer to hear. I had problems with USB -> SATA adapters I think for this exact same problem. I was hoping the HC-2 was native SATA which would fix the problem.

I took the HC-2 off of the standard HDD bracket and just plugged it into the blu-ray drive.
https://photos.app.goo.gl/rehWi2qRjCd6zHH99

I also put on a heatsink to try and help with temps
https://photos.app.goo.gl/rehWi2qRjCd6zHH99

I'm not sure this heatsink is big enough (temps are still high) so I'm running a fan over it to help.

The jmicron product sheet for that part says it should support ODD http://www.jmicron.com/PDF/brief/jms578.pdf
maybe there's something else in firmware that needs to be enabled for it to work?

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: CDROM support for HC-2

Unread post by odroid » Fri Aug 09, 2019 4:48 pm

Since we don't have any SATA ODD drive in our office, we can't test it at this moment.
We will ask any possible solution to Jmicron. But their response is quite slow and we have to be patient.

BTW, Can you find any clue in "lsusb", "lsusb -t" and "lsmod" outputs?

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: CDROM support for HC-2

Unread post by mad_ady » Fri Aug 09, 2019 5:19 pm

I can confirm that a small "laptop" dvd drive that uses 5v isn't recognized through the jmicron sata-usb board. I'm planning on connecting it directly to the H2 sata.

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Sat Aug 10, 2019 3:28 pm

Thanks for working with me on this. I thought I was going crazy not getting the drive to show up. Here's the output. plus /proc/sys/dev/cdrom/info (empty data)

Code: Select all

root@debian-stretch:~# lsusb
Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. 
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

root@debian-stretch:~# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M

Code: Select all

root@debian-stretch:~# lsmod
Module                  Size  Used by
sr_mod                 24576  0
cdrom                  53248  1 sr_mod
scsi_mod              135168  1 sr_mod
spidev                 20480  0
evdev                  24576  0
spi_s3c64xx            20480  0
w1_gpio                16384  0
gpio_keys              20480  0
exynos_gpiomem         16384  0
wire                   24576  1 w1_gpio
ip_tables              24576  0
ipv6                  380928  26
extcon_usb_gpio        16384  0

Code: Select all

root@debian-stretch:~# cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:	
drive speed:	
drive # of slots:
Can close tray:	
Can open tray:	
Can lock tray:	
Can change speed:
Can select disk:
Can read multisession:
Can read MCN:	
Reports media changed:
Can play audio:	
Can write CD-R:	
Can write CD-RW:
Can read DVD:	
Can write DVD-R:
Can write DVD-RAM:
Can read MRW:	
Can write MRW:	
Can write RAM:

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: CDROM support for HC-2

Unread post by odroid » Mon Aug 12, 2019 10:11 am

I think Jmicron controller IC couldn't detected the ODD.
Do you have a spare 3.5" HDD to compare "lsusb -t" outputs?

neal
Posts: 190
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: CDROM support for HC-2

Unread post by neal » Mon Aug 12, 2019 3:15 pm

This attachment is standard F/W v00.04.01.14 for JMS578.
Can you please test with it and report back? I'm sorry about not having an ODD device.
Attachments
BIN-16028 JMS578_STD_v00.04.01.04_Self Power + ODD_20190611.zip
(25.13 KiB) Downloaded 7 times

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Tue Aug 13, 2019 12:05 pm

Is there instructions on how to flash the firmware?

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: CDROM support for HC-2

Unread post by mad_ady » Tue Aug 13, 2019 1:09 pm


User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: CDROM support for HC-2

Unread post by mad_ady » Tue Aug 13, 2019 11:36 pm

@neal: It seems to have worked:

Code: Select all

[ 2766.442279] usb 4-1.2: USB disconnect, device number 3
[ 2773.680185] usb 4-1.2: new SuperSpeed USB device number 4 using xhci-hcd
[ 2773.702186] usb 4-1.2: New USB device found, idVendor=152d, idProduct=0578
[ 2773.702216] usb 4-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2773.702241] usb 4-1.2: Product: USB to ATA/ATAPI Bridge
[ 2773.702264] usb 4-1.2: Manufacturer: JMicron
[ 2773.702286] usb 4-1.2: SerialNumber: 0123456789ABCDEF
[ 2773.703940] usb-storage 4-1.2:1.0: USB Mass Storage device detected
[ 2773.721101] usb-storage 4-1.2:1.0: Quirks match for vid 152d pid 0578: 1000000
[ 2773.721360] scsi host0: usb-storage 4-1.2:1.0
[ 2774.860306] scsi 0:0:0:0: CD-ROM            Optiarc  DVD RW AD-7710H  1.50 PQ: 0 ANSI: 0
[ 2774.862937] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[ 2775.358832] sr 0:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 2775.358872] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 2775.362217] sr 0:0:0:0: Attached scsi CD-ROM sr0
odroid@odroid:~/JMS578FwUpdater$ ls -l /media/odroid/Fedora\ 11\ x86_64\ DVD/
total 553
drwxr-xr-x 3 odroid odroid   2048 Jun  2  2009 EFI
-rw-r--r-- 2 odroid odroid  18363 Jul  3  2007 GPL
drwxr-sr-x 2 odroid odroid 518144 Jun  2  2009 Packages
-rw-r--r-- 2 odroid odroid  10581 May 14  2009 README-BURNING-ISOS-en_US.txt
lrwxrwxrwx 2 odroid odroid     29 Jun  2  2009 RPM-GPG-KEY-fedora -> RPM-GPG-KEY-fedora-11-primary
-rw-r--r-- 2 odroid odroid   1653 May 11  2009 RPM-GPG-KEY-fedora-11-primary
lrwxrwxrwx 2 odroid odroid     29 Jun  2  2009 RPM-GPG-KEY-fedora-i386 -> RPM-GPG-KEY-fedora-11-primary
-rw-r--r-- 2 odroid odroid   1694 May 11  2009 RPM-GPG-KEY-fedora-ia64
lrwxrwxrwx 2 odroid odroid     29 Jun  2  2009 RPM-GPG-KEY-fedora-ppc -> RPM-GPG-KEY-fedora-11-primary
lrwxrwxrwx 2 odroid odroid     29 Jun  2  2009 RPM-GPG-KEY-fedora-ppc64 -> RPM-GPG-KEY-fedora-11-primary
lrwxrwxrwx 2 odroid odroid     29 Jun  2  2009 RPM-GPG-KEY-fedora-x86_64 -> RPM-GPG-KEY-fedora-11-primary
-r--r--r-- 1 odroid odroid   4011 Jun  2  2009 TRANS.TBL
drwxr-sr-x 3 odroid odroid   2048 Jun  2  2009 images
drwxr-sr-x 2 odroid odroid   2048 Jun  2  2009 isolinux
-rw-r--r-- 1 odroid odroid     95 Jun  2  2009 media.repo
drwxr-sr-x 2 odroid odroid   4096 Jun  2  2009 repodata

I haven't tried writing a dvd-rw, but reading works ok.

Also, you should add the bin file to the wiki so it doesn't get lost in time.

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Wed Aug 14, 2019 2:19 am

Yep, this worked for me too! I had to plug in a hdd to perform the flash but after that was able to swap back to the ODD and it shows up for use.

Now I just need to figure out a case and better cooling.

Thanks for the help.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: CDROM support for HC-2

Unread post by mad_ady » Wed Aug 14, 2019 3:21 am

I managed to do the upgrade with the cdrom plugged in (it was seen as /dev/sda). Used the sata board plus. Now I have a portable dvd writer with usb. Neat! I only need a portable floppy drive to maximize my backward compatibility :)
By the way, @op, what are you going to use a hc2 with a dvd for?

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: CDROM support for HC-2

Unread post by odroid » Wed Aug 14, 2019 9:12 am

Glad to hear that the different firmware works with an ODD. :D

I'm also very curious "what are you going to use a hc2 with a dvd for?".
If it is an interesting use case, consider writing an article with a couple of pictures for our Magazine. ;)

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Wed Aug 14, 2019 9:33 am

My main use case is I had a desktop strictly for ripping my DVDs and Blu-ray disks into plex. The desktop was big and hot and consumed a lot of power for something fairly basic. I plan on ripping the content off the disk directly from the HC2 to store it on my NAS (transcoding would take place on a different machine) or possibly using https://github.com/NetworkBlockDevice/nbd to mount the disk directly from another system on the network to rip the contents.

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: CDROM support for HC-2

Unread post by odroid » Wed Aug 14, 2019 9:40 am

Make sense.
Please write an article once you have a working networked Blu-ray disk backup system.

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: CDROM support for HC-2

Unread post by mad_ady » Wed Aug 14, 2019 1:37 pm

I'm curious on how you'll make it fit inside the hc2 heatsink. Is your blueray 3.5" drive that needs 12V?

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Wed Aug 14, 2019 4:34 pm

I removed the hc2 from the case/heatsink because the ODD wouldn't fit. I put a passive heatsync on the chip and set the cpu clock speed to 600Mhz. So far that keeps the chip around 60-65 C which seems pretty good while making a backup.

neal
Posts: 190
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: CDROM support for HC-2

Unread post by neal » Thu Aug 15, 2019 5:02 pm

Also, you should add the bin file to the wiki so it doesn't get lost in time.
Added the bin file to the wiki ;)
https://wiki.odroid.com/odroid-xu4/soft ... der_hc1hc2
These users thanked the author neal for the post:
mad_ady (Thu Aug 15, 2019 7:17 pm)

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Fri Aug 23, 2019 12:02 am

I've still been slowly working on this. I tried with Network Block Device (nbd) but it turns out I can't use that for ODDs because it doesn't handle everything required for CDs and DVDs.

I started looking at USBIP which appears to work for these drives but it looks like the latest debian kernel for odroid wasn't compiled with USBIP support

zcat /proc/config.gz | grep USBIP
# CONFIG_USBIP_CORE is not set

Is this the best walkthrough on compiling a new kernel? I'll also need to compile the userland tools but I already got that working
https://wiki.odroid.com/odroid-n2/softw ... s[]=kernel

Is there any chance on enabling support for this in future kernel releases?

User avatar
mad_ady
Posts: 6401
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 150 times
Been thanked: 109 times
Contact:

Re: CDROM support for HC-2

Unread post by mad_ady » Fri Aug 23, 2019 2:14 am

I personally prefer this guide: https://github.com/umiddelb/armhf/wiki/ ... ARM-device
Though the ones on the wiki should work as well.

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: CDROM support for HC-2

Unread post by odroid » Fri Aug 23, 2019 8:39 am

If you can confirm the "CONFIG_USBIP_CORE" driver functionality/stability, we will enable the driver as a module in the next kernel update.

jgarr
Posts: 11
Joined: Tue Jul 30, 2019 3:37 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: CDROM support for HC-2

Unread post by jgarr » Sun Aug 25, 2019 4:21 pm

I was able to compile the modules for the 4.14.133 kernel (thanks for the link). Everything appears to work as expected on the host but my client (fedora laptop) is giving errors.

Code: Select all

  291.123716] scsi host3: usb-storage 4-1:1.0
[  291.123876] usbcore: registered new interface driver usb-storage
[  291.129574] usbcore: registered new interface driver uas
[  292.152926] scsi 3:0:0:0: CD-ROM            HL-DT-ST BD-RE  WH14NS40  1.02 PQ: 0 ANSI: 0
[  322.305488] vhci_hcd: unlink->seqnum 27
[  322.305493] vhci_hcd: urb->status -104
[  323.197553] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  324.085653] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  324.974651] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  325.869787] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  325.870061] usb 4-1: USB disconnect, device number 2
[  325.870113] sr 3:0:0:0: [sr0] scsi3-mmc drive: 25x/204x writer dvd-ram cd/rw xa/form2 cdda tray
[  325.870118] cdrom: Uniform CD-ROM driver Revision: 3.20
[  325.872000] sr 3:0:0:0: Attached scsi CD-ROM sr0
[  325.872417] sr 3:0:0:0: Attached scsi generic sg1 type 5
[  326.781767] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  327.669610] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  327.669633] usb usb4-port1: attempt power cycle
[  328.869534] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  329.757582] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[  329.757606] usb usb4-port1: unable to enumerate USB device
[  329.822827] pktcdvd: setup of pktcdvd device failed
Fedora is currently on 5.2 kernel and I suspect there may be a problem with the client version of the packages. I'm going to try again with a VM and an old kernel to see if I can get it working.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 2 guests