wrt350n kmod-usb-core not installing properly?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
daniel53
DD-WRT Novice


Joined: 17 Aug 2007
Posts: 5

PostPosted: Fri Aug 17, 2007 8:30    Post subject: wrt350n kmod-usb-core not installing properly? Reply with quote
Hey everyone, I'm slightly new here but I've been doing a ton of reading. Anyway, I went out and got a v1 wrt350n router.... I flashed it to the latest dd-wrt v24 beta (0816).

I enabled the JFFS2 option in the web gui, and also typed these commands in to my ssh window:

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

~ # 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/scsi_mod.o
~ # insmod /jffs/lib/modules/2.4.30/usb-storage.o
~ # insmod /jffs/lib/modules/2.4.30/fat.o
~ # insmod /jffs/lib/modules/2.4.30/vfat.o

I also created the usb.startup and all that stuff...

So I want to get the USB port to work as a print server for now. I have seen this guide http://www.dd-wrt.com/wiki/index.php/Printer_Sharing to set that up, however, when i try to do ipkg install kmod-usb-printer, i get this output:

~ # ipkg install kmod-usb-printer
ipkg_depends: Warning: kernel mentioned in dependency but no package found in /jffs/usr/lib/ipkg/lists
ipkg_depends: Warning: kernel mentioned in dependency but no package found in /jffs/usr/lib/ipkg/lists

Downloading http://downloads.openwrt.org/whiterussian/packages/kmod-usb-core_2.4.30-brcm-5_mipsel.ipk ...
Connecting to downloads.openwrt.org [195.56.146.238:80]
Done.
ipkg_depends: Warning: kernel mentioned in dependency but no package found in /jffs/usr/lib/ipkg/lists
Unpacking kmod-usb-core...Done.
Configuring kmod-usb-core...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/kmod-usb-printer_2.4.30-brcm-5_mipsel.ipk ...
Connecting to downloads.openwrt.org [195.56.146.238:80]
Done.
ipkg_depends: Warning: kernel mentioned in dependency but no package found in /jffs/usr/lib/ipkg/lists
ipkg_depends: Warning: kernel mentioned in dependency but no package found in /jffs/usr/lib/ipkg/lists
ipkg_install_file: ERROR: kmod-usb-printer depends on the following uninstalled programs:
kmod-usb-core
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/kmod-usb-printer_2.4.30-brcm-5_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installation
~ #


So it tries to install the kmod-usb-core, says it installs it, then goes on to install the printer one, and then breaks because it says it is dependent on kmod-usb-core, which was just installed! I tried installing kmod-usb-core separately, and i still got the same thing when i tried to install kmod-usb-printer. It's like it tries to install it, says it is installed, but is no where to be found?

Any help would be much appreciated!

Thanks
Daniel
Sponsor
Rekoil
DD-WRT User


Joined: 13 Jun 2007
Posts: 234

PostPosted: Fri Aug 17, 2007 12:01    Post subject: Reply with quote
Follow the link in my signature for an image with all that enabled already Wink
_________________
Asus RT-AC66U - DD-WRT build 23083
daniel53
DD-WRT Novice


Joined: 17 Aug 2007
Posts: 5

PostPosted: Fri Aug 17, 2007 18:04    Post subject: Reply with quote
hey Rekoil, I was actually using your 0810 build....but whenever I tried to install kmod-usb-printer, it gave me the same output. Also, I still have to follow the same steps to enable the jffs is that correct?

thanks
daniel53
DD-WRT Novice


Joined: 17 Aug 2007
Posts: 5

PostPosted: Fri Aug 17, 2007 18:10    Post subject: Reply with quote
also, my /opt directory is completely empty....is that right?
Rekoil
DD-WRT User


Joined: 13 Jun 2007
Posts: 234

PostPosted: Sat Aug 18, 2007 4:12    Post subject: Reply with quote
/opt should be empty till you've mounted the drive and installed the Optware scripts.

And my build includes kmod-usb-printer already so no need to fiddle.

_________________
Asus RT-AC66U - DD-WRT build 23083
HowardZ
DD-WRT Guru


Joined: 18 Jun 2007
Posts: 706
Location: Maryland

PostPosted: Sat Aug 18, 2007 13:05    Post subject: Reply with quote
try installing options with the "-force-depends" option.

The other method for installing packages is a script to just extract the files from it.
You edit the script and type in the full package names.
Of course you can change the script to work in a different directory - since /tmp is just in memory.

#!/bin/sh

# howto use
# cd /tmp/
# wget http://pastebin.ca/raw/xxxxxx -O - | tr -d '\r' > /tmp/unpack-ipkg.sh
# sh /tmp/unpack-ipkg.sh

# if the packages_url or the packages have changed change them here:
packages_url="http://downloads.openwrt.org/whiterussian/newest/packages/"
packages=" \
kmod-usb-uhci_2.4.30-brcm-5_mipsel.ipk \
kmod-usb-core_2.4.30-brcm-5_mipsel.ipk \
kmod-usb2_2.4.30-brcm-5_mipsel.ipk \
kmod-usb-storage_2.4.30-brcm-5_mipsel.ipk \
kmod-ext2_2.4.30-brcm-5_mipsel.ipk \
kmod-ext3_2.4.30-brcm-5_mipsel.ipk \
"

# #########################################################
#
# don't change things below this point
#
# #########################################################

rm -rf /tmp/*.ipk
rm -rf /tmp/unpacked/
mkdir -p /tmp/unpacked/
cd /tmp/unpacked/

echo "downloading and unpacking kernel modules required for ext2/ext3 and usb..."
echo

index=0
for package in $packages; do
echo `expr $index + 1`: $package
wget -q -P /tmp/ $packages_url$package
tar zxf /tmp/$package
tar zxf /tmp/unpacked/data.tar.gz
index=`expr $index + 1`
done

rm /tmp/unpacked/ \
control.tar.gz \
data.tar.gz \
debian-binary
rm -rf /tmp/*.ipk

echo
echo "finished. modules unpacked to /tmp/unpacked/lib/modules/2.4.30/"
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum