[OpenWrt-Devel] Reg: setdirection in openwrt
Hi, I am using pcap_setdirection function to capture only incoming packets from interface in my c code. To set a direction, I am using PCAP_D_IN argument in function. It works fine in my laptop with linux on it. But when I am compiling it using backfire for wndr3700(AR71xx) , and porting it on WNDR3700 AP, it captures both incoming and outgoing packets. I am suspecting the problem with libpcap library function pcap_setdirection. Please help me on this Regards, Ani ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] package/yaddns: bump version, add uci compatibility
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Committed in r24959 - thanks! -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0rLsoACgkQdputYINPTPMEIwCfZWB08Z5OFr2D7UcbiRnUpq/e 6lsAn070MJCpBqgEmHo8cHADVdVAGvfF =WrAb -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] 802.1Q VLAN support for Infineon ADM6996 switch chip
On -10/01/37 20:59, David Goodenough wrote: http://wwwhome.cs.utwente.nl/~lebbing/Samurai%206M,MX,%20ADM6996M,MX.pdf Can I ask where you got this datasheet. The only ones I have managed to find are only viewable through a dreadful web interface. In particular do you know if there is an ADM6996F (mine is actually an FC) datasheet anywhere? It turned up in a web search. Don't know the particulars anymore. But a trick I learned from a friend is to google for part name vcc, without quotes. Because datasheets often mention a supply voltage with the symbol vcc. It often helps to narrow down the list of results quickly. In fact, I think a good datasheet for the ADM6996F is: http://www.datasheetcatalog.org/datasheets2/21/2150254_1.pdf It's actually the first result from https://encrypted.google.com/search?q=adm6996f+vcc I can easily tell it's not compatible with the 6996M with regard to the VLANs, though. Interestingly, the datasheet for the F doesn't mention the FC model, but the datasheet for the M/MX does: 3.5 The Hardware Difference between ADM6996M/MX and ADM6996F ADM6996FC is a power-down version to replace ADM6996F and ADM6996M/MX is advanced function version for new applications. Good luck! Peter. -- I use the GNU Privacy Guard (GnuPG) in combination with Enigmail. You can send me encrypted mail if you want some privacy. My key is available at http://wwwhome.cs.utwente.nl/~lebbing/pubkey.txt (new, larger key created on Nov 12, 2009) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] 802.1Q VLAN support for Infineon ADM6996 switch chip
Peter Lebbing peter at digitalbrains.com writes: It turned up in a web search. Don't know the particulars anymore. But a trick I learned from a friend is to google for part name vcc, without quotes. Because datasheets often mention a supply voltage with the symbol vcc. It often helps to narrow down the list of results quickly. I'm more interested in the ADM6996L: http://pdf.pfind.ru/A/ADM6996L.pdf It's used in more devices. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] 802.1Q VLAN support for Infineon ADM6996 switch chip
On Monday 10 January 2011, Peter Lebbing wrote: On -10/01/37 20:59, David Goodenough wrote: http://wwwhome.cs.utwente.nl/~lebbing/Samurai%206M,MX,%20ADM6996M,MX.pd f Can I ask where you got this datasheet. The only ones I have managed to find are only viewable through a dreadful web interface. In particular do you know if there is an ADM6996F (mine is actually an FC) datasheet anywhere? It turned up in a web search. Don't know the particulars anymore. But a trick I learned from a friend is to google for part name vcc, without quotes. Because datasheets often mention a supply voltage with the symbol vcc. It often helps to narrow down the list of results quickly. In fact, I think a good datasheet for the ADM6996F is: http://www.datasheetcatalog.org/datasheets2/21/2150254_1.pdf It's actually the first result from https://encrypted.google.com/search?q=adm6996f+vcc I can easily tell it's not compatible with the 6996M with regard to the VLANs, though. Interestingly, the datasheet for the F doesn't mention the FC model, but the datasheet for the M/MX does: 3.5 The Hardware Difference between ADM6996M/MX and ADM6996F ADM6996FC is a power-down version to replace ADM6996F and ADM6996M/MX is advanced function version for new applications. Good luck! Peter. Did you notice anywhere that seemed to differentiate the various chips in the the family? David ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] USB support for the TP-LINK TL-WR941ND V2V3 routers
TP-LINK TL-WR941ND V2V3 and other AR9132 based routers (like D-Link DIR-615 HW rev C1) have a USB header on PCB but it is not populated. To be able to use USB you should make a hardware mod (solder USB header, a 4.7 Kohm USB_RREF resistor R96 and two 22 ohm impedance matching resistors at the USB header) and the following kernel patch. About the patch: 1. ar71xx_add_device_usb() should be called in mach-tl-wr941nd.c to add the usb device (obvious, posted on the forum for a long time) AND 2. Initialize the USB PLL in dev-usb.c! It is initialized in the u-boot loader code in TL-WR1043ND but not in TL-WR941ND's. It would be better to perform a complete hardware initialization in the kernel and not to depend on the boot loader. Signed-off-by: Trifon Chervenkov tuck...@gmail.com --- files/arch/mips/ar71xx/dev-usb.c | 5+ files/arch/mips/ar71xx/mach-tl-wr941nd.c | 4+ files/arch/mips/ar71xx/Kconfig | 1+ 3 files changed, 10 insertions(+) --- a/arch/mips/ar71xx/dev-usb.c +++ b/arch/mips/ar71xx/dev-usb.c @@ -142,6 +142,11 @@ static void __init ar91xx_usb_setup(void) { + /* USB PLL init from TL-WR1043ND's u-boot/board/ar7100/ap83/ap83.c */ + /* this is missing in TL-WR941ND's u-boot/board/ar7100/ap81/ap81.c */ + /* ar71xx_pll_wr(AR91XX_PLL_REG_USB_CONFIG, 0x1030); */ + *(volatile unsigned int *)0xb8050008 = 0x1030; + ar71xx_device_stop(RESET_MODULE_USBSUS_OVERRIDE); mdelay(10); --- a/arch/mips/ar71xx/mach-tl-wr941nd.c +++ b/arch/mips/ar71xx/mach-tl-wr941nd.c @@ -20,6 +20,7 @@ #include dev-ar913x-wmac.h #include dev-gpio-buttons.h #include dev-leds-gpio.h +#include dev-usb.h #define TL_WR941ND_GPIO_LED_SYSTEM 2 #define TL_WR941ND_GPIO_LED_QSS_RED4 @@ -125,6 +125,9 @@ ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_add_device_eth(0); + + ar71xx_add_device_usb(); + ar71xx_add_device_dsa(0, tl_wr941nd_dsa_data); ar71xx_add_device_m25p80(tl_wr941nd_flash_data); --- a/arch/mips/ar71xx/Kconfig +++ b/arch/mips/ar71xx/Kconfig @@ -182,6 +182,7 @@ select AR71XX_DEV_DSA select AR71XX_DEV_GPIO_BUTTONS select AR71XX_DEV_LEDS_GPIO + select AR71XX_DEV_USB default n config AR71XX_MACH_TL_WR1043ND ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] 802.1Q VLAN support for Infineon ADM6996 switch chip
On Monday 10 January 2011, David Goodenough wrote: On Monday 10 January 2011, Peter Lebbing wrote: On -10/01/37 20:59, David Goodenough wrote: http://wwwhome.cs.utwente.nl/~lebbing/Samurai%206M,MX,%20ADM6996M,MX. pd f Can I ask where you got this datasheet. The only ones I have managed to find are only viewable through a dreadful web interface. In particular do you know if there is an ADM6996F (mine is actually an FC) datasheet anywhere? It turned up in a web search. Don't know the particulars anymore. But a trick I learned from a friend is to google for part name vcc, without quotes. Because datasheets often mention a supply voltage with the symbol vcc. It often helps to narrow down the list of results quickly. In fact, I think a good datasheet for the ADM6996F is: http://www.datasheetcatalog.org/datasheets2/21/2150254_1.pdf It's actually the first result from https://encrypted.google.com/search?q=adm6996f+vcc I can easily tell it's not compatible with the 6996M with regard to the VLANs, though. Interestingly, the datasheet for the F doesn't mention the FC model, but the datasheet for the M/MX does: 3.5 The Hardware Difference between ADM6996M/MX and ADM6996F ADM6996FC is a power-down version to replace ADM6996F and ADM6996M/MX is advanced function version for new applications. Good luck! Peter. Did you notice anywhere that seemed to differentiate the various chips in the the family? David ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Perhaps I should restate my question, that is unclear. Are there any register values or other way programatically to tell which of the ADM6996 chips is being used as the PHY on a particular system? David ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel