2,876

Re: Fully featured OpenWrt build for the WNDR3700

You are getting confused by the revision number, they are different from the packages tree and the trunk tree. r31756 has samba 3.6.5 as you can see if you look in the packages directory.

2,877

Re: Fully featured OpenWrt build for the WNDR3700

Ahhhh, I see, I thought that the changeset numbers would overlap your revision numbers on the changes. Thanks for explaining.

2,878 (edited by hnyman 2012-05-05 11:44:00)

Re: Fully featured OpenWrt build for the WNDR3700

arokh wrote:

You are getting confused by the revision number, they are different from the packages tree and the trunk tree. r31756 has samba 3.6.5 as you can see if you look in the packages directory.

The default numbering system ("the last changed rev" of trunk) used in Openwrt is a bit stupid, as it can lead to confusion, when trunk itself does not change, but packages/ does change. The svn revision of the packages feed is not shown anywhere in the built system.

For that reason I have changed the getver.sh script in my builds to reflect the actual revision instead of the "last changed rev". That makes version identification so much simpler, as the svn revision reflects both trunk and packages changes (as they are located in the same svn repository in the server, which has just one global revision number, common to trunk, packages, backfire, backfire packages, etc.).

Index: trunk/scripts/getver.sh
===================================================================
--- trunk/scripts/getver.sh    (revision 31572)
+++ trunk/scripts/getver.sh    (working copy)
@@ -11,7 +11,7 @@
 
 try_svn() {
     [ -d .svn ] || return 1
-    REV="$(svn info | awk '/^Last Changed Rev:/ { print $4 }')"
+    REV="$(svn info | awk '/^Revision:/ { print $2 }')"
     REV="${REV:+r$REV}"
     [ -n "$REV" ]
 }

2,879

Re: Fully featured OpenWrt build for the WNDR3700

... which is also stupid, as it shows revision numbers which may not even exist in the corresponding branch.

2,880

Re: Fully featured OpenWrt build for the WNDR3700

jow wrote:

... which is also stupid, as it shows revision numbers which may not even exist in the corresponding branch.

Yes, it does. That is the drawback (mainly regarding Backfire). But what is the harm in that?

2,881

Re: Fully featured OpenWrt build for the WNDR3700

It trades a correct and confusing value with an incorrect one that makes clueless people feel better. If you go this route it actually makes more sense to use timestamps right away and forget the revisions entirely.

2,882

Re: Fully featured OpenWrt build for the WNDR3700

Well, to be honest, it does make sense as those changes only happen when the build is built after the said changeset. So, one 31576 could be built with Samba 3.6.4 while another is built with Samba 3.6.5
That said, I think not reflecting these changes in the rev number is more confusing (you never know which Samba version you get unless you check the src or afterwards when using Putty) than have it reflect it in the rev number.

2,883 (edited by Manp 2012-05-05 19:35:00)

Re: Fully featured OpenWrt build for the WNDR3700

updated to 31576, now my system log is flooded with this:

May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S60dnsmasq [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S60etherwake [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S60pptpd [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S60samba [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S61avahi-daemon [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S61samba-nmbd [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S95done [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:29 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S95miniupnpd [command]
May  5 20:31:29 OpenWrt user.info sysinit: Available commands:
May  5 20:31:29 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:29 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:29 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:29 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:29 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:29 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:30 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S96led [command]
May  5 20:31:30 OpenWrt user.info sysinit: Available commands:
May  5 20:31:30 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:30 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:30 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:30 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:30 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:30 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:30 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S97watchdog [command]
May  5 20:31:30 OpenWrt user.info sysinit: Available commands:
May  5 20:31:30 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:30 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:30 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:30 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:30 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:30 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:30 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S98sysntpd [command]
May  5 20:31:30 OpenWrt user.info sysinit: Available commands:
May  5 20:31:30 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:30 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:30 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:30 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:30 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:30 OpenWrt user.info sysinit:     disable    Disable service autostart
May  5 20:31:30 OpenWrt user.info sysinit: Syntax: /etc/rc.d/S99sysctl [command]
May  5 20:31:30 OpenWrt user.info sysinit: Available commands:
May  5 20:31:30 OpenWrt user.info sysinit:     start    Start the service
May  5 20:31:30 OpenWrt user.info sysinit:     stop    Stop the service
May  5 20:31:30 OpenWrt user.info sysinit:     restart    Restart the service
May  5 20:31:30 OpenWrt user.info sysinit:     reload    Reload configuration files (or restart if that fails)
May  5 20:31:30 OpenWrt user.info sysinit:     enable    Enable service autostart
May  5 20:31:30 OpenWrt user.info sysinit:     disable    Disable service autostart

?

everything seems to work tho.

smile

2,884 (edited by hnyman 2012-05-05 23:47:02)

Re: Fully featured OpenWrt build for the WNDR3700

Manp wrote:

updated to 31576, now my system log is flooded with this:

You are not alone. I noticed that a few days ago also on my build, and then I noticed these tickets: https://dev.openwrt.org/ticket/11366  and  http://luci.subsignal.org/trac/ticket/399

Re: Fully featured OpenWrt build for the WNDR3700

arokh wrote:

@johan81

Thanks, had a great time! Glad to hear it's working good.

@big-poppa

Fat build up, not so fat yet though smile

@arokh - Are you open to requests\suggestions to fatten it up?

2,886 (edited by Manp 2012-05-07 19:37:36)

Re: Fully featured OpenWrt build for the WNDR3700

hnyman wrote:
Manp wrote:

updated to 31576, now my system log is flooded with this:

You are not alone. I noticed that a few days ago also on my build, and then I noticed these tickets: https://dev.openwrt.org/ticket/11366  and  http://luci.subsignal.org/trac/ticket/399

seems to be already fixed http://luci.subsignal.org/trac/changeset/8673

arokh's r31602 doesn't seem to include this changeset, we'll have to wait for next build.

smile

edit: fixed in the latest build smile

i see samba-nmbd is no more. nmbd is already provided in the standard image, that's good to me.

2,887 (edited by teknojiz 2012-05-08 02:08:28)

Re: Fully featured OpenWrt build for the WNDR3700

I'm having some trouble getting the L2TP/IPSEC VPN working in the alternate build. When I try to connect from my Windows 7 machine I'm getting the following in the system log.

May  7 20:56:37 OpenWrt daemon.info racoon: INFO: respond new phase 1 negotiation: 174.65.75.220[500]<=>10.0.1.2[500]
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: begin Identity Protection mode.
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: received broken Microsoft ID: MS NT5 ISAKMPOAKLEY
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: received Vendor ID: RFC 3947
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: received Vendor ID: draft-ietf-ipsec-nat-t-ike-02
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: received Vendor ID: FRAGMENTATION
May  7 20:56:37 OpenWrt daemon.info racoon: [10.0.1.2] INFO: Selected NAT-T version: RFC 3947
May  7 20:56:37 OpenWrt daemon.info racoon: ERROR: invalid DH group 20.
May  7 20:56:37 OpenWrt daemon.info racoon: ERROR: invalid DH group 19.
May  7 20:56:37 OpenWrt daemon.info racoon: [174.65.75.220] INFO: Hashing 174.65.75.220[500] with algo #2
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: NAT-D payload #0 verified
May  7 20:56:37 OpenWrt daemon.info racoon: [10.0.1.2] INFO: Hashing 10.0.1.2[500] with algo #2
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: NAT-D payload #1 verified
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: NAT not detected
May  7 20:56:37 OpenWrt daemon.info racoon: [10.0.1.2] INFO: Hashing 10.0.1.2[500] with algo #2
May  7 20:56:37 OpenWrt daemon.info racoon: [174.65.75.220] INFO: Hashing 174.65.75.220[500] with algo #2
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: Adding remote and local NAT-D payloads.
May  7 20:56:37 OpenWrt daemon.info racoon: [10.0.1.2] ERROR: couldn't find the pskey for 10.0.1.2.
May  7 20:56:37 OpenWrt daemon.info racoon: [10.0.1.2] NOTIFY: Using default PSK.
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: ISAKMP-SA established 174.65.75.220[500]-10.0.1.2[500] spi:2d623e26df06f622:2d1fb5fe23e4e4c2
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: respond new phase 2 negotiation: 174.65.75.220[500]<=>10.0.1.2[500]
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: Update the generated policy : 10.0.1.2/32[1701] 174.65.75.220/32[1701] proto=udp dir=in
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: IPsec-SA established: ESP/Transport 174.65.75.220[500]->10.0.1.2[500] spi=46234319(0x2c17acf)
May  7 20:56:37 OpenWrt daemon.info racoon: INFO: IPsec-SA established: ESP/Transport 174.65.75.220[500]->10.0.1.2[500] spi=188198790(0xb37af86)
May  7 20:57:12 OpenWrt daemon.info racoon: INFO: deleting a generated policy.
May  7 20:57:12 OpenWrt daemon.info racoon: INFO: purged IPsec-SA proto_id=ESP spi=188198790.
May  7 20:57:12 OpenWrt daemon.info racoon: INFO: ISAKMP-SA expired 174.65.75.220[500]-10.0.1.2[500] spi:2d623e26df06f622:2d1fb5fe23e4e4c2
May  7 20:57:12 OpenWrt daemon.info racoon: INFO: ISAKMP-SA deleted 174.65.75.220[500]-10.0.1.2[500] spi:2d623e26df06f622:2d1fb5fe23e4e4c2

Any ideas on what might be wrong? Is anyone else having this issue?

Re: Fully featured OpenWrt build for the WNDR3700

@teknojiz: I'm having the same issue on my own compiled wndr3700v1. I'm using arokh's guide for xl2tpd/racoon, so it's probably the same error. Has anyone got L2TP/IPSEC vpn working on recent builds (kernel 3.3.4+)?

2,889 (edited by arokh 2012-05-08 10:51:47)

Re: Fully featured OpenWrt build for the WNDR3700

Works for me with iPhone client. Make sure your xl2tpd.conf has "force userspace = yes".

Re: Fully featured OpenWrt build for the WNDR3700

arokh wrote:

Works for me with iPhone client. Make sure your xl2tpd.conf has "force userspace = yes".

Ah, that's a new one for me. Gonna try it when I get home. Are there any more recent changes with xl2tpd/racoon I should be aware of?

By the way, I noticed you still use minissdpd 1.0. Version 1.1 has ipv6 support and the newest version (1.1.20120410) has some more bugfixes. See http://miniupnp.free.fr/files/changelog.php?file=minissdpd-1.1.20120410.tar.gz

2,891 (edited by arokh 2012-05-08 13:15:47)

Re: Fully featured OpenWrt build for the WNDR3700

No, it's just that I now bundle the needed modules for kernel mode acceleration of pppol2tp and the new patches to xl2tpd makes it enabled by default. The xl2tpd.conf in my build should have force userspace = yes, but you might have a modified version yourself.

Didn't know there was a new version of minissdpd, thx for the notice.

@big-poppa

Absolutely, you have any suggestions?

Re: Fully featured OpenWrt build for the WNDR3700

is it just me, or is vnstat getting more and more broken in the latest builds.  It had just stopped updating for me in a previous update, and in the latest, the vnstat page in luci just says "No database has been set up yet. Go to the VnStat configuration and enable monitoring for one or more interfaces." even though it is (and was configured).

2,893

Re: Fully featured OpenWrt build for the WNDR3700

@arokh - Thank you for the work you do on this fully featured build.  I have been using your build for some time now.  Occasionally, I compile OpenWrt locally using your source tree.  Recently, I noticed that  openwrt-$VERSION-src.tar.bz2  and  .diff  files are no longer created in your build script.  Is the  do_source ()  step skipped intentionally?  Without the .diff files, is there another way to know which files have been changed in this build?

Thank you again for your efforts.

2,894

Re: Fully featured OpenWrt build for the WNDR3700

Seems to work fine here. There hasn't been any changes to vnstat lately either. What does your /etc/config/vnstat look like?

Re: Fully featured OpenWrt build for the WNDR3700

the problem seems to be the vnstat-cron script is failing it's check for "pidof ntpd"

ntpd doesn't seem to be running (i'm using r31639)... I removed the check in vnstat-cron, and things seem OK, but I'm not sure why it was necessary in the first place...  perhaps I shouldn't mess with that stuff...

2,896 (edited by avbohemen 2012-05-08 18:46:10)

Re: Fully featured OpenWrt build for the WNDR3700

Ah, I was wondering why my timesync was not running, I guess we found it: https://dev.openwrt.org/changeset/31374 This checkin somewhat changes time config in /etc/config/system.

You need to change:

config timeserver
    list server     0.openwrt.pool.ntp.org
    list server     1.openwrt.pool.ntp.org
    list server     2.openwrt.pool.ntp.org
    list server     3.openwrt.pool.ntp.org

to:

config timeserver 'ntp'
    list server     0.openwrt.pool.ntp.org
    list server     1.openwrt.pool.ntp.org
    list server     2.openwrt.pool.ntp.org
    list server     3.openwrt.pool.ntp.org
    option enable_server 0

Then start ntp using "/etc/init.d/sysntpd start"
Mind the 'ntp' at the end of the first line! Then the cron script for vnstat will work as well.
This is what happens if you upgrade every time and keep your old config files I guess...

2,897

Re: Fully featured OpenWrt build for the WNDR3700

thanks avbohemen, that worked perfectly.

smile

2,898

Re: Fully featured OpenWrt build for the WNDR3700

@avbohemen

The default 'system' config in my build didn't include the ntp at the end, fixed that. Thanks smile

@russ

I disabled it as I was cleaning up my build script, will put it back in there.

Re: Fully featured OpenWrt build for the WNDR3700

avbohemen: ya, that does it... i guess i can put the ntpd check back in the vnstat-cron script.

2,900 (edited by plato 2012-05-09 16:41:40)

Re: Fully featured OpenWrt build for the WNDR3700

the fat build has transmission / nzbget / minidlna etc.. but it's also for wndr3700 and for a 8 MB flash right? Is there any configuration for WNDR3700v2 with 16 MB flash?

also is it safe to compile with "-j 8" parameter to use multi-threading?

I know it causes errors sometimes.. But what I mean is like compiling a streaming tool without a required library.. for example compiling minidlna without ffmpeg support.. Could it happen?