[OpenWrt-Devel] [PATCH] malta: move to 4.4 kernel

2016-01-26 Thread Yousong Zhou
Linux now has device tree support for malta. The patch for correcting /proc/iomem content is not needed now. Previously it was root@(none):/# cat /proc/iomem -0fff : reserved 1000-000e : System RAM 000f-000f : reserved 0010-0fffefff : System

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-26 Thread John Crispin
On 26/01/2016 21:35, Petr Štetiar wrote: > Bastian Bittorf [2016-01-21 12:53:48]: > >> * Petr Štetiar [21.01.2016 12:22]: >>> boot() { >>> + [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV && >>> exit 0 >> >> thank you! can you

Re: [OpenWrt-Devel] First boot provisioning

2016-01-26 Thread David Lang
catching up on old e-mail On Wed, 9 Dec 2015, Lukáš Macura wrote: Hello, I would want to start some discussion about first boot provisioning and theoretical inclusion of some script into default images. Today, if somebody want some automatic way to autoconfigure OpenWrt boxes, he has to

Re: [OpenWrt-Devel] [PATCH] busybox: sysntpd - use NTP servers received via DHCP

2016-01-26 Thread Amine Aouled Hamed
Anyone tried both triggers at the same time and checked if it works correctly? On Mon, Jan 25, 2016 at 5:05 PM, Amine Aouled Hamed wrote: > this is the patch: > --- > package/utils/busybox/files/sysntpd | 8 > 1 file changed, 8 insertions(+) > > diff --git

[OpenWrt-Devel] ramips: Error in mt7620_gsw_probe/mt7621_gsw_probe?

2016-01-26 Thread Cezary Jackiewicz
Hello, +static int mt7620_gsw_probe(struct platform_device *pdev) +{ + struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + const char *port4 = NULL; + struct mt7620_gsw *gsw; + struct device_node *np; + + gsw = devm_kzalloc(>dev, sizeof(struct

[OpenWrt-Devel] [PATCH 1/3] swconfig: add (PHY) generic helper setting port link

2016-01-26 Thread Rafał Miłecki
It's quite common for switches to have PHY per port so adding a generic helper setting link state will help many drivers. It just neede an API to access PHYs which this patch also adds. Signed-off-by: Rafał Miłecki --- .../linux/generic/files/drivers/net/phy/swconfig.c | 36

[OpenWrt-Devel] [PATCH 2/3] b53: provide PHY access to swconfig

2016-01-26 Thread Rafał Miłecki
Thanks to this swconfig can access port PHYs e.g. when setting port link state with a generic helper. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 26 ++ .../generic/files/drivers/net/phy/b53/b53_mdio.c | 20

[OpenWrt-Devel] [PATCH 3/3] b53: support setting port link

2016-01-26 Thread Rafał Miłecki
When dealing with Broadcom hardware we can simply use swconfig's generic helper, we just need to do some validation of requested state. Signed-off-by: Rafał Miłecki --- .../generic/files/drivers/net/phy/b53/b53_common.c | 31 ++ 1 file changed, 31

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-26 Thread Petr Štetiar
Bastian Bittorf [2016-01-21 12:53:48]: > * Petr Štetiar [21.01.2016 12:22]: > > boot() { > > + [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV && > > exit 0 > > thank you! can you please do in this line a: > && return Like

[OpenWrt-Devel] [PATCH] iproute2: ip_tiny.patch: Don't filter CAN support

2016-01-26 Thread Pushpal Sidhu
Adds < 4k to ipk. Signed-off-by: Tim Harvey Signed-off-by: Pushpal Sidhu --- package/network/utils/iproute2/patches/300-ip_tiny.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[OpenWrt-Devel] [PATCH] kernel: add dsa driver support

2016-01-26 Thread Pushpal Sidhu
From: Tim Harvey The Linux Distributed Switch Architecture drivers provide richer support than the swconfig driver API in that each switch port gets its own interface which allows protocols such as STP, LLDP, 802.1x etc. Signed-off-by: Tim Harvey

[OpenWrt-Devel] [PATCH] kernel: gpio-button-hotplug: update to use threaded irq's

2016-01-26 Thread Pushpal Sidhu
Many gpio controllers 'cansleep' due to the fact that they are behind busses e.g. i2c etc. Using threaded irq's allows for 'sleep-able' gpio's to be used. Signed-off-by: Pushpal Sidhu Signed-off-by: Tim Harvey ---

[OpenWrt-Devel] Add several kernel modules

2016-01-26 Thread Pushpal Sidhu
adds kernel modules for: * input-mma8451 * pwm * pwm-imx Pushpal Sidhu (2): kernel: add mma8451 module kernel: other: add PWM controller support package/kernel/linux/modules/input.mk | 17 + package/kernel/linux/modules/other.mk | 36

[OpenWrt-Devel] [PATCH 1/2] kernel: add mma8451 module

2016-01-26 Thread Pushpal Sidhu
Signed-off-by: Pushpal Sidhu --- package/kernel/linux/modules/input.mk | 17 + 1 file changed, 17 insertions(+) diff --git a/package/kernel/linux/modules/input.mk b/package/kernel/linux/modules/input.mk index 3f50a9f..b50106b 100644 ---

[OpenWrt-Devel] [PATCH 2/2] kernel: other: add PWM controller support

2016-01-26 Thread Pushpal Sidhu
This adds basic PWM controller support and support for i.MX Signed-off-by: Tim Harvey Signed-off-by: Pushpal Sidhu --- package/kernel/linux/modules/other.mk | 36 +++ 1 file changed, 36 insertions(+) diff --git

Re: [OpenWrt-Devel] [PATCH 1/6] [kernel] ath9k: enable GPIO access for ar9287 and ar9285

2016-01-26 Thread Michal
Hello, Hartmut, thanks for your input and help, it is always welcome. > > [...] Why not create the gpio_chip just > based on the fact, if a supported AR928x device is present or not? > The support code will be there, already. So, the additional footprint > of the gpio_chip is pretty small. >

[OpenWrt-Devel] Question about custom script at init on Trunk.-

2016-01-26 Thread Guillermo Javier Nardoni
Hello everyone, At first, I should say that I’ve been away a long time from openwrt-devel mailing list. I was using Barrier Braker 14.07 to build our custom firmware, usually for TP-Link WR740/741 v3/v4, but recently we have received TP-Link WR740 v5 (a.k.a. 741 v5) so I figured out that

[OpenWrt-Devel] [PATCH 1/8] ath9k: enable platform WLAN LED name

2016-01-26 Thread Michal
From: Michal Cieslakiewicz Enable platform-supplied WLAN LED name for ath9k device. Signed-off-by: Michal Cieslakiewicz --- .../patches/546-ath9k_platform_led_name.patch | 35 ++

[OpenWrt-Devel] [PATCH 3/8] ath9k: show platform MAC address in kernel log if set

2016-01-26 Thread Michal
From: Michal Cieslakiewicz Add information in kernel log during module startup if MAC address of WLAN device is overridden by platform-supplied one. Signed-off-by: Michal Cieslakiewicz ---

[OpenWrt-Devel] [PATCH 4/8] ath9k: enable access to GPIO

2016-01-26 Thread Michal
From: Michal Cieslakiewicz Enable access to GPIO chip and its pins for Atheros AR92xx wireless devices. For now AR9285 and AR9287 are supported. Signed-off-by: Michal Cieslakiewicz --- .../patches/549-ath9k_enable_gpio_chip.patch |

[OpenWrt-Devel] [PATCH 5/8] ath9k: enable GPIO buttons

2016-01-26 Thread Michal
From: Michal Cieslakiewicz Enable platform-defined GPIO button support for ath9k device. Key poller is activated for attached platform buttons. Requires ath9k GPIO chip access. Signed-off-by: Michal Cieslakiewicz ---

[OpenWrt-Devel] [PATCH 6/8] package: exclude USB modules from WNR2000v3 image

2016-01-26 Thread Michal
From: Michal Cieslakiewicz Netgear WNR2000v3 has no USB port yet default system image includes USB kernel modules. This patch fixes that. Signed-off-by: Michal Cieslakiewicz --- target/linux/ar71xx/generic/profiles/netgear.mk | 1 + 1

[OpenWrt-Devel] [PATCH 7/8] ath79: fix for random WLAN MAC for WNR2000v3

2016-01-26 Thread Michal
From: Michal Cieslakiewicz Fix for invalid/random WLAN MAC address in WNR2000v3. Permanent platform MAC is calculated and assigned during system startup. WLAN MAC follows wired Ethernet interface addresses. Signed-off-by: Michal Cieslakiewicz

[OpenWrt-Devel] [PATCH 8/8] ath79: all LEDs and buttons for Netgear WNR2000v3

2016-01-26 Thread Michal
From: Michal Cieslakiewicz This patch provides full GPIO support for WNR2000v3 (LEDs and buttons). It exposes all LEDs to operating system, including Ethernet ones. Signed-off-by: Michal Cieslakiewicz ---

Re: [OpenWrt-Devel] Question about custom script at init on Trunk.-

2016-01-26 Thread Eric Schultz
Guillermo, It's always best to use a custom package if you can. Modifying upstream leads to problems like this. I don't think you'd need those changes in uci-defaults.sh. Instead, I think you should put your changes in your own uci-default, like 02_network, but your own. Use a number after 02,

[OpenWrt-Devel] [PATCH] brcm63xx: fix HG556a C button

2016-01-26 Thread dani
One button of the HG556a-C has the wrong GPIO pin defined in the dts file, fix it Probably as it happened with leds previously, the buttons were copied from the A, B versions of this router, but nobody checked it. The "help" button has the GPIO pin 36 not the pin 8. Signed-off-by: Daniel