Kong Mod Update build 17462

71 posts / 0 new
Last post
Kong
Kong's picture
Kong Mod Update build 17462

Here is a new build based on dd-wrt 17462.

Update 08/22/11:

-fix mount to opt/jffs

Update 08/19/11:

-improve directory selection for proftpd to work with automount and multiple partitions

-remove /dev from samba dir selection

 

Changes:

-include latest broadcom wireless driver

-update minidlna to 1.0.21

-new gui options to be able to control partition mounting

Fixes:

-fix broken automounting

 

Automounting in my build is supposed to work this way:

1. Mount all partitions in subdirs of /mnt, e.g. /mnt/disc0_part1 /mnt/disc0_part2/mnt/disc1_part1 ...

2. In the gui you will find new fields, that allow you to specify certain partitions to be mounted to a fixed mountpoint. To do this, attach your drive and note down the UUID which is displayed under Disk Info, now enter the UUID in the appropriate field. (In case you don't see the uuid you can logon via ssh etc. and run command blkid which will output partitions and the uuids

The specified partition will now be mounted to /opt or /jffs.

Let me know if it works as intended + suggestions to further improve this.

 

Kong Mod Info: http://www.myopenrouter.com/article/23842/DD-WRT-Kong-Mod-Info/

Kong-Mod-USB-FTP-SAMBA3-DLNA

MD5SUM: d510126ec23ee8e1b34c20b463eb8d74

Kong-Mod-USB-FTP-SAMBA3-OPENVPN

MD5SUM: 45e8d302667aca9838dfb2b31e7b601f

Kong
Kong's picture
Should be working in a few

Should be working in a few seconds

Lewy
Lewy's picture
Kong, Thanks for your

Kong, Thanks for your exellent builds. Recently I changed to Tomato because I wanted Asterisk (preferably with a GUI) and there's a easy script for Tomato to install Optware with the above at xtremecoders, however I had countless problems and couldn't get it working. I want to go back to your builds but would like to clarify that QOS by IP address or MAC works well, since recently I've had VOIP problems and could only get around it with the Tomato bandwidth limiter. Also curious if anyone has had success with Asterisk (+ GUI) and if they can give instructions.
Thanks

Kong
Kong's picture
Have you tried one of the dd

Have you tried one of the dd-wrt voip builds with included asterisk?

I have to tesk QOS with MAC etc. last time I tested I only used a simple config.

Kong
Kong's picture
I just tested proftpd, it

I just tested proftpd, it displays the contents of /mnt as configured. If you have multiple partitions they should all show up under /mnt, the samba selection field however display subdirs. But you are right this is not consistent, actually I'd say both samba and proftpd should give you the choice if you want :

/mnt
/mnt/disk0_part1
/mnt/disk1_part1

So as you can see the whole mounting directory selection currently is a mess. But to improve this further it is always good to get some feedback in order to work something out. The code for the mounting logic looks horrible right now and I did a bit of hacking to at least make it work, but it needs some cleanup.

There is no gui option yet for sd-idle, you have to use the command field under Administration->Commands or probably better run-on-mount script to call sd-idle for now.

Wiviz is probably broken due to the new drivers, unless this gets fixed in the precompiled driver I can't do anything about it.

The drivers USBIP ships for the kernel we use in the broadcom builds are too buggy I created a test build and tried to connect to a simple usb device, but it didn't work very well, I guess this is why BS only enables USBIP with all the devices that can use one of the latest kernels were usbip drivers are already in staging section. Therefore you won't see USBIP in broadcom builds unless the kernel gets an update.

Lewy
Lewy's picture
As far as I know the dd-wrt

As far as I know the dd-wrt doesn't have asterisk (not sure what it does have) as shown here http://dd-wrt.com/wiki/index.php/What_is_DD-WRT%3F#Which_V24_build_do_I_....
Even the Mega version has a watered down older version. From hours of reading my impression is that nobody uses it. Anyway, I believe that the WNR3500L can get bricked from the Mega version, (from dd-wrt wiki).
I'll wait to hear what you say about the QOS by mac address.
Thanks!

Kong
Kong's picture
No dd-wrt does have asterisk

No dd-wrt does have asterisk in its voip build, I just created a build last week which included it, but since it is too big to fit in my builds for a wnr3500l I haven't made it public, but you can try:

ftp://ftp.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2011/06-14-11-r17...

Lewy
Lewy's picture
Thanks for the info.

Thanks for the info.

Kong
Kong's picture
OK just updated my builds,

OK just updated my builds, you should be able to select all of the mounted partitions now under proftpd, also fixed the code to not display /dev in samba's path selection

Kong
Kong's picture
Works here,

Works here,

how does your smb.conf look like under /tmp/smb.conf

Kong
Kong's picture
Hi Fred,

Hi Fred,

the previous build used an older wireless driver. Since a couple of users reported bad signal with these drivers I upgraded them to see if this helps.

Make sure you don't set TX Power higher than 40mW.

Pretty much all those problems always are wireless client dependent. I have two wireless intel cards and I haven't seen a problem with previous and current wireless drivers. Some wireless cards also have the ability to adjust TX Power on their side to save power, this can also cause trouble. Ah and before forget, don't trust the display in dd-wrts wireless status view. It does not report correct values in mixed mode if there are multiple clients connected.

@kt,

Looks fine to me, the problem must be somewhere else. I have tested two partitions ext2,vfat with public and secured share, works just fine.

What does command:

mount

give you?

Kong
Kong's picture
Ah okay so you did setup

Ah okay so you did setup users?
But your smb.conf says you have two public shares with no users and therefore no login is required.

You may have to delete your current shares and users and configure them again.

scififan68
scififan68's picture
Well I'm still getting 22%

Well I'm still getting 22% signal with your newest firmware, now I'm 100% sure its a hardware issue. Because my $40 Dlink gets better range! Still I can't wait to try this firmware on a different 3500L.

dasteg
dasteg's picture
i upgraded to build 17462

i upgraded to build 17462 today on my wnr3500l. as soon as i change the ip address of the router it is not accessible anymore via web. can't even ping it.

anyone have a clue why this happens ? (i configured my local ip correctly :) no worries about that).

after a 30-30-30 reset i can access 192.168.1.1 again.

dasteg
dasteg's picture
yes i did press apply. its

yes i did press apply. its not the first time i flash the router. on the updates before all worked fine. now i cant change the ip for whatever reason.

btw the 30-30-30 works for me. after that everything is reset and i can connect again to web gui.

EDIT:

after some tests it seems to be caused by "disabling wan". per default its set to "automatic dhcp". but since i use another router for dial up this one is just for internal stuff. so i disabled wan. after that the web gui isnt accessible anymore and the device stops responding to ping. in previous releases there was no issue with that.

ReDaLeRt
ReDaLeRt's picture
Hi,

Hi,

The automount is not working. I put the UUID for /opt and does nothing.

# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /tmp/mnt/disc0_part2 type ext3 (rw,data=ordered)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_part3 type ext3 (rw,data=ordered)

RT-N16, with OTRW.

Please, revert to the old method. This is messing with the OTRW config.

Kong
Kong's picture
@ReDaLeRt,

@ReDaLeRt,

what is the output of:

disktype /dev/discs/disc0/disc

and

nvram show | grep usb_mnt

@dasteq, I think there is already a bug report for that (disable wan, bricks router) in trac.

@kt

on the wnr3500l a reset is done by holding the reset button powering on and hold it 30s, after releasing it, cfe starts erasing nvram. You can watch that if you are connected via USB-TTL

Kong
Kong's picture
@kt

@kt

what does output:

nvram get samba3_shares

give you?

Kong
Kong's picture
@kt,

@kt,

now I see it:-)

For both shares you set the public attribute. You have to uncheck public from JFFS-rtn16.

eTaurus
eTaurus's picture
 

 

Kong said: @ReDaLeRt, what is the output of:

disktype /dev/discs/disc0/disc

and

nvram show | grep usb_mnt

@dasteq, I think there is already a bug report for that (disable wan, bricks router) in trac. @kt on the wnr3500l a reset is done by holding the reset button powering on and hold it 30s, after releasing it, cfe starts erasing nvram. You can watch that if you are connected via USB-TTL

 

Hi Kong,

mounting to /opt isn't working. Output of

disktype /dev/discs/disc0/disc

 

--- /dev/discs/disc0/disc
Block device, size 931.5 GiB (1000204886016 bytes)
DOS/MBR partition map
Partition 1: 1.003 GiB (1077477376 bytes, 2104448 sectors from 63)
  Type 0x83 (Linux)
  Ext3 file system
    Volume name "Optware"
    UUID 34C10774-B975-49AE-BBA2-62A78ACD686A (DCE, v4)
    Volume size 1.003 GiB (1077477376 bytes, 263056 blocks of 4 KiB)
Partition 2: 125.5 MiB (131596288 bytes, 257024 sectors from 2104515)
  Type 0x82 (Linux swap / Solaris)
  Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
    Swap size 125.5 MiB (131596288 bytes, 32128 pages of 4 KiB)
Partition 3: 930.4 GiB (998991986688 bytes, 1951156224 sectors from 2367488)
  Type 0x83 (Linux)
  Ext3 file system
    Volume name "Lagerhalle"
    UUID F4A29634-9C89-83C2-3344-13108EA6DD2A (NCS)
    Volume size 930.4 GiB (998991986688 bytes, 243894528 blocks of 4 KiB)

Output of

nvram show | grep usb_mnt

usb_mntpoint=opt
usb_mntopt=34C10774-B975-49AE-BBA2-62A78ACD686A
usb_mntjffs=
size: 22704 bytes (10064 left)

but

mount

says this:

rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/mnt/disc0_part1 type ext3 (rw,data=ordered)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_part3 type ext3 (rw,data=ordered)

Thank you for helping getting my Optware back!Wink

eTaurus

Dark_Shadow
Dark_Shadow's picture
Same here as Red and et

Same here as Red and et

root@RT-N16:~# disktype /dev/discs/disc0/disc

--- /dev/discs/disc0/disc
Block device, size 1.819 TiB (1999696297984 bytes)
DOS/MBR partition map
Partition 1: 1.003 GiB (1077479424 bytes, 2104452 sectors from 63)
Type 0x83 (Linux)
Ext3 file system
Volume name "OPTWARE"
UUID E999F846-B256-4B62-BB94-4FEF8A8F87A7 (DCE, v4)
Volume size 1.003 GiB (1077477376 bytes, 263056 blocks of 4 KiB)
Partition 2: 133.4 MiB (139829760 bytes, 273105 sectors from 2104515)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 133.3 MiB (139821056 bytes, 34136 pages of 4 KiB)
Partition 3: 509.9 MiB (534643200 bytes, 1044225 sectors from 2377620)
Type 0x83 (Linux)
Ext3 file system
Volume name "JFFS"
UUID 93760C48-0B2E-4C1B-B4A5-22E21EF7BC88 (DCE, v4)
Volume size 509.9 MiB (534642688 bytes, 522112 blocks of 1 KiB)
Partition 4: 1.817 TiB (1997936962560 bytes, 3902220630 sectors from 3421845)
Type 0x83 (Linux)
Ext3 file system
Volume name "DATA1"
UUID 7761DF02-93B8-446B-92B9-486CA4F4C932 (DCE, v4)
Volume size 1.817 TiB (1997936959488 bytes, 487777578 blocks of 4 KiB)

root@RT-N16:~# nvram show | grep usb_mnt
usb_mntpoint=opt
usb_mntopt=E999F846-B256-4B62-BB94-4FEF8A8F87A7
usb_mntjffs=93760C48-0B2E-4C1B-B4A5-22E21EF7BC88
size: 29873 bytes (2895 left)
root@RT-N16:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /tmp/mnt/disc0_part1 type ext3 (rw,data=ordered)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_part3 type ext3 (rw,data=ordered)
root@RT-N16:~#

Kong
Kong's picture
Hmmm maybe it has something

Hmmm maybe it has something to do with the swap partition.
If you guys call the mount script:

sh /etc/config/kmount.sh

Is the drive mounted to /opt now or any error message when executing?

eTaurus
eTaurus's picture
Hi Kong,

Hi Kong,
nothing happens when executing the command. No error message, nothing. What should happen?
Btw, wireless performance is awesome now!

Kong
Kong's picture
The mount script does the

The mount script does the following:

1. executes: blkid
blkid should print the uuids for each partition

2. the script gets the device path from the blkid dump

3. now it checks the filesystem, by calling: disktype

4. it should mount this partition , mounting obviously works, since it is already mounted under /tmp/mnt/...

If this script does not work for you guys, then either blkid does not work, or the grep afterwards. If you look at the script you can see what it does.

Therefor run each command and check what happens:

1. blkid > /tmp/blkid.dump
2. fgrep -vi 34C10774-B975-49AE-BBA2-62A78ACD686A /tmp/blkid | cut -d: -f1
3. disktype "output from step 2"

eTaurus
eTaurus's picture
After running command 1,

After running command 1, nothing happens on the screen (although some file may get written on the router), command 2 is giving

/dev/scsi/host5/bus0/target0/lun0/part1
/dev/scsi/host5/bus0/target0/lun0/part2
/dev/scsi/host5/bus0/target0/lun0/part3

after adding .dump behind blkid in command 2 (mistake in your posted command).

Then disktype /dev/scsi/host5/bus0/target0/lun0/part1

--- /dev/scsi/host5/bus0/target0/lun0/part1
Block device, size 1.003 GiB (1077477376 bytes)
Ext3 file system
Volume name "Optware"
UUID 34C10774-B975-49AE-BBA2-62A78ACD686A (DCE, v4)
Volume size 1.003 GiB (1077477376 bytes, 263056 blocks of 4 KiB)

But what does the mounting?

Kong
Kong's picture
Ehhhm, command 2 outputs all

Ehhhm, command 2 outputs all 3 partitions?
What's the output of: blkid?

N3500L Newbie
N3500L Newbie's picture
Hi folks,

Hi folks,

Really not sure what is going on with my router - I've been using kong's home cooked dd-wrt for some time, then noticed this newer version with fixed automounting. So I did a straight install, using the upgrade option in dd-wrt, should I have done a 30-30-30 reset before? Or after?

Anyway, I've now done a 30-30-30 reset and I can't get any USB device to be recognised in dd-wrt! The USB support/services are on (saved and applied). I have tried an ext3 formatted hard disk and and a FAT formatted pen drive - neither ever show up as being mounted.

logging in via ssh shows no drives when I type mount.

What should I do? I'm screwed without my trusty NAS.

Hope someone can help with some useful suggestions :-)

Best wishes,

Jon

ReDaLeRt
ReDaLeRt's picture
# nvram show | grep usb_mnt

# nvram show | grep usb_mnt
size: usb_mntpoint=opt
usb_mntopt=e07baa39-4dcc-4002-bc06-d362bf3dd09e
usb_mntjffs=
22785 bytes (9983 left)

# disktype /dev/discs/disc0/disc

--- /dev/discs/disc0/disc
Block device, size 149.1 GiB (160041885696 bytes)
DOS/MBR partition map
Partition 1: 125 MiB (131072000 bytes, 256000 sectors from 2048)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 125.0 MiB (131063808 bytes, 31998 pages of 4 KiB)
Partition 2: 1 GiB (1073741824 bytes, 2097152 sectors from 258048 )
Type 0x83 (Linux)
Ext3 file system
Volume name "Optware"
UUID E07BAA39-4DCC-4002-BC06-D362BF3DD09E (DCE, v4)
Volume size 1 GiB (1073741824 bytes, 1048576 blocks of 1 KiB)
Partition 3: 147.9 GiB (158835146752 bytes, 310224896 sectors fro m 2355200)
Type 0x83 (Linux)
Ext3 file system
Volume name "Data"
UUID DFA0AEE9-8045-4239-AE9C-5419E4B86907 (DCE, v4)
Volume size 147.9 GiB (158835146752 bytes, 38778112 blocks of 4 KiB)

To have my router fully working with OTRW I need to run on startup script:

mount /dev/discs/disc0/part2 /opt
mount /dev/discs/disc0/part3 /mnt

Thank you in advance.

N3500L Newbie
N3500L Newbie's picture
Thanks! Here you go:

Thanks! Here you go:

login as: root
DD-WRT v24-sp2 std (c) 2011 NewMedia-NET GmbH
Release: 07/20/11 (SVN revision: 17356M)
[email protected]'s password:

#===========================================================#
# DD-WRT V24-K26 #
# Kong Mod #
#===========================================================#

BusyBox v1.13.4 (2011-07-20 10:13:50 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# nvram show | grep usb
usb_automnt=1
usb_ohci=0
usb_storage=1
usb_mntpoint=mnt
usb_runonmount=
usb_printer=0
usb_usb2=1
usb_uhci=0
usb_enable=1
size: 21587 bytes (11181 left)

With a USB pen drive plugged in the back of the WNR3500L:

# disktype /dev/discs/disc0/disc

--- /dev/discs/disc0/disc
disktype: Can't stat /dev/discs/disc0/disc: No such file or directory

# dmesg

Doesn't show any change when a USB device is plugged in or out.

Is my router broken?

If so, are there any nvram reset commands, or anything else that I should try before I try to get a replacement?

Cheers, Jon

ReDaLeRt
ReDaLeRt's picture
# sh /etc/config/kmount.sh

# sh /etc/config/kmount.sh
sh: /dev/sda3: unknown operand
sh: : unknown operand

eTaurus
eTaurus's picture
Kong said: Ehhhm, command 2

Kong said: Ehhhm, command 2 outputs all 3 partitions? What's the output of: blkid?

Yes, all three.

root@DD-WRT:~# blkid
/dev/scsi/host5/bus0/target0/lun0/part1: LABEL="Optware" UUID="34c10774-b975-49ae-bba2-62a78acd686a"
/dev/scsi/host5/bus0/target0/lun0/part2: UUID="782393bc-d9bf-4e4a-b492-ce76485f67e5"
/dev/scsi/host5/bus0/target0/lun0/part3: LABEL="Lagerhalle" UUID="f4a29634-9c89-83c2-3344-13108ea6dd2a"
root@DD-WRT:~#

What's wrong?

Pages