laurentppol Posted August 15, 2020 Share Posted August 15, 2020 I am trying to connect an SATA -> USB DVD-R drive to OPi3, but it fails, K3b complains about "no drive". Here is syslog: Aug 15 22:12:31 orangepi3 kernel: [34203.588120] usb 3-1.1: new high-speed USB device number 8 using xhci-hcd Aug 15 22:12:31 orangepi3 kernel: [34203.712687] usb 3-1.1: New USB device found, idVendor=13fd, idProduct=084 0, bcdDevice= 1.14 Aug 15 22:12:31 orangepi3 kernel: [34203.712695] usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNu mber=3 Aug 15 22:12:31 orangepi3 kernel: [34203.712698] usb 3-1.1: Product: External Aug 15 22:12:31 orangepi3 kernel: [34203.712701] usb 3-1.1: Manufacturer: Generic Aug 15 22:12:31 orangepi3 kernel: [34203.712704] usb 3-1.1: SerialNumber: 333230383730332036363332 Aug 15 22:12:31 orangepi3 kernel: [34203.713441] usb-storage 3-1.1:1.0: USB Mass Storage device detected Aug 15 22:12:31 orangepi3 kernel: [34203.715594] scsi host0: usb-storage 3-1.1:1.0 Aug 15 22:12:31 orangepi3 mtp-probe: checking bus 3, device 8: "/sys/devices/platform/soc/5200000.dwc3/xhci-hc d.3.auto/usb3/3-1/3-1.1" Aug 15 22:12:31 orangepi3 mtp-probe: bus: 3, device: 8 was not an MTP device Aug 15 22:12:31 orangepi3 mtp-probe: checking bus 3, device 8: "/sys/devices/platform/soc/5200000.dwc3/xhci-hc d.3.auto/usb3/3-1/3-1.1" Aug 15 22:12:31 orangepi3 mtp-probe: bus: 3, device: 8 was not an MTP device Aug 15 22:12:32 orangepi3 kernel: [34204.737920] scsi 0:0:0:0: CD-ROM Slimtype DVD A DS8A9SH EAA 2 PQ: 0 ANSI: 0 Aug 15 22:12:32 orangepi3 kernel: [34204.738292] scsi 0:0:0:0: Attached scsi generic sg1 type 5 there is NO /dev/sr0 after plugging drive. At the same time SATA->USB HDD works w/o problem. What am I missing? What should I do? I want to record my motion recordings w/o need to transfer them to laptop. Link to comment Share on other sites More sharing options...
Werner Posted August 16, 2020 Share Posted August 16, 2020 armbianmonitor -u Link to comment Share on other sites More sharing options...
laurentppol Posted August 16, 2020 Author Share Posted August 16, 2020 root@orangepi3:/var/motion# armbianmonitor -u System diagnosis information will now be uploaded to gzip: /var/log/armbian-hardware-monitor.log.1.gz: No such file or directory http://ix.io/2uld Please post the URL in the forum where you've been asked for. Here it is. Don't know why there is an error. Link to comment Share on other sites More sharing options...
Igor Posted August 16, 2020 Share Posted August 16, 2020 19 hours ago, laurentppol said: What am I missing? What should I do? If some feature is missing from the kernel but its possible to add it? Build the kernel with that feature and send a changed config upstream that it will not be gone by update. https://github.com/armbian/build/blob/master/config/kernel/linux-sunxi64-current.config#L6518-L6525 I have no idea what else is needed to fire up CDROM. It has been 10y+ since I used it last time Link to comment Share on other sites More sharing options...
laurentppol Posted August 19, 2020 Author Share Posted August 19, 2020 On 8/16/2020 at 5:19 PM, Igor said: https://github.com/armbian/build/blob/master/config/kernel/linux-sunxi64-current.config#L6518-L6525 I have no idea what else is needed to fire up CDROM. It has been 10y+ since I used it last time Ok, here it is: "# CONFIG_BLK_DEV_SR is not set" Not even =M (module)... So I'll try to build my own kernel. Link to comment Share on other sites More sharing options...
Werner Posted August 19, 2020 Share Posted August 19, 2020 It is not that hard since the script will do most of the work for you. Link to comment Share on other sites More sharing options...
laurentppol Posted August 20, 2020 Author Share Posted August 20, 2020 The config You provided is for building whole Armbian? I need the one for kernel only (I have already kernel sources as I needed to compile "tmon" from there). Just to put it in kernel source root, "make menuconfig" to change optical drives on, and "make; make install", - how do I update initrd?) Link to comment Share on other sites More sharing options...
Werner Posted August 20, 2020 Share Posted August 20, 2020 3 minutes ago, laurentppol said: how do I If you refuse using the build script to create a kernel package for your board (yes, it is possible to build the package only and not a whole image) then you are on your own. Link to comment Share on other sites More sharing options...
laurentppol Posted August 20, 2020 Author Share Posted August 20, 2020 Ok, if it is possible to build only kernel (I hope it will not download anything else...) thats GREAT, and I will try :) THX. Link to comment Share on other sites More sharing options...
Werner Posted August 20, 2020 Share Posted August 20, 2020 Well it will install some tools and of course will download the toolchain to make cross-compile possible. So first startup will take a while. Link to comment Share on other sites More sharing options...
laurentppol Posted August 20, 2020 Author Share Posted August 20, 2020 I have already toolchain on OPi3 + kernel source, can I use native compile? Link to comment Share on other sites More sharing options...
Werner Posted August 20, 2020 Share Posted August 20, 2020 You can try but it is not supported so you are on your own then. Link to comment Share on other sites More sharing options...
laurentppol Posted August 20, 2020 Author Share Posted August 20, 2020 Ooops, You were right: [ o.k. ] Preparing [ host ] [ .... ] Please read documentation to set up proper compilation environment [ .... ] http://www.armbian.com/using-armbian-tools/ [ error ] ERROR in function prepare_host [ general.sh:935 ] [ error ] Running this tool on non x86-x64 build host in not supported [ o.k. ] Process terminated Problem is that I have only 32bit Linux on x86, and 64bit Armbian.... Link to comment Share on other sites More sharing options...
Werner Posted August 31, 2020 Share Posted August 31, 2020 https://github.com/armbian/build/pull/2172 Link to comment Share on other sites More sharing options...
Recommended Posts