× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

ReadyNAS CD/DVD support, abcde, handbrake etc

HuwSy
Guide

ReadyNAS CD/DVD support, abcde, handbrake etc

Hi

After many attempts with abcde and handbrake-cli with an external usb dvd rom drive I finally have it all working so I thought I would post here for anyone else needing.

This was on a Ready Nas 516 but I assume it would be similar for most with maybe some changes here and there.

First, to be able to install the tools I needed a repo for Jessie that actually loads so added the following to /etc/apt/sources.list

deb [trusted=yes] http://archive.debian.org/debian jessie main contrib non-free

Then installed abcde and it’s parts I was after, you may want more codecs etc

apt install abcde eject eyed3 id3 lame

Finally for abcde it needed updating newer than the repo version, I needed make below to install not any compiling

curl -kO https://abcde.einval.com/download/abcde-2.9.3.tar.gz | tar -xvf -
cd abcde-*
apt install make
make install

You may want to add these to the ~/.abcde.conf as the old server no longer exists I believe

CDDBMETHOD=cddb
CDDBURL="http://gnudb.gnudb.org/~cddb/cddb.cgi"

Now handbrake-cli took a bit more to get operational because the kernel drivers sr_mod.ko and cdrom.ko are missing.

First add to sources, well this is optional if you want libdvdcss2

deb http://download.videolan.org/pub/debian/stable/ /

Then ensure the key is added

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6BCA5E4DB84288D9

Now install the apps

apt install handbrake-cli libavcodec-extra libdvdcss2 udftools

Finally you will have to compile the drivers for sr_mod.ko and cdrom.ko as follows, do this on a share as it’s a few GB needed or on another machine to speed things up

This part must be done on the Nas, the .config file from this is needed later

apt install linux-image-extra
depmod -a
modprobe configs
zcat /proc/config.gz > .config
modprobe -r configs

Here on can be done on another Linux box or under wsl in windows if needed

wget https://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.10.8_WW_src.zip
unzip ReadyNASOS_*.zip
cd linux-4.4.157-x86_64
apt install libncurses-dev bc build-essential

Copy the config file into this linux kernel folder

make menuconfig

Navigate the menu
add device/block dev/packet writing (possibly not needed)
add device/scsi/scsi cdrom

make prepare
make modules_prepare
make # possibly not needed
make modules

Copy the files built as follows

cp drivers/cdrom/cdrom.ko /lib/modules/*/kernel/drivers/cdrom/
cp drivers/scsi/sr_mod.ko /lib/modules/*/kernel/drivers/scsi/

Finally bring them online

depmod -a
modprobe sr_mod
modprobe cdrom

Now enjoy dvds showing up as /dev/sr0 and being usable in handbrake or lsdvd etc

I would attach the compiled files for my 516 using 6.10.8 here if it let me but it only allows images it seems.
Message 1 of 4
HuwSy
Guide

Re: ReadyNAS CD/DVD support, abcde, handbrake etc

One thing missed. To keep these post reboot also add a file /etc/modules-load.d/cdrom.conf with content

sr_mod
cdrom
Message 2 of 4
Sandshark
Sensei

Re: ReadyNAS CD/DVD support, abcde, handbrake etc

Thanks for sharing.  Can DVD .iso images also now be mounted?

 

This would make a great ReadyNAS add-on.  Unfortunately, ReadyNAS never put out a "ReadyNAS Apps for Dummies".  Their instructions are clearly intended for those that have previously created a .deb package, just not specifically for a ReadyNAS.

Message 3 of 4
HuwSy
Guide

Re: ReadyNAS CD/DVD support, abcde, handbrake etc

Hi

I would assume dvd iso only need udftools installed but it’s not as easy to test now I have it all setup.
Message 4 of 4
Top Contributors
Discussion stats
  • 3 replies
  • 889 views
  • 0 kudos
  • 2 in conversation
Announcements