Help: Load CDROM Drivers on Linux DDWRT Router

forests_gump

Banned
Joined
Jan 1, 2000
Messages
15,651
Reaction score
5,973
Face a situation, which i got stuck, and online forums search comes turn-up nothing.

Hardware is a Router running on Linux favor- DDWRT. (www.dd-wrt.com | Unleash Your Router)
DDWRT buildin DLNA Media Server, SMB, FTP, & supports USB storage - like USB HDD, Thumbdrive, which i could mount.

I want serve media files read from DVD using USB CDROM/DVDROM , it seems these drivers are not included in default DDWRT, unable to mount.

Anyone has a clue how to go about?
I guess the steps are:
1) Where to find/which are the right Linux drivers that i need to load into Router via Telnet.
2) The sequence of loading drivers.
3) How to mount USB CDROM.

Need Gurus which have some idea to guide me. Thks.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,549
Reaction score
1,302
Face a situation, which i got stuck, and online forums search comes turn-up nothing.

Hardware is a Router running on Linux favor- DDWRT. (www.dd-wrt.com | Unleash Your Router)
DDWRT buildin DLNA Media Server, SMB, FTP, & supports USB storage - like USB HDD, Thumbdrive, which i could mount.

I want serve media files read from DVD using USB CDROM/DVDROM , it seems these drivers are not included in default DDWRT, unable to mount.

Anyone has a clue how to go about?
I guess the steps are:
1) Where to find/which are the right Linux drivers that i need to load into Router via Telnet.
2) The sequence of loading drivers.
3) How to mount USB CDROM.

Need Gurus which have some idea to guide me. Thks.

USB - DD-WRT Wiki

Search using find
Code:
find /lib/modules/`uname -r` -type f -iname '*.ko' | grep usb

see if you can find any modules that support usb

Try using
Code:
lsmod

to see if any of the capability are compiled into the kernel instead of a separate module

The DD-WRT link above basically list out the avialable usb drivers and also advice you to auto load the module upon start

To load module drivers in linux, we use
Code:
modprobe
 

forests_gump

Banned
Joined
Jan 1, 2000
Messages
15,651
Reaction score
5,973
Davidktw , for coming in.

On the USB link , they mention USB drivers, but not mention these believe is needed (and whatelse I missed) :CD/DVD file system iso9660 CDFS and dvdrom device drivers. Also sr_mod .... Anyway I need to know all necessary HOW TO steps, and where to download these.

I read somewhere else that a USB CDROM will appear as scsi CDROM on Linux
 
Last edited:

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,549
Reaction score
1,302
Davidktw , for coming in.

On the USB link , they mention USB drivers, but not mention these believe is needed (and whatelse I missed) :CD/DVD file system iso9660 CDFS and dvdrom device drivers. Also sr_mod .... Anyway I need to know all necessary HOW TO steps, and where to download these.

I read somewhere else that a USB CDROM will appear as scsi CDROM on Linux

Most linux kernel has inherently compiled with the codebase to interact with ISO9660 since most have distributed using CDROM/DVD in the past. They are found in both the init ramdisk kernel as well as the main kernel after loaded. Normally they don't exist as separate module, though it is possible.

It has been quite long ago as I remembered that a good number of peripheral aside of harddisk are interpreted via SCSI commands, so it's not all that foreign to the linux kernel.

I no longer play with DD-WRT since I have little use for such 3rd party firmware, so I don't have a ready router to try it out. However, if my memory serve me, you can still tail the logs found in /var/logs/

telnet/ssh into the router and tail on the logs and then plug in the usb devices, can you see at logs poping up on the detection of the usb devices ? Get pass this stage before talking about mounting the filesystem on the storage devices. If the usb devices are recognized, then you may observe which new nodes are found inside /dev/. The device path is normally listed upon detection in the logs too, either system.log or message.log or kernel.log

If you can't see any new devices found, then you probably don't have the usb drivers module load, which is why I ask you to search using the find command listed in the previous post to see which usb drivers is available to you.

Since DD-WRT listed they support USB devices, I reckon the drivers are available but not loaded on boot only
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,549
Reaction score
1,302
To assist you better, I have managed to unpack the firmware "dd-wrt.v24-21061_NEWD-2_K2.6_std_usb_nas.bin"

I believe this firmware might be what you are interested in. Below is a list of all the kernel modules found in the firmware
Code:
./lib/modules/2.6.24.111/kernel/drivers/usb/serial/pl2303.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/serial/option.ko
[COLOR="red"]./lib/modules/2.6.24.111/kernel/drivers/usb/serial/sierra.ko[/COLOR]
./lib/modules/2.6.24.111/kernel/drivers/usb/serial/usbserial.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/serial/ftdi_sio.ko
[COLOR="Red"]./lib/modules/2.6.24.111/kernel/drivers/usb/core/usbcore.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/host/ehci-hcd.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/host/uhci-hcd.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/host/ohci-hcd.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/storage/usb-storage.ko[/COLOR]
./lib/modules/2.6.24.111/kernel/drivers/usb/class/cdc-acm.ko
./lib/modules/2.6.24.111/kernel/drivers/usb/class/usblp.ko
./lib/modules/2.6.24.111/kernel/drivers/net/switch/switch-robo.ko
./lib/modules/2.6.24.111/kernel/drivers/net/switch/switch-core.ko
./lib/modules/2.6.24.111/kernel/drivers/net/imq.ko
./lib/modules/2.6.24.111/kernel/drivers/net/bcm57xx/bcm57xx.ko
./lib/modules/2.6.24.111/kernel/drivers/net/pppol2tp.ko
./lib/modules/2.6.24.111/kernel/drivers/scsi/sd_mod.ko
[COLOR="red"]./lib/modules/2.6.24.111/kernel/drivers/scsi/scsi_mod.ko[/COLOR]
./lib/modules/2.6.24.111/kernel/drivers/scsi/scsi_wait_scan.ko
./lib/modules/2.6.24.111/kernel/fs/cifs/cifs.ko
./lib/modules/2.6.24.111/kernel/fs/ext2/ext2.ko
./lib/modules/2.6.24.111/kernel/fs/ext3/ext3.ko
./lib/modules/2.6.24.111/kernel/fs/fuse/fuse.ko
./lib/modules/2.6.24.111/kernel/fs/jbd/jbd.ko
./lib/modules/2.6.24.111/kernel/fs/msdos/msdos.ko
./lib/modules/2.6.24.111/kernel/fs/fat/fat.ko
./lib/modules/2.6.24.111/kernel/fs/xfs/xfs.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_iso8859-1.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_cp936.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_euc-jp.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_base.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_cp932.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_cp950.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_iso8859-2.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_cp437.ko
./lib/modules/2.6.24.111/kernel/fs/nls/nls_utf8.ko
./lib/modules/2.6.24.111/kernel/fs/mbcache.ko
./lib/modules/2.6.24.111/kernel/fs/jffs2/jffs2.ko
./lib/modules/2.6.24.111/kernel/fs/vfat/vfat.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_vlan.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebtable_nat.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebtable_filter.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_snat.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_pkttype.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_dnat.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_mark_m.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebtable_broute.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_ip.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_limit.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_redirect.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebtables.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_arpnat.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_stp.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_arp.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_mark.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_among.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_802_3.ko
./lib/modules/2.6.24.111/kernel/net/bridge/netfilter/ebt_arpreply.ko
./lib/modules/2.6.24.111/kernel/net/netfilter/xt_mark.ko
./lib/modules/2.6.24.111/kernel/net/netfilter/xt_connmark.ko
./lib/modules/2.6.24.111/kernel/net/netfilter/nf_conntrack_pptp.ko
./lib/modules/2.6.24.111/kernel/net/netfilter/xt_mac.ko
./lib/modules/2.6.24.111/kernel/net/netfilter/nf_conntrack_proto_gre.ko
./lib/modules/2.6.24.111/kernel/net/netfilter/nf_conntrack_h323.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/nf_nat_pptp.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/ipt_IMQ.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/ipt_layer7.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/ipt_webstr.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/nf_nat_h323.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/netfilter/ipt_ipp2p.ko
./lib/modules/2.6.24.111/kernel/net/ipv4/etherip.ko
./lib/modules/2.6.24.111/kernel/net/ipv6/sit.ko
./lib/modules/2.6.24.111/kernel/net/ipv6/ipv6.ko
./lib/modules/2.6.24.111/kernel/lib/lzo/lzo_decompress.ko
./lib/modules/2.6.24.111/kernel/lib/lzo/lzo_compress.ko
./lib/modules/2.6.24.111/kernel/lib/lzma/lzma_compress.ko
./lib/modules/2.6.24.111/kernel/lib/lzma/lzma_decompress.ko

The above highlighted entries should be what is required to read a CDROM via USB. You might just wanna test things out. :) That's the fun of it, isn't it ?
 

forests_gump

Banned
Joined
Jan 1, 2000
Messages
15,651
Reaction score
5,973
Davidktw, thks for the effort in helping. I was offline, only now saw your respond.

it seems those highlighted entries are to support USB (am i right)?
I read somewhere USB is only half the picture, the other half is CDROM support.

I heard need these: cdrom, isofs and sr_mod to load in kernel .

Curently my router is found CDROM in /proc/scsi/scsi & in dmesg.

I read somewhere i need to install sr_mod, before it can appear scd0, and use cdrom.

I wonder who has sr_mod, and whatelse i need to load kernel (isofs,etc)?
which distro works for DDWRT K2.6
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,549
Reaction score
1,302
Davidktw, thks for the effort in helping. I was offline, only now saw your respond.

it seems those highlighted entries are to support USB (am i right)?
I read somewhere USB is only half the picture, the other half is CDROM support.

I heard need these: cdrom, isofs and sr_mod to load in kernel .

Curently my router is found CDROM in /proc/scsi/scsi & in dmesg.

I read somewhere i need to install sr_mod, before it can appear scd0, and use cdrom.

I wonder who has sr_mod, and whatelse i need to load kernel (isofs,etc)?
which distro works for DDWRT K2.6

I guess I can only help this much, I don't have a working DDWRT router anymore to help you find out more. I suppose worse come to worst, you might need to cross compile if you want extra modules on the DDWRT
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top