Re: [OpenWrt-Devel] [PATCH V3] cdc_ncm: Add support for moving NDP to end of NCM frame
On 15/07/2015 19:57, John Crispin wrote: On 15/07/2015 19:41, Matti Laakso wrote: Hi, how is the testing going ? i would like to also pull this intot he CC which means there is not that much time left. also the patch sent was missing proper subject and SoB. John Hi John, Sorry about the delay, it seems I've managed to kill the second USB-port in my main router, and the first was for extroot. Now I was able to test this on another router, and E3372s is working perfectly on current 15.05 with this patch. Pure plug-and-play, at least for IPv4 connectivity. I can send a properly formatted and signed-off patch shortly, hope it still makes it to 15.05. Matti goodie, i'll pull it into CC done, do we also need this for 4.1 ? John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] bugfix: FORCE=1 doesn't work to override prereq checks
On 20/07/2015 19:45, Lawrence D'Anna wrote: What prereq can be forced that makes force even a worthwhile option? If it works anyway, why not just drop the prereq check? If it still won't work, what's the point in allowing a force? In my case it was because the prereq checks didn’t think I had openssl because they didn’t use HOST_CPPFLAGS. rather than using force, the prereq check should get fixed properly John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] CC: brcm2708: Add sysupgrade for Rasperry Pi
On 17/07/2015 19:18, Bruno Randolf wrote: diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile index 30f6e1d..37ff204 100644 --- a/target/linux/brcm2708/Makefile +++ b/target/linux/brcm2708/Makefile @@ -19,7 +19,8 @@ SUBTARGETS:=bcm2708 bcm2709 KERNEL_PATCHVER:=3.18 include $(INCLUDE_DIR)/target.mk -DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 +DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 \ + kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 define Target/Description Build firmware image for Broadcom BCM2708/BCM2709 SoC devices. these changes are unrelated to sysupgrade. please split the patch up John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] sunxi: fix uboot install location
On 16/07/2015 22:20, Matthias Schiffer wrote: -BOARDS:= \ - sun4i-a10-cubieboard \ - sun4i-a10-olinuxino-lime \ - sun4i-a10-pcduino \ - sun5i-a13-olinuxino \ - sun6i-a31-colombus \ - sun6i-a31-m9 \ - sun7i-a20-bananapi \ - sun7i-a20-bananapro \ - sun7i-a20-cubieboard2 \ - sun7i-a20-cubietruck \ - sun7i-a20-olinuxino-lime \ - sun7i-a20-olinuxino-micro \ - sun7i-a20-pcduino3 \ - sun7i-a20-lamobo-r1 - define Image/BuildKernel mkimage -A arm -O linux -T kernel -C none \ -a 0x40008000 -e 0x40008000 \ -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' \ -d $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-uImage - + ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) $(CP) $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs echo -ne '\x00\x00\x00\x00' $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs @@ -42,27 +26,23 @@ define Image/BuildKernel $(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs \ ) endif - - $(foreach board,$(BOARDS), - $(CP) $(DTS_DIR)/$(board).dtb $(BIN_DIR)/ - ) endef not sure about this change. maybe just stage the dtb file of the selected profile. i am not sure if zoltan added this for a reason. John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH V3] cdc_ncm: Add support for moving NDP to end of NCM frame
The fix will be in 4.2, so we still need the patch for 4.1. Lähettäjä: John Crispinmailto:blo...@openwrt.org Lähetetty: 24.7.2015 9:46 Vastaanottaja: Matti Laaksomailto:malaa...@elisanet.fi; openwrt-devel@lists.openwrt.orgmailto:openwrt-devel@lists.openwrt.org; chr...@open-resource.orgmailto:chr...@open-resource.org Aihe: Re: [OpenWrt-Devel] [PATCH V3] cdc_ncm: Add support for moving NDP to end of NCM frame On 15/07/2015 19:57, John Crispin wrote: On 15/07/2015 19:41, Matti Laakso wrote: Hi, how is the testing going ? i would like to also pull this intot he CC which means there is not that much time left. also the patch sent was missing proper subject and SoB. John Hi John, Sorry about the delay, it seems I've managed to kill the second USB-port in my main router, and the first was for extroot. Now I was able to test this on another router, and E3372s is working perfectly on current 15.05 with this patch. Pure plug-and-play, at least for IPv4 connectivity. I can send a properly formatted and signed-off patch shortly, hope it still makes it to 15.05. Matti goodie, i'll pull it into CC done, do we also need this for 4.1 ? John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] CC: brcm2708: Add sysupgrade for Rasperry Pi
On 24/07/2015 11:24, Bruno Randolf wrote: On 07/24/2015 08:12 AM, John Crispin wrote: On 17/07/2015 19:18, Bruno Randolf wrote: diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile index 30f6e1d..37ff204 100644 --- a/target/linux/brcm2708/Makefile +++ b/target/linux/brcm2708/Makefile @@ -19,7 +19,8 @@ SUBTARGETS:=bcm2708 bcm2709 KERNEL_PATCHVER:=3.18 include $(INCLUDE_DIR)/target.mk -DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 +DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 \ + kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 define Target/Description Build firmware image for Broadcom BCM2708/BCM2709 SoC devices. these changes are unrelated to sysupgrade. please split the patch up Hi John, This is necessary for sysupgrade, since it stores the sysupgrade.tgz in the FAT32 boot partition. Greetings, bruno of course, failed to see the obvious .. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH V3] cdc_ncm: Add support for moving NDP to end of NCM frame
On 24/07/2015 11:19, Matti Laakso wrote: The fix will be in 4.2, so we still need the patch for 4.1. can you prepare a patch and send it over ? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] CC: brcm2708: Add sysupgrade for Rasperry Pi
On 07/24/2015 08:12 AM, John Crispin wrote: On 17/07/2015 19:18, Bruno Randolf wrote: diff --git a/target/linux/brcm2708/Makefile b/target/linux/brcm2708/Makefile index 30f6e1d..37ff204 100644 --- a/target/linux/brcm2708/Makefile +++ b/target/linux/brcm2708/Makefile @@ -19,7 +19,8 @@ SUBTARGETS:=bcm2708 bcm2709 KERNEL_PATCHVER:=3.18 include $(INCLUDE_DIR)/target.mk -DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 +DEFAULT_PACKAGES += brcm2708-gpu-fw kmod-usb-hid kmod-sound-core kmod-sound-arm-bcm2835 \ +kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 define Target/Description Build firmware image for Broadcom BCM2708/BCM2709 SoC devices. these changes are unrelated to sysupgrade. please split the patch up Hi John, This is necessary for sysupgrade, since it stores the sysupgrade.tgz in the FAT32 boot partition. Greetings, bruno ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH]v2: CC: ar71xx: add support for Onion Omega
Hi, fails to apply after other backport. please rebase and resend once i pushed my tree John On 22/07/2015 13:37, L. D. Pinney wrote: This patch adds support for the Onion Omega. https://onion.io/omega Signed-off-by: L. D. Pinney ldpin...@gmail.com Acked-by: Boken Lin b...@onion.io Tested-by: Jacky Huang huangfangch...@163.com --- Patch v1 had ath79/mach-onion-omega.c and profiles/onion.mk ommitted in error. v2 includes these files. target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 4 target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-3.18| 1 + target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c | 84 target/linux/ar71xx/generic/profiles/onion.mk | 16 ++ target/linux/ar71xx/image/Makefile | 9 target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch | 48 + tools/firmware-utils/src/mktplinkfw.c | 6 ++ 10 files changed, 161 insertions(+), 14 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 4bdb53d..6b885b2 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -159,6 +159,9 @@ get_status_led() { om5p-an) status_led=om5p:blue:power ;; + onion-omega) + status_led=onion:amber:system + ;; pb44) status_led=pb44:amber:jump1 ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 4fe951e..2a43c2c 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -274,6 +274,10 @@ mynet-n750) [ -n $mac ] ucidef_set_interface_macaddr wan $mac ;; +onion-omega) + ucidef_set_interface_lan wlan0 + ;; + dhp-1565-a1 |\ dir-835-a1 |\ wndr3700v4 | \ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 8f4bb40..1315859 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -538,6 +538,9 @@ ar71xx_board_detect() { *OM5P AN) name=om5p-an ;; + *Onion Omega) + name=onion-omega + ;; *PB42) name=pb42 ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index ade47fb..f5f4adb 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -305,6 +305,7 @@ platform_check_image() { el-mini | \ gl-inet | \ mc-mac1200r | \ + onion-omega | \ oolite | \ smart-300 | \ tl-mr10u | \ diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18 index 05c98eb..8167134 100644 --- a/target/linux/ar71xx/config-3.18 +++ b/target/linux/ar71xx/config-3.18 @@ -82,6 +82,7 @@ CONFIG_ATH79_MACH_NBG460N=y CONFIG_ATH79_MACH_NBG6716=y CONFIG_ATH79_MACH_OM2P=y CONFIG_ATH79_MACH_OM5P=y +CONFIG_ATH79_MACH_ONION_OMEGA=y CONFIG_ATH79_MACH_PB42=y CONFIG_ATH79_MACH_PB44=y CONFIG_ATH79_MACH_PB92=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c new file mode 100644 index 000..c739840 --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c @@ -0,0 +1,84 @@ +/* + * Onion Omega board support + * + * Copyright (C) 2015 Boken Lin b...@onion.io + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#include linux/gpio.h + +#include asm/mach-ath79/ath79.h + +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-m25p80.h +#include dev-usb.h +#include dev-wmac.h +#include machtypes.h + +#define OMEGA_GPIO_LED_SYSTEM27 +#define OMEGA_GPIO_BTN_RESET 11 + +#define OMEGA_GPIO_USB_POWER 8 + +#define OMEGA_KEYS_POLL_INTERVAL 20 /* msecs */ +#define OMEGA_KEYS_DEBOUNCE_INTERVAL (3 * OMEGA_KEYS_POLL_INTERVAL) + +static const char *omega_part_probes[] =
Re: [OpenWrt-Devel] [PATCH] CC: ar71xx: add support for D-LINK DIR-615 rev. Ix board
Hi, patch fails to apply to my tree in combination with other backports. please rebase and resend once i pushed my tree On 15/07/2015 11:04, Jaehoon You wrote: backport of r46248. Signed-off-by: Jaehoon You teslam...@gmail.com --- target/linux/ar71xx/base-files/etc/diag.sh | 1 + .../ar71xx/base-files/etc/uci-defaults/01_leds | 8 ++ .../ar71xx/base-files/etc/uci-defaults/02_network | 1 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 + .../base-files/lib/preinit/05_set_iface_mac_ar71xx | 3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-3.18| 1 + .../ar71xx/files/arch/mips/ath79/mach-dir-615-i1.c | 133 + target/linux/ar71xx/generic/profiles/d-link.mk | 10 ++ target/linux/ar71xx/image/Makefile | 9 ++ .../610-MIPS-ath79-openwrt-machines.patch | 25 +++- 11 files changed, 189 insertions(+), 6 deletions(-) mode change 100644 = 100755 target/linux/ar71xx/base-files/etc/uci-defaults/02_network create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-dir-615-i1.c diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 4bdb53d..b1195a3 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -57,6 +57,7 @@ get_status_led() { dir-505-a1 |\ dir-600-a1 |\ dir-615-e1 |\ + dir-615-i1 |\ dir-615-e4) status_led=d-link:green:power ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index 19814f4..3cafc6f 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -145,6 +145,14 @@ dir-825-b1) ucidef_set_led_usbdev usb USB d-link:blue:usb 1-1 ;; +dir-615-i1) + ucidef_set_led_default power POWER d-link:green:power 1 + ucidef_set_led_default diag DIAG d-link:amber:power 0 + ucidef_set_led_default wps WPS d-link:blue:wps 0 + ucidef_set_led_netdev wan WAN d-link:green:wan eth0 + ucidef_set_led_wlan wlan WLAN d-link:green:wlan phy0tpt + ;; + dir-825-c1) ucidef_set_led_usbdev usb USB d-link:blue:usb 1-1 ucidef_set_led_wlan wlan2g WLAN 2.4 GHz d-link:blue:wlan2g phy0tpt diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network old mode 100644 new mode 100755 index 4fe951e..8cf3b3b --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -213,6 +213,7 @@ tl-wr941nd) r6100 |\ smart-300 |\ +dir-615-i1 |\ tl-mr3420-v2 |\ tl-wr841n-v8 |\ tl-wr842n-v2 |\ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 8f4bb40..711f2b0 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -405,6 +405,9 @@ ar71xx_board_detect() { *DIR-615 rev. E4) name=dir-615-e4 ;; + *DIR-615 rev. I1) + name=dir-615-i1 + ;; *DIR-825 rev. B1) name=dir-825-b1 ;; diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx index b40dff5..c39169a 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx +++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_iface_mac_ar71xx @@ -29,6 +29,9 @@ preinit_set_mac_address() { fetch_mac_from_mtd config lan_mac wan_mac echo 1 /sys/class/leds/dir-615-c1:green:wancpu/brightness ;; + dir-615-i1) + fetch_mac_from_mtd nvram sys_lan_mac sys_wan_mac + ;; r6100) mac_lan=$(mtd_get_mac_binary caldata 0) [ -n $mac_lan ] ifconfig eth1 hw ether $mac_lan diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index ade47fb..34ae5a5 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -205,6 +205,7 @@ platform_check_image() { dir-615-c1 | \ dir-615-e1 | \ dir-615-e4 | \ + dir-615-i1 | \ dir-825-c1 | \ dir-835-a1 | \ dragino2 | \ diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18 index 05c98eb..cce377e 100644 --- a/target/linux/ar71xx/config-3.18 +++ b/target/linux/ar71xx/config-3.18 @@ -51,6 +51,7 @@
Re: [OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target
Still not working. On Fri, Jul 24, 2015 at 5:59 PM, Steven Barth cy...@openwrt.org wrote: Sorry there was a typo in my last e-mail. It should have been: config interface lan6 option proto dhcpv6 option ifname @lan After doing the change, please run: reload_config Cheers, Steven Am 24.07.2015 um 14:27 schrieb Pratik Prajapati: I have added that section on target's /etc/config/network file but still ipv6 is not assigned to it ifconfig on target: eth0 Link encap:Ethernet HWaddr E2:AB:C0:A8:5F:38 inet6 addr: fe80::e0ab:c0ff:fea8:5f38/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8730 errors:0 dropped:0 overruns:0 frame:0 TX packets:191 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:968468 (945.7 KiB) TX bytes:17574 (17.1 KiB) Interrupt:57 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:8225 errors:0 dropped:0 overruns:0 frame:0 TX packets:8225 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:677074 (661.2 KiB) TX bytes:677074 (661.2 KiB) On Fri, Jul 24, 2015 at 5:32 PM, Steven Barth cy...@openwrt.org wrote: Add a section like this: config lan6 option proto dhcpv6 option ifname @lan And yes, proto dhcpv6 also works with RAs only. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH V3] cdc_ncm: Add support for moving NDP to end of NCM frame
Sure, but will take until Monday. Lähettäjä: John Crispinmailto:blo...@openwrt.org Lähetetty: 24.7.2015 12:22 Vastaanottaja: Matti Laaksomailto:malaa...@elisanet.fi; openwrt-devel@lists.openwrt.orgmailto:openwrt-devel@lists.openwrt.org; chr...@open-resource.orgmailto:chr...@open-resource.org Aihe: Re: [OpenWrt-Devel] [PATCH V3] cdc_ncm: Add support for moving NDP to end of NCM frame On 24/07/2015 11:19, Matti Laakso wrote: The fix will be in 4.2, so we still need the patch for 4.1. can you prepare a patch and send it over ? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target
Hi, I was trying radvd (2.11) with two machines but my target couldn't assign ipv6 address. Setup: Both machines (linux machine and OpenWrt ported embedded board) are connected directly with LAN cable. /etc/radvd.conf interface eth0 { AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; prefix 2001:0db8:0100:f101::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; }; Started radvd on linux machine: radvd start ifconfig on host machine: eth0 Link encap:Ethernet HWaddr 98:90:96:a5:ea:ee inet6 addr: 2001:db8:100:f101:1920:959d:7aaf:ceef/64 Scope:Global inet6 addr: fe80::9a90:96ff:fea5:eaee/64 Scope:Link inet6 addr: 2001:db8:100:f101:9a90:96ff:fea5:eaee/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8827967 errors:0 dropped:0 overruns:0 frame:0 TX packets:6456033 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9261325418 (9.2 GB) TX bytes:1780970523 (1.7 GB) Interrupt:20 Memory:f7c0-f7c2 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:11726105 errors:0 dropped:0 overruns:0 frame:0 TX packets:11726105 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:961334966 (961.3 MB) TX bytes:961334966 (961.3 MB) ifconfig on target: eth0 Link encap:Ethernet HWaddr E2:AB:C0:A8:5F:38 inet6 addr: fe80::e0ab:c0ff:fea8:5f38/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2474 errors:0 dropped:0 overruns:0 frame:0 TX packets:112 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:277844 (271.3 KiB) TX bytes:10812 (10.5 KiB) Interrupt:57 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:1601 errors:0 dropped:0 overruns:0 frame:0 TX packets:1601 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:133906 (130.7 KiB) TX bytes:133906 (130.7 KiB) Network configuration(default) on target: config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option ifname 'eth0' option type 'bridge' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' config globals 'globals' option ula_prefix 'fdc9:25e1:e731::/48' radvdump logs on target: # # radvd configuration generated by radvdump 2.11 # based on Router Advertisement from fe80::9a90:96ff:fea5:eaee # received by interface eth0 # interface eth0 { AdvSendAdvert on; # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump AdvManagedFlag off; AdvOtherConfigFlag off; AdvReachableTime 0; AdvRetransTimer 0; AdvCurHopLimit 64; AdvDefaultLifetime 30; AdvHomeAgentFlag off; AdvDefaultPreference medium; AdvSourceLLAddress on; prefix 2001:db8:100:f101::/64 { AdvValidLifetime 86400; AdvPreferredLifetime 14400; AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; # End of prefix definition }; # End of interface definition # # radvd configuration generated by radvdump 2.11 # based on Router Advertisement from fe80::9a90:96ff:fea5:eaee # received by interface eth0 # interface eth0 { AdvSendAdvert on; # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump AdvManagedFlag off; AdvOtherConfigFlag off; AdvReachableTime 0; AdvRetransTimer 0; AdvCurHopLimit 64; AdvDefaultLifetime 30; AdvHomeAgentFlag off; AdvDefaultPreference medium; AdvSourceLLAddress on; prefix 2001:db8:100:f101::/64 { AdvValidLifetime 86400; AdvPreferredLifetime 14400; AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; # End of prefix definition }; # End of interface definition My questions: What other steps needed to get ipv6 address (with prefix sent by radvd on machine) on target. Am i missing something in radvd.conf ? What needs to be changed in openwrt's configuraton (/etc/config/network) on target side to get ipv6 ? Thanks, Pratik ___ openwrt-devel mailing list
[OpenWrt-Devel] GUI user name and pass
Hi, There is one issue, normally whenever i open GUI its ask for user name and password, again close the browser and open GUI it ask for UN and Password, but there is problem when i do factory reset it stop asking UN and Password for GUI anymore. Please help us to solve this urgently. Thanks, John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] GUI user name and pass
On 24/07/2015 12:17, John kerry wrote: Hi, There is one issue, normally whenever i open GUI its ask for user name and password, again close the browser and open GUI it ask for UN and Password, but there is problem when i do factory reset it stop asking UN and Password for GUI anymore. Please help us to solve this urgently. Thanks, John factory reset rests the device to the state which it had when it was flashed and default owrt images come without a password. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] mcs814x: Fix debug UART and timer irq
It was broken since kernel 3.18 (irq) and 3.14 (debug). IRQ 0 is the timer interrupt and is not illegal! Signed-off-by: Günther Kelleter guenther.kelle...@devolo.de --- target/linux/mcs814x/config-3.18 | 10 +++-- .../linux/mcs814x/patches-3.18/014-debuguart.patch | 52 ++ 2 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 target/linux/mcs814x/patches-3.18/014-debuguart.patch diff --git a/target/linux/mcs814x/config-3.18 b/target/linux/mcs814x/config-3.18 index 87a8382..e57f5ff 100644 --- a/target/linux/mcs814x/config-3.18 +++ b/target/linux/mcs814x/config-3.18 @@ -49,10 +49,15 @@ CONFIG_CRYPTO_CRC32C=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_DEBUG_LL=y -CONFIG_DEBUG_LL_INCLUDE=mach/debug-macro.S +CONFIG_DEBUG_LL_INCLUDE=debug/8250.S CONFIG_DEBUG_LL_UART_NONE=y -# CONFIG_DEBUG_UART_8250 is not set +CONFIG_DEBUG_UART_8250=y +# CONFIG_DEBUG_UART_8250_FLOW_CONTROL is not set +CONFIG_DEBUG_UART_8250_SHIFT=2 +# CONFIG_DEBUG_UART_8250_WORD is not set +CONFIG_DEBUG_UART_PHYS=0x400dc000 # CONFIG_DEBUG_UART_PL01X is not set +CONFIG_DEBUG_UART_VIRT=0xf00dc000 # CONFIG_DEBUG_USER is not set CONFIG_DTC=y CONFIG_EARLY_PRINTK=y @@ -157,7 +162,6 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MULTI_IRQ_HANDLER=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y -CONFIG_NEED_MACH_MEMORY_H=y CONFIG_NEED_PER_CPU_KM=y CONFIG_NET_KEY=y # CONFIG_NET_VENDOR_BROADCOM is not set diff --git a/target/linux/mcs814x/patches-3.18/014-debuguart.patch b/target/linux/mcs814x/patches-3.18/014-debuguart.patch new file mode 100644 index 000..812c05c --- /dev/null +++ b/target/linux/mcs814x/patches-3.18/014-debuguart.patch @@ -0,0 +1,52 @@ +--- a/arch/arm/mach-mcs814x/include/mach/debug-macro.S /dev/null +@@ -1,11 +0,0 @@ +-#include mach/mcs814x.h +- +-.macro addruart, rp, rv, tmp +- ldr \rp, =MCS814X_PHYS_BASE +- ldr \rv, =MCS814X_VIRT_BASE +- orr \rp, \rp, #MCS814X_UART +- orr \rv, \rv, #MCS814X_UART +-.endm +- +-#define UART_SHIFT2 +-#include asm/hardware/debug-8250.S +--- a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug +@@ -1089,7 +1089,7 @@ config DEBUG_UART_8250 + (FOOTBRIDGE !DEBUG_DC21285_PORT) || \ + ARCH_GEMINI || ARCH_IOP13XX || ARCH_IOP32X || \ + ARCH_IOP33X || ARCH_IXP4XX || \ +- ARCH_LPC32XX || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC ++ ARCH_LPC32XX || ARCH_MCS814X || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC + + # Compatibility options for BCM63xx + config DEBUG_UART_BCM63XX +@@ -1124,6 +1124,7 @@ config DEBUG_UART_PHYS + default 0x3e00 if DEBUG_BCM_KONA_UART + default 0x4000e400 if DEBUG_LL_UART_EFM32 + default 0x4009 if ARCH_LPC32XX ++ default 0x400dc000 if ARCH_MCS814X + default 0x4010 if DEBUG_PXA_UART1 + default 0x4200 if ARCH_GEMINI + default 0x5000 if DEBUG_S3C24XX_UART (DEBUG_S3C_UART0 || \ +@@ -1178,6 +1179,7 @@ config DEBUG_UART_VIRT + default 0xe0010fe0 if ARCH_RPC + default 0xe100 if DEBUG_MSM_UART + default 0xfbe0 if ARCH_EBSA110 ++ default 0xf00dc000 if ARCH_MCS814X + default 0xf01fb000 if DEBUG_NOMADIK_UART + default 0xf0201000 if DEBUG_BCM2835 + default 0xf1000300 if DEBUG_BCM_5301X +--- a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c +@@ -381,7 +381,7 @@ int __handle_domain_irq(struct irq_domai +* Some hardware gives randomly wrong interrupts. Rather +* than crashing, do something sensible. +*/ +- if (unlikely(!irq || irq = nr_irqs)) { ++ if (unlikely(irq = nr_irqs)) { + ack_bad_irq(irq); + ret = -EINVAL; + } else { -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 0/2] Try to fix mcs814x dLAN USB Extender
Patches fix timer interrupt and debug UART support for dLAN USB Extender. Kernel boots now and you can connect to the UART for early console output. Kernel is too big to fit in 1MB so I changed MTD to automatic partition splitting. Platform device support is broken since kernel 3.14 and needs to be fixed. I don't know yet how to fix this stuff. As you can see in the boot log from 3.14.35 there's something wrong with interrupt resources for USB and ethernet... (was working with kernel 3.3.8) @Florian Fainelli: do you have any clue what's been broken from 3.3.8 to 3.14? boot log (3.14.35): [5.17] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [5.18] mcs814x-ehci 400fc000.ehci: Found HC with no IRQ. Check 400fc000.ehci setup! [5.19] ehci-platform: EHCI generic platform driver [5.22] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [5.23] mcs814x-ohci: probe of 400fd000.ohci failed with error -12 [5.24] mcs814x-ohci: probe of 400fe000.ohci failed with error -12 [5.25] ohci-platform: OHCI generic platform driver [5.28] usbcore: registered new interface driver usb-storage [5.83] init: - preinit - [6.62] random: mktemp urandom read with 45 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 10.28] mount_root: jffs2 not ready yet, using temporary tmpfs overlay [ 10.35] procd: - early - [ 11.39] procd: - ubus - [ 12.44] procd: - init - Please press Enter to activate this console. [ 15.52] mcs814x-wdt 400f8014.watchdog: registered [ 15.56] usbcore: registered new interface driver usbserial [ 15.58] usbcore: registered new interface driver usbserial_generic [ 15.59] usbserial: USB Serial support registered for generic [ 15.61] usbcore: registered new interface driver ftdi_sio [ 15.62] usbserial: USB Serial support registered for FTDI USB Serial Device [ 26.05] genirq: Flags mismatch irq 0. (eth0) vs. 00015220 (mcs814x-timer) [ 26.06] nuport-mac 40084000.ethernet eth0: unable to request link interrupt [ 29.52] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0 [ 29.55] jffs2_build_filesystem(): unlocking the mtd device... done. [ 29.56] jffs2_build_filesystem(): erasing all blocks after the end marker... Günther Kelleter (2): mcs814x: Fix debug UART and timer irq mcs814x: use firmware partition splitter on dLAN USB Extender target/linux/mcs814x/config-3.18 | 14 -- .../arch/arm/boot/dts/dlan-usb-extender.dts| 8 target/linux/mcs814x/image/Makefile| 2 +- .../linux/mcs814x/patches-3.18/014-debuguart.patch | 52 ++ 4 files changed, 64 insertions(+), 12 deletions(-) create mode 100644 target/linux/mcs814x/patches-3.18/014-debuguart.patch -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Workaround: saved administration site user and pass may appear on the Wireless configuration page, replacing the WPA key
From fe1ec8831255b5be63b71c49dfffc64e672d2774 Mon Sep 17 00:00:00 2001 From: Georgi ValkovDate: Fri, 17 Jul 2015 19:52:24 +0300 Subject: [PATCH] Workaround: saved administration site user and pass may appear on the Wireless configuration page, replacing the WPA key. --- modules/luci-base/luasrc/view/cbi/network_netlist.htm | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/luci-base/luasrc/view/cbi/network_netlist.htm b/modules/luci-base/luasrc/view/cbi/network_netlist.htm index 7e23d14..4f186ca 100644 --- a/modules/luci-base/luasrc/view/cbi/network_netlist.htm +++ b/modules/luci-base/luasrc/view/cbi/network_netlist.htm @@ -59,6 +59,7 @@ amp;#160;+ onfocus=document.getElementById(' _new').checked=true / -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Syntax error in radvd.conf
This is a question for openwrt-users. Anyway, interface is the logical openwrt interface (lan, wan), not Linux devices. http://wiki.openwrt.org/doc/uci/radvd Regards, Em sex, 24 de jul de 2015 09:36, Pratik Prajapati pratik.prajapat...@gmail.com escreveu: Hi, I want to run radvd on OpenWrt but its giving me syntax error in radvd.conf radvd.conf: config 'interface' option 'interface' 'eth0' option 'AdvSendAdvert' '1' option 'AdvManagedFlag' '0' option 'AdvOtherConfigFlag' '0' config 'prefix' option 'interface' 'eth0' option 'AdvOnLink' '1' option 'AdvAutonomous' '1' option 'AdvRouterAddr' '0' config 'route' option 'interface''eth0' option 'prefix' '2001:0DB8:1234:5677::/64' option 'AdvRouteLifetime' 'infinity' Error on running: radvd start /etc/radvd.conf:1 error: syntax error, unexpected STRING, expecting T_INTERFACE [Jul 24 12:28:09] radvd (1202): exiting, failed to read config file What needs to be corrected in radvd.conf ? Thanks, Pratik ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Fix: A disabled wireless network may be shown as enabled, when multiple networks are defined on the same radio
From def1b0cccf358a89131088710ac91d690d91bdf2 Mon Sep 17 00:00:00 2001 From: Georgi ValkovDate: Sat, 18 Jul 2015 02:28:54 +0300 Subject: [PATCH] Fix: A disabled wireless network may be shown as enabled, when multiple networks are defined on the same radio. --- modules/luci-base/luasrc/tools/status.lua | 4 +++- .../luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm | 2 +- modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm | 2 +- modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/luci-base/luasrc/tools/status.lua b/modules/luci-base/luasrc/tools/status.lua index 6e588fe..299c8f5 100644 --- a/modules/luci-base/luasrc/tools/status.lua +++ b/modules/luci-base/luasrc/tools/status.lua @@ -120,7 +120,9 @@ function wifi_networks() assoclist = net:assoclist(), country = net:country(), txpower = net:txpower(), - txpoweroff = net:txpower_offset() +txpoweroff = net:txpower_offset(), + disabled = (dev:get(disabled) == 1 or + net:get(disabled) == 1) } end diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm index b7c44f9..4fc268e 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -183,7 +183,7 @@ for( var i = 0; i { var iw = st[i]; - var is_assoc = (iw.bssid amp;amp; iw.bssid != '00:00:00:00:00:00' amp;amp; iw.channel amp;amp; iw.mode != 'Unknown'); + var is_assoc = (iw.bssid amp;amp; iw.bssid != '00:00:00:00:00:00' amp;amp; iw.channel amp;amp; iw.mode != 'Unknown' amp;amp; !iw.disabled); var p = iw.quality; var q = is_assoc ? p : -1; diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm index 2484fd3..fa0a97b 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_status.htm @@ -6,7 +6,7 @@ { if (iw amp;amp; (iw = iw[0])) { -var is_assoc = (iw.bssid amp;amp; iw.bssid != '00:00:00:00:00:00' amp;amp; iw.channel); + var is_assoc = (iw.bssid amp;amp; iw.bssid != '00:00:00:00:00:00' amp;amp; iw.channel amp;amp; !iw.disabled); var p = iw.quality; var q = is_assoc ? p : -1; diff --git a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm index 548b22d..07a96b2 100644 --- a/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm +++ b/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm @@ -352,7 +352,7 @@ for (var nidx = 0; nidx { var net = dev.networks[nidx]; -var is_assoc = (net.bssid != '00:00:00:00:00:00' amp;amp; net.channel); + var is_assoc = (net.bssid != '00:00:00:00:00:00' amp;amp; net.channel amp;amp; !net.disabled); var icon; if (!is_assoc) -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/2] mcs814x: use firmware partition splitter on dLAN USB Extender
Signed-off-by: Günther Kelleter guenther.kelle...@devolo.de --- target/linux/mcs814x/config-3.18 | 4 .../mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts| 8 target/linux/mcs814x/image/Makefile | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/target/linux/mcs814x/config-3.18 b/target/linux/mcs814x/config-3.18 index e57f5ff..427a7c9 100644 --- a/target/linux/mcs814x/config-3.18 +++ b/target/linux/mcs814x/config-3.18 @@ -159,6 +159,10 @@ CONFIG_MODULES_USE_ELF_REL=y # CONFIG_MTD_IMPA7 is not set CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_PHYSMAP=y +# CONFIG_MTD_ROOTFS_SPLIT is not set +CONFIG_MTD_SPLIT_FIRMWARE=y +CONFIG_MTD_SPLIT_FIRMWARE_NAME=linux +CONFIG_MTD_SPLIT_UIMAGE_FW=y CONFIG_MULTI_IRQ_HANDLER=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NEED_KUSER_HELPERS=y diff --git a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts index 0c85b94..59830e8 100644 --- a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts +++ b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts @@ -48,14 +48,6 @@ reg = 0x4 0x1; }; partition@5 { - label = kernel; - reg = 0x5 0x10; - }; - partition@15 { - label = rootfs; - reg = 0x15 0x3C; - }; - partition@50001 { label = linux; reg = 0x5 0x4C; }; diff --git a/target/linux/mcs814x/image/Makefile b/target/linux/mcs814x/image/Makefile index 4c8af97..74f8ad4 100644 --- a/target/linux/mcs814x/image/Makefile +++ b/target/linux/mcs814x/image/Makefile @@ -30,7 +30,7 @@ define Image/Build/DTB endef define Image/Build/Profile/dLAN_USB_Extender - dd if=$(KDIR)/uImage-dlan-usb-extender bs=1M conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin + dd if=$(KDIR)/uImage-dlan-usb-extender bs=64k conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin cat $(KDIR)/root.$(1) $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin cp $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin $(BIN_DIR)/ endef -- 2.4.6.89.g851dcf4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] GUI user name and pass
On 2015-07-24 06:17, John kerry wrote: when i do factory reset it stop asking UN and Password for GUI anymore. Please help us to solve this urgently. You'll find that you're not prompted for a password over telnet. `Factory reset' unsets any and all customisations that you may have made, including password; there is no password in factory state--set one :) -- Don't be afraid to ask (λf.((λx.xx) (λr.f(rr. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] sunxi: fix uboot install location
On 07/24/2015 09:30 AM, John Crispin wrote: On 16/07/2015 22:20, Matthias Schiffer wrote: -BOARDS:= \ -sun4i-a10-cubieboard \ -sun4i-a10-olinuxino-lime \ -sun4i-a10-pcduino \ -sun5i-a13-olinuxino \ -sun6i-a31-colombus \ -sun6i-a31-m9 \ -sun7i-a20-bananapi \ -sun7i-a20-bananapro \ -sun7i-a20-cubieboard2 \ -sun7i-a20-cubietruck \ -sun7i-a20-olinuxino-lime \ -sun7i-a20-olinuxino-micro \ -sun7i-a20-pcduino3 \ -sun7i-a20-lamobo-r1 - define Image/BuildKernel mkimage -A arm -O linux -T kernel -C none \ -a 0x40008000 -e 0x40008000 \ -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' \ -d $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-uImage - + ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) $(CP) $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs echo -ne '\x00\x00\x00\x00' $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs @@ -42,27 +26,23 @@ define Image/BuildKernel $(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs \ ) endif - -$(foreach board,$(BOARDS), -$(CP) $(DTS_DIR)/$(board).dtb $(BIN_DIR)/ -) endef not sure about this change. maybe just stage the dtb file of the selected profile. i am not sure if zoltan added this for a reason. John I don't see why anyone would care, but I'll send a v2 anyways (I also want to fix that the boot.img is generated in $(KDIR) instead of $(KDIR_TMP) or $(BIN_DIR), even in the ImageBuilder). If you want, I can also include copying the profile's DTB file to $(BIN_DIR). Matthias signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Fix: Status for disabled wireless networks may display the SSID, BSSID and Mode of an active network on the same radio
From 8965b583ea76bf851098159675b2901e1920c646 Mon Sep 17 00:00:00 2001 From: Georgi ValkovDate: Sat, 18 Jul 2015 01:22:47 +0300 Subject: [PATCH] Fix: Status for disabled wireless networks may display the SSID, BSSID and Mode of an active network on the same radio. --- modules/luci-base/luasrc/model/network.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/luci-base/luasrc/model/network.lua b/modules/luci-base/luasrc/model/network.lua index b6e390e..20e1032 100644 --- a/modules/luci-base/luasrc/model/network.lua +++ b/modules/luci-base/luasrc/model/network.lua @@ -1421,7 +1421,7 @@ function wifinet.is_up(self) end function wifinet.active_mode(self) -local m = _stror(self.iwinfo.mode, self.iwdata.mode) or ap + local m = _stror(self.iwdata.mode, self.iwinfo.mode) or ap if m == ap then m = Master elseif m == sta then m = Client @@ -1438,11 +1438,11 @@ function wifinet.active_mode_i18n(self) end function wifinet.active_ssid(self) -return _stror(self.iwinfo.ssid, self.iwdata.ssid) +return _stror(self.iwdata.ssid, self.iwinfo.ssid) end function wifinet.active_bssid(self) - return _stror(self.iwinfo.bssid, self.iwdata.bssid) or 00:00:00:00:00:00 + return _stror(self.iwdata.bssid, self.iwinfo.bssid) or 00:00:00:00:00:00 end function wifinet.active_encryption(self) -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Allow editing of AP channel when all client networks are disabled
From 8523acc47cada5f191ec79e7db1e97a9daccffec Mon Sep 17 00:00:00 2001 From: Georgi ValkovDate: Fri, 17 Jul 2015 20:03:58 +0300 Subject: [PATCH] When editing an AP wireless network in LuCI, if one or more STA networks are also present on the same radio, then the channel is locked and cannot be changed for the AP. The case when all STA networks are disabled is not considered. This patch fixes the issue. Disabled networks no longer apply a lock on the channel. --- modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua index 9f6aaa3..afd86f1 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -143,7 +143,7 @@ local found_sta = nil local _, net if wnet:mode() ~= sta then for _, net in ipairs(wdev:get_wifinets()) do - if net:mode() == sta then + if net:mode() == sta and net:get(disabled) ~= 1 then if not found_sta then found_sta = {} found_sta.channel = net:channel() -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] mac80211: set mcast-rate for mesh point interfaces
In order to set the multicast rate for mesh point interfaces the mesh join was made explicit and moved to mac80211_setup_vif(), similar to how it is done for IBSS interfaces. Previously, the mesh join was made implicit in case authentication (i.e. $key) was not used when creating the interface in mac80211_prepare_vif(), while using authentication would create the interface first, then join later in mac80211_setup_vif() by starting authsae. Signed-off-by: Nils Schneider n...@nilsschneider.net --- .../kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index c9bc3d6..8137b24 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -455,12 +455,7 @@ mac80211_prepare_vif() { } ;; mesh) - json_get_vars key mesh_id - if [ -n $key ]; then - iw phy $phy interface add $ifname type mp - else - iw phy $phy interface add $ifname type mp mesh_id $mesh_id - fi + iw phy $phy interface add $ifname type mp ;; monitor) iw phy $phy interface add $ifname type monitor @@ -603,6 +598,13 @@ mac80211_setup_vif() { wireless_vif_parse_encryption mac80211_setup_supplicant || failed=1 fi + else + json_get_vars mesh_id mcast_rate + + mcval= + [ -n $mcast_rate ] wpa_supplicant_add_rate mcval $mcast_rate + + iw dev $ifname mesh join $mesh_id ${mcval:+mcast-rate $mcval} fi for var in $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING; do -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCHv2] mac80211: set mcast-rate for mesh point interfaces
In order to set the multicast rate for mesh point interfaces the mesh join was made explicit and moved to mac80211_setup_vif(), similar to how it is done for IBSS interfaces. Previously, the mesh join was made implicit in case authentication (i.e. $key) was not used when creating the interface in mac80211_prepare_vif(), while using authentication would create the interface first, then join later in mac80211_setup_vif() by starting authsae. Signed-off-by: Nils Schneider n...@nilsschneider.net --- Sorry for messing up the whitespace in the previous version of this patch. .../kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index c9bc3d6..8137b24 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -455,12 +455,7 @@ mac80211_prepare_vif() { } ;; mesh) - json_get_vars key mesh_id - if [ -n $key ]; then - iw phy $phy interface add $ifname type mp - else - iw phy $phy interface add $ifname type mp mesh_id $mesh_id - fi + iw phy $phy interface add $ifname type mp ;; monitor) iw phy $phy interface add $ifname type monitor @@ -603,6 +598,13 @@ mac80211_setup_vif() { wireless_vif_parse_encryption mac80211_setup_supplicant || failed=1 fi + else + json_get_vars mesh_id mcast_rate + + mcval= + [ -n $mcast_rate ] wpa_supplicant_add_rate mcval $mcast_rate + + iw dev $ifname mesh join $mesh_id ${mcval:+mcast-rate $mcval} fi for var in $MP_CONFIG_INT $MP_CONFIG_BOOL $MP_CONFIG_STRING; do -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] get rid of misleading FORCE=1 message
Signed-off-by: Lawrence D'Anna la...@elder-gods.org --- include/toplevel.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/toplevel.mk b/include/toplevel.mk index 11b2dd9..b9393ea 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -140,7 +140,7 @@ staging_dir/host/.prereq-build: include/prereq-build.mk mkdir -p tmp rm -f tmp/.host.mk @$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2/dev/null || { \ - echo Prerequisite check failed. Use FORCE=1 to override.; \ + echo Prerequisite check failed.; \ false; \ } ifneq ($(realpath $(TOPDIR)/include/prepare.mk),) -- 2.3.8 (Apple Git-58) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH]v3: CC: ar71xx: Backport support for Onion Omega
Backport of r46458 to CC https://onion.io/omega Signed-off-by: L. D. Pinney ldpin...@gmail.com Acked-by: Boken Lin b...@onion.io Tested-by: Jacky Huang huangfangch...@163.com --- V3 Refreshes the patch @46450 target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 4 target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + target/linux/ar71xx/config-3.18| 1 + target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c | 84 target/linux/ar71xx/generic/profiles/onion.mk | 16 ++ target/linux/ar71xx/image/Makefile | 9 target/linux/ar71xx/patches-3.18/610-MIPS-ath79-openwrt-machines.patch | 48 + tools/firmware-utils/src/mktplinkfw.c | 6 ++ 10 files changed, 161 insertions(+), 14 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 7ff5a8e..d6c7ec9 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -169,6 +169,9 @@ get_status_led() { om5p-an) status_led=om5p:blue:power ;; + onion-omega) + status_led=onion:amber:system + ;; pb44) status_led=pb44:amber:jump1 ;; diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index 8dcedc8..d577fc6 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -275,6 +275,10 @@ mynet-n750) [ -n $mac ] ucidef_set_interface_macaddr wan $mac ;; +onion-omega) + ucidef_set_interface_lan wlan0 + ;; + dhp-1565-a1 |\ dir-835-a1 |\ wndr3700v4 | \ diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index f19af26..4c10ab2 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -550,6 +550,9 @@ ar71xx_board_detect() { *OM5P AN) name=om5p-an ;; + *Onion Omega) + name=onion-omega + ;; *PB42) name=pb42 ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 205cf22..f3dd61b 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -310,6 +310,7 @@ platform_check_image() { el-mini | \ gl-inet | \ mc-mac1200r | \ + onion-omega | \ oolite | \ smart-300 | \ tl-mr10u | \ diff --git a/target/linux/ar71xx/config-3.18 b/target/linux/ar71xx/config-3.18 index c9ec327..4f52332 100644 --- a/target/linux/ar71xx/config-3.18 +++ b/target/linux/ar71xx/config-3.18 @@ -86,6 +86,7 @@ CONFIG_ATH79_MACH_NBG460N=y CONFIG_ATH79_MACH_NBG6716=y CONFIG_ATH79_MACH_OM2P=y CONFIG_ATH79_MACH_OM5P=y +CONFIG_ATH79_MACH_ONION_OMEGA=y CONFIG_ATH79_MACH_PB42=y CONFIG_ATH79_MACH_PB44=y CONFIG_ATH79_MACH_PB92=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c new file mode 100644 index 000..c739840 --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-onion-omega.c @@ -0,0 +1,84 @@ +/* + * Onion Omega board support + * + * Copyright (C) 2015 Boken Lin b...@onion.io + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#include linux/gpio.h + +#include asm/mach-ath79/ath79.h + +#include dev-eth.h +#include dev-gpio-buttons.h +#include dev-leds-gpio.h +#include dev-m25p80.h +#include dev-usb.h +#include dev-wmac.h +#include machtypes.h + +#define OMEGA_GPIO_LED_SYSTEM 27 +#define OMEGA_GPIO_BTN_RESET 11 + +#define OMEGA_GPIO_USB_POWER 8 + +#define OMEGA_KEYS_POLL_INTERVAL 20 /* msecs */ +#define OMEGA_KEYS_DEBOUNCE_INTERVAL (3 * OMEGA_KEYS_POLL_INTERVAL) + +static const char *omega_part_probes[] = { + tp-link, + NULL, +}; + +static struct flash_platform_data omega_flash_data = { + .part_probes= omega_part_probes, +}; + +static struct gpio_led omega_leds_gpio[] __initdata = { + { + .name = onion:amber:system, + .gpio = OMEGA_GPIO_LED_SYSTEM, +
Re: [OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target
Add a section like this: config lan6 option proto dhcpv6 option ifname @lan And yes, proto dhcpv6 also works with RAs only. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target
I have added that section on target's /etc/config/network file but still ipv6 is not assigned to it ifconfig on target: eth0 Link encap:Ethernet HWaddr E2:AB:C0:A8:5F:38 inet6 addr: fe80::e0ab:c0ff:fea8:5f38/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8730 errors:0 dropped:0 overruns:0 frame:0 TX packets:191 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:968468 (945.7 KiB) TX bytes:17574 (17.1 KiB) Interrupt:57 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:8225 errors:0 dropped:0 overruns:0 frame:0 TX packets:8225 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:677074 (661.2 KiB) TX bytes:677074 (661.2 KiB) On Fri, Jul 24, 2015 at 5:32 PM, Steven Barth cy...@openwrt.org wrote: Add a section like this: config lan6 option proto dhcpv6 option ifname @lan And yes, proto dhcpv6 also works with RAs only. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Syntax error in radvd.conf
Hi, I want to run radvd on OpenWrt but its giving me syntax error in radvd.conf radvd.conf: config 'interface' option 'interface' 'eth0' option 'AdvSendAdvert' '1' option 'AdvManagedFlag' '0' option 'AdvOtherConfigFlag' '0' config 'prefix' option 'interface' 'eth0' option 'AdvOnLink' '1' option 'AdvAutonomous' '1' option 'AdvRouterAddr' '0' config 'route' option 'interface''eth0' option 'prefix' '2001:0DB8:1234:5677::/64' option 'AdvRouteLifetime' 'infinity' Error on running: radvd start /etc/radvd.conf:1 error: syntax error, unexpected STRING, expecting T_INTERFACE [Jul 24 12:28:09] radvd (1202): exiting, failed to read config file What needs to be corrected in radvd.conf ? Thanks, Pratik ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target
Sorry there was a typo in my last e-mail. It should have been: config interface lan6 option proto dhcpv6 option ifname @lan After doing the change, please run: reload_config Cheers, Steven Am 24.07.2015 um 14:27 schrieb Pratik Prajapati: I have added that section on target's /etc/config/network file but still ipv6 is not assigned to it ifconfig on target: eth0 Link encap:Ethernet HWaddr E2:AB:C0:A8:5F:38 inet6 addr: fe80::e0ab:c0ff:fea8:5f38/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8730 errors:0 dropped:0 overruns:0 frame:0 TX packets:191 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:968468 (945.7 KiB) TX bytes:17574 (17.1 KiB) Interrupt:57 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:8225 errors:0 dropped:0 overruns:0 frame:0 TX packets:8225 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:677074 (661.2 KiB) TX bytes:677074 (661.2 KiB) On Fri, Jul 24, 2015 at 5:32 PM, Steven Barth cy...@openwrt.org mailto:cy...@openwrt.org wrote: Add a section like this: config lan6 option proto dhcpv6 option ifname @lan And yes, proto dhcpv6 also works with RAs only. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org mailto:openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel