Re: [LEDE-DEV] QCA Dakota support

2016-11-22 Thread Christian Lamparter
Hello Christian, On Tuesday, November 22, 2016 11:54:44 PM CET Christian Mehlis wrote: > I updated to your current staging branch 947e53a1 (which includes the > musl update). Now compile stops in a problem with the backports package, > which does not match the "new" kernel?! > >

Re: [LEDE-DEV] QCA Dakota support

2016-11-22 Thread Heiner Kallweit
Am 22.11.2016 um 23:54 schrieb Christian Mehlis: > Hi Christian, > > I updated to your current staging branch 947e53a1 (which includes the musl > update). Now compile stops in a problem with the backports package, which > does not match the "new" kernel?! > >

[LEDE-DEV] [PATCH 4/6] kernel: mac80211: add pending ath9k EEPROM swapping patches

2016-11-22 Thread Martin Blumenstingl
There are two types of swapping the EEPROM data in the ath9k driver. Before this series one type of swapping could not be used without the other. The first type of swapping looks at the "magic bytes" at the start of the EEPROM data and performs swab16 on the EEPROM contents if needed. The second

[LEDE-DEV] [PATCH 6/6] lantiq: use ath9k device tree bindings binding/owl-loader

2016-11-22 Thread Martin Blumenstingl
This moves the extraction of the eeprom/calibration data to a hotplug firmware script. Additionally it modifies all .dts to configure ath9k directly from within the .dts. The owl-loader approach enables support on devices with exotic eeprom data locations (such as unaligned positions on the flash

[LEDE-DEV] [PATCH 0/6] lantiq: use devicetree to configure ath9k

2016-11-22 Thread Martin Blumenstingl
This series uses devicetree to configure the devices with ath9k wifi chips. The first two patches are preparing PCIe for OF support (PCI devices are already configured via devicetree properly, so we don't have to do anything here). The third patch backports the ath9k devicetree bindings to our

[LEDE-DEV] [PATCH 2/6] lantiq: specify the PCIe controller's interrupt, size and address cells

2016-11-22 Thread Martin Blumenstingl
This allows adding devices to the PCIe controller in the .dts files. Signed-off-by: Martin Blumenstingl --- target/linux/lantiq/dts/vr9.dtsi | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/target/linux/lantiq/dts/vr9.dtsi

[LEDE-DEV] [PATCH 3/6] kernel: mac80211: backport ath9k device tree support patches

2016-11-22 Thread Martin Blumenstingl
These patches add support for configuring ath9k based devices via devicetree. This was tested on PCI(e) based devices. This should work for AHB based devices as well (adding more AHB specific properties may still be needed) as soon as the ath79 platform is ready to populate the ath9k wmac via

Re: [LEDE-DEV] QCA Dakota support

2016-11-22 Thread Christian Mehlis
Hi Christian, I updated to your current staging branch 947e53a1 (which includes the musl update). Now compile stops in a problem with the backports package, which does not match the "new" kernel?!

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Bastian Bittorf
* Bastian Bittorf [22.11.2016 23:47]: > answer myself: CONFIG_TARGET_ROOTFS_PARTSIZE is unset? > > see 'Image/Build/squashfs' in 'uml/Image/Makefile' indeed, it works when i set it manually and i can boot into UML: root@uml:/ df -h FilesystemSize Used

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Bastian Bittorf
* Bastian Bittorf [22.11.2016 23:01]: > * Felix Fietkau [22.11.2016 22:42]: > > > here the build-error with "inodes full". > > > (the same images works, if i just raise the inodes to 2048) > > Try disabling the ext4 image via make menuconfig. > > sorry, does not

Re: [LEDE-DEV] can I have some feedback about a wrapper to call initscripts

2016-11-22 Thread Lars Kruse
Hi, Am Tue, 22 Nov 2016 10:12:53 - schrieb Karl Palsson : > [..] > The life of the "service start|stop|status" really wasn't > very long. I just looked up the changelog of sysvinit-utils in Debian: this wrapper was introduced in 2009. Seven years is not that bad, I

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Felix Fietkau
On 2016-11-22 18:04, Felix Fietkau wrote: > On 2016-11-22 17:57, David Lang wrote: >> On Tue, 22 Nov 2016, Felix Fietkau wrote: >> >>> On 2016-11-22 17:48, David Lang wrote: On Tue, 22 Nov 2016, Felix Fietkau wrote: > On 2016-11-22 17:43, David Lang wrote: >> On Tue, 22 Nov

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Felix Fietkau
On 2016-11-22 17:57, David Lang wrote: > On Tue, 22 Nov 2016, Felix Fietkau wrote: > >> On 2016-11-22 17:48, David Lang wrote: >>> On Tue, 22 Nov 2016, Felix Fietkau wrote: >>> On 2016-11-22 17:43, David Lang wrote: > On Tue, 22 Nov 2016, Felix Fietkau wrote: > >>> On a 16M

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread David Lang
On Tue, 22 Nov 2016, Felix Fietkau wrote: On 2016-11-22 17:48, David Lang wrote: On Tue, 22 Nov 2016, Felix Fietkau wrote: On 2016-11-22 17:43, David Lang wrote: On Tue, 22 Nov 2016, Felix Fietkau wrote: On a 16M filesystem, we probably want to use a 1K block size and have an inode for

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Felix Fietkau
On 2016-11-22 17:43, David Lang wrote: > On Tue, 22 Nov 2016, Felix Fietkau wrote: > >>> On a 16M filesystem, we probably want to use a 1K block size and have an >>> inode >>> for every couple of blocks. >> I'd say on a 16M filesystem we probably want to use squashfs+ext4 >> instead of plain

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Felix Fietkau
On 2016-11-22 17:48, David Lang wrote: > On Tue, 22 Nov 2016, Felix Fietkau wrote: > >> On 2016-11-22 17:43, David Lang wrote: >>> On Tue, 22 Nov 2016, Felix Fietkau wrote: >>> > On a 16M filesystem, we probably want to use a 1K block size and have an > inode > for every couple of

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread David Lang
On Tue, 22 Nov 2016, Felix Fietkau wrote: On 2016-11-22 17:43, David Lang wrote: On Tue, 22 Nov 2016, Felix Fietkau wrote: On a 16M filesystem, we probably want to use a 1K block size and have an inode for every couple of blocks. I'd say on a 16M filesystem we probably want to use

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread David Lang
On Tue, 22 Nov 2016, Felix Fietkau wrote: On a 16M filesystem, we probably want to use a 1K block size and have an inode for every couple of blocks. I'd say on a 16M filesystem we probably want to use squashfs+ext4 instead of plain ext4 and avoid the inode issue altogether. I'm not sure I

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Felix Fietkau
On 2016-11-22 15:41, David Lang wrote: > changing the blocksize doesn't really address the problem of too few inodes, > except indirectly in that the default number of inodes is calculated from the > number of blocks on the filesystem. > > In the case of LEDE, we tend to have fewer large files

[LEDE-DEV] bug: mt7621 pci reset

2016-11-22 Thread Kenneth Johansson
in arch/mips/pci/pci-mt7621.c we have #define GPIO_PERST that is always set. This has the side effect of setting gpio pin 7,8 and 19 to gpio and set the output value to 0. I could understand gpio19(perst) if there was some hardware errata that made the perst function not working and this

[LEDE-DEV] [PATCH] Fix skipping directories in uci_list_config_files

2016-11-22 Thread Michal 'vorner' Vaner
Don't create a hole in the array of configs if there's a directory. Such a hole would be mistaken for the end of the array. Signed-off-by: Michal 'vorner' Vaner --- file.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/file.c b/file.c

[LEDE-DEV] Fix of uci show (and similar) when /etc/config contains subdirectories

2016-11-22 Thread Michal 'vorner' Vaner
Hello It was pointed to me by a user that when the /etc/config contains subdirectories, uci show lists everything only up to the first subdirectory and then stops. It turns out the uci_list_config_files returns an array which has holes (NULLs) in places of the subdirectories, as it tries to

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread David Lang
On Tue, 22 Nov 2016, Jo-Philipp Wich wrote: 1) detect via makefile if PARTITION is small and autoadjust BLOCKSIZE (if not given) iirc the blocksize setting is a choice menu, so it is always defined. 2) set BLOCKSIZE default to 1K via x86/UML-Makefile It was explicitly raised to 4k for x86

Re: [LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Mogens Lauridsen
Yes, it also works on my target! Thanks. On Tue, Nov 22, 2016 at 3:07 PM, Bjørn Mork wrote: > Felix Fietkau writes: > >> On 2016-11-22 14:10, Mogens Lauridsen wrote: >>> Seems like a better fix, but it doesn't work. uqmi hangs, so I suspect >>> that EM7455 has

Re: [LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Bjørn Mork
Felix Fietkau writes: > On 2016-11-22 14:10, Mogens Lauridsen wrote: >> Seems like a better fix, but it doesn't work. uqmi hangs, so I suspect >> that EM7455 has misunderstood the command. I have removed/replaced the >> ustream_write(..,..,.., true) and after the changes below it

Re: [LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Felix Fietkau
On 2016-11-22 14:10, Mogens Lauridsen wrote: > Seems like a better fix, but it doesn't work. uqmi hangs, so I suspect > that EM7455 has misunderstood the command. I have removed/replaced the > ustream_write(..,..,.., true) and after the changes below it works. > I guess it has something to do with

Re: [LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Bjørn Mork
Felix Fietkau writes: > On 2016-11-22 12:47, Mogens Lauridsen wrote: >> Hi, >> >> I found a memory overwrite causing a crash when using uqmi and >> qmi-via-mbim such as: >> uqmi -m -d /dev/cdc-wdm0 --get-signal-info >> >> The problem is missing space for mbim header, which is

Re: [LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Mogens Lauridsen
Seems like a better fix, but it doesn't work. uqmi hangs, so I suspect that EM7455 has misunderstood the command. I have removed/replaced the ustream_write(..,..,.., true) and after the changes below it works. I guess it has something to do with the write being split in two. I don't know what the

Re: [LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Felix Fietkau
On 2016-11-22 12:47, Mogens Lauridsen wrote: > Hi, > > I found a memory overwrite causing a crash when using uqmi and > qmi-via-mbim such as: > uqmi -m -d /dev/cdc-wdm0 --get-signal-info > > The problem is missing space for mbim header, which is assumed in > qmi_request_start(): > > if

[LEDE-DEV] Fix for uqmi crash when using qmi-via-mbim (--mbim / -m)

2016-11-22 Thread Mogens Lauridsen
Hi, I found a memory overwrite causing a crash when using uqmi and qmi-via-mbim such as: uqmi -m -d /dev/cdc-wdm0 --get-signal-info The problem is missing space for mbim header, which is assumed in qmi_request_start(): if (qmi->is_mbim) { buf -= sizeof(struct

Re: [LEDE-DEV] [PATCH] scripts/getver.sh: treat all commits as local if can't find upstream

2016-11-22 Thread Jo-Philipp Wich
Hi, neither the scripts nor the buildbots have an actual problem, its just that the buildbots clone the Git repo in a way that there is no remote declared, so the getver.sh logic detects all changes as local. I'll see if I can fix it during the next few days on the buildbot side, but it is low

Re: [LEDE-DEV] [PATCH] scripts/getver.sh: treat all commits as local if can't find upstream

2016-11-22 Thread Baptiste Jonglez
Hi, On Thu, Nov 17, 2016 at 07:25:21AM +0100, Rafał Miłecki wrote: > If something goes wrong and script can't find upstream revision it will > return something like: > r2220 > which looks like a valid upstream revision 2220. We cant' distinguish it > from e.g. 2200 upstream commits and 20 local

Re: [LEDE-DEV] can I have some feedback about a wrapper to call initscripts

2016-11-22 Thread Karl Palsson
Jo-Philipp Wich wrote: > Hi Alberto, > > personally I like the service wrapper since it alligns the > service handling with Debian and older CentOS / Redhat distros. If it looks like debian and out of date unsupported centos/redhat, but is actually completely different, is it

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Jo-Philipp Wich
Hi, > 1) > detect via makefile if PARTITION is small and autoadjust BLOCKSIZE > (if not given) iirc the blocksize setting is a choice menu, so it is always defined. > 2) > set BLOCKSIZE default to 1K via x86/UML-Makefile It was explicitly raised to 4k for x86 to reduce wear on MMC storage

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Bastian Bittorf
* Jo-Philipp Wich [22.11.2016 10:08]: > a huge block size on small partition simply makes no sense. If you > already configure 16MB partitions then you can as well change block size > from 4K to 1K or 512B as well since you're deviating from the defaults > anyway. > > Having

Re: [LEDE-DEV] can I have some feedback about a wrapper to call initscripts

2016-11-22 Thread John Crispin
On 22/11/2016 09:51, Jo-Philipp Wich wrote: > Hi Alberto, > > personally I like the service wrapper since it alligns the service > handling with Debian and older CentOS / Redhat distros. > > In its current form though, the script is not providing enough > functionality to justify its existence

Re: [LEDE-DEV] can I have some feedback about a wrapper to call initscripts

2016-11-22 Thread Jo-Philipp Wich
Hi Alberto, personally I like the service wrapper since it alligns the service handling with Debian and older CentOS / Redhat distros. In its current form though, the script is not providing enough functionality to justify its existence since the same effect can be achieved through an alias in

[LEDE-DEV] [PATCH] package/utils/fuse: update to 2.9.7

2016-11-22 Thread p . wassi
From: Paul Wassi Update fuse+libfuse to upstream 2.9.7. Drop the patch for CVE-2015-3202, which is already integrated in the newer version. Rework the other patches. Also switch PKG_SOURCE from @SF to libfuse's github releases. Signed-off-by: Paul Wassi ---

Re: [LEDE-DEV] [PATCH] include: image.mk: ext4: double the default inode counter

2016-11-22 Thread Jo-Philipp Wich
Hi, a huge block size on small partition simply makes no sense. If you already configure 16MB partitions then you can as well change block size from 4K to 1K or 512B as well since you're deviating from the defaults anyway. Having different code paths for small and huge partitions is annoying and

Re: [LEDE-DEV] LED naming convention

2016-11-22 Thread p . wassi
Hi Jonas, thanks for pointing me to > The kernel led naming rules are described in [1] In the meantime I already did a list of all kirkwood devices in LEDE (and of course their LED's names). Depending on where they come from (Kernel or LEDE), I'll send patches to. Best regards, P. Wassi

[LEDE-DEV] Open WRT Raspberry Squashfs build

2016-11-22 Thread Michael Wulz
Hello guys, i'm new to this mailing list and got a recommendation from a OpenWRT developer to it. My problem is, i want to automatically build an squashfs image for raspberry PI and OpenWRT. All of this work done by hand works successfully, but i'm not so familiar with the Makefiles specially the