NEW Fractal BUILDS 17949 *CLOSED* Moving on to Devel Thread

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next
Author Message
Taomyn
DD-WRT User


Joined: 23 Oct 2011
Posts: 50

PostPosted: Wed Nov 30, 2011 15:36    Post subject: Re: Mega bins with samba no nmbd Reply with quote
ascott wrote:


Taomyn, I get it. Thanks. That makes sense. It sounds like that when you apply changes to the network, it brings down and up the interface again, which loses the setting. This makes me think that setting interference mode should be done from the networking services routines: when an interface is brought up, check a nvram variable for interference mode and turn it on if it's set.

We were thinking we were going to put this setting into a init script, but now I see that's not going to work. I'll take a look at adding it in networking services and see if I can formulate a patch to submit. I'm thinking this might be something the dd-wrt devs would want to add to their UI: setting interference mode nvram variables that are picked up from networking services.

-ascott


Cool.

Is this setting related to the "Bluetooth Coexistence" value under WL0/WL1-Advanced in the GUI?
Sponsor
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Wed Nov 30, 2011 18:43    Post subject: Reply with quote
Ascott tested your latest build.

Still the dual opt mount see below.
Easily solved by umount in startup script.
Im on the default optware setup only have my partions @ ext3

wil try to change to ext2 when i have bit more time.

Code:
--- /dev/discs/disc0/disc
Block device, size 1.855 GiB (1992294400 bytes)
DOS/MBR partition map
Partition 1: 514.3 MiB (539235328 bytes, 1053194 sectors from 62)
Type 0x83 (Linux)
Ext3 file system
Volume name "Optware"
UUID A7B2152A-84B5-4507-BCA3-20961A791912 (DCE, v4)
Volume size 514.3 MiB (539234304 bytes, 131649 blocks of 4 KiB)
Partition 2: 65.69 MiB (68884480 bytes, 134540 sectors from 1053256)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 65.68 MiB (68874240 bytes, 16815 pages of 4 KiB)
Partition 4: 1.289 GiB (1383593984 bytes, 2702332 sectors from 1187796)
Type 0x83 (Linux)
Ext3 file system
Volume name "Data"
UUID 6FFDFF39-7BB1-49C2-AE3D-7228637CCD4F (DCE, v4)
Volume size 1.289 GiB (1383591936 bytes, 337791 blocks of 4 KiB)
Status: Mounted on /opt
Status: Mounted on /opt
ascott
DD-WRT Novice


Joined: 17 Jun 2011
Posts: 11

PostPosted: Wed Nov 30, 2011 22:55    Post subject: Reply with quote
basmaf wrote:
Ascott tested your latest build.

Still the dual opt mount see below.
Easily solved by umount in startup script.
Im on the default optware setup only have my partions @ ext3

wil try to change to ext2 when i have bit more time.



I tried it too. I get the same. Here's what I did to test.


Code:

$ fdisk -l /dev/sdb

Disk /dev/sdb: 8075 MB, 8075120640 bytes
247 heads, 61 sectors/track, 1046 cylinders
Units = cylinders of 15067 * 512 = 7714304 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe553f908

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          71      527308+  83  Linux
/dev/sdb2              71          80       68913   82  Linux swap / Solaris
/dev/sdb3              80          97      130169    b  W95 FAT32
/dev/sdb4              97         132      260338   83  Linux

$ mkfs.ext3 /dev/sdb1
$ mkswap /dev/sdb2
$ mkfs.vfat /dev/sdb3
$ mkfs.ext2 /dev/sdb4


Code:

root@DD-WRT 45:d3:de:~# 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/part1 on /opt type ext3 (rw,data=ordered)
/dev/discs/disc0/part4 on /opt type ext2 (rw)
root@DD-WRT 45:d3:de:~# cat /tmp/disktype.dump

--- /dev/discs/disc0/disc
Block device, size 7.521 GiB (8075120640 bytes)
DOS/MBR partition map
Partition 1: 514.9 MiB (539963904 bytes, 1054617 sectors from 2048)
  Type 0x83 (Linux)
  Ext3 file system
    UUID 92DA4140-DEC1-4A64-AC15-7EE3EBA9477B (DCE, v4)
    Volume size 514.9 MiB (539963392 bytes, 131827 blocks of 4 KiB)
Partition 2: 67.30 MiB (70566912 bytes, 137826 sectors from 1056665)
  Type 0x82 (Linux swap / Solaris)
  Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
    Swap size 67.29 MiB (70557696 bytes, 17226 pages of 4 KiB)
Partition 3: 127.1 MiB (133293056 bytes, 260338 sectors from 1194491)
  Type 0x0B (Win95 FAT32)
  FAT16 file system (hints score 5 of 5)
    Volume size 126.9 MiB (133015552 bytes, 64949 clusters of 2 KiB)
    Volume name ""
Partition 4: 254.2 MiB (266586112 bytes, 520676 sectors from 1454829)
  Type 0x83 (Linux)
  Ext2 file system
    UUID 0572FBBD-6AD9-4BBD-A8CE-7F08CAC1FE22 (DCE, v4)
    Volume size 254.2 MiB (266584064 bytes, 260336 blocks of 1 KiB)

Status: <b>Mounted on /opt</b>
Status: <b>Mounted on /opt</b>


Seems like the code is mounting all ext partitions to /opt/.

-ascott
ascott
DD-WRT Novice


Joined: 17 Jun 2011
Posts: 11

PostPosted: Thu Dec 01, 2011 0:23    Post subject: Re: Mega bins with samba no nmbd Reply with quote
Taomyn wrote:


Is this setting related to the "Bluetooth Coexistence" value under WL0/WL1-Advanced in the GUI?


I think bluetooth coexistence mode is different than interference mode. The btc mode is specifically for bluetooth devices. The interference mode however, is undocumented and is driver level interference detection that we've been playing with, settable from wl.

Is wl working for you on that latest build? It was not for me, but than I did a make clean somewhere and rolled again, and now it's working.
Taomyn
DD-WRT User


Joined: 23 Oct 2011
Posts: 50

PostPosted: Thu Dec 01, 2011 7:54    Post subject: Re: Mega bins with samba no nmbd Reply with quote
ascott wrote:

Is wl working for you on that latest build? It was not for me, but than I did a make clean somewhere and rolled again, and now it's working.


Yes it works as in since it was discovered to fix the signal stability in various recent builds, but no in that the setting never stays set unless I use my sleep loop.

I perform 2 30/30/30 resets, one before the upgrade and one afterwards so I hope that's enough to ensure a clean start each time.

FYI this is the build I currently have:

Code:
DD-WRT v24-sp2 mega (c) 2011 NewMedia-NET GmbH
Release: 11/28/11 (SVN revision: 17949)


It's the one without Samba if it helps narrow it down further - I was not told if the rebuilt 17949 added anything more than Samba so I haven't bother wasting my time installing it as I can live without Samba until another version is released with hopefully the USB fixes.
basmaf
DD-WRT Guru


Joined: 24 Feb 2011
Posts: 1074

PostPosted: Thu Dec 01, 2011 8:19    Post subject: Reply with quote
ascott wrote:

Seems like the code is mounting all ext partitions to /opt/.

-ascott


This is my output from fsdisk and blkid
Haven't had time to change extensions will have more time in the weekend.

Code:
# fdisk -l /dev/sda
Disk /dev/sda: 1992 MB, 1992294400 bytes
62 heads, 62 sectors/track, 1012 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Disk identifier: 0x00028a37

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         274      526597   83  Linux
/dev/sda2             275         309       67270   82  Linux swap / Solaris
/dev/sda4             310        1012     1351166   83  Linux

# blkid
/dev/sda1: LABEL="Optware" UUID="a7b2152a-84b5-4507-bca3-20961a791912" TYPE="ext3"               
/dev/sda2: UUID="a969f9f3-2dd9-4843-837c-1a6ba7c2cfd4" TYPE="swap"
/dev/sda4: LABEL="Data" UUID="6ffdff39-7bb1-49c2-ae3d-7228637ccd4f" SEC_TYPE="ext2                " TYPE="ext3"
ascott
DD-WRT Novice


Joined: 17 Jun 2011
Posts: 11

PostPosted: Thu Dec 01, 2011 9:02    Post subject: Reply with quote
daveM wrote:
thanks Fractal. any chance of a openvpn_small compile as well? seems like brainslayer has abandoned his regular builds, and we have many E1000 customers who may benefit.


daveM: attached is an openvpn_small 17952 build using 4.1.2 toolchain. I tested on a WNR3500L so I can guarantee it will not brick, but I cannot guarantee that all the openvpn stuff works. Let us know.

-ascott



dd-wrt.v24-17952_NEWD-2_K2.6_openvpn_small.bin
 Description:
openvpn_small, 4.1.2 toolchain

Download
 Filename:  dd-wrt.v24-17952_NEWD-2_K2.6_openvpn_small.bin
 Filesize:  3.36 MB
 Downloaded:  741 Time(s)

ascott
DD-WRT Novice


Joined: 17 Jun 2011
Posts: 11

PostPosted: Thu Dec 01, 2011 9:53    Post subject: Patch for USB fix - Successful testing Reply with quote
Hello,

Here's the preprocessor-based solution to the USB fix that I had mentioned.

The reasoning behind it is that 17841 added support for ext4 to disktype which checks the kernel for features which are not fully supported until kernel 2.6.26 or later. For Broadcom-based users who are on 2.6.24.111 kernel, this means automounting suddenly stopped working.

We have rolled and tested, here on the forums, current revisions with 17841 manually reverted. The testing has been successful, so I'm proposing the following patch.

17841 modified the ext23 function and changed it to ext234. I added preprocessor conditionals to build the old body of the function if < 2.6.26 kernel, otherwise build new version of the function.

I found this preprocessor-based solution on pg 14 of these slides: http://www.haifux.org/lectures/192/rrLight.pdf

In order to use it you have to include linux/version.h. In order to do that you have to add -I$(LINUXDIR)/include to CFLAGS in the disktype/Makefile. I have rolled firmware with this patch and tested it on e3k and WNR3500L.

The dual-mounting is not so much a bug as the way that usb_hotplug.c appears to be coded for multiple partitions. I'm going to look at it some more and Kong's patches again. Maybe the best way to handle multiple partitions is to name them with a label. I was thinking it might be cool to just use nvram variables. usb_mntpoint=opt, usb_mntpoint2=jffs, usb_mntpoint3=store. (see code snippet at bottom for relevant lines of usb_hotplug.c -- everything falls into the else)

I view dual-mounting opt as another problem to look into, so if people are cool with this proposed patch, I'll submit it to Trac.

-ascott

Code:

Index: disktype/linux.c
===================================================================
--- disktype/linux.c    (revision 17952)
+++ disktype/linux.c    (working copy)
@@ -26,15 +26,66 @@
  */

 #include "global.h"
+#include "linux/version.h"

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
+
 /*
- * ext2/ext3/ext4 file system
+ * ext2/ext3/ext4 file system - two different functions depending on kernel version
  */

 void detect_ext234(SECTION *section, int level)
 {
   unsigned char *buf;
   char s[256];
+  u4 blocksize;
+  u8 blockcount;
+  int fslevel, is_journal, is_dev;
+
+  if (get_buffer(section, 1024, 1024, (void **)&buf) < 1024)
+    return;
+
+  if (get_le_short(buf + 56) == 0xEF53) {
+    if (get_le_long(buf + 96) & 0x0008)       /* JOURNAL_DEV flag */
+      print_line(level, "Ext3 external journal");
+    else if (get_le_long(buf + 92) & 0x0004)  /* HAS_JOURNAL flag */
+      print_line(level, "Ext3 file system");
+    else
+      print_line(level, "Ext2 file system");
+
+    get_string(buf + 120, 16, s);
+    if (s[0])
+      print_line(level + 1, "Volume name \"%s\"", s);
+
+    format_uuid(buf + 104, s);
+    print_line(level + 1, "UUID %s", s);
+
+    get_string(buf + 136, 64, s);
+    if (s[0])
+      print_line(level + 1, "Last mounted at \"%s\"", s);
+
+    blocksize = 1024 << get_le_long(buf + 24);
+    blockcount = get_le_long(buf + 4);
+    format_blocky_size(s, blockcount, blocksize, "blocks", NULL);
+    print_line(level + 1, "Volume size %s", s);
+
+    /* 76 4 s_rev_level */
+    /* 62 2 s_minor_rev_level */
+    /* 72 4 s_creator_os */
+    /* 92 3x4 s_feature_compat, s_feature_incompat, s_feature_ro_compat */
+  }
+}
+
+#else
+
+/*
+ * ext2/ext3/ext4 file system - ext4 support in >=2.6.26
+ */
+
+void detect_ext234(SECTION *section, int level)
+{
+  unsigned char *buf;
+  char s[256];
   int fslevel, is_journal, is_dev;
   u4 blocksize;
   u8 blockcount;
@@ -70,6 +121,8 @@
     print_line(level, "Ext%d%s %s", fslevel, is_dev ? "dev" : "",
                is_journal ? "external journal" : "file system");

+
+
     get_string(buf + 120, 16, s);
     if (s[0])
       print_line(level + 1, "Volume name \"%s\"", s);
@@ -92,6 +145,7 @@
     /* 92 3x4 s_feature_compat, s_feature_incompat, s_feature_ro_compat */
   }
 }
+#endif

 /*
  * btrfs file system
Index: disktype/Makefile
===================================================================
--- disktype/Makefile   (revision 17949)
+++ disktype/Makefile   (working copy)
@@ -20,7 +20,7 @@
 TARGET = disktype

 CPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-CFLAGS   = -Wall $(COPTS)  -ffunction-sections -fdata-sections -Wl,--gc-sections -DNEED_PRINTF
+CFLAGS   = -Wall $(COPTS)  -ffunction-sections -fdata-sections -Wl,--gc-sections -DNEED_PRINTF -I$(LINUXDIR)/include
 LDFLAGS  =
 LIBS     =


Code:

        if (nvram_match("usb_mntpoint", "mnt") && target)
                sprintf(mount_point, "/mnt/%s", target);
        else
                sprintf(mount_point, "/%s",
                        nvram_default_get("usb_mntpoint", "mnt"));
PiSToL
DD-WRT Novice


Joined: 22 May 2011
Posts: 9

PostPosted: Thu Dec 01, 2011 16:38    Post subject: Reply with quote
Fractal wrote:
PetervdM wrote:
are you sure about that mega builds? the mega 60k build is about 900KB smaller than the average 17xxx mega 60k build.


I am glad u posted that,,, brainslayer updated lzma-build tool..... starting with:

http://svn.dd-wrt.com:8000/changeset/17926

this is changing bin size a little, better compression I am guessing.

I am running the nv60k on my E3000 right now... seems to work well... I am using wl interference 2 to lower noise and its terrific.... I have 100mb/s upload/download and over wifi I am getting 78mb/s down and 65mb/s up... that is great 2.4ghz -N


-Fractal.


Fractal,

Thank you for the good work. This build is running stable with my E3000 router (I was running build 15962). Good wifi range. Keep the good work.

PiSToL
djroby19
DD-WRT Novice


Joined: 23 Dec 2009
Posts: 34
Location: Italy

PostPosted: Thu Dec 01, 2011 19:21    Post subject: Build test 17949 Reply with quote
this and my HD mounted
--- / Dev/discs/disc0/disc
Block device, size 232.9 MiB (250,059,350,016 bytes)
DOS / MBR partition map
Partition 1: 232.9 MiB (250,056,705,024 bytes, 488392002 sectors from 63)
Type 0x83 (Linux)
Ext3 file system
UUID 763D7CDE-2F5B-419F-B751-513F0BFB54A5 (DCE, v4)
Volume size 232.9 MiB (250,056,704,000 bytes, 61049000 blocks of 4 KiB)
Status: Mounted on / mnt
Status: Not mounted

Okay?
Congratulations Fractal continues ..
It would be nice if you do a custom build for E4200 as a dimension where it can get even at 12MB ....
Laughing

_________________
Buffalo WZR-HP-AG300H DD-WRT v24-sp2 (03/19/12) std - build 18777 + modem Digicom combo cx + Nas Synology DS-209 da 2 T + LG DP1W+ APC Back-UPS RS-Power Saving Back-UPS Pro 550 + switch Zyxel Gs105B + http://forum.emulesecurity.net/topic.asp?TOPIC_ID=3441
ascott
DD-WRT Novice


Joined: 17 Jun 2011
Posts: 11

PostPosted: Fri Dec 02, 2011 3:44    Post subject: Reply with quote
kong posted a better solution to the usb problem.

http://svn.dd-wrt.com:8000/ticket/2273
daveM
DD-WRT Novice


Joined: 02 May 2011
Posts: 41

PostPosted: Fri Dec 02, 2011 9:44    Post subject: Reply with quote
ascott wrote:
daveM wrote:
thanks Fractal. any chance of a openvpn_small compile as well? seems like brainslayer has abandoned his regular builds, and we have many E1000 customers who may benefit.


daveM: attached is an openvpn_small 17952 build using 4.1.2 toolchain. I tested on a WNR3500L so I can guarantee it will not brick, but I cannot guarantee that all the openvpn stuff works. Let us know.

-ascott


this appears to be working fine with my E1000 v2.1 test unit. thanks!
ascott
DD-WRT Novice


Joined: 17 Jun 2011
Posts: 11

PostPosted: Fri Dec 02, 2011 11:10    Post subject: Reply with quote
Kong found the root of the problem.

Brainslayer committed the patch.
http://svn.dd-wrt.com:8000/changeset/17954

Thanks Kong! Thanks Brainslayer!

-ascott

[EDIT] - tested std_usb_nas, 17956, 4.1.2 toolchain, wnr3500l. it works.



dd-wrt.v24-17956_NEWD-2_K2.6_std_usb_nas.bin
 Description:
4.1.2 toolchain

Download
 Filename:  dd-wrt.v24-17956_NEWD-2_K2.6_std_usb_nas.bin
 Filesize:  5.99 MB
 Downloaded:  1780 Time(s)

counterfeit
DD-WRT Novice


Joined: 02 Dec 2011
Posts: 5

PostPosted: Fri Dec 02, 2011 22:00    Post subject: Reply with quote
ascott, do you have an nv60k version built with the kong fix?
ErMeglio
DD-WRT User


Joined: 11 Jul 2006
Posts: 104

PostPosted: Sat Dec 03, 2011 14:37    Post subject: Reply with quote
I would like a Mega build -nv60k of it too, thank you!
Goto page Previous  1, 2, 3 ... 7, 8, 9, 10, 11, 12  Next Display posts from previous:    Page 8 of 12
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