Re: [OpenWrt-Devel] Fix VLAN on Atheros AR8327N
2014-03-31 16:39 GMT+02:00 Jonas Gorski j...@openwrt.org: Hello there. Have a question. What about those switch chips: - ar8316, - ar8227, - ar7240. Are they also capable of doing tagged+untagged vlan on the same port at the same time? Do they benefit from this pach? Could anyone with a deeper knowledge comment on this topic please? Many thanks in advance. It's a bit more complicated. ar8216, ar8316: - do not support mixed traffic at all. Either everything is tagged or nothing is tagged on a port. ar8227/8, ar8236 - support having the PVID untagged and everything else tagged through a special port-tag-mode, so here only one vlan untagged at most, and it always matches the PVID. ar8327/8, ar8337/8. - support per untagging/tagging on a per vlan per port basis on egress. So here more than one vlan could be untagged on egress, but the PVID still sets the incoming VID. No idea about ar7240, ar933x, ar934x, ar935x, qca955x, although I suspect ar7240 will fall into the same category as ar8216, and ar933x and newer into the ar8227/8 category, maybe the enterprise class ones even like ar8327. What about ar8366s? It used to work, but currently it's broken. https://dev.openwrt.org/ticket/7795 Jonas ___ 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] Fix VLAN on Atheros AR8327N
On 1 April 2014 10:05, Stefan Hellermann ste...@the2masters.de wrote: What about ar8366s? It used to work, but currently it's broken. https://dev.openwrt.org/ticket/7795 It's RTL8366S not ar8336s. It's Realtek not Qualcomm/Atheros. Quite a different story I think. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [v3, 1/4] Add kernel support for Sagemcom F@ST2704V2 ADSL router
On Sat, Mar 29, 2014 at 4:50 PM, Weedy weedy2...@gmail.com wrote: SO GUYS, MERGE PLOX? a) Don't top post with full quote. b) Check r39671. Jonas ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Does anyone have used Ralink i2s under openwrt?
On 01/04/2014 05:52, zhenjun_...@icloudaegis.com wrote: Hi, I have a RT5350 module with wm8978 codec and try to driver sound under openwrt. The relevant driver in openwrt trunk as follows: sound/soc/ralink/mt7620-i2s.c sound/soc/ralink/mt7620-wm8960.c drivers/dma/ralink-gdma.c The i2s integrated by RT5350 is same as the one of MT7620. So I use the file mt7620-i2s.c directly and write a file rt5350-wm8978.c as alsa machine driver. After modifying several configs, I build the image and flash it into module. The kernel have found sound card on booting, initialized it successfully. But when I play a wave file, the codec work badly. The wave file should sound rear..left, I heard left...left. I guess that there are something wrong in data transmission. Now I want to check the mt7620-i2s and ralink-gdma drivers. Does anyone have used these drivers? Or does anyone run mt7620-wm8960 group? Any response will be very appreciated! Hi, nice to see that you have some sound. i have the mt7620a evb and i am having problems to bring up the wm8960 codec the gdma is only tested as far as .. i can see traffic on the bus with my logic analyser, but as the codec fails to come up, i am not able to debug further as i have o sound. that is that current state of the driver ... once i figured out why the code does not playback any sound i can figure out why the sent pcm data is corrupt. John ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [packages] mii-tool: update to 2014-02-18
Some notable changes: - #include sockios added upstream, drop patch - GbE support - Fix swapped advertising/link partner features fields - Document -p option - Dump more registers Full changelog: http://sourceforge.net/p/net-tools/code/ci/68a4d784daaf5fb3449808e434e8cbb9625988e6/log/?path=/mii-tool.c Signed-off-by: Catalin Patulea c...@vv.carleton.ca --- This patch is also available in this git tree: https://github.com/cpatulea/openwrt-packages -- net/mii-tool/Makefile | 20 +++- .../patches/001-include_linux_sockios.patch| 12 2 files changed, 15 insertions(+), 17 deletions(-) delete mode 100644 net/mii-tool/patches/001-include_linux_sockios.patch diff --git a/net/mii-tool/Makefile b/net/mii-tool/Makefile index ca63fb3..3e4c395 100644 --- a/net/mii-tool/Makefile +++ b/net/mii-tool/Makefile @@ -8,12 +8,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mii-tool -PKG_VERSION:=1.9.1.1 +PKG_VERSION:=2014-02-18 PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=http://downloads.openwrt.org/sources -PKG_MD5SUM:=f65dbeb1c2392acffd4c94138b1f2e52 +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=git://git.code.sf.net/p/net-tools/code +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=68a4d784daaf5fb3449808e434e8cbb9625988e6 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz include $(INCLUDE_DIR)/package.mk @@ -31,7 +33,15 @@ define Package/mii-tool/description optimized for embedded systems and fully automated cross/-sysroot-builds endef -MAKE_FLAGS += CFLAGS=$(TARGET_CFLAGS) -D_GNU_SOURCE -I. -idirafter ./include/ +define Build/Configure + # Failed configure.sh leaves stub config.h around. + rm -f $(PKG_BUILD_DIR)/config.h + (cd $(PKG_BUILD_DIR) yes '\n' | ./configure.sh config.in ) +endef + +define Build/Compile + $(call Build/Compile/Default,mii-tool) +endef define Package/mii-tool/install $(INSTALL_DIR) $(1)/usr/sbin diff --git a/net/mii-tool/patches/001-include_linux_sockios.patch b/net/mii-tool/patches/001-include_linux_sockios.patch deleted file mode 100644 index 3f11bf8..000 --- a/net/mii-tool/patches/001-include_linux_sockios.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: mii-tool-1.9.1.1/mii-tool.c -=== mii-tool-1.9.1.1.orig/mii-tool.c -+++ mii-tool-1.9.1.1/mii-tool.c -@@ -50,6 +50,7 @@ static char version[] = - #include linux/if_arp.h - #include linux/if_ether.h - #endif -+#include linux/sockios.h - #include mii.h - - #define MAX_ETH 8 /* Maximum # of interfaces */ -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 0/2] x86: fix build
First patch fix kvm_guest build, second SCHED_HRTICK is needed by SND_PCSP. I've no idea about the incluence of SCHED_HRTICK. Alexander Couzens (2): x86: enable SCHED_HRTICK x86/kvm_guest: disable CONFIG_KVM host target/linux/x86/config-3.10 | 3 +-- target/linux/x86/kvm_guest/config-3.10 | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) -- 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 1/2] x86: enable SCHED_HRTICK
Signed-off-by: Alexander Couzens lyn...@fe80.eu --- target/linux/x86/config-3.10 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux/x86/config-3.10 b/target/linux/x86/config-3.10 index 71216ff..e39e9bc 100644 --- a/target/linux/x86/config-3.10 +++ b/target/linux/x86/config-3.10 @@ -184,7 +184,6 @@ CONFIG_HAVE_UID16=y CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y # CONFIG_HIGHMEM4G is not set -# CONFIG_HIGH_RES_TIMERS is not set CONFIG_HPET_EMULATE_RTC=y CONFIG_HPET_TIMER=y # CONFIG_HP_WATCHDOG is not set @@ -313,7 +312,7 @@ CONFIG_RWSEM_XCHGADD_ALGORITHM=y # CONFIG_SBC_EPX_C3_WATCHDOG is not set # CONFIG_SC1200_WDT is not set # CONFIG_SC520_WDT is not set -# CONFIG_SCHED_HRTICK is not set +CONFIG_SCHED_HRTICK=y CONFIG_SCSI=y CONFIG_SCx200=y CONFIG_SCx200HR_TIMER=y -- 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] x86/kvm_guest: disable CONFIG_KVM host
Signed-off-by: Alexander Couzens lyn...@fe80.eu --- target/linux/x86/kvm_guest/config-3.10 | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/x86/kvm_guest/config-3.10 b/target/linux/x86/kvm_guest/config-3.10 index b8289ec..3355c34 100644 --- a/target/linux/x86/kvm_guest/config-3.10 +++ b/target/linux/x86/kvm_guest/config-3.10 @@ -44,6 +44,7 @@ CONFIG_INPUT=y CONFIG_INPUT_KEYBOARD=y # CONFIG_INTEL_IPS is not set CONFIG_KEYBOARD_ATKBD=y +# CONFIG_KVM is not set CONFIG_KVM_GUEST=y # CONFIG_LGUEST is not set # CONFIG_LGUEST_GUEST is not set -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Wireless eeprom fix for ARV4518PW, ARV7518PW and some others.
Tki2000, in the openwrt subforum of seguridadwireless, published a modified ath_eep.c file because, since the Lantiq target moved to kernel 3.10 some routers cannot read calibration data nor mac. The code also applies a patch made by Noltari that disables regdomain limitations, but still don't read the mac rightly. Here is the code that can be used as a draft to make the wifi work in those routers. /* * Copyright (C) 2011 Luca Olivetti l...@ventoso.org * Copyright (C) 2011 John Crispin blo...@openwrt.org * Copyright (C) 2011 Andrej Vlašić andrej.vlas...@gmail.com * Copyright (C) 2013 Álvaro Fernández Rojas nolt...@gmail.com * Copyright (C) 2013 Daniel Gimpelevich dan...@gimpelevich.san-francisco.ca.us * * 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/init.h #include linux/module.h #include linux/platform_device.h #include linux/etherdevice.h #include linux/ath5k_platform.h #include linux/ath9k_platform.h #include linux/pci.h #include linux/err.h #include linux/mtd/mtd.h #include pci-ath-fixup.h #include lantiq_soc.h #include linux/of_net.h extern int (*ltq_pci_plat_dev_init)(struct pci_dev *dev); struct ath5k_platform_data ath5k_pdata; struct ath9k_platform_data ath9k_pdata = { .led_pin = -1, }; static u8 athxk_eeprom_mac[6]; static int ath9k_pci_plat_dev_init(struct pci_dev *dev) { dev-dev.platform_data = ath9k_pdata; return 0; } int __init of_ath9k_eeprom_probe(struct platform_device *pdev) { struct device_node *np = pdev-dev.of_node, *mtd_np; struct resource *eep_res, *mac_res; void __iomem *eep, *mac; int mac_offset; u32 mac_inc = 0, pci_slot = 0; int i; u16 *eepdata, sum, el; struct mtd_info *the_mtd; size_t flash_readlen; const __be32 *list; const char *part; phandle phandle; //struct property *pp; //struct device_node *dn; if (!of_find_property(np,ath,arv-ath9k-fix,NULL)) { list = of_get_property(np, ath,eep-flash, i); if (!list || (i != (2 * sizeof(*list { dev_err(pdev-dev, failed to find ath,eep-flash\n); return -ENODEV; } phandle = be32_to_cpup(list++); if (!phandle) { dev_err(pdev-dev, failed to find phandle\n); return -ENODEV; } mtd_np = of_find_node_by_phandle(phandle); if (!mtd_np) { dev_err(pdev-dev, failed to find mtd node\n); return -ENODEV; } part = of_get_property(mtd_np, label, NULL); if (!part) part = mtd_np-name; the_mtd = get_mtd_device_nm(part); if (the_mtd == ERR_PTR(-ENODEV)) { dev_err(pdev-dev, failed to find mtd device\n); return -ENODEV; } i = mtd_read(the_mtd, be32_to_cpup(list), ATH9K_PLAT_EEP_MAX_WORDS 1, flash_readlen, (void *) ath9k_pdata.eeprom_data); put_mtd_device(the_mtd); if ((sizeof(ath9k_pdata.eeprom_data) != flash_readlen) || i) { dev_err(pdev-dev, failed to load eeprom from mtd\n); return -ENODEV; } if (of_find_property(np, ath,eep-swap, NULL)) for (i = 0; i ATH9K_PLAT_EEP_MAX_WORDS; i++) ath9k_pdata.eeprom_data[i] = swab16(ath9k_pdata.eeprom_data[i]); if (of_find_property(np, ath,eep-endian, NULL)) { ath9k_pdata.endian_check = true; dev_info(pdev-dev, endian check enabled.\n); } if (!of_property_read_u32(np, ath,mac-offset, mac_offset)) { memcpy_fromio(athxk_eeprom_mac, (void*) ath9k_pdata.eeprom_data + mac_offset, 6); } else { random_ether_addr(athxk_eeprom_mac); if (of_get_mac_address_mtd(np, athxk_eeprom_mac)) dev_warn(pdev-dev, using random mac\n); } if (!of_property_read_u32(np, ath,mac-increment, mac_inc)) athxk_eeprom_mac[5] += mac_inc; ath9k_pdata.macaddr = athxk_eeprom_mac; ltq_pci_plat_dev_init = ath9k_pci_plat_dev_init; if (!of_property_read_u32(np, ath,pci-slot,
[OpenWrt-Devel] [PATCHv2 0/2] Add Support for ZyXEL NBG 6716
These 2 patches update the older ones. Improvements are: -Switch LEDs working -Buttons and LEDs renamed The sysupgrade support has been moved to a separate patch. As there will be an update to handling of NAND storage, I will rework it as soon as possible. Also the patch for fstools has been removed because of this. I remommend you to apply it: https://lists.openwrt.org/pipermail/openwrt-devel/2014-March/024435.html if you want to use the image in the meantime. ZyXEL has given me the tools for ras.bin image generation. As soon as they ack it is GPL I will add this. IF you have any hints or improvements please tell. André Valentin (2): ar71xx: add support for ZyXEL NBG 6716 ar71xx: add beta sysupgrade support for ZyXEL NBG 6716 package/boot/uboot-envtools/files/ar71xx |3 + target/linux/ar71xx/base-files/etc/diag.sh |3 + .../ar71xx/base-files/etc/uci-defaults/01_leds |8 + .../ar71xx/base-files/etc/uci-defaults/02_network |7 + target/linux/ar71xx/base-files/lib/ar71xx.sh |3 + .../ar71xx/base-files/lib/upgrade/platform.sh | 21 +- target/linux/ar71xx/config-3.10|1 + .../ar71xx/files/arch/mips/ath79/mach-nbg6716.c| 285 target/linux/ar71xx/image/Makefile | 42 +++ target/linux/ar71xx/image/ubinize-nbg6716.ini | 29 ++ target/linux/ar71xx/nand/config-default|4 +- target/linux/ar71xx/nand/profiles/zyxel.mk | 18 ++ .../patches-3.10/704-MIPS-ath79-add-NBG6716.patch | 37 +++ 13 files changed, 458 insertions(+), 3 deletions(-) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c create mode 100644 target/linux/ar71xx/image/ubinize-nbg6716.ini create mode 100644 target/linux/ar71xx/nand/profiles/zyxel.mk create mode 100644 target/linux/ar71xx/patches-3.10/704-MIPS-ath79-add-NBG6716.patch -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCHv2 2/2] ar71xx: add beta sysupgrade support for ZyXEL NBG 6716
This add beta support for ZyXEL NBG 6716. Expect it to be reworked because there will come a change for NAND flash. Signed-off-by: André Valentin avalen...@marcant.net --- .../ar71xx/base-files/lib/upgrade/platform.sh | 21 +++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index d08799e..808b3d2 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -106,6 +106,20 @@ platform_do_upgrade_compex() { fi } +platform_do_upgrade_nand() { + local fw_mtd_kfs=$1 + local fw_mtd=$2 + local fw_file=$3 + + if [ -n $fw_mtd ]; then + sync + dd if=$fw_file bs=128k count=16 2/dev/null | \ + mtd -e $fw_mtd_kfs write - $fw_mtd_kfs + dd if=$fw_file bs=128k skip=16 2/dev/null | \ + mtd -e $fw_mtd write - $fw_mtd + fi +} + platform_check_image() { local board=$(ar71xx_board_name) local magic=$(get_magic_word $1) @@ -218,7 +232,9 @@ platform_check_image() { platform_check_image_openmesh $magic_long $1 return 0 return 1 ;; - + nbg6716) + return 0; + ;; archer-c7 | \ oolite | \ tl-mr10u | \ @@ -373,6 +389,9 @@ platform_do_upgrade() { om2p-lc) platform_do_upgrade_openmesh $ARGV ;; + nbg6716) + platform_do_upgrade_nand mtd7 mtd9 $ARGV + ;; uap-pro) MTD_CONFIG_ARGS=-s 0x18 default_do_upgrade $ARGV -- 1.7.10.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCHv2 1/2] ar71xx: add support for ZyXEL NBG 6716
With this patch OpenWRT supports the following on the ZyXEL NBG 6716: -WiFi 2G (ath9k) -WiFi 5G (ath10k) -NAND flash -2 Ethernet interfaces -USB 2.0 -LEDs including switch -reasonale defaults at first boot Signed-off-by: André Valentin avalen...@marcant.net --- package/boot/uboot-envtools/files/ar71xx |3 + target/linux/ar71xx/base-files/etc/diag.sh |3 + .../ar71xx/base-files/etc/uci-defaults/01_leds |8 + .../ar71xx/base-files/etc/uci-defaults/02_network |7 + target/linux/ar71xx/base-files/lib/ar71xx.sh |3 + target/linux/ar71xx/config-3.10|1 + .../ar71xx/files/arch/mips/ath79/mach-nbg6716.c| 285 target/linux/ar71xx/image/Makefile | 42 +++ target/linux/ar71xx/image/ubinize-nbg6716.ini | 29 ++ target/linux/ar71xx/nand/config-default|4 +- target/linux/ar71xx/nand/profiles/zyxel.mk | 18 ++ .../patches-3.10/704-MIPS-ath79-add-NBG6716.patch | 37 +++ 12 files changed, 438 insertions(+), 2 deletions(-) create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c create mode 100644 target/linux/ar71xx/image/ubinize-nbg6716.ini create mode 100644 target/linux/ar71xx/nand/profiles/zyxel.mk create mode 100644 target/linux/ar71xx/patches-3.10/704-MIPS-ath79-add-NBG6716.patch diff --git a/package/boot/uboot-envtools/files/ar71xx b/package/boot/uboot-envtools/files/ar71xx index 574f149..14528ac 100644 --- a/package/boot/uboot-envtools/files/ar71xx +++ b/package/boot/uboot-envtools/files/ar71xx @@ -23,6 +23,9 @@ mr600v2 | \ wndr3700) ubootenv_add_uci_config /dev/mtd1 0x0 0x1 0x1 ;; +nbg6716) + ubootenv_add_uci_config /dev/mtd1 0x0 0x1 0x1 + ;; alfa-ap96 | \ all0315n | \ om2p | \ diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 0e1fe5c..b8c8e51 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -94,6 +94,9 @@ get_status_led() { nbg460n_550n_550nh) status_led=nbg460n:green:power ;; + nbg6716) + status_led=nbg6716:white:power + ;; om2p | \ om2p-hs | \ om2p-lc) 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 a986dbc..bff6b0e 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -133,6 +133,14 @@ nbg460n_550n_550nh) ucidef_set_led_wlan wlan WLAN nbg460n:green:wlan phy0tpt ;; +nbg6716) + ucidef_set_led_netdev wan WAN nbg6716:white:internet eth1 + ucidef_set_led_wlan wlan WLAN nbg6716:white:wifi2g phy1tpt + ucidef_set_led_wlan wlan5 WLAN5 nbg6716:white:wifi5g phy0tpt + ucidef_set_led_usbdev usb1 USB1 nbg6716:white:usb0 1-1 + ucidef_set_led_usbdev usb2 USB2 nbg6716:white:usb1 2-1 + ;; + om2p | \ om2p-hs | \ om2p-lc) 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 c8ee86b..c657531 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -86,6 +86,13 @@ nbg460n_550n_550nh) ucidef_add_switch_vlan switch0 0 0 1 2 3 5 ;; +nbg6716) + ucidef_set_interfaces_lan_wan eth0.1 eth1 + ucidef_add_switch switch0 1 1 + ucidef_add_switch_vlan switch0 1 0t 1 2 3 4 + ucidef_add_switch_vlan switch0 2 5 6 + ;; + rb-433 |\ rb-433u) ucidef_set_interfaces_lan_wan eth1 eth0 diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 99d91ae..c9c0b73 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -352,6 +352,9 @@ ar71xx_board_detect() { *NBG460N/550N/550NH) name=nbg460n_550n_550nh ;; + *Zyxel NBG6716) + name=nbg6716 + ;; *OM2P) name=om2p ;; diff --git a/target/linux/ar71xx/config-3.10 b/target/linux/ar71xx/config-3.10 index 39a35c2..7d904a3 100644 --- a/target/linux/ar71xx/config-3.10 +++ b/target/linux/ar71xx/config-3.10 @@ -59,6 +59,7 @@ CONFIG_ATH79_MACH_MYNET_REXT=y CONFIG_ATH79_MACH_MZK_W04NU=y CONFIG_ATH79_MACH_MZK_W300NH=y CONFIG_ATH79_MACH_NBG460N=y +CONFIG_ATH79_MACH_NBG6716=y CONFIG_ATH79_MACH_OM2P=y CONFIG_ATH79_MACH_PB42=y CONFIG_ATH79_MACH_PB44=y diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c new file mode 100644 index 000..80b27a5 --- /dev/null +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-nbg6716.c @@ -0,0 +1,285 @@ +/* + *
Re: [OpenWrt-Devel] public ssh key
my problem continue above my output uci command root@McellOS:~# uci show dropbear dropbear.@dropbear[0]=dropbear dropbear.@dropbear[0].PasswordAuth=on dropbear.@dropbear[0].Port=22 root@McellOS:~# uci show batman-adv.bat0=mesh batmand.general=batmand batmand.general.interface=ath0 ddns.myddns=service ddns.myddns.interface=wan ddns.myddns.use_syslog=1 ddns.myddns.use_https=0 ddns.myddns.force_interval=72 ddns.myddns.force_unit=hours ddns.myddns.check_interval=10 ddns.myddns.check_unit=minutes ddns.myddns.retry_interval=60 ddns.myddns.retry_unit=seconds ddns.myddns.ip_source=web ddns.myddns.ip_url=http://checkip.dyndns.com/ ddns.myddns.enabled=1 ddns.myddns.service_name=changeip.com ddns.myddns.domain=openmeshbr.ddns.ms ddns.myddns.username=frleonel ddns.myddns.password=kokar321 dhcp.@dnsmasq[0]=dnsmasq dhcp.@dnsmasq[0].domainneeded=1 dhcp.@dnsmasq[0].boguspriv=1 dhcp.@dnsmasq[0].filterwin2k=0 dhcp.@dnsmasq[0].localise_queries=1 dhcp.@dnsmasq[0].rebind_protection=1 dhcp.@dnsmasq[0].rebind_localhost=1 dhcp.@dnsmasq[0].local=/lan/ dhcp.@dnsmasq[0].domain=lan dhcp.@dnsmasq[0].expandhosts=1 dhcp.@dnsmasq[0].nonegcache=0 dhcp.@dnsmasq[0].authoritative=1 dhcp.@dnsmasq[0].readethers=1 dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto dhcp.lan=dhcp dhcp.lan.interface=lan dhcp.lan.dhcpv6=hybrid dhcp.lan.ra=hybrid dhcp.lan.ndp=hybrid dhcp.lan.ignore=1 dhcp.lan.ra_management=1 dhcp.wan=dhcp dhcp.wan.interface=wan dhcp.wan.ignore=1 dhcp.odhcpd=odhcpd dhcp.odhcpd.maindhcp=0 dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update dhcp.wan6=dhcp dhcp.wan6.dhcpv6=hybrid dhcp.wan6.ra=hybrid dhcp.wan6.ndp=hybrid dhcp.wan6.master=1 dropbear.@dropbear[0]=dropbear dropbear.@dropbear[0].PasswordAuth=on dropbear.@dropbear[0].Port=22 firewall.@defaults[0]=defaults firewall.@defaults[0].syn_flood=1 firewall.@defaults[0].input=ACCEPT firewall.@defaults[0].output=ACCEPT firewall.@defaults[0].forward=REJECT firewall.@zone[0]=zone firewall.@zone[0].name=lan firewall.@zone[0].network=lan firewall.@zone[0].input=ACCEPT firewall.@zone[0].output=ACCEPT firewall.@zone[0].forward=ACCEPT firewall.@zone[1]=zone firewall.@zone[1].name=wan firewall.@zone[1].network=wan wan6 firewall.@zone[1].input=REJECT firewall.@zone[1].output=ACCEPT firewall.@zone[1].forward=REJECT firewall.@zone[1].masq=1 firewall.@zone[1].mtu_fix=1 firewall.@forwarding[0]=forwarding firewall.@forwarding[0].src=lan firewall.@forwarding[0].dest=wan firewall.@rule[0]=rule firewall.@rule[0].name=Allow-DHCP-Renew firewall.@rule[0].src=wan firewall.@rule[0].proto=udp firewall.@rule[0].dest_port=68 firewall.@rule[0].target=ACCEPT firewall.@rule[0].family=ipv4 firewall.@rule[1]=rule firewall.@rule[1].name=Allow-Ping firewall.@rule[1].src=wan firewall.@rule[1].proto=icmp firewall.@rule[1].icmp_type=echo-request firewall.@rule[1].family=ipv4 firewall.@rule[1].target=ACCEPT firewall.@rule[2]=rule firewall.@rule[2].name=Allow-DHCPv6 firewall.@rule[2].src=wan firewall.@rule[2].proto=udp firewall.@rule[2].src_ip=fe80::/10 firewall.@rule[2].src_port=547 firewall.@rule[2].dest_ip=fe80::/10 firewall.@rule[2].dest_port=546 firewall.@rule[2].family=ipv6 firewall.@rule[2].target=ACCEPT firewall.@rule[3]=rule firewall.@rule[3].name=Allow-ICMPv6-Input firewall.@rule[3].src=wan firewall.@rule[3].proto=icmp firewall.@rule[3].icmp_type=echo-request echo-reply destination-unreachable packet-too-big time-exceeded bad-header unknown-header-type router-solicitation neighbour-solicitation router-advertisement neighbour-advertisement firewall.@rule[3].limit=1000/sec firewall.@rule[3].family=ipv6 firewall.@rule[3].target=ACCEPT firewall.@rule[4]=rule firewall.@rule[4].name=Allow-ICMPv6-Forward firewall.@rule[4].src=wan firewall.@rule[4].dest=* firewall.@rule[4].proto=icmp firewall.@rule[4].icmp_type=echo-request echo-reply destination-unreachable packet-too-big time-exceeded bad-header unknown-header-type firewall.@rule[4].limit=1000/sec firewall.@rule[4].family=ipv6 firewall.@rule[4].target=ACCEPT firewall.@include[0]=include firewall.@include[0].path=/etc/firewall.user luci.main=core luci.main.resourcebase=/luci-static/resources luci.main.lang=pt_br luci.main.mediaurlbase=/luci-static/McellOS luci.flash_keep=extern luci.flash_keep.uci=/etc/config/ luci.flash_keep.dropbear=/etc/dropbear/ luci.flash_keep.openvpn=/etc/openvpn/ luci.flash_keep.passwd=/etc/passwd luci.flash_keep.opkg=/etc/opkg.conf luci.flash_keep.firewall=/etc/firewall.user luci.flash_keep.uploads=/lib/uci/upload/ luci.languages=internal luci.languages.en=English luci.languages.pt_br=Português (Brasil) luci.sauth=internal luci.sauth.sessionpath=/tmp/luci-sessions luci.sauth.sessiontime=3600 luci.ccache=internal luci.ccache.enable=1 luci.themes=internal luci.themes.Bootstrap=/luci-static/bootstrap luci.themes.Mcell=/luci-static/McellOS luci_splash.general=core luci_splash.general.leasetime=1 network.loopback=interface network.loopback.ifname=lo
[OpenWrt-Devel] 答复: [PATCH] [packages] ncm: add packages for ncm protocol support and driver/at-command set for huawei e3276 dongle
Hi, After applying Oskari 's NCM patches, I could get my E3276 work. That's the log of using NCM protocol to set WAN connections. Tue Apr 1 05:23:14 2014 daemon.notice netifd: Interface 'wan' is now down Tue Apr 1 05:23:14 2014 daemon.notice netifd: Interface 'wan' is setting up now Tue Apr 1 05:23:16 2014 user.notice root: Detected huawei E3276. Using driver huawei_e3276. Tue Apr 1 05:23:17 2014 daemon.notice netifd: wan (4337): SIM ready Tue Apr 1 05:23:17 2014 daemon.notice netifd: wan (4337): PIN set successfully Tue Apr 1 05:23:18 2014 daemon.notice netifd: wan (4337): Dongle initialization complete. Tue Apr 1 05:23:19 2014 daemon.notice netifd: wan (4337): WWAN mode set to 'prefer3g' Tue Apr 1 05:23:21 2014 daemon.notice netifd: wan (4337): WWAN connection established. Tue Apr 1 05:23:26 2014 daemon.info dnsmasq-dhcp[4321]: DHCPINFORM(br-lan) 192.168.1.117 00:0a:f7:15:ed:19 Tue Apr 1 05:23:26 2014 daemon.info dnsmasq-dhcp[4321]: DHCPACK(br-lan) 192.168.1.117 00:0a:f7:15:ed:19 DELL-PC Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.51] IPv6: ADDRCONF(NETDEV_UP): wwan0: link is not ready Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.52] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 daemon.notice netifd: Interface 'wan6' is enabled Tue Apr 1 05:23:41 2014 daemon.notice netifd: Interface 'wan6' is setting up now Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.53] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.53] IPv6: ADDRCONF(NETDEV_CHANGE): wwan0: link becomes ready Tue Apr 1 05:23:41 2014 daemon.notice netifd: Interface 'wan' is now up Tue Apr 1 05:23:41 2014 daemon.notice netifd: Network device 'wwan0' link is up Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.55] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.err kernel: [ 387.55] cdc_ncm 1-1.1:1.2 wwan0: kevent 11 may have been dropped Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.57] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.58] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.60] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.61] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.62] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 kern.err kernel: [ 387.62] cdc_ncm 1-1.1:1.2 wwan0: kevent 11 may have been dropped Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.65] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.66] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.66] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.69] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.70] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.70] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.73] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.74] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.74] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 daemon.notice netifd: wan (4507): udhcpc (v1.19.4) started Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.77] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.78] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.78] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.81] cdc_ncm: wwan0: network connection: disconnected Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.82] cdc_ncm: wwan0: 236 kbit/s downlink 236 kbit/s uplink Tue Apr 1 05:23:41 2014 kern.info kernel: [ 387.82] cdc_ncm: wwan0: network connection: connected Tue Apr 1 05:23:42 2014 daemon.notice netifd: Interface 'wan' has lost the connection Tue Apr 1 05:23:42 2014 daemon.notice netifd: wan (4507): Sending discover... Tue Apr 1 05:23:42 2014 daemon.notice netifd: wan (4507): Sending select for 10.66.194.164... Tue Apr 1 05:23:42 2014 daemon.notice netifd: wan (4507): Lease of 10.66.194.164 obtained, lease time 518400 Tue Apr 1 05:23:42 2014 daemon.notice odhcp6c[4524]: (re)starting transaction on wwan0 Tue Apr 1 05:23:42 2014 daemon.notice odhcp6c[4524]: Starting SOLICIT transaction (timeout 4294967295s, max rc 0) Tue Apr 1 05:23:42 2014 user.notice firewall: Reloading firewall due to