Topic: External dvd burner

Hello,

I just bought an external DVD/Blueray burner; it seems to be a SATA drive in a random USB3 enclosure:
$ lsusb
Bus 001 Device 100: ID 13fd:3940 Initio Corporation
I have found reports on the Internet where the same device was used to house an external hard disk instead of an optical drive.

When I plug it in, no /dev/sr? is created; here is the output of dmesg:
[474014.857514] usb 1-1.4.2: new high-speed USB device number 100 using ci_hdrc
[474014.979497] usb 1-1.4.2: New USB device found, idVendor=13fd, idProduct=3940
[474014.979511] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[474014.979520] usb 1-1.4.2: Product: BD-MLT UJ260AF 
[474014.979527] usb 1-1.4.2: Manufacturer: MATSHITA
[474014.979535] usb 1-1.4.2: SerialNumber: 57503732202030333236353020202020
[474014.980324] usb-storage 1-1.4.2:1.0: USB Mass Storage device detected
[474014.982418] usb-storage 1-1.4.2:1.0: Quirks match for vid 13fd pid 3940: 2000000
[474014.982528] scsi host208: usb-storage 1-1.4.2:1.0
[474015.979312] scsi 208:0:0:0: CD-ROM            MATSHITA BD-MLT UJ260AF   1.00 PQ: 0 ANSI: 0

On another machine, it looks like this:
[  599.334902] usb 2-1.3: new high-speed USB device number 22 using ehci-pci
[  599.466737] usb 2-1.3: New USB device found, idVendor=13fd, idProduct=3940
[  599.466750] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  599.466756] usb 2-1.3: Product: BD-MLT UJ260AF
[  599.466761] usb 2-1.3: Manufacturer: MATSHITA
[  599.466765] usb 2-1.3: SerialNumber: 57503732202030333236353020202020
[  599.467010] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[  599.467393] usb-storage 2-1.3:1.0: Quirks match for vid 13fd pid 3940: 2000000
[  599.467477] scsi host8: usb-storage 2-1.3:1.0
[  600.472226] scsi 8:0:0:0: CD-ROM            MATSHITA BD-MLT UJ260AF   1.00 PQ: 0 ANSI: 0
[  600.476618] sr 8:0:0:0: [sr1] scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray
[  600.476721] sr 8:0:0:0: Attached scsi CD-ROM sr1
[  600.476777] sr 8:0:0:0: Attached scsi generic sg2 type 5

So essentially, there are the three additional lines at the end. Both machines have USB2 instead of USB3, so this cannot be the problem.

Another difference I notice is the "usb 1-1.4.2" vs. "usb 2-1.3"; could this be the problem? Or am I missing a kernel module?

I would be grateful for help.

Andreas

Re: External dvd burner

Hi,

[  600.476618] sr 8:0:0:0: [sr1] scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda tray
[  600.476721] sr 8:0:0:0: Attached scsi CD-ROM sr1

Try /dev/sr1

3 (edited by andreas 2016-07-10 05:30:30)

Re: External dvd burner

The second output  comes from a second machine, which is not a Novena, and where indeed the drive works. I gave this as an illustration for the expected behaviour. My problem is with the first machine, which is a Novena, and there /dev/sr? does not exist.

Re: External dvd burner

My bad.

Maybe a driver issue. You should have at least this in your kernel config :

CONFIG_CHR_DEV_SG=y
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y

Re: External dvd burner

I did not have these in the official kernel (from xobs-beta), so I needed to recompile a kernel, which took some time. For good measure, I also enabled

CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y

Now the drive is recognised in the same way as on my other machine. Is there any drawback to enabling this in the standard kernel?

Thanks a lot for your help in solving the problem!

Andreas

Re: External dvd burner

Glad it works for you.

No, there is no drawback. Base kernel configuration is much more "custom" than "standard". It fits perfectly to Novena hardware, nothing more. So, there is a lack is kernel settings for devices "outside" Novena. But, its OK as its not a good idea to set everything in kernel configuration (like Ubuntu guys, that don't want to compile their own kernel). Its better to add things only if you need them.

Re: External dvd burner

I beg to disagree: If there are no particular drawbacks, I would prefer that most things work out of the box. But this of course depends on the policies of the project; are there any written rules? If not, how can I make the suggestion to modify the kernel configuration, apart from contacting xobs directly?

Re: External dvd burner

I don't know if there are written rules about that (I don't think so btw). But in GNU/Linux world some distribution choose to add everything in kernel settings and some others don't. From my point of view it's just a matter of settings/tunings.

If you want to suggest these settings you can make a pull request on git :

  https://github.com/xobs/novena-linux/pulls

Re: External dvd burner

Normally, xobs will regularly read this forum and will add requested modules in the next kernel update. He did not want to include unnecessary modules (that nobody needs in the community) to keep the boot times short. If you need the modules faster, feel free to send xobs an email directly.

Re: External dvd burner

Have you check all its necessary drivers???????