Tomato ND USB Mod


Hello -- I am trying to get my HP LJ M1319f MFP to work with SANE backend.

I have installed the following: libusb, libtiff, libjpeg, libpng, libieee1284, xinetd, sane-backends, and made the required changes in /opt/etc/sane.d/saned.conf (so that all clients can access) and for the service in /opt/etc/xinetd.d/saned.

Output of sane-find-scanner is:
found USB scanner (vendor=0x03f0, product=0x5817) at libusb:001:002

Output of scanimage -L is: No scanners were identified.

In /opt/etc/sane.d/hp.conf, I added
# HP LaserJet M1319f MFP
usb 0x03f0 0x5817
and ran xinetd.reload. That does not help.

As I was browsing around, I found the following page:
http://www.sane-project.org/lists/sane-backends-external.html
which points to HPLIP (http://hplipopensource.com/hplip-web/install_wizard/index.html) and shows several HP scanners as being supported.

Any help around which HPLIP distribution to use, and how to go about installing it would be very appreciated. Thanks.
 
Now I wonder where you're looking for these shares...
Here's your automatic share:
Code:
[sda1]
 path = /tmp/mnt/sda1
 comment = sda1
 writable = yes
 delete readonly = yes
 force user = root
So everything's fine on the router end - your share is getting created. You should see it from your Windows clients.

Oh... I thought that I would see the automatic shares listed with the other two shares (root$ and share) under the "Network Shares List" in Tomato. Is this not the case, or would it (the automatic share) be visible/evident only from my Windows clients? :confused:
 
I have a WRT54GL that I've used various firmwares in over the years. Tried Teddy Bear mod in some WL-520gu's and RT-N12's, and love the wireless connectivity plus the # of connections in this one.

Then, I put tomato-K26-1.27.9045MIPSR1-beta11-Std, on, and so far, so good. Figured I would play around with the vpn version, and I get "mtd will not fit", error when I try to load it via the gui upgrade interface. Router is not adversely affected. 4mb memory limit, I assume.

Is there an opportunity to have a Teddy Bear vpn version fit my WRT54GL (like tomato-K26-1.27.9045MIPSR1-beta11-vpn3.6)? Or am I missing something in my reading.
 
2. If you specify certain mountpoints in the fstab, you have to create these directories. Alternative approach is to leave it all to the default handling - for example, if you label your partition "ftp", it will be auto-mounted on /mnt/ftp (and /mnt/ftp directory will be auto-created as needed) without a need to use fstab entries.
In most cases "fstab" approach is only needed if you want to mount your partition to an existing directory outside of /mnt, i.e. /opt or /mmc.
3. To find out whether or not there's an issue with labels displayed for swap partitions, post the output of "blkid" command with your drive attached. Also, ~1GB is a lot for a swap... For RT-N16 (which already has 128MB RAM) 256MB should be enough.

Thanks for your response. Here's the output of blkid:
/dev/sda2: UUID="94e2599e-429e-40a9-8ee0-30b267ef00d2"
/dev/sda1: LABEL="My Book" UUID="08A2-AD16"
/dev/sda4: LABEL="disk" UUID="a7813d01-f223-4cc5-999e-44a5a0447273"
/dev/sda3: LABEL="ftp" UUID="65599531-0a41-4bf8-80d6-84070a548411"

After seeing your response, I have removed the mkdir /mnt/... commands in the init script. I have also removed two lines from /etc/fstab which corresponded to disk and ftp. All partitions still mount correctly and I can access from Windows.

Questions:
1. Is there a utility which only sets the label of a partition? I ended up re-running mke2fs with -L option.
2. How do I set the label for the swap partition? I used mkswap -L swap /dev/sda1 but that does not seem to set the label.
 
1. Is there a utility which only sets the label of a partition? I ended up re-running mke2fs with -L option.

You can use tune2fs, a precompiled version of which is on my utilities web site. -L is also used to set the volume label, and does not require the media to be dismounted.

2. How do I set the label for the swap partition? I used mkswap -L swap /dev/sda1 but that does not seem to set the label.

What is the output from "tune2fs -l /dev/sda1"?

Rodney
 
Figured I would play around with the vpn version, and I get "mtd will not fit", error when I try to load it via the gui upgrade interface.
That's strange because I was able to flash Asus wl-520gu (which also has 4MB flash) with tomato-K26-1.27.9045MIPSR1-beta11-vpn3.6.trx. Not sure why it doesn't fit onto WRT54GL...

1. Is there a utility which only sets the label of a partition?
2. How do I set the label for the swap partition? I used mkswap -L swap /dev/sda1 but that does not seem to set the label.
1. As Rodney suggested, you can use a separate tune2fs utility. It's not included in the firmware because of the size.
2. Actually, "mkswap -L" works correctly. The problem turns out to be that the Busybox' functions to read the label from a swap partition don't work correctly if that partition was previously formatted as FAT. Tomato GUI uses Busybox' functions too - that's why you see the old label in blkid output as well as in the GUI. I'll fix it in the next build. In the meantime, as a workaround you can reformat your swap partition as Ext2/Etx3, and then convert it to swap again using "mkswap -L <LBL>". That should fix it.
 
You can use tune2fs, a precompiled version of which is on my utilities web site. -L is also used to set the volume label, and does not require the media to be dismounted. What is the output from "tune2fs -l /dev/sda1"?

Thanks rhester72. I downloaded tune2fs from your website and could set the label on opt without unmounting the media.

1. As Rodney suggested, you can use a separate tune2fs utility. It's not included in the firmware because of the size.
2. Actually, "mkswap -L" works correctly. The problem turns out to be that the Busybox' functions to read the label from a swap partition don't work correctly if that partition was previously formatted as FAT. Tomato GUI uses Busybox' functions too - that's why you see the old label in blkid output as well as in the GUI. I'll fix it in the next build. In the meantime, as a workaround you can reformat your swap partition as Ext2/Etx3, and then convert it to swap again using "mkswap -L <LBL>". That should fix it.

Thanks teddy_bear. formatting using mke2fs and then mkswap -L worked perfectly. Here's the current output of blkid.
/dev/sda4: LABEL="disk" UUID="a7813d01-f223-4cc5-999e-44a5a0447273"
/dev/sda3: LABEL="ftp" UUID="65599531-0a41-4bf8-80d6-84070a548411"
/dev/sda2: LABEL="opt" UUID="94e2599e-429e-40a9-8ee0-30b267ef00d2"
/dev/sda1: LABEL="swap"
 
That's strange because I was able to flash Asus wl-520gu (which also has 4MB flash) with tomato-K26-1.27.9045MIPSR1-beta11-vpn3.6.trx. Not sure why it doesn't fit onto WRT54GL...

cat /proc/mtd on my wrt54gl shows the size of the firmware partition to be 3b0000 in hex which is 3866624 bytes. The size of that K26 image is 3907584 bytes which is larger than the firmware partition. So I guess that's why it wouldn't fit. I had a similar issue trying to flash the K26 Light USB version on my dir320 too. After taking out the binaries I didn't need like pppd and pppoecd using the Firmware Modification Kit I managed to make it fit though.
 
I have WRT54GL with Tomato 1.27 installed. I have never played around with Tomato mods and this one seems to be a good fit with good reviews. I do not need USB since my router doesn't have one, but interested in the Speedmod.

Will I be able to install this mod on top of Tomato 1.27 and retails all my settings? Just curious if this would be treated as an upgrade or new install where the nvram has to be cleared.

Can you please confirm that tomato-ND-1.27.8745-Std.rar has SPeedmod and all features mentioned in the first post? I dont need USB, VPN or extra.

thanks
 
I would just like to know: what is the maximum transfer rate you get with the USB memory access? I have a ASUS WL-500gP V2 and a HDD via USB connected. Maximum rate via Samba is 2.5MB/s. not bad, but I would like to reach at least 7 or 8. Any advise?
Edit: just read it could be due to the NTFS format. FAT32 should give higher rates.
 
I have the 1.27 build of Tomato (Teddy Bear Mod [Lite]) installed on my Asus 520 GU. Everything is working great, except....I have a Lexmark printer (6100 series) that I cannot get to play nice with this configuration. I see the printer listed in the Tomato UI, but printing fails.

When I connect a different printer (Canon), all is fine.

Are there printers that are incompatible with this setup? I searched, but haven't come up with anything.

Thanks for any advice.
 
I would just like to know: what is the maximum transfer rate you get with the USB memory access? I have a ASUS WL-500gP V2 and a HDD via USB connected. Maximum rate via Samba is 2.5MB/s. not bad, but I would like to reach at least 7 or 8. Any advise?
Edit: just read it could be due to the NTFS format. FAT32 should give higher rates.
I've got a 500gpv2 too. 4MB/s is the maximum speed the CPU can deliver. If you want 7 or 8MB/s, get an Asus rtn16.
 
Are there printers that are incompatible with this setup?
Sure, there are... The firmware only includes generic printer driver (which most printers work with) but - but some printers require special drivers to work on Linux. I don't know specifically about Lexmark 6100 though...

trueman,
You should be able to retain your settings from vanilla Tomato 1.27. However, in case of any issues the first troubleshooting step will still be clearing the nvram and manual reconfiguration.
 
Thank You!

I did end up reconfiguring which I think is the better way in this case - for eg, when I retained the original settings, and max number of connections was still at 4096. Everything is good now. I noticed that the webpages open up faster than before. I am using the "no usb" firmware.
 
Ext3 partition sharing issue

I've been using the Teddy Bear mod (latest firmware) on my Asus 520gu for quite some time. Last night I decided to reformat my HDD from Fat32 to (Ext3 & NTFS). My partitions are as follows:

Seagate 1tb external usb drive
/dev/sdb1 ext3 /media/movies movies 930 gib
/dev/sdb2 ntfs /media/windows windows 1.85 gib
/dev/sdb3 linux-swap 102 mib

I am able to mount the partitions in tomato. I can access the files in the ntfs partition, but NOT the ext3 partition. I can access the ext3 partition on my Ubuntu machine with the following command:

sudo chown -R username:username /media/movies

If I mount the HDD on the Asus router and try to access the ext3 partiton from the Ubuntu machine, it says I don't have permission to access the file. I'm assuming I need a script in
Administration>Scripts>Init
but can't find a script that will allow me to access my ext3 partition. Do I need "optware" or any other plugin in order for me to access my ext3 partition?

I tried chown on tomato, but it doesn't recognize it. I've see some people use chmod. I read some threads on the Ubuntu forums and someone suggested opening up a terminal and typing gksu nautilus, then right click on the movies folder and click on the "permissions" tab and change the permission on user and group, but that didn't work.

I've done a lot of reading and research on this forum & google, but can't find the answer. Can someone please help me get on the right track. Any help is much appreciated.
 
Hi everyone,

I was trying to install an OpenVPN version of Tomato on my WRT54-GL. As far as I can tell, Teddy Bears mod seems to be the best out there, but the VPN edition is overkill for my router (has no USB). I wouldn't care, except that upgrading from the "no usb" edition complains that the VPN firmware is too big to flash.

Anyone else experience this and possibly have a solution?

Thanks!
 
daemon.err smbd[3092]

Several times a day, the following error shows up in the log file:

daemon.err smbd[3092]: smb_pwd_check_ntlmv1: incorrect password length (74)

Is this something that I need to be concerned with? Everything seems to be working fine...
 
CBC888,
Are you using the "No Authentication" mode for Samba file sharing? If everything works, I wouldn't worry about it for now - but I probably know why it's happening... There's some minor incompatibility of Samba "share" mode with NTLM implementation in Vista and Win7 - the default authentication method fails, and Samba fails over to another one which then succeeds. Not a problem besides some annoying log messages. But there's a workaround (not using the "share" mode even for no-password access) - I may try it in the next update.
 

Back
Top