Re: [OpenWrt-Devel] new package ndpi-netfilter
Hello,is there any updates of ndpi?I triediptables -I FORWARD -m ndpi --bittorrent -j REJECTutorrent still running at full speed.--Original--From: "Jo-Philipp Wich"x...@subsignal.org;Date: Mon, Dec 17, 2012 09:18 PMTo: "openwrt-devel"openwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] new package ndpi-netfilter-BEGIN PGP SIGNED MESSAGE-Hash: SHA1 But I can still surf webs after this : iptables -I OUTPUT -m ndpi --http -j REJECT This means it's not working properly?No this means you should use FORWARD instead of OUTPUT when browsingvia the router...~ Jow-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.12 (GNU/Linux)Comment: Using GnuPG with undefined - http://www.enigmail.net/iEYEARECAAYFAlDPG7UACgkQdputYINPTPNGHQCfZ+vL+jRfUNy0r5BO484UCUwzGOoAn1Ktms6vLiycdsnJAEsiIfW5Hz+O=MBcN-END PGP SIGNATURE-___openwrt-devel mailing listopenwrt-devel@lists.openwrt.orghttps://lists.openwrt.org/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] How to get rid of unnecessary luci translations to save a little ROM space?
As we can see all translations of luci-apps are packed into openwrt build,I just need English and my language.How to get rid of others to save some space?___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] new package ndpi-netfilter
Yes,I use the Makefile you posted on trac. But I can still surf webs after this : iptables -I OUTPUT -m ndpi --http -j REJECT This means it's not working properly? -- Original -- From: Thomas Heilh...@terminal-consulting.de; Date: Mon, Dec 17, 2012 05:21 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] new package ndpi-netfilter Hi, On 12/17/12 05:41, Vince Huang wrote:I have compiled it without error.But how can I test if it is working properly?Give some commands,please. Under https://dev.openwrt.org/ticket/12598 you will find a much cleaner patch and some hints. the package were renamed to iptables-mod-ndpi and kmod-ipmt-ndpi. -- iptables -m ndpi --help -- and for example iptables -I OUTPUT -m ndpi --http -j REJECT to block outgoing http traffic. It could then also be interesting to use use for traffic shaping rules or in conjunction with collectd to have a look what kind of traffic is on your net. cheers thomas -- Original -- From: Thomas Heilh...@terminal-consulting.de; Date: Sat, Dec 8, 2012 04:51 AM To: OpenWrt Development Listopenwrt-devel@lists.openwrt.org; Subject: [OpenWrt-Devel] new package ndpi-netfilter Hi, Here is ndpi-netfilter, a GPL implementation of an iptables and netfilter module for nDPI integration into the Linux kernel. If you find it useful, please integrate it. -- # # Copyright (C) 2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=ndpi-netfilter PKG_REV:=5847 PKG_RELEASE:=2 PKG_VERSION:=1.0 PKG_SOURCE:=ndpi-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://svn.ntop.org/svn/ntop/trunk/nDPI PKG_SOURCE_SUBDIR:=ndpi-netfilter-$(PKG_VERSION) PKG_SOURCE_VERSION:=$(PKG_REV) PKG_SOURCE_PROTO:=svn include $(INCLUDE_DIR)/package.mk #PKG_FIXUP:=autoreconf PKG_FIXUP:=libtool define Package/ndpi-netfilter SUBMENU:=Firewall SECTION:=net CATEGORY:=Network TITLE:=ndpi successor of OpenDPI URL:=http://www.ntop.org/products/ndpi/ DEPENDS:=+iptables +iptables-mod-conntrack-extra endef define Package/ndpi-netfilter/description nDPI is a ntop-maintained superset of the popular OpenDPI library endef CONFIGURE_VARS:= \ CC=$(TARGET_CC) \ LD=$(TARGET_LD) \ LIBTOOL=$(STAGING_DIR)/host/bin/libtool CONFIGURE_ARGS := \ $(filter-out --disable-nls,$(CONFIGURE_ARGS)) \ --with-pic \ TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libiconv-full/lib -L$(STAGING_DIR)/usr/lib -lc -L$(TOOLCHAIN_DIR) define Build/Prepare $(call Build/Prepare/Default) rm -rf $(PKG_BUILD_DIR)/ndpi-netfilter git clone https://github.com/ewildgoose/ndpi-netfilter $(PKG_BUILD_DIR)/ndpi-netfilter endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR=$(PKG_INSTALL_DIR) \ CC=$(TARGET_CC) \ CFLAGS=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC) -I$(STAGING_DIR)/usr/include \ LD=$(TARGET_LD) \ CROSS_COMPILE=$(TARGET_CROSS) \ LDFLAGS=$(TARGET_LDFLAGS) \ all $(MAKE) -C $(PKG_BUILD_DIR)/ndpi-netfilter \ ARCH=$(LINUX_KARCH) \ CC=$(TARGET_CC) \ LDFLAGS=$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib \ LD=$(TARGET_LD) \ NDPI_PATH=$(PKG_BUILD_DIR) \ KERNEL_DIR=$(LINUX_DIR) \ $(TARGET_CONFIGURE_OPTS) \ STAGING_DIR=$(STAGING_DIR) \ CROSS_COMPILE=$(TARGET_CROSS) \ CFLAGS=$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC) -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/ndpi-netfilter/src -I$(PKG_BUILD_DIR)/src/include \ all endef define Package/ndpi-netfilter/install mkdir -p $(1)/usr/lib/iptables
Re: [OpenWrt-Devel] new package ndpi-netfilter
I have compiled it without error.But how can I test if it is working properly?Give some commands,please. --Original-- From: "Thomas Heil"h...@terminal-consulting.de; Date: Sat, Dec 8, 2012 04:51 AM To: "OpenWrt Development List"openwrt-devel@lists.openwrt.org; Subject: [OpenWrt-Devel] new package ndpi-netfilter Hi,Here is ndpi-netfilter, a GPL implementation of an iptables andnetfilter module fornDPI integration into the Linux kernel.If you find it useful, please integrate it.--## Copyright (C) 2010 OpenWrt.org## This is free software, licensed under the GNU General Public License v2.# See /LICENSE for more information.#include $(TOPDIR)/rules.mkPKG_NAME:=ndpi-netfilterPKG_REV:=5847PKG_RELEASE:=2PKG_VERSION:=1.0PKG_SOURCE:=ndpi-$(PKG_VERSION).tar.gzPKG_SOURCE_URL:=https://svn.ntop.org/svn/ntop/trunk/nDPIPKG_SOURCE_SUBDIR:=ndpi-netfilter-$(PKG_VERSION)PKG_SOURCE_VERSION:=$(PKG_REV)PKG_SOURCE_PROTO:=svninclude $(INCLUDE_DIR)/package.mk#PKG_FIXUP:=autoreconfPKG_FIXUP:=libtooldefine Package/ndpi-netfilter SUBMENU:=Firewall SECTION:=net CATEGORY:=Network TITLE:=ndpi successor of OpenDPI URL:=http://www.ntop.org/products/ndpi/ DEPENDS:=+iptables +iptables-mod-conntrack-extraendefdefine Package/ndpi-netfilter/description nDPI is a ntop-maintained superset of the popular OpenDPI libraryendefCONFIGURE_VARS:= \ CC="$(TARGET_CC)" \ LD="$(TARGET_LD)" \ LIBTOOL="$(STAGING_DIR)/host/bin/libtool"CONFIGURE_ARGS := \ $(filter-out --disable-nls,$(CONFIGURE_ARGS)) \ --with-pic \TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libiconv-full/lib-L$(STAGING_DIR)/usr/lib -lc -L$(TOOLCHAIN_DIR)define Build/Prepare $(call Build/Prepare/Default) rm -rf $(PKG_BUILD_DIR)/ndpi-netfilter git clone https://github.com/ewildgoose/ndpi-netfilter$(PKG_BUILD_DIR)/ndpi-netfilterendefdefine Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ DESTDIR="$(PKG_INSTALL_DIR)" \ CC="$(TARGET_CC)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)-I$(STAGING_DIR)/usr/include" \ LD="$(TARGET_LD)" \ CROSS_COMPILE="$(TARGET_CROSS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ all $(MAKE) -C $(PKG_BUILD_DIR)/ndpi-netfilter \ ARCH="$(LINUX_KARCH)" \ CC="$(TARGET_CC)" \ LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \ LD="$(TARGET_LD)" \ NDPI_PATH=$(PKG_BUILD_DIR) \ KERNEL_DIR=$(LINUX_DIR) \ $(TARGET_CONFIGURE_OPTS) \ STAGING_DIR="$(STAGING_DIR)" \ CROSS_COMPILE="$(TARGET_CROSS)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)-I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)/ndpi-netfilter/src-I$(PKG_BUILD_DIR)/src/include" \ allendefdefine Package/ndpi-netfilter/install mkdir -p $(1)/usr/lib/iptables $(CP) $(PKG_BUILD_DIR)/ndpi-netfilter/ipt/libxt_ndpi.so$(1)/usr/lib/iptablesendefinclude $(INCLUDE_DIR)/kernel.mkdefine KernelPackage/ipt-ndpi SUBMENU:=Netfilter Extensions TITLE:= nDPI net netfilter module DEPENDS:=+kmod-ipt-compat-xtables +libpcap +ndpi-netfilter KCONFIG:=CONFIG_NF_CONNTRACK \ CONFIG_NF_CONNTRACK_EVENTS=y FILES:= \ $(PKG_BUILD_DIR)/ndpi-netfilter/src/xt_ndpi.ko AUTOLOAD:=$(call AutoLoad,46,xt_ndpi)endef$(eval $(call BuildPackage,ndpi-netfilter))$(eval $(call KernelPackage,ipt-ndpi))--cheersthomas___openwrt-devel mailing listopenwrt-devel@lists.openwrt.orghttps://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Unrecognized 96328avng board with trunk brcm63xx r32004
First thanks jogo for adding support for bcm 96328avng board.But my 96328avng board is still unrecognized with trunk updated after r32004. TTL: Build Date: 2010-06-28 15:35:56 (wander@broadcom-eu)CFE version 1.0.37-106.17-1 for BCM96328 (32bit,SP,BE) Copyright (C) 2000-2009 Broadcom Corporation. HS Serial flash device: name S25FL128, id 0x0118 size 16384KB Total Flash size: 16384K with 256 sectors Chip ID: BCM6328B0, MIPS: 320MHz, DDR: 320MHz, Bus: 160MHz Main Thread: TP0 Memory Test Passed Total Memory: 67108864 bytes (64MB) Boot Address: 0xb800 Board IP address : 192.168.1.1:ff00 Host IP address : 192.168.1.100 Gateway IP address: Run from flash/host (f/h) : f Default host run file name: vmlinux Default host flash file name : bcm963xx_fs_kernel Boot delay (0-9 seconds) : 1 Board Id (0-7): 96328avng Number of MAC Addresses (1-32): 11 Base MAC Address : 00:1f:8f:0a:8a:b6 PSI Size (1-64) KBytes: 48 Enable Backup PSI [0|1] : 1 System Log Size (0-256) KBytes: 64 Main Thread Number [0|1] : 0 Serial Number : Voice Board Configuration (0-11) : *** Press any key to stop auto run (1 seconds) *** Auto run second count down: 0 Booting from only image (0xb801) ... Code Address: 0x8001, Entry Address: 0x8001 LZMA: Prossible old LZMA format, trying to decompress.. Decompression OK! Entry at 0x8001 Closing network. Disabling Switch ports. Flushing Receive Buffers... 151 buffers found. Closing DMA Channels. Starting program at 0x8001 [0.00] Linux version 3.3.7 (vince@desktop) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #3 Thu May 31 12:19:54 CST 2012 [0.00] Detected Broadcom 0x6328 CPU revision 10b0 [0.00] CPU frequency is 320 MHz [0.00] 64MB of RAM installed [0.00] registering 32 GPIOs [0.00] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio [0.00] board_bcm963xx: Boot address 0xb800 [0.00] board_bcm963xx: CFE version: 1.0.37-106.17 [0.00] board_bcm963xx: unknown bcm963xx board: 96328avng [0.00] bootconsole [early0] enabled [0.00] CPU revision is: 0002a075 (Broadcom BMIPS4350) [0.00] Kernel panic - not syncing: unable to detect bcm963xx board___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ?????? In need of DSL274XB rev F1(BCM6328) 's cfe.
OK. The board is based on BCM6328 and BCM4313 for wireless. -- -- ??: Florian Fainelliflor...@openwrt.org; : 2012??5??29??(??) 5:31 ??: Vince Huangaxish...@foxmail.com; openwrt-developenwrt-devel@lists.openwrt.org; : Re: [OpenWrt-Devel] In need of DSL274XB rev F1(BCM6328) 's cfe. On Tuesday 29 May 2012 17:19:45 Vince Huang wrote: Yes??I can go back to previous firmware. But I want to try openwrt on it.With AW4339U 's cfe,I think besides wireless other functions should work.So I need this cfe to try. Keep the openwrt-devel list in copy (use reply-all). Do not top post please. You need to add the definition of your board for Linux to recognize it, not change CFE so that it matches the sole board that is supported for the moment. -- Florian -- Original -- From: Florian Fainelliflor...@openwrt.org; Date: Tue, May 29, 2012 03:42 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Cc: Vince Huangaxish...@foxmail.com; Subject: Re: [OpenWrt-Devel] In need of DSL274XB rev F1(BCM6328) 's cfe. Hi, On Tuesday 29 May 2012 12:33:32 Vince Huang wrote: Hi,fellas! As bcm6238 is supported by openwrt bcm63xx.I flashed a device based on 96328avng with DSL274XB-F1 firmware and got a kerel panic. So I need a a cfe for DSL274XB rev F1(board: AW4339U ?) to mod it work with openwrt. You are getting a kernel panic because the reference board you are using is not supported by OpenWrt yet. But this does not prevent you from flashing a new image from the CFE prompt, does it? Flashing the wrong image should not result in overwriting CFE anymore. -- Florian___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ?????? ?????? In need of DSL274XB rev F1(BCM6328) 's cfe.
Is it not possible to configure one lan as wan for now? -- -- ??: axisheroaxish...@foxmail.com; : 2012??5??30??(??) 9:57 ??: Florian Fainelliflor...@openwrt.org; openwrt-developenwrt-devel@lists.openwrt.org; : [OpenWrt-Devel] ?? In need of DSL274XB rev F1(BCM6328) 's cfe. OK. The board is based on BCM6328 and BCM4313 for wireless. -- -- ??: Florian Fainelliflor...@openwrt.org; : 2012??5??29??(??) 5:31 ??: Vince Huangaxish...@foxmail.com; openwrt-developenwrt-devel@lists.openwrt.org; : Re: [OpenWrt-Devel] In need of DSL274XB rev F1(BCM6328) 's cfe. On Tuesday 29 May 2012 17:19:45 Vince Huang wrote: Yes??I can go back to previous firmware. But I want to try openwrt on it.With AW4339U 's cfe,I think besides wireless other functions should work.So I need this cfe to try. Keep the openwrt-devel list in copy (use reply-all). Do not top post please. You need to add the definition of your board for Linux to recognize it, not change CFE so that it matches the sole board that is supported for the moment. -- Florian -- Original -- From: Florian Fainelliflor...@openwrt.org; Date: Tue, May 29, 2012 03:42 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Cc: Vince Huangaxish...@foxmail.com; Subject: Re: [OpenWrt-Devel] In need of DSL274XB rev F1(BCM6328) 's cfe. Hi, On Tuesday 29 May 2012 12:33:32 Vince Huang wrote: Hi,fellas! As bcm6238 is supported by openwrt bcm63xx.I flashed a device based on 96328avng with DSL274XB-F1 firmware and got a kerel panic. So I need a a cfe for DSL274XB rev F1(board: AW4339U ?) to mod it work with openwrt. You are getting a kernel panic because the reference board you are using is not supported by OpenWrt yet. But this does not prevent you from flashing a new image from the CFE prompt, does it? Flashing the wrong image should not result in overwriting CFE anymore. -- Florian___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] In need of DSL274XB rev F1(BCM6328) 's cfe.
Hi,fellas! As bcm6238 is supported by openwrt bcm63xx.I flashed a device based on 96328avng with DSL274XB-F1 firmware and got a kerel panic. So I need a a cfe for DSL274XB rev F1(board: AW4339U ?) to mod it work with openwrt.___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Not quite getting IPv6 tunnel to work
Hello??I successfully get ipv6 address using 6to4 method following openwrt wiki. http://wiki.openwrt.org/doc/howto/ipv6 By the way,I've never heard of cerowrt.What's the major different towards openwrt? -- Original -- From: Rich Brownrichb.hano...@gmail.com; Date: Thu, May 24, 2012 06:24 PM To: openwrt-developenwrt-devel@lists.openwrt.org; Subject: [OpenWrt-Devel] Not quite getting IPv6 tunnel to work Folks, I've read through the docs and forums on the OpenWrt site, and haven't found a good answer. I'm using a new/clean install of CeroWrt 3.3.6-2 on a WNDR3700v2, which I believe should work exactly the same as OpenWrt. I am having trouble making my Hurricane Electric 6in4 tunnel work with CeroWrt. I have created the script below that uses the suggested configurations from tunnelbroker.net to set up the tunnel. (This is substantially the same script as posted to: http://www.bufferbloat.net/projects/cerowrt/wiki/IPv6_Tunnel ) Here's what I see: a) The script below uses the tunnel's Client IPv6 /64 address, and does establish the tunnel. If I ssh to the router, I can ping ipv6 hosts from the router, traceroute to ipv6 addresses, etc. However, my MacBook on sw10, for example, does not get a global IPv6 address. b) I also used tunnelbroker.net to obtain a routed /48 address. I use the LuCI GUI to set an IPv6 address for the interface from that /48 subnet. For example, if the routed /48 is 2001:470:ABCD::/48, I have assigned the IPv6 address of sw10 (one of the wireless interfaces) to 2001:470:ABCD:902::/64. My Macbook gets the global address 2001:0470:ABCD:0902:0221:e9ff:fee3:d4b0/64, and I can ping IPv6 addresses. But... c) I cannot reliably connect to certain hosts, even IPv4 hosts such as tunnelbroker.net. When I traceroute6 from my Macbook, I get: % traceroute6 ipv6.google.com traceroute6 to ipv6.l.google.com (2607:f8b0:4004:803::1010) from 2001:470:ABCD:902:221:e9ff:fee3:d4b0, 64 hops max, 12 byte packets 1 2001:470:ABCD:902:: 4.622 ms 108.652 ms * 2 2001:470:ABCD:902:: 2.704 ms 6.961 ms 17.329 ms % What am I missing? If I can get some help here, I'll write this up and post it to the CeroWrt wiki. Many thanks! Rich Brown Hanover, NH USA --- Cut Here -- #!/bin/sh # Script for setting CeroWrt (and OpenWrt) to create an IPv6 tunnel # to Hurricane Electric at http://www.tunnelbroker.net/ # There are two steps: # 1) Go to the Tunnelbroker.net site to set up your free account # 2) Run the script below, using the parameters supplied by Tunnelbroker # This CeroWrt page gives detailed instructions for setting up an IPv6 tunnel: #http://www.bufferbloat.net/projects/cerowrt/wiki/IPv6_Tunnel # # Once you've created your account and a tunnel, get the Example # Configurations for OpenWRT Backfire, and paste them into this file # named tunnel.sh Finally, ssh into the router and execute this script # using these steps: # # ssh root@172.30.42.1 # cd /tmp # cat tunnel.sh # [paste in the contents of this file, then hit ^D] # sh tunnel.sh # # Presto! Your tunnel is set up. You should now be able # communicate directly with IPv6 devices. # == # Download and update all the interesting packages # Some of these are pre-installed, but there is no # harm in updating/installing them a second time. opkg update opkg install 6in4 # == # Set the credentials for the tunnel login # NB: These lines are automatically generated # specifically for *your* tunnel when you set it up # Copy/paste them from the Example Configurations # generated for the OpenWRT Backfire 10.03.1 dropdown # # --- PASTE YOUR EXAMPLE CONFIGURATION LINES HERE uci set network.henet=interface uci set network.henet.proto=6in4 uci set network.henet.peeraddr=1.2.3.4 uci set network.henet.ip6addr='auto-generated IPv6' uci set network.henet.tunnelid=TUNNELID uci set network.henet.username=tb4### uci set network.henet.password='plaintext-password' uci commit network uci set firewall.@zone[1].network='wan henet' uci commit firewall ifup henet /etc/init.d/firewall restart # --- END OF EXAMPLE CONFIGURATION LINES # == # Re-establishing the Tunnel # # NB: As of April 2012 (CeroWrt 3.3.1-4), the automatic re-establishment code # of the 6in4 module appears not to be working. You will need to re-establish # the tunnel manually when your external IP address changes. # # To re-establish the tunnel, say, because your external IP address changed, # you can also use the following URL with these parameters. Note that the # USERNAME and PASSWORD are what you type to log into the Tunnelbroker site. # # USERNAME is the Account Name # PASSWORD is the current password # TUNNELID is the Tunnel ID #
[OpenWrt-Devel] Add support for tl-wr743n v2, a 3g router based on ar9331
Tplink wr743n is a wireless router with 1 wan 4 lan and a usb port based on ar9331 which sold in China.The ports are reversed compared to wr741nd v4. http://img.mydigit.net/Mon_1202/88_785197_280cee23642a9a1.jpg I don't know how to change gmac.So I just simply removed gmac_setup to get the ports in right place. patch-by:Vince Huang This machine patch has been tested. Serial messages: [0.00] Linux version 3.3.5 (gzanan@qq810091899) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu May 10 09:48:20 CST 2012 [0.00] MyLoader: sysp=ce9223b0, boardp=5f286e34, parts=fef2633b [0.00] bootconsole [early0] enabled [0.00] CPU revision is: 00019374 (MIPS 24Kc) [0.00] SoC: Atheros AR9330 rev 1 [0.00] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz [0.00] Determined physical RAM map: [0.00] memory: 0400 @ (usable) [0.00] Initrd not found or empty - disabling initrd [0.00] Zone PFN ranges: [0.00] Normal 0x - 0x4000 [0.00] Movable zone start PFN for each node [0.00] Early memory PFN ranges [0.00] 0: 0x - 0x4000 [0.00] On node 0 totalpages: 16384 [0.00] free_area_init_node: node 0, pgdat 802cd4c0, node_mem_map 8100 [0.00] Normal zone: 128 pages used for memmap [0.00] Normal zone: 0 pages reserved [0.00] Normal zone: 16256 pages, LIFO batch:3 [0.00] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [0.00] pcpu-alloc: [0] 0 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [0.00] Kernel command line: board=TL-WR743N-v2 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd [0.00] PID hash table entries: 256 (order: -2, 1024 bytes) [0.00] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [0.00] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [0.00] Writing ErrCtl register= [0.00] Readback ErrCtl register= [0.00] Memory: 61776k/65536k available (2091k kernel code, 3760k reserved, 394k data, 200k init, 0k highmem) [0.00] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [0.00] NR_IRQS:48 [0.00] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [0.08] pid_max: default: 32768 minimum: 301 [0.08] Mount-cache hash table entries: 512 [0.09] NET: Registered protocol family 16 [0.09] gpiochip_add: registered GPIOs 0 to 29 on device: ath79 [0.10] MIPS: machine is TP-LINK TL-WR743N v2 [0.54] bio: create slab bio-0 at 0 [0.54] Switching to clocksource MIPS [0.55] NET: Registered protocol family 2 [0.55] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [0.56] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [0.57] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [0.57] TCP: Hash tables configured (established 2048 bind 2048) [0.58] TCP reno registered [0.58] UDP hash table entries: 256 (order: 0, 4096 bytes) [0.59] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [0.59] NET: Registered protocol family 1 [0.60] PCI: CLS 0 bytes, default 32 [0.62] squashfs: version 4.0 (2009/01/31) Phillip Lougher [0.62] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [0.63] msgmni has been set to 120 [0.63] io scheduler noop registered [0.64] io scheduler deadline registered (default) [0.64] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [0.65] ar933x-uart: ttyATH0 at MMIO 0x1802 (irq = 11) is a AR933X UART [0.65] console [ttyATH0] enabled, bootconsole disabled [0.67] m25p80 spi0.0: found s25fl064k, expected m25p80 [0.67] m25p80 spi0.0: s25fl064k (8192 Kbytes) [0.68] 5 tp-link partitions found on MTD device spi0.0 [0.68] Creating 5 MTD partitions on spi0.0: [0.69] 0x-0x0002 : u-boot [0.69] 0x0002-0x000fdf04 : kernel [0.70] mtd: partition kernel must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [0.71] 0x000fdf04-0x007f : rootfs [0.72] mtd: partition rootfs must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [0.73] mtd: partition rootfs set to be root filesystem [0.73] mtd: partition rootfs_data created automatically, ofs=54, len=2B [0.74] 0x0054-0x007f :
Re: [OpenWrt-Devel] Add support for tl-wr743n v2, a 3g router based on ar9331
Right now the usb port is not stable.Hope juhosg can fix it.Details was posted here. https://lists.openwrt.org/pipermail/openwrt-devel/2012-May/015243.html -- Original -- From: axisheroaxish...@foxmail.com; Date: Thu, May 10, 2012 12:06 PM To: openwrt-developenwrt-devel@lists.openwrt.org; juhosgjuh...@openwrt.org; Subject: [OpenWrt-Devel] Add support for tl-wr743n v2,a 3g router based on ar9331 Tplink wr743n is a wireless router with 1 wan 4 lan and a usb port based on ar9331 which sold in China.The ports are reversed compared to wr741nd v4. http://img.mydigit.net/Mon_1202/88_785197_280cee23642a9a1.jpg I don't know how to change gmac.So I just simply removed gmac_setup to get the ports in right place. patch-by:Vince Huang This machine patch has been tested. Serial messages: [0.00] Linux version 3.3.5 (gzanan@qq810091899) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu May 10 09:48:20 CST 2012 [0.00] MyLoader: sysp=ce9223b0, boardp=5f286e34, parts=fef2633b [0.00] bootconsole [early0] enabled [0.00] CPU revision is: 00019374 (MIPS 24Kc) [0.00] SoC: Atheros AR9330 rev 1 [0.00] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz [0.00] Determined physical RAM map: [0.00] memory: 0400 @ (usable) [0.00] Initrd not found or empty - disabling initrd [0.00] Zone PFN ranges: [0.00] Normal 0x - 0x4000 [0.00] Movable zone start PFN for each node [0.00] Early memory PFN ranges [0.00] 0: 0x - 0x4000 [0.00] On node 0 totalpages: 16384 [0.00] free_area_init_node: node 0, pgdat 802cd4c0, node_mem_map 8100 [0.00] Normal zone: 128 pages used for memmap [0.00] Normal zone: 0 pages reserved [0.00] Normal zone: 16256 pages, LIFO batch:3 [0.00] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [0.00] pcpu-alloc: [0] 0 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [0.00] Kernel command line: board=TL-WR743N-v2 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd [0.00] PID hash table entries: 256 (order: -2, 1024 bytes) [0.00] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [0.00] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [0.00] Writing ErrCtl register= [0.00] Readback ErrCtl register= [0.00] Memory: 61776k/65536k available (2091k kernel code, 3760k reserved, 394k data, 200k init, 0k highmem) [0.00] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [0.00] NR_IRQS:48 [0.00] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) [0.08] pid_max: default: 32768 minimum: 301 [0.08] Mount-cache hash table entries: 512 [0.09] NET: Registered protocol family 16 [0.09] gpiochip_add: registered GPIOs 0 to 29 on device: ath79 [0.10] MIPS: machine is TP-LINK TL-WR743N v2 [0.54] bio: create slab bio-0 at 0 [0.54] Switching to clocksource MIPS [0.55] NET: Registered protocol family 2 [0.55] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [0.56] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [0.57] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [0.57] TCP: Hash tables configured (established 2048 bind 2048) [0.58] TCP reno registered [0.58] UDP hash table entries: 256 (order: 0, 4096 bytes) [0.59] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [0.59] NET: Registered protocol family 1 [0.60] PCI: CLS 0 bytes, default 32 [0.62] squashfs: version 4.0 (2009/01/31) Phillip Lougher [0.62] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [0.63] msgmni has been set to 120 [0.63] io scheduler noop registered [0.64] io scheduler deadline registered (default) [0.64] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [0.65] ar933x-uart: ttyATH0 at MMIO 0x1802 (irq = 11) is a AR933X UART [0.65] console [ttyATH0] enabled, bootconsole disabled [0.67] m25p80 spi0.0: found s25fl064k, expected m25p80 [0.67] m25p80 spi0.0: s25fl064k (8192 Kbytes) [0.68] 5 tp-link partitions found on MTD device spi0.0 [0.68] Creating 5 MTD partitions on spi0.0: [0.69] 0x-0x0002 : u-boot [0.69] 0x0002-0x000fdf04 : kernel [0.70] mtd: partition kernel must either start or end on erase block boundary or be
Re: [OpenWrt-Devel] ar9331's usb stability issue. eg.wr703n
I did have tried to plug a usb hub even with power supply first.But the same happens.The only maybe effect is too make the problem happen a little bit later. -- Original -- From: Hartmut Knaackknaac...@gmx.de; Date: Tue, May 8, 2012 04:57 PM To: OpenWrt Development Listopenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] ar9331's usb stability issue. eg.wr703n This problem has also been discovered in the hardware hacking forum with wr841nd, and I had it on my wr1043nd (ar9132) (https://forum.openwrt.org/viewtopic.php?id=30839). The solution I found to be somehow working is to put a simple usb hub in between. But I would prefer to see a fix of the driver instead. Vince Huang schrieb: Actually,I don't have a WR703N,but I got a 3G router with 4lan 1wan and a usb port named wr743n v2 for Chinese market which also based on ar9331 soc. When I plug a HDD Dock with a 2TB WD Green HDD to it's usb port and then write big files(500MB) through vsftp to reach 9-10mb/s transfer rates.The device hang and reboot.However,the same dock works very fine on wr843n(ar9341). Full serial messeges: http://pastebin.com/5ESfekWy It has been confirmed that two friends who have wr703Ns tried and found the same problem. Sincerely hope that juhosg and other gurues can fix it. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ar9331's usb stability issue. eg.wr703n
By the way.I've also modded 841n v7.1 with 3r33 for 12v to 5v.It's working very fine without any usb unstablities. -- Original -- From: axisheroaxish...@foxmail.com; Date: Tue, May 8, 2012 05:50 PM To: OpenWrt Development Listopenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] ar9331's usb stability issue. eg.wr703n I did have tried to plug a usb hub even with power supply first.But the same happens.The only maybe effect is too make the problem happen a little bit later. -- Original -- From: Hartmut Knaackknaac...@gmx.de; Date: Tue, May 8, 2012 04:57 PM To: OpenWrt Development Listopenwrt-devel@lists.openwrt.org; Subject: Re: [OpenWrt-Devel] ar9331's usb stability issue. eg.wr703n This problem has also been discovered in the hardware hacking forum with wr841nd, and I had it on my wr1043nd (ar9132) (https://forum.openwrt.org/viewtopic.php?id=30839). The solution I found to be somehow working is to put a simple usb hub in between. But I would prefer to see a fix of the driver instead. Vince Huang schrieb: Actually,I don't have a WR703N,but I got a 3G router with 4lan 1wan and a usb port named wr743n v2 for Chinese market which also based on ar9331 soc. When I plug a HDD Dock with a 2TB WD Green HDD to it's usb port and then write big files(500MB) through vsftp to reach 9-10mb/s transfer rates.The device hang and reboot.However,the same dock works very fine on wr843n(ar9341). Full serial messeges: http://pastebin.com/5ESfekWy It has been confirmed that two friends who have wr703Ns tried and found the same problem. Sincerely hope that juhosg and other gurues can fix it. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ar9331's usb stability issue. eg.wr703n
Actually,I don't have a WR703N,but I got a 3G router with 4lan 1wan and a usb port named wr743n v2 for Chinese market which also based on ar9331 soc. When I plug a HDD Dock with a 2TB WD Green HDD to it's usb port and then write big files(500MB) through vsftp to reach 9-10mb/s transfer rates.The device hang and reboot.However,the same dock works very fine on wr843n(ar9341). Full serial messeges: http://pastebin.com/5ESfekWy It has been confirmed that two friends who have wr703Ns tried and found the same problem. Sincerely hope that juhosg and other gurues can fix it.___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Add support for tl-wr1041n v2(leds are partially working)
Hey,guys! Here is my second patch for adding tplink tl-wr1041n v2 to openwrt. I have found gpioes for system,wlan and wps.But the leds for wan and lan are still not working because they are attached to ar8327.So I set the led for wps indicating wan status. Please summit this patch,sign-off-by:Vince Huang. U-Boot 1.1.4 (Dec 31 2011 - 13:38:52) U-boot MI124 DRAM: 64 MB id read 0x10ff flash size 4MB, sector count = 64 Flash: 4 MB Using default environment In: serial Out: serial Err: serial Net: ag934x_enet_initialize... No valid address in Flash. Using fixed address wasp reset mask:c03300 WASP S17 PHY * : cfg1 0x7 cfg2 0x7114 eth0: ba:be:fa:ce:08:41 athrs17_reg_init: complete eth0 up eth0 Autobooting in 1 seconds ## Booting image at 9f02 ... Uncompressing Kernel Image ... OK Starting kernel ... [0.00] Linux version 3.3.3 (gzanan@qq810091899) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sun Apr 29 15:34:10 CST 2012 [0.00] bootconsole [early0] enabled [0.00] CPU revision is: 0001974c (MIPS 74Kc) [0.00] SoC: Atheros AR9342 rev 1 [0.00] Clocks: CPU:525.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz [0.00] Determined physical RAM map: [0.00] memory: 0400 @ (usable) [0.00] Initrd not found or empty - disabling initrd [ 0.00] Zone PFN ranges: [0.00] Normal 0x - 0x4000 [ 0.00] Movable zone start PFN for each node [0.00] Early memory PFN ranges [0.00] 0: 0x - 0x4000 [0.00] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.00] Kernel command line: board=TL-WR1041N-v2 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd [0.00] PID hash table entries: 256 (order: -2, 1024 bytes) [0.00] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [0.00] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [0.00] Writing ErrCtl register= [0.00] Readback ErrCtl register= [ 0.00] Memory: 61800k/65536k available (2073k kernel code, 3736k reserved, 389k data, 200k init, 0k highmem) [0.00] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [0.00] NR_IRQS:48 [ 0.00] Calibrating delay loop... 261.73 BogoMIPS (lpj=1308672) [ 0.08] pid_max: default: 32768 minimum: 301 [0.08] Mount-cache hash table entries: 512 [0.09] NET: Registered protocol family 16 [ 0.09] gpiochip_add: registered GPIOs 0 to 22 on device: ath79 [ 0.10] MIPS: machine is TP-LINK TL-WR1041N v2 [0.31] bio: create slab at 0 [0.32] Switching to clocksource MIPS [0.32] NET: Registered protocol family 2 [0.33] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [0.33] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [0.34] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [0.34] TCP: Hash tables configured (established 2048 bind 2048) [0.35] TCP reno registered [0.35] UDP hash table entries: 256 (order: 0, 4096 bytes) [0.36] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [0.36] NET: Registered protocol family 1 [0.39] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.39] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [0.40] msgmni has been set to 120 [ 0.41] io scheduler noop registered [0.41] io scheduler deadline registered (default) [0.42] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [0.44] serial8250.0: ttyS0 at MMIO 0x1802 (irq = 11) is a 16550A [0.45] console [ttyS0] enabled, bootconsole disabled [ 0.45] console [ttyS0] enabled, bootconsole disabled [0.46] m25p80 spi0.0: found en25q32b, expected m25p80 [0.47] m25p80 spi0.0: en25q32b (4096 Kbytes) [0.48] 5 tp-link partitions found on MTD device spi0.0 [ 0.48] Creating 5 MTD partitions on spi0.0: [0.49] 0x-0x0002 : u-boot [0.49] 0x0002-0x000fc3bc : kernel [0.50] mtd: partition kernel must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [0.51] 0x000fc3bc-0x003f : rootfs [0.52] mtd: partition rootfs must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.53] mtd: partition rootfs set to be root filesystem [0.54] mtd: partition rootfs_data created automatically, ofs=2C, len=13 [
[OpenWrt-Devel] To reverse wan and lan ports for this ar71xx board.
Hey,guys!I am working on a patch for this tl-wr843n based on ar9341 soc.With this mach,the lans and wan are arraged like this: http://postimage.org/image/fhynzvipd/ Hope some guy can tell me the method to get the Wan into right place. /* * TP-LINK TL-WR843N v1 board support * * Copyright (C) 2010-2011 Jaiganesh Narayanan jnaraya...@atheros.com * Copyright (C) 2011-2012 dongyuqi 729650...@qq.com * * 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 linux/pci.h #include linux/phy.h #include linux/platform_device.h #include linux/ath9k_platform.h #include linux/ar8216_platform.h #include asm/mach-ath79/ar71xx_regs.h #include common.h #include dev-ap9x-pci.h #include dev-eth.h #include dev-gpio-buttons.h #include dev-leds-gpio.h #include dev-m25p80.h #include dev-spi.h #include dev-usb.h #include dev-wmac.h #include machtypes.h #define TL_WR843N_GPIO_LED_3G 11 #define TL_WR843N_GPIO_BTN_RESET17 #define TL_WR843N_GPIO_LED_WPS 15 #define TL_WR843N_GPIO_USB_POWER8 #define TL_WR843N_GPIO_LED_WLAN 13 #define TL_WR843N_GPIO_LED_WAN 18 #define TL_WR843N_GPIO_LED_LAN1 19 #define TL_WR843N_GPIO_LED_LAN2 20 #define TL_WR843N_GPIO_LED_LAN3 21 #define TL_WR843N_GPIO_LED_LAN4 12 #define TL_WR843N_GPIO_LED_SYSTEM 14 #define TL_WR843N_KEYS_POLL_INTERVAL20 /* msecs */ #define TL_WR843N_KEYS_DEBOUNCE_INTERVAL(3 * TL_WR843N_KEYS_POLL_INTERVAL) /* #define AR934X_GPIO_FUNC_ETH_SWITCH_LED4_EN BIT(7) #define AR934X_GPIO_FUNC_ETH_SWITCH_LED3_EN BIT(6) #define AR934X_GPIO_FUNC_ETH_SWITCH_LED2_EN BIT(5) #define AR934X_GPIO_FUNC_ETH_SWITCH_LED1_EN BIT(4) #define AR934X_GPIO_FUNC_ETH_SWITCH_LED0_EN BIT(3)*/ static const char *tl_wr843n_part_probes[] = { tp-link, NULL, }; static struct flash_platform_data tl_wr843n_flash_data = { .part_probes= tl_wr843n_part_probes, }; static struct gpio_led tl_wr843n_leds_gpio[] __initdata = { { .name = tp-link:green:3g, .active_low = 1, }, { .name = tp-link:green:system, .active_low = 1, }, { .name = tp-link:green:wps, .active_low = 1, }, { .name = tp-link:green:wlan, .active_low = 1, }, { .name = tp-link:green:wan, .active_low = 1, }, { .name = tp-link:green:lan1, .active_low = 1, }, { .name = tp-link:green:lan2, .active_low = 1, }, { .name = tp-link:green:lan3, .active_low = 1, }, { .name = tp-link:green:lan4, .active_low = 1, } }; static struct gpio_keys_button tl_wr843n_gpio_keys[] __initdata = { { .desc = reset, .type = EV_KEY, .code = KEY_RESTART, .debounce_interval = TL_WR843N_KEYS_DEBOUNCE_INTERVAL, .gpio = 17, .active_low = 1, } }; static void __init tl_wr843n_usb_setup(void) { /* enable power for the USB port */ gpio_request(TL_WR843N_GPIO_USB_POWER, USB power); gpio_direction_output(TL_WR843N_GPIO_USB_POWER, 1); ath79_register_usb(); } static void __init tl_db12x_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000); /* ath79_gpio_function_disable(AR934X_GPIO_FUNC_ETH_SWITCH_LED0_EN | AR934X_GPIO_FUNC_ETH_SWITCH_LED1_EN | AR934X_GPIO_FUNC_ETH_SWITCH_LED2_EN | AR934X_GPIO_FUNC_ETH_SWITCH_LED3_EN | AR934X_GPIO_FUNC_ETH_SWITCH_LED4_EN);*/ // ath79_gpio_output_select(TL_WR843N_GPIO_LED_USB, AR934X_GPIO_OUT_GPIO); // db120_gmac_setup(); ath79_register_mdio(1, 0x0); ath79_register_mdio(0, 0x0); /* WAN port */ ath79_init_mac(ath79_eth1_data.mac_addr, mac, 0); ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII; ath79_eth1_data.speed = SPEED_1000; ath79_eth1_data.duplex = DUPLEX_FULL; // ath79_eth1_data.has_ar7240_switch = 1; ath79_register_eth(1); /* LAN ports */ ath79_init_mac(ath79_eth0_data.mac_addr, mac, 1); /*ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_GMII; ath79_eth0_data.speed =
[OpenWrt-Devel] Exhausted on finding a gpio for USB_POWER...
Hi,guys! I am finding the gpio to enable USB_POWER for tl-wr843n(arthoes ar9341).I've tried out all gpio number just can't power up the usb(with factory firmware it does).Can someone kind to help me solve this? These are the command I tried to find gpios,don't know if it's proper.But it works on leds. root@OpenWrt:~# echo 6 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio6/direction root@OpenWrt:~# echo 0 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio0/direction root@OpenWrt:~# echo 1 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio1/direction root@OpenWrt:~# echo 2 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio2/direction root@OpenWrt:~# echo 3 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio3/direction root@OpenWrt:~# echo 4 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio4/direction Mach is attached. mach-tl-wr843n.ok0428 Description: Binary data ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Exhausted on finding a gpio for USB_POWER...
Thanks,found it with echo in /sys/class/gpio/gpio4/direction My usb stick is recognized right after this. But I can't get usb initialize from mach!How to solve it? I've added these lines to mach: static void __init tl_wr843n_usb_setup(void) { /* enable power for the USB port */ gpio_request(TL_WR843N_GPIO_USB_POWER, USB power); gpio_direction_output(TL_WR843N_GPIO_USB_POWER, 0); /* 1 is not working,too */ ath79_register_usb(); } tl_wr843n_usb_setup(); -- Original -- From: Florian Fainelliflor...@openwrt.org; Date: Sun, Apr 29, 2012 01:09 AM To: openwrt-developenwrt-devel@lists.openwrt.org; Cc: Vince Huangaxish...@foxmail.com; Subject: Re: [OpenWrt-Devel] Exhausted on finding a gpio for USB_POWER... Hi, Le samedi 28 avril 2012 19:01:03, Vince Huang a écrit : Hi,guys! I am finding the gpio to enable USB_POWER for tl-wr843n(arthoes ar9341).I've tried out all gpio number just can't power up the usb(with factory firmware it does).Can someone kind to help me solve this? These are the command I tried to find gpios,don't know if it's proper.But it works on leds. root@OpenWrt:~# echo 6 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio6/direction root@OpenWrt:~# echo 0 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio0/direction root@OpenWrt:~# echo 1 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio1/direction root@OpenWrt:~# echo 2 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio2/direction root@OpenWrt:~# echo 3 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio3/direction root@OpenWrt:~# echo 4 /sys/class/gpio/export root@OpenWrt:~# echo out /sys/class/gpio/gpio4/direction Mach is attached. Check whether the GPIO might be controlling the USB power using a pull-up/down GPIO. Set the GPIO direction to output, then back to input and see if that changes anything. -- Florian___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel