|
Title: How to load modules Post by: jrs on March 05, 2006, 02:04:42 AM Noob Question:
I'm trying to active the USB ports on dd-wrt v23sp1 060303. I've basically followed Macsat's fine tutorial on activating USB in OpenWRT, with a couple of differences -- 1. the modules file is not at /etc/modules, rather they're at /jffs/etc/modules.d/ 2. 'logread -f' fails but 'more /var/log/messages' has the system log. But when reading the log and the output of dmesg, I get no mention of USB anywhere. I'd very much appreciate it someone could point me in the right direction. js At loading with insmod I get the following error: /jffs/etc/modules.d # ls -l -rw-r--r-- 1 root root 9 Nov 23 21:41 30-ext3 -rw-r--r-- 1 root root 9 Nov 23 21:41 30-vfat -rw-r--r-- 1 root root 8 Nov 23 21:41 50-usb-core -rw-r--r-- 1 root root 8 Nov 23 21:41 60-usb-printer -rw-r--r-- 1 root root 28 Nov 23 21:41 60-usb-storage -rw-r--r-- 1 root root 5 Nov 23 21:41 60-usb-uhci -rw-r--r-- 1 root root 9 Nov 23 21:41 60-usb2 /jffs/etc/modules.d # insmod 30-ext3 Using 30-ext3 insmod: error reading ELF header: Success insmod: Could not load the module: Success (Same error with the others.) Title: Re: How to load modules Post by: macsat on March 05, 2006, 09:55:35 AM As far as I know there is no support for USB in DD-WRT.
As it is build on OpenWrt I guess it SHOULD be possible to do what you try, but are you sure you are getting the modules loaded correct with insmod? Title: Re: How to load modules Post by: jrs on March 11, 2006, 22:31:50 PM There is a wiki on it...
http://wrt-wiki.bsr-clan.de/index.php?title=Ipkg Using the 11 March DD-WRT build. Still no dice. Anyone have any ipkgs installed on DD-WRT? Code: /jffs/etc/modules.d # uname -a Linux 2.4.33-pre2 #520 Sat Mar 11 00:45:02 UTC 2006 mips unknown /jffs/etc/modules.d # ls -l -rw-r--r-- 1 root root 8 Nov 23 21:41 50-usb-core -rw-r--r-- 1 root root 8 Nov 23 21:41 60-usb-printer -rw-r--r-- 1 root root 28 Nov 23 21:41 60-usb-storage -rw-r--r-- 1 root root 5 Nov 23 21:41 60-usb-uhci -rw-r--r-- 1 root root 9 Nov 23 21:41 60-usb2 /jffs/etc/modules.d # insmod 50-usb-core Using 50-usb-core insmod: error reading ELF header: Success insmod: Could not load the module: Success /jffs/etc/modules.d # ipkg status Package: kmod-usb-core Status: install ok installed Root: /jffs Version: 2.4.30-brcm-2 Package: kmod-usb2 Status: install ok installed Root: /jffs Version: 2.4.30-brcm-2 Package: kmod-usb-storage Status: install ok installed Root: /jffs Version: 2.4.30-brcm-2 Package: kmod-usb-printer Status: install ok installed Root: /jffs Version: 2.4.30-brcm-2 Package: kmod-usb-uhci Status: install ok installed Root: /jffs Version: 2.4.30-brcm-2 load "*",8,1 Title: Re: How to load modules Post by: Neo-oeN on November 07, 2006, 19:05:11 PM I have asus router 500gp with DD-WRT v23 SP2 (09/15/06) std. I managed to activate usb ports and printing.
But now I have problem with starting modules and printing deamon. Everytime when i reboot my router i have to start modules and printing deamon. I tried with this tutorial http://www.dd-wrt.com/wiki/index.php/USB#Installation (http://www.dd-wrt.com/wiki/index.php/USB#Installation) but it didn't work. This is how i activate usb ports and printing: 1.You have to enable jffs: Code: nvram set jffs_mounted=1 nvram set enable_jffs2=1 nvram set sys_enable_jffs2=1 nvram set clean_jffs2=1 nvram set sys_clean_jffs2=1 nvram commit reboot 2.Installing USB drivers: Code: ipkg update ipkg install kmod-usb-core ipkg install kmod-usb2 ipkg install kmod-usb-storage ipkg install kmod-usb-printer ipkg install kmod-usb-uhci 3.Load modules: Code: insmod /jffs/lib/modules/2.4.30/usbcore.o insmod /jffs/lib/modules/2.4.30/ehci-hcd.o insmod /jffs/lib/modules/2.4.30/uhci.o insmod /jffs/lib/modules/2.4.30/scsi_mod.o insmod /jffs/lib/modules/2.4.30/sd_mod.o insmod /jffs/lib/modules/2.4.30/sg.o insmod /jffs/lib/modules/2.4.30/usb-storage.o insmod /jffs/lib/modules/2.4.30/printer.o 4. Installing and starting printer server: Code: ipkg install p910nd Than you have to go to folder Code: /jffs/etc/init.d and changed path in file S70p910ndfrom Code: DEFAULT=/etc/default/p910nd toCode: DEFAULT=/jffs/etc/default/p910nd and than you can start deamon withCode: /jffs/etc/init.d/S70p910nd start if you see Code: p9100d -b -f /dev/usb/lp0 0 when you do command "ps" deamon is working.Oleg printin guide http://oleg.wl500g.info/printing/ (http://oleg.wl500g.info/printing/) Title: Re: How to load modules Post by: Neo-oeN on November 07, 2006, 22:45:29 PM I found solution for my problem. http://www.dd-wrt.com/wiki/index.php/User_talk:Oxo#.2Fjffs.2Fetc.2Fconfig.2F.2A.startup (http://www.dd-wrt.com/wiki/index.php/User_talk:Oxo#.2Fjffs.2Fetc.2Fconfig.2F.2A.startup)
v23 starts executable files in /jffs/etc/config/*.startup /jffs/etc/config/S10modules.startup ipkg sometimes make modules.d files: like for USB. So make the following to insmod these modules Code: #!/bin/sh for module in $(cat /jffs/etc/modules.d/*);do /sbin/insmod /jffs/lib/modules/2.4.30/$module.o done /jffs/etc/config/S90init.startup ipkg sometimes make init.d files Code: #!/bin/sh $(/jffs/etc/init.d/S* start) The problem was that my startup scripts didn't have permission to execute. So i changed permission. Sorry for my english.
Powered by SMF 1.1.7 |
SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |