[LEDE-DEV] [PATCH 2/3] lantiq: VGV7510KW22 - enable the IP101A phy

2016-05-26 Thread Mathias Kresin
The RJ45 WAN port is used for xDSL as well as the IP101A. The pins 1,2,3,6 of the RJ45 are connected to the IP101A and the pins 4,5 are connected to the xdsl chip. Drop the ip101a-rst node. It can't be controlled and is not required at all. Signed-off-by: Mathias Kresin <d...@kresin

[LEDE-DEV] [PATCH 4/9] lantiq: VGV7519 - add vlan support

2016-05-26 Thread Mathias Kresin
Add the lantiq,switch property to enable vlans and setup them up. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/base-files/etc/board.d/02_network | 3 ++- target/linux/lantiq/dts/VGV7519.dtsi | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)

[LEDE-DEV] [PATCH 9/9] uboot-lantiq: Add Arcadyan VGV7519 support

2016-05-26 Thread Mathias Kresin
are replaced with the ram values extracted from the original brnboot. The old ones didn't worked with the ramboot image. Signed-off-by: Mathias Kresin <d...@kresin.me> --- package/boot/uboot-lantiq/Makefile | 22 +- ...PS-add-board-support-for-Arcadyan-VGV7519.patch

[LEDE-DEV] [PATCH 8/9] uboot-lantiq: vrx200 - lzma compress gphy firmware

2016-05-26 Thread Mathias Kresin
as the bootloader of the VGV7510KW22 to fit into the bootloader partition of the stock firmware. Signed-off-by: Mathias Kresin <d...@kresin.me> --- package/boot/uboot-lantiq/Makefile | 13 + ...014-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch | 34 ++ 2

[LEDE-DEV] [PATCH 6/9] lantiq: VGV7519 - fix brn partition layout

2016-05-26 Thread Mathias Kresin
Use the brnboot partition layout as it is listed in the OpenWrt wiki article for this board. Configure the brnboot root selector for this device as well. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/dts/VGV7519BRN.dts | 54 +++---

[LEDE-DEV] [PATCH 3/3] uboot-lantiq: VGV7510KW22 - remove NOR SPL leftovers

2016-05-26 Thread Mathias Kresin
Missed this one with my last cleanup patch. Signed-off-by: Mathias Kresin <d...@kresin.me> --- .../0112-MIPS-add-board-support-for-Arcadyan-VGV7510KW22.patch| 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/package/boot/uboot-lantiq/patches/0112-MIPS-add

[LEDE-DEV] [PATCH v2] lantiq: do not build images which exceed the flash size

2016-05-26 Thread Mathias Kresin
The user benpicco in #openwrt reported that images are build which are bigger that the available flash size. He provided a proof of concept fix and gave permission to me to send it for inclusion. Signed-off-by: Mathias Kresin <d...@kresin.me> --- Changes in: v2: no functional change; r

[LEDE-DEV] [PATCH 7/9] uboot-lantiq: vrx200 - add support for dual nor flash

2016-05-26 Thread Mathias Kresin
Based on a submission to the uboot-lantiq repo by Eddi De Pieri. Devices like the xrx200 Arcadyan VGV7519 are using two NOR flash chips. Signed-off-by: Mathias Kresin <d...@kresin.me> --- ...014-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch | 40 -- .../0021-MIPS-vrx2

[LEDE-DEV] [PATCH 0/9] lantiq: VGV7519 fixes

2016-05-26 Thread Mathias Kresin
to transfer control of the leds to the switch by enabling the LED Externally Controlled Mode (ECM) of the phys. All patches have been tested during the last weeks by the OpenWrt Forum users pe0fko and especially Timeless with both revision of the VGV7519. Mathias Kresin (9): lantiq: VGV7519

[LEDE-DEV] [PATCH 3/9] lantiq: VGV7519 - add second usb port

2016-05-26 Thread Mathias Kresin
Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/dts/VGV7519.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi index 595452b..7891ab1 100644 --- a/target/linux/lantiq/dts/VGV751

[LEDE-DEV] [PATCH 2/9] lantiq: VGV7519 - cleanup pinmux configuration

2016-05-26 Thread Mathias Kresin
quot;gphy1 led0" groups. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/dts/VGV7519.dtsi | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi ind

[LEDE-DEV] [PATCH] lantiq: ltq-atm: fix xrx200 depends

2016-06-18 Thread Mathias Kresin
This one was missed by abc346db0e191ebeeb122ce26d1831469fadee1c. Signed-off-by: Mathias Kresin <d...@kresin.me> --- This patches fixes bug #16. package/kernel/lantiq/ltq-atm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/lantiq/ltq-atm/Makef

Re: [LEDE-DEV] [PATCH] lantiq: fix network in failsafe

2016-06-19 Thread Mathias Kresin
Am 20.06.2016 um 07:19 schrieb John Crispin: On 20/06/2016 05:15, Zhao, Gang wrote: Hi, Mathias Kresin On Sun, Jun 19, 2016 at 10:30 PM, Mathias Kresin <d...@kresin.me> wrote: So far the network in failsafe is setup only for one board. Use the eth0 interface as lan interface for all

[LEDE-DEV] [PATCH] lantiq: fix network in failsafe

2016-06-19 Thread Mathias Kresin
So far the network in failsafe is setup only for one board. Use the eth0 interface as lan interface for all boards for now. If a board has its lan interface(s) on another eth, a special handling based on the board name can be added. Signed-off-by: Mathias Kresin <d...@kresin.me> --- .../

[LEDE-DEV] [PATCH] lantiq: fix build of NAND sysupgrade images

2016-06-19 Thread Mathias Kresin
by the Image/Build/Profile/ step. Signed-off-by: Mathias Kresin <d...@kresin.me> --- The changes have been only tested with the BTHOMEHUBV5A profile but should work for all (u-boot) NAND images. EVA NAND images are completely untested. target/linux/lantiq/image/Makefile

[LEDE-DEV] [PATCH] lantiq: BTHOMEHUBV5A - use the power event code for the restart button

2016-06-19 Thread Mathias Kresin
The restart event code is used in LEDE to trigger a factory reset on long press as well. By using the power event code, the restart functionality can be used without being prone to trigger a factory reset. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lant

[LEDE-DEV] [PATCH 1/2] lantiq: add support for ARV7506PW11 (Alice/O2 IAD 4421)

2016-06-20 Thread Mathias Kresin
value in DT] [enable usage of the wireless LED] [fixup mac address configuration] Sgned-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/base-files/etc/board.d/01_leds | 3 + .../linux/lantiq/base-files/etc/board.d/02_network | 8 ++ .../etc/hotplug.d/firmware/10-rt2x00-e

Re: [LEDE-DEV] Bug REPORT: Lantiq - XRX200 - UBIFS image not built

2016-05-17 Thread Mathias Kresin
2016-05-17 11:51 GMT+02:00 Paul Rowland : > I updated sources and packages 15 minutes ago, did a make clean and a build. > The expected file, lede-lantiq-xrx200-BTHOMEHUBV5A-ubifs-sysupgrade.tar, was > not created. It is selected in menuconfig and built fine on

[LEDE-DEV] [PATCH] lantiq: fix image creation of P2812HNUF3 & BTHOMEHUBV3A

2016-07-22 Thread Mathias Kresin
Both devices were converted to the new image build code but still using the LegacyDevice define. Therefore an image isn't created for the mentioned devices. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/image/Makefile | 4 ++-- 1 file changed, 2 insertions

Re: [LEDE-DEV] lantiq: reduced throughput with SMP disabled

2016-08-04 Thread Mathias Kresin
2016-08-04 12:40 GMT+02:00 Felix Fietkau : > Please test the latest version of my staging tree at > https://git.lede-project.org/?p=lede/nbd/staging.git;a=summary Hi Felix, I've build an image for the reporter of FS#27 for testing and received the following response: > I upgraded

Re: [LEDE-DEV] [PATCH 1/2] lantiq/xrx200-net: fix "tx ring full" error by introducing second DMA TX channel

2016-08-12 Thread Mathias Kresin
2016-08-12 10:39 GMT+02:00 Martin Schiller : > With an own DMA TX channel for each network device (eth0 + eth1) there > won't be any "tx ring full" errors any more. > > This patch also move the spinlocks to the channel level instead of locking > the whole xrx200_hw structure.

Re: [LEDE-DEV] [OpenWrt-Devel] latency on PPPoA ADSL Annex A on using Lantiq

2016-08-10 Thread Mathias Kresin
Am 10.08.2016 um 22:41 schrieb Daniel Niasoff: Hi Mathias, ADSL works fine on chaos calmer and I cannot reproduce the issue, so it looks like it's a recently introduced issue. Thanks for the idea, it should make it easier to pinpoint Any idea's where the issue might be? Nope, no idea yet.

Re: [LEDE-DEV] [OpenWrt-Devel] latency on PPPoA ADSL Annex A on using Lantiq

2016-08-10 Thread Mathias Kresin
Am 11.08.2016 um 00:15 schrieb John Crispin: try reverting 8333a6d0bab913285770449f5100597b691b544f aswell please Had this commit in mind as well. According to Daniels initial mail to openwrt-devel, he is using a TP-LINK TD-W8980 (xrx200) and the kmod-ltq-adsl isn't build for xrx200. I

[LEDE-DEV] [PATCH] lantiq: enable cpu temp driver for selected boards

2016-08-06 Thread Mathias Kresin
According to the author of the cpu temp driver, not all xrx200 boards have a cpu temperature sensor. For that reason enable the sensor only for tested boards. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 4 target/linux/lantiq/dts/T

Re: [LEDE-DEV] [PATCH] kernel: adm6996: set carrier status

2016-08-08 Thread Mathias Kresin
Am 08.08.2016 um 11:34 schrieb Matthias Schiffer: On 08/07/2016 10:24 PM, Mathias Kresin wrote: Due to the missing carrier status set, the interface wasn't usable on a BTHOMEHUB2B after ip link down and up as it is done in preinit. Signed-off-by: Mathias Kresin <d...@kresin.me> ---

[LEDE-DEV] [PATCH v2] kernel: adm6996: set carrier status

2016-08-09 Thread Mathias Kresin
Due to the missing carrier status set, the interface wasn't usable on a BTHOMEHUB2B after ip link down and up as it is done in preinit. Signed-off-by: Mathias Kresin <d...@kresin.me> --- Changes in v2: - removed unreachable code target/linux/generic/files/drivers/net/phy/adm6996

[LEDE-DEV] [PATCH] kernel: adm6996: set carrier status

2016-08-07 Thread Mathias Kresin
Due to the missing carrier status set, the interface wasn't usable on a BTHOMEHUB2B after ip link down and up as it is done in preinit. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/generic/files/drivers/net/phy/adm6996.c | 11 +++ 1 file changed, 11 insertions(+)

[LEDE-DEV] [PATCH] preinit: use only the image config options

2016-08-07 Thread Mathias Kresin
The pi_* variables and the fs_failsafe_wait_timeout variable are set by the CONFIG_TARGET_PREINIT_* config options. No need to maintain the same values twice. All other fs_ variables were never used. Signed-off-by: Mathias Kresin <d...@kresin.me> --- package/base-files/Makefile

[LEDE-DEV] [PATCH 4/5] lantiq: use the etop driver DT bindings only

2016-08-02 Thread Mathias Kresin
Use the generic mtd-mac-address dts property to get a mac address from flash instead of the lantiq specific one. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/dts/ARV4518PWR01.dtsi | 6 +- target/linux/lantiq/dts/ARV4519PW.dts | 8 ++-- target/linux/

[LEDE-DEV] [PATCH 2/5] lantiq: drop orphaned eeprom-handling code branches

2016-08-02 Thread Mathias Kresin
All device tree nodes are using the named properties now and the code path handling the reg property isn't required any more. The code related to the ath,eep-flash property has been reformatted to be better readable. Signed-off-by: Mathias Kresin <d...@kresin.me> --- ...-lanti

[LEDE-DEV] [PATCH 3/5] lantiq: fix mac address increments

2016-08-02 Thread Mathias Kresin
Use the same mac address increment in device tree source file and userspace. Don't add a mac address increment to either the only mtd mac-address or to all mac-addresses. Fix a typo in the TDW89X0.dtsi file to add an increment. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target

[LEDE-DEV] [PATCH 5/5] lantiq: drop duplicate and now unused "lantiq, eth-mac" binding

2016-08-02 Thread Mathias Kresin
el cmdline. This functionality isn't used by any device and should be added as etop driver device tree property if required again. Signed-off-by: Mathias Kresin <d...@kresin.me> --- ...-lantiq-wifi-and-ethernet-eeprom-handling.patch | 53 +- 1 file changed, 1 insertion(+), 52 de

[LEDE-DEV] [PATCH 1/5] lantiq: use ath, eep-flash/mac-offset for ath eep nodes

2016-08-02 Thread Mathias Kresin
No functional change, just easier to get what's the purpose of the hex values. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/dts/ARV4518PWR01.dtsi | 6 +++--- target/linux/lantiq/dts/ARV4525PW.dts | 6 +++--- target/linux/lantiq/dts/ARV452CQW.dts

[LEDE-DEV] [PATCH] sysupgrade: unmount filesystems before reboot

2016-08-02 Thread Mathias Kresin
was not properly unmounted. Some data may be corrupt. Please run fsck. Although a data corruption during read operations is unlikely, there is no need to scare the users. Signed-off-by: Mathias Kresin <d...@kresin.me> --- package/base-files/files/lib/upgrade/common.sh | 1 + package/system/procd

[LEDE-DEV] [PATCH 2/5] br2684ctl: set the MAC address configured for the atm bridge using

2016-07-02 Thread Mathias Kresin
be early enough for all following services. Signed-off-by: Mathias Kresin <d...@kresin.me> --- package/network/utils/linux-atm/Makefile| 1 + package/network/utils/linux-atm/files/br2684ctl | 5 + 2 files changed, 6 insertions(+) diff --git a/package/network/utils/linux-atm/Makef

[LEDE-DEV] [PATCH 3/5] lantiq: pass MAC address to the ATM bridge helper

2016-07-02 Thread Mathias Kresin
Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/base-files/etc/board.d/02_network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network

[LEDE-DEV] [PATCH 5/5] lantiq: DGN3500: use the MAC address from uboot env

2016-07-02 Thread Mathias Kresin
Extract the base MAC address from the u-boot environment instead of relying on a properly passed ethaddr kernel command-line parameter. Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/base-files/etc/board.d/02_network | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [LEDE-DEV] [PATCH 3/5] lantiq: pass MAC address to the ATM bridge helper

2016-07-03 Thread Mathias Kresin
Am 03.07.2016 um 08:31 schrieb John Crispin: Hi, On 02/07/2016 17:00, Mathias Kresin wrote: Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/base-files/etc/board.d/02_network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/

Re: [LEDE-DEV] [PATCH 2/5] br2684ctl: set the MAC address configured for the atm bridge using

2016-07-03 Thread Mathias Kresin
Fietkau: On 2016-07-02 17:00, Mathias Kresin wrote: If an ESI is set, it will be used as MAC address for the nas0 interface. According to the ESI man page, changes to the ESI are not automatically propagated throughout the system and therefore esi should be used early during system. Setting the ESI

Re: [LEDE-DEV] [PATCH] Upgrade Vim to 8.0.0.69

2017-02-02 Thread Mathias Kresin
01.02.2017 23:35, Shane Peelar: Signed-off-by: Shane Peelar --- utils/vim/Makefile | 8 utils/vim/patches/001-compile.patch | 41 - 2 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644

Re: [LEDE-DEV] [PATCH] Add Friendly Interactive Shell

2017-02-02 Thread Mathias Kresin
01.02.2017 23:36, Shane Peelar: Signed-off-by: Shane Peelar --- utils/fish/Makefile | 71 + utils/fish/patches/0001-configure.patch | 11 + 2 files changed, 82 insertions(+) create mode 100644

Re: [LEDE-DEV] [PATCH 1/2] ipq806x/nbg6817: fixup internal mmc and switch configuration in DTS

2017-02-02 Thread Mathias Kresin
01.02.2017 22:08, André Valentin: The setting mmc-ddr-1_8v in the platform dts leads to read errors. The device is unusable and system reboots in a loop. Because NBG6817 is the only mmc device, I commented mmc-ddr-1_8v out in base dts. The second change removes settings now present in base dts.

Re: [LEDE-DEV] [PATCH] ramips: fix AR670W partition alignment

2017-02-05 Thread Mathias Kresin
05.02.2017 10:15, John Crispin: On 05/02/2017 09:59, Claudio Leite wrote: mtdsplit_lzma requires that the rootfs be aligned to a block boundary. Pad the kernel partition to make this so. Signed-off-by: Claudio Leite --- target/linux/ramips/image/rt288x.mk | 2 +- 1 file

Re: [LEDE-DEV] [PATCH v2] ramips: Add support for Sanlinking D240

2017-02-03 Thread Mathias Kresin
2017-02-03 11:49 GMT+01:00 Kristian Evensen : > Hi > > On Fri, Feb 3, 2017 at 11:02 AM, Piotr Dymacz wrote: >> Hi Kristian, >> >> My two cents: the general convention for board name is to not include >> the manufacturer name (Sanlinking here). >> As

Re: [LEDE-DEV] [PATCH] BT Home Hub 5A: configure Red Ethernet as DMZ interface (FS#490) and fix Red Ethernet switch port (FS#390)

2017-02-20 Thread Mathias Kresin
18.02.2017 19:05, Felix Fietkau: On 2017-02-18 16:57, Mathias Kresin wrote: @Felix: Would you please do a review of my changes. You added the function in question with c536da3 "lantiq: add VLAN handling fixes to xrx200 ethernet driver" but unfortunately without commit message. I'

Re: [LEDE-DEV] Is there a Image for TP-Link TL-WA854RE (WiFi Range Extender) ?

2017-02-19 Thread Mathias Kresin
19.02.2017 13:10, Alberto Bursi: After Mathias's commit (as noted by other mails above) the devices we are talking about have wifi disabled by default but you can enable it with the wps button. https://github.com/lede-project/source/commit/bcfbeae79f799cf1087d692e4869589eb20d2080 Imho makes no

Re: [LEDE-DEV] [PATCH] BT Home Hub 5A: configure Red Ethernet as DMZ interface (FS#490) and fix Red Ethernet switch port (FS#390)

2017-02-18 Thread Mathias Kresin
17.02.2017 11:42, Mauro Mozzarelli: The BT Home Hub routers described in the scenario(s) below are connected also on the LAN side. I ran further tests in the first SCENARIO (Red Ethernet as eth0.2) monitoring the red Ethernet WAN end with wireshark and I saw arp requests coming from the Red

Re: [LEDE-DEV] [PATCH] BT Home Hub 5A: configure Red Ethernet as DMZ interface (FS#490) and fix Red Ethernet switch port (FS#390)

2017-02-11 Thread Mathias Kresin
11.02.2017 18:55, Mauro M.: This proposed patch applies to BT Home Hub 5 Type A and: 1) it includes configuration for the Red Ethernet port as an additional "dmz" interface (feature request FS#490) NAK. It's a WAN port and not a DMZ port. It should be used by default as WAN port. If you

Re: [LEDE-DEV] [PATCH] BT Home Hub 5A: configure Red Ethernet as DMZ interface (FS#490) and fix Red Ethernet switch port (FS#390)

2017-02-12 Thread Mathias Kresin
12.02.2017 15:55, Felix Fietkau: @Mathias: could you perhaps refactor the commits to put the wan->xwan rename *after* the ethernet port VLAN change? I'm also a bit sceptical about the interface rename and would like to discuss this further, but I think the VLAN change is important enough to get

Re: [LEDE-DEV] [PATCH v2] ramips: add support for RATOC REX-WIFISD2

2017-02-11 Thread Mathias Kresin
28.01.2017 17:03, FUKAUMI Naoki: diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 50eae2f..0728d93 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -465,3 +465,13 @@ define Device/kng_rc zyimage -d

Re: [LEDE-DEV] [PATCH] BT Home Hub 5A: configure Red Ethernet as DMZ interface (FS#490) and fix Red Ethernet switch port (FS#390)

2017-02-12 Thread Mathias Kresin
12.02.2017 17:40, Mauro Mozzarelli: You are correct that the name does not matter, however if we have routers already configured to associate the xDSL or Ethernet to WAN, when we flash the new firmware we will have to reconfigure them to rename the device. This is all good if the routers are

Re: [LEDE-DEV] FS#490 - BT Home Hub 5 Ethernet WAN Port configuration

2017-02-10 Thread Mathias Kresin
2017-02-10 14:01 GMT+01:00 Mauro M. : > In response to Mathias: > > > Let's have a look at the use cases for the Red Ethernet Port: > > 1) Classic case: Internet Home user with xDSL WAN + Wired and Wireless > Devices > > SCENARIO: In this case my WAN is the xDSL port, my

Re: [LEDE-DEV] [PATCH] This patch adds support for the Netgear WN3000RPv3 N300 repeater.

2017-01-18 Thread Mathias Kresin
Hey Thibaut, see my comment inline. Mathias 17.01.2017 23:12, ha...@slashdirt.org: From: Thibaut VARENE It uses the same trick as for the EX2700 to pass the Second Part Magic Check from the bootloader (as described here

Re: [LEDE-DEV] [RFC] ipq806x: Add USB Type Selector for R7500

2017-02-28 Thread Mathias Kresin
2017-02-27 13:34 GMT+01:00 Thomas Reifferscheid : > The patch enables the primary USB port on R7500. Because of the > missing general IPQ8064x TCSR initialisation functions a workaround > using pinctrl,single was chosen. It allows us to set 1a4000b0 from > .0010 to

Re: [LEDE-DEV] [PATCH odhcpd] dhcpv6-ia: Check lockf return value

2017-02-28 Thread Mathias Kresin
2017-02-28 6:53 GMT+01:00 Florian Fainelli : > Signed-off-by: Florian Fainelli > --- > src/dhcpv6-ia.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c > index 888634fe1f29..fb5044884441

Re: [LEDE-DEV] [RFC] lantiq: fix ath5k EEPROM loading

2016-08-25 Thread Mathias Kresin
Am 24.08.2016 um 09:54 schrieb Oswald Buddenhagen: On Tue, Aug 23, 2016 at 09:14:36PM +0200, Mathias Kresin wrote: With 12fe4b579801ea812b64fc7e689716cd39c895ec I switched the ath5k eeprom extraction to an alternate code path. Unfortunately this code seams to be broken since ages and broke

Re: [LEDE-DEV] [RFC 3/7] image: pass device blocksize to padjffs2

2016-09-04 Thread Mathias Kresin
05.09.2016 04:02, Yousong Zhou: On 3 September 2016 at 16:52, Mathias Kresin <d...@kresin.me> wrote: At the moment the padding steps are hardcoded. Especially images for devices with a 4K sector size can be unnecessarily bloated using the hardcoded padding steps. It has been ob

[LEDE-DEV] [RFC 5/7] ramips: add build recipe for senao header

2016-09-03 Thread Mathias Kresin
Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/ramips/image/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index ef30c79..136e216 100644 --- a/target/linux/ramips/image/Makefile

[LEDE-DEV] [RFC 4/7] kernel: mtd: backport Macronix sector size fix

2016-09-03 Thread Mathias Kresin
Signed-off-by: Mathias Kresin <d...@kresin.me> --- ...-detect-JEDEC-incompatible-w25q128-using-.patch | 2 +- ...r-convert-to-spi_nor_-get-set-_flash_node.patch | 2 +- ...-nor-mx25l3205d-mx25l6405d-append-SECT_4K.patch | 27 ...mtd-backport-v4.7-0day-patches-from-Boris

[LEDE-DEV] [RFC 7/7] ramips: set blocksize for dch-m225/dir-860l-b1

2016-09-03 Thread Mathias Kresin
Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/ramips/image/mt7620.mk | 6 -- target/linux/ramips/image/mt7621.mk | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk

Re: [LEDE-DEV] VRV9510KWAC23

2016-08-29 Thread Mathias Kresin
28.08.2016 13:24, Mathias Kresin: Am 28.08.2016 um 12:15 schrieb Hauke Mehrtens: On 08/28/2016 10:31 AM, Mathias Kresin wrote: Am 27.08.2016 um 19:44 schrieb Juan Rios: I can load to memory using xmodem transfer and run but all I tried get locked without any output. Have you tried

Re: [LEDE-DEV] [PATCH] ar71xx: Fix sysupgrade for the Airtight Networks C-55

2016-09-11 Thread Mathias Kresin
11.09.2016 17:43, Chris Blake: Additionally, it appears that other devices like the ZyXEL NBG6616 may be affected by this. I'm working on the same at the moment. And till now the ZyXEL NBG6616 and the Ubiquiti UAP Pro are affected by the same error as well. I'm compiling a few more targets

[LEDE-DEV] [RFC 1/2] base-file: use ewan network name for ethernet wan

2016-09-10 Thread Mathias Kresin
. This commit should not break existing configs since we still have a wan network albeit it's intended use case is a different one. Signed-off-by: Mathias Kresin <d...@kresin.me> --- .../files/etc/board.d/99-default_network | 2 +- .../base-files/files/lib/functions/uci-defaults.s

[LEDE-DEV] [RFC 2/2] lantiq: xrx200: use vlan for ethernet wan port

2016-09-10 Thread Mathias Kresin
offloading should be used enabled instead of having a fixed configuration. Add a default WAN vlan for xrx200 devices having a distinct WAN port and not using the lantiq,wan device tree property. Signed-off-by: Mathias Kresin <d...@kresin.me> --- .../linux/lantiq/base-files/etc/board.d/02_networ

Re: [LEDE-DEV] [PATCH v2 2/3] ipq806x: Add support for new device: tew827dru

2016-09-10 Thread Mathias Kresin
10.09.2016 03:35, J Mo: --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -168,3 +168,19 @@ define Build/sysupgrade-tar --rootfs $(call param_get_default,rootfs,$(1),$(IMAGE_ROOTFS)) \ $@ endef + +define Build/cameo-sig + { \ +

Re: [LEDE-DEV] [PATCH v2 2/3] ipq806x: Add support for new device: tew827dru

2016-09-11 Thread Mathias Kresin
10.09.2016 03:35, J Mo: diff --git a/target/linux/ipq806x/patches-4.4/800-devicetree.patch b/target/linux/ipq806x/patches-4.4/800-devicetree.patch index 85f2534..ae174fd 100644 --- a/target/linux/ipq806x/patches-4.4/800-devicetree.patch +++

Re: [LEDE-DEV] [PATCH v2 2/3] ipq806x: Add support for new device: tew827dru

2016-09-11 Thread Mathias Kresin
11.09.2016 06:07, J Mo: On 09/10/2016 06:36 PM, J Mo wrote: diff --git a/target/linux/ipq806x/base-files/lib/preinit/06_set_iface_mac b/target/linux/ipq806x/base-files/lib/preinit/06_set_iface_mac new file mode 100644 index 000..b4ed225 --- /dev/null +++

Re: [LEDE-DEV] [PATCH v2 2/3] ipq806x: Add support for new device: tew827dru

2016-09-15 Thread Mathias Kresin
14.09.2016 14:17, J Mo: On 09/11/2016 01:39 AM, Mathias Kresin wrote: This one is quite neat. It allows me to verify my changes. Would you please try the attached patch. Before: $ ./caldata -i './caldata1.bin' -v Size: 12064 MAC: 12:34:56:78:90:12 Checksum: 0xdf10 (OK) Patched: $ ./caldata

Re: [LEDE-DEV] VRV9510KWAC23

2016-08-28 Thread Mathias Kresin
Am 27.08.2016 um 19:44 schrieb Juan Rios: Hello, I managed to get this router and want to get lede on it. The hardware is this Lantiq VRX288 500Mhz 2 NANYA NT5TU128M8HE-AC 256MB RAM ZENTEL A501GA31ATS 8G 128MB NAND FLASH. Wireless 2.4Ghz BCM43222KFBG Wireless 5Ghz BCM4360KMLG VDSL/ADSL2+

[LEDE-DEV] [RFC] lantiq: fix ath5k EEPROM loading

2016-08-23 Thread Mathias Kresin
With 12fe4b579801ea812b64fc7e689716cd39c895ec I switched the ath5k eeprom extraction to an alternate code path. Unfortunately this code seams to be broken since ages and broke the ath5k EEPROM extraction. Reported-by: Mohammed Berdai <mohammed.ber...@gmail.com> Signed-off-by: Mathias Kre

Re: [LEDE-DEV] Adding support for dlink dwr-512

2016-10-02 Thread Mathias Kresin
but I realize it is better to use the mailing list. According with the latest advice of Mathias Kresin I should use the default strategy to generate an Image, therefore I add the following path: diff --git a/target/linux/ramips/image/rt305x.mk b/target/linux/ramips/image/rt305x.mk index be21ac4

Re: [LEDE-DEV] [PATCH] package/utils/nvram/files/nvram.init * Double quote to prevent globbing and word splitting. * $/${} is unnecessary on arithmetic variables. * remove unused variables

2016-10-04 Thread Mathias Kresin
04.10.2016 02:35, Jan-Tarek Butt: Signed-off-by: Jan-Tarek Butt Some problem with the commit title and message as with your ct-bugcheck patch. --- package/utils/nvram/files/nvram.init | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-)

Re: [LEDE-DEV] [PATCH] package/utils/ct-bugcheck/src/bugcheck.sh * Double quote to prevent globbing and word splitting. * { cmd1; cmd2; } >> file instead of individual redirects. * fix formating

2016-10-04 Thread Mathias Kresin
04.10.2016 03:23, Jan-Tarek Butt: Hey Jan-Tarek please use a proper commit title and message. Something like: ct-bugcheck: fix globbing, word splitting and formatting Double quote to prevent globbing and word splitting. Use { cmd1; cmd2; } >> file instead of individual redirects because of

Re: [LEDE-DEV] package/boot/uboot-envtools/files/uboot-envtools.sh

2016-10-03 Thread Mathias Kresin
04.10.2016 01:49, Jan-Tarek Butt: Hi, Does anyone understand what this "variables" in line 24 to 28 are use [0]? [0] https://git.lede-project.org/?p=source.git;a=blob;f=package/boot/uboot-envtools/files/uboot-envtools.sh;h=e21b28367751fdd86897f3a47911f3a3ffbdbdfb;hb=HEAD They are used by

Re: [LEDE-DEV] [PATCH 0/9] lantiq: VGV7519 fixes

2016-11-09 Thread Mathias Kresin
09.11.2016 23:09, Eddi De Pieri: Hi Mathias, Just tried to boot a ramimage from tftp on vgv7519: On my board: Bytes transferred = 7084442 (6c199a hex) ## Booting kernel from Legacy Image at 8100 ... Image Name: MIPS OpenWrt Linux-3.10.49 Created: 2014-11-11 17:40:00 UTC

Re: [LEDE-DEV] Cubietruck / WiFi:brcmfmac / SDIO / firmware

2016-11-08 Thread Mathias Kresin
2016-11-08 8:54 GMT+01:00 Bastian Bittorf : > with recent trunk r2116 i cannot get WiFi working. > First it only seems the SDIO-support must be activated > CONFIG_BRCMFMAC_SDIO=y (which is not!) but even with this i see: > > root@lede:~ :) dmesg | grep -i brcm > [ 11.319793]

Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-07 Thread Mathias Kresin
2016-11-06 20:47 GMT+01:00 Tino Reichardt : > The main thing is, the kernel stops very early, I have turned on every > debug option, but have not much info :( > > [0.00] Linux version 4.4.30 (mcmilk@lap-00488) (gcc version 5.4.0 > (LEDE GCC 5.4.0 r2084) ) #0 Sat Nov 5

Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-07 Thread Mathias Kresin
07.11.2016 19:02, Tino Reichardt: Now I have to check, how to start the init... Is there currently any golden way, how the init should be done on these devices, with very small flash memory? I also modify the .config, to fit the drivers of the allnet ;) In menuconfig => "Target Images" you

Re: [LEDE-DEV] [PATCHv2] ipq806x: add support for ZyXEL NBG6817

2016-10-19 Thread Mathias Kresin
17.10.2016 21:22, André Valentin: CPU: 1.8GHz ARM, RAM: 512MB Storage: 4MiB Serial Flash, 3.9GiB MMC NIC: 2x1GBit/s, 5 external and 2 internal Port Switch WiFi: Dualband, ATH10k 2.4GHz, 5GHz MU-MIMO Changes: -remove kernel compression changes -give spi-nor.c patch a correct name Signed-off-by:

Re: [LEDE-DEV] [PATCH v2 4/5] base-files, mac80211, broadcom-wl: plug-and-play wifi detection

2016-10-12 Thread Mathias Kresin
2016-10-12 13:32 GMT+02:00 Jonas Gorski : >> diff --git a/package/kernel/mac80211/Makefile >> b/package/kernel/mac80211/Makefile >> index 91c9362..f320326 100644 >> --- a/package/kernel/mac80211/Makefile >> +++ b/package/kernel/mac80211/Makefile >> @@ -1732,6 +1732,8 @@

Re: [LEDE-DEV] [PATCH] kirkwood: disable fault LEDs by default

2016-10-22 Thread Mathias Kresin
2016-10-22 21:46 GMT+02:00 : > From: P.Wassi > > Set the default value for status-fault LEDs to '0' > > Signed-off-by: P.Wassi Full name please! > --- > The kirkwood-dockstar, kirkwood-goflex* and kirkwood-pogoplug devices have > one duo-color

Re: [LEDE-DEV] [PATCH] mt7621: add support for WeVO W2914NS v2

2016-11-17 Thread Mathias Kresin
17.11.2016 03:11, perillamint: Hi, Mathias Kresin. It seems its Ethernet LEDs are directly hooked into switch chip. It flashes without defining them in DTB. I dunno about where WLAN LEDs are hooked. I failed to drive them with sysfs gpio driver. It might be that they are driven directly

Re: [LEDE-DEV] [PATCH] mt7621: add support for WeVO W2914NS v2

2016-11-16 Thread Mathias Kresin
Hi, find my comments inline. 2016-11-16 12:47 GMT+01:00 perillamint : > From: "Yong-hyu, Ban" > > Signed-off-by: Yong-hyu, Ban > --- > .../linux/ramips/base-files/etc/board.d/02_network | 1 + >

Re: [LEDE-DEV] ar71xx: Fix switch config on Mikrotik RB450/G

2016-11-17 Thread Mathias Kresin
Hey João, both patches you have send are whitespace mangled by your mail program and do not apply: $ git am LEDE-DEV-ar71xx-enable-serial-console-on-mikrotik-devices.patch Applying: ar71xx: enable serial console on mikrotik devices error: patch failed:

Re: [LEDE-DEV] [PATCH] mt7621: add support for WeVO W2914NS v2

2016-11-17 Thread Mathias Kresin
17.11.2016 14:50, perillamint: Signed-off-by: Yong-hyu Ban Hi, I will set this patch to "changes requested" in patchwork. As you already noticed by yourself, not all changes that I've requested for v1 are addressed properly. Please use the --annotate option of git

Re: [LEDE-DEV] adding LEDE support for board DLINK DWR-512-B

2016-11-13 Thread Mathias Kresin
13.11.2016 21:54, Giuseppe Lippolis: I try to follow the notes of Alberto, https://www.freedesktop.org/wiki/Software/PulseAudio/HowToUseGitSendEmail/ but clearly something has gone wrong!!! Can someone help me to commit? Thanks. You might want to try to create a pull request at the LEDE

Re: [LEDE-DEV] [PATCH v1 2/3] apm821xx: consolidate apm821xx device trees files

2016-11-12 Thread Mathias Kresin
11.11.2016 18:08, Christian Lamparter: This patch moves the common SoC device tree entries from the currently four supported platforms into a common apm82181.dtsi. Furthermore, this patch also changes the GPIO and INPUT definitions of the supported platforms to use the defined dt-bindings

[LEDE-DEV] [PATCH 2/3] mac80211: rt2x00: remove eeprom filename dependency from mtd-eeprom

2016-11-04 Thread Mathias Kresin
read from the mtd devices matches the requested number of bytes. In case of an mtd read error, give a hint to the user which partition was tried to read from. In case everything is fine, notify the user as well. Signed-off-by: Mathias Kresin <d...@kresin.me> --- ...-eeprom-on-SoC-from

[LEDE-DEV] [PATCH 0/3] mac80211: rt2x00: improve device tree eeprom handling

2016-11-04 Thread Mathias Kresin
/staging.git;a=shortlog;h=refs/heads/rt2x00 Mathias Kresin (3): mac80211: rt2x00: improve eeprom_file property handling mac80211: rt2x00: remove eeprom filename dependency from mtd-eeprom mac80211: rt2x00: add mtd-eeprom swab function .../603-rt2x00-introduce-rt2x00eeprom.patch| 24

[LEDE-DEV] [PATCH 1/3] mac80211: rt2x00: improve eeprom_file property handling

2016-11-04 Thread Mathias Kresin
. It should be (and is) set before requesting an EEPROM file. Do not redirect users to upstream while using a function of a custom patch. Signed-off-by: Mathias Kresin <d...@kresin.me> --- .../603-rt2x00-introduce-rt2x00eeprom.patch| 24 -- ...-eeprom-on-SoC-from

[LEDE-DEV] [PATCH 3/3] mac80211: rt2x00: add mtd-eeprom swab function

2016-11-04 Thread Mathias Kresin
Most of the lantiq devices with ralink wifi have the EEPROM stored in big endian byte order in flash, but the driver expects the EEPROM to be in little endian. Signed-off-by: Mathias Kresin <d...@kresin.me> --- ...x00-load-eeprom-on-SoC-from-a-mtd-device-defines-.patch | 14 +--

Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-04 Thread Mathias Kresin
2016-11-04 9:46 GMT+01:00 Tino Reichardt : > * Alberto Bursi wrote: >> On 11/03/2016 10:13 AM, Tino Reichardt wrote: >> > Most of these Modems have only a very small flash of 2MB or 4MB .. so >> > there is no need for lot of stuff. My aim is to have

Re: [LEDE-DEV] [PATCH V2 2/3] switch to the new usbport LED trigger

2016-10-17 Thread Mathias Kresin
2016-10-17 12:10 GMT+02:00 Rafal Milecki <ra...@milecki.pl>: > On 10/16/2016 03:12 PM, Mathias Kresin wrote: >> >> 13.10.2016 09:44, Rafał Miłecki: >>> >>> diff --git a/package/base-files/files/etc/init.d/led >>> b/package/base-files/files/

Re: [LEDE-DEV] [PATCH v5 2/3] ipq806x: Add support for new device: tew827dru

2016-11-27 Thread Mathias Kresin
27.11.2016 06:28, J Mo: diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile index 3cc48bb..01bcbc7 100644 --- a/target/linux/ipq806x/image/Makefile +++ b/target/linux/ipq806x/image/Makefile @@ -103,6 +103,49 @@ define Device/ZyXELImage

Re: [LEDE-DEV] [PATCH v5 2/3] ipq806x: Add support for new device: tew827dru

2016-12-11 Thread Mathias Kresin
05.12.2016 03:43, J Mo: On 12/01/2016 11:18 PM, Mathias Kresin wrote: 02.12.2016 06:28, J Mo: On 11/27/2016 02:29 AM, Mathias Kresin wrote: Can you please clarify what of my previous reply it is that you don't understand so that I can do a better job of explaining it? The problem is quite

Re: [LEDE-DEV] [PATCH] mtd: Fix the soft reboot problem found on MediaTek devices with 32M Flash.

2017-01-11 Thread Mathias Kresin
2017-01-11 14:25 GMT+01:00 L. D. Pinney : > This patch resets the spi to 3 byte mode needed for devices with more than > 16M Flash. > Tested on the Onion Omega2+ (MT7688) > > Signed-off-by: L. D. Pinney > Tested-by: Nita Vesa > > --- >

Re: [LEDE-DEV] VGV7510KW22: Image Problem ?

2016-12-02 Thread Mathias Kresin
2016-11-24 13:05 GMT+01:00 Dennis Schneck : > Hello, > i try to upgrade my Image on my VGV7510KW22 > > Running: r2244 > > root@router:/tmp# wget > http://downloads.lede-project.org/snapshots/targets/lantiq/xrx200/lede-lantiq-xrx200-VGV7510KW22NOR-squashfs-sys > upgrade.bin >

Re: [LEDE-DEV] [PATCH v5 2/3] ipq806x: Add support for new device: tew827dru

2016-12-01 Thread Mathias Kresin
02.12.2016 06:28, J Mo: On 11/27/2016 02:29 AM, Mathias Kresin wrote: I asked you three (!) times to _explain_ what this code should do [0][1][2]. Now I see the very same code again without having ever seen the requested explanation. This still looks like the hackish image code

[LEDE-DEV] ramips: image validator and board variants

2016-12-05 Thread Mathias Kresin
Hey John, Hey Felix I'm near to finished with porting the remaining ramips devices to the new image build code. While doing this, I might have spotted a ramips specific issue with the new image validation feature in regard of build variants of boards. At the moment the build code of for

Re: [LEDE-DEV] [PATCH] lantiq: set the usb clock source

2017-01-01 Thread Mathias Kresin
01.01.2017 11:21, Mathias Kresin: The clock source is set by the ltq-hcd driver but are not by the dwc2 driver. Without having the correct clock set the dwc driver fails to reset the usb core and errors out. The values for supported lantiq targets are exactly the same as set by the ltq-hcd

  1   2   >