[OpenWrt-Devel] No gdb found! Make sure that CONFIG_GDB is set!
Hi all, I am trying to debug openwrt. I followed the instruction from http://wiki.openwrt.org/doc/devel/gdb Everything works well but when scorpio@scorpio-desktop:~/mjproject/openwrt/buffalo/backfire$ ./scripts/remote-gdb 192.168.1.1:9000./staging_dir/target-mips_r2_uClibc-0.9.30.1/root-ar71xx/bin/ping Choose target: 1) mips (r2) 2) i386 (uClibc-0.9.30.1) Target? > 1 No gdb found! Make sure that CONFIG_GDB is set! I don't why. CONFIG_GDB=y is set when I compiled openwrt. If I chose 2, then it works. But I think in order to debug the router(mips arch), I should choose 1. What should I do? Thank you. Jin ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Information required on AR7240 ethernet switch
Hello Everyone, Is there any information on queries on AR7240 ethernet switch available? Kindly respond if anyone has any information. Thanks, On Fri, May 11, 2012 at 11:03 AM, Parul Aggarwal < parul.aggar...@sibridgetech.com> wrote: > Hello Everyone, > > Can anyone provide information on queries asked in my last post on AR7240 > ethernet switch? > > Query posted again below: > > > "AR7240 has integrtaed 803.2 ethernet switch with five 10/100 Mbps Fast > ethernet MAC/PHY. We want to do loopback test on the ethernet peripheral of > AP91. > > I had few questions here: > 1. AR7240 ethernet reigisters shows two bits for loopback > a. In MAC configuration 1 register, bit 8: Enabling this as we > understand enables MAC loopback. > b. Port Control register, bit 12: Description of register says > "Setting this bit to 1 enables the MAC loopback function on MII interface" > As we understand this is "MII loopback" and enabling just this bit (with > MAC configuration register bit 8 reset) we should have MII loopback. Is the > understanding correct here for MII loopback, does ar7240 switch support MII > loopback? > 2. Does the switch support PHY loopback and how do we enable that? > 3. Which ethernet switch from atheros is used in AR7240? > > I basically need information on what all ethernet loopback modes AR7240 > support and how to enable that." > > Any response would be appreciated. > > Thanks, > Parul > > > On Wed, May 9, 2012 at 1:35 PM, Parul Aggarwal < > parul.aggar...@sibridgetech.com> wrote: > >> Hi Everyone, >> >> AR7240 has integrtaed 803.2 ethernet switch with five 10/100 Mbps Fast >> ethernet MAC/PHY. We want to do loopback test on the ethernet peripheral of >> AP91. >> >> I had few questions here: >> 1. AR7240 ethernet reigisters shows two bits for loopback >> a. In MAC configuration 1 register, bit 8: Enabling this as we >> understand enables MAC loopback. >> b. Port Control register, bit 12: Description of register says >> "Setting this bit to 1 enables the MAC loopback function on MII interface" >> As we understand this is "MII loopback" and enabling just this bit (with >> MAC configuration register bit 8 reset) we should have MII loopback. Is the >> understanding correct here for MII loopback, does ar7240 switch support MII >> loopback? >> 2. Does the switch support PHY loopback and how do we enable that? >> 3. Which ethernet switch from atheros is used in AR7240? >> >> I basically need information on what all ethernet loopback modes AR7240 >> support and how to enable that. >> >> Any help would be appreciated. >> >> Regards, >> Parul >> > > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Update monit to 5.4 and bugfixes
Hi this patch update monit from 5.2.5 to 5.4, this add cool feature like "check program", to execute a script and send email/do action depending on the return code, and many bugfixes (http://mmonit.com/monit/dist/CHANGES.txt) I've modified the init script because "-d 60" overide the conf file and the stat command doesn't seem to exist, so either we just chmod each time or we let the people RTFM and the syslog (i prefer the latter) For now i've tested only the ssl version with backfire (r31676) on x86 and ar71xx (tplink wr1043nd) (it send mail via google, ping, watch load average and cpu ...) It compile (monit and monit-nossl) for x86 and ar71xx for backfire & trunk (trunk x86 mount the ext4 partition readonly so i haven't tested) Signed-off-by: Etienne CHAMPETIER Index: files/monit.init === --- files/monit.init(révision 31729) +++ files/monit.init(copie de travail) @@ -1,5 +1,5 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2006-2011 OpenWrt.org +# Copyright (C) 2006-2012 OpenWrt.org START=60 @@ -7,8 +7,8 @@ start() { [ -f /etc/monitrc ] || return 1 - [ "$(stat -c "%a" /etc/monitrc)" = "0700" ] || chmod 0700 /etc/monitrc - service_start /usr/bin/monit -d 60 + #chmod 0700 /etc/monitrc + service_start /usr/bin/monit } stop() { Index: patches/001-no_sslv2.patch === --- patches/001-no_sslv2.patch (révision 31729) +++ patches/001-no_sslv2.patch (copie de travail) @@ -1,18 +0,0 @@ a/ssl.c -+++ b/ssl.c -@@ -635,6 +635,7 @@ ssl_connection *new_ssl_connection(char - #endif - break; - -+#ifndef OPENSSL_NO_SSLV2 - case SSL_VERSION_SSLV2: - #ifdef OPENSSL_FIPS - if (FIPS_mode()) { -@@ -647,6 +648,7 @@ ssl_connection *new_ssl_connection(char - } - #endif - break; -+#endif - - case SSL_VERSION_SSLV3: - #ifdef OPENSSL_FIPS Index: patches/002-uclibc_loadavg.patch === --- patches/002-uclibc_loadavg.patch(révision 31729) +++ patches/002-uclibc_loadavg.patch(copie de travail) @@ -1,48 +0,0 @@ a/process/sysdep_LINUX.c -+++ b/process/sysdep_LINUX.c -@@ -144,6 +144,45 @@ static time_t get_starttime() { - - return time(NULL) - (time_t)up; - } -+ -+ -+/* uclibc and dietlibc do not have this junk -ReneR */ -+#if defined (__UCLIBC__) || defined (__dietlibc__) -+static int getloadavg (double loadavg[], int nelem) -+{ -+ int fd; -+ -+ fd = open ("/proc/loadavg", O_RDONLY); -+ if (fd < 0) -+return -1; -+ else -+{ -+ char buf[65], *p; -+ ssize_t nread; -+ int i; -+ -+ nread = read (fd, buf, sizeof buf - 1); -+ close (fd); -+ if (nread <= 0) -+ return -1; -+ buf[nread - 1] = '\0'; -+ -+ if (nelem > 3) -+ nelem = 3; -+ p = buf; -+ for (i = 0; i < nelem; ++i) -+ { -+char *endp; -+loadavg[i] = strtod (p, &endp); -+if (endp == p) -+ return -1; -+p = endp; -+ } -+ -+ return i; -+} -+} -+#endif - - - /* -- Public */ Index: Makefile === --- Makefile(révision 31729) +++ Makefile(copie de travail) @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=monit -PKG_VERSION:=5.2.5 -PKG_RELEASE:=2 +PKG_VERSION:=5.4 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://mmonit.com/monit/dist -PKG_MD5SUM:=862fb7939ad6f73fc0cc82096c2309c7 +PKG_MD5SUM:=f1f391241d44059d0d3e5d26f4ec5ddf PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) PKG_INSTALL:=1 @@ -55,6 +55,11 @@ This package is built without SSL support. endef +CONFIGURE_ARGS += \ + --without-pam \ + libmonit_cv_setjmp_available=yes \ + libmonit_cv_vsnprintf_c99_conformant=yes + ifeq ($(BUILD_VARIANT),ssl) CONFIGURE_ARGS += \ --with-ssl \ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] lantiq + ath9k: what to expect?
Al 14/05/12 21:53, En/na Pieter Voorthuijsen ha escrit: > Hello, > > I would like to know what kind of transfers speeds I can expect with > the recent ath9k driver. > > On my xway chip in the dgn3500 I can create a 150Mbps connection. When > starting transfers, it peaks to 3,5Mib and after that drops to ~2. Is > this normal? With the original firmware transfer speeds of 6Mib were > possible very limited testing at the beginning of the year gave me 25Mbps, while I previously got only 5Mbps: http://patchwork.openwrt.org/patch/1798/ Bye -- Luca ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Old retired versions of 2.6.x soon to include x86?
> Well, start by editing target/linux/x86/alix2/target.mk ... Ok, I'll try this week and would be happy to do regular tests on Alix1D (and maybe 2D13, I have also some lying around..) Or to be more correct, a 2d13 is my homeoffice VDSL50-Router currently under Debian which is - well - not so perfect in terms of config etc. for this purpose.. The differences between Alix1d and 2x is mainly the VGA and less usable GPIOs so it shouldnt be worth creating a sep. platform.. Michael P.S.: Sorry for the mail-format, Thunderbird refuses to work currently so I'm on sh*** webmail ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] lantiq + ath9k: what to expect?
Hello, I would like to know what kind of transfers speeds I can expect with the recent ath9k driver. On my xway chip in the dgn3500 I can create a 150Mbps connection. When starting transfers, it peaks to 3,5Mib and after that drops to ~2. Is this normal? With the original firmware transfer speeds of 6Mib were possible Kind regards, ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ethernet carrier, udhcpc, hotplug
On Mon, 2012-05-14 at 18:56 +0200, Jo-Philipp Wich wrote: > > Am I missing something? I would think this useful, as it may have > > been plugged into a different network. > > Yes. This might work for units that have their wan at a dedicated > interface, but it will fail through bridges or switches which are > "always up" from the system pov. Yes, I understand. Bridges, I believe, do a suitable AND operation of the carriers for encompassed ports. Switches are more difficult and depend on driver behaviour. It would be appropriate for switch drivers to also do a logical AND of relevant physical port's carriers. But those are the details. I was enquiring about the basic principle in the first instance. There is no current mechanism for dhcpc (or other) activity on carrier down/up? I saw a patch for uevent to handle interface carrier events, but it doesn't seem to have stuck? Thanks, Conor ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ethernet carrier, udhcpc, hotplug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Am I missing something? I would think this useful, as it may have > been plugged into a different network. Yes. This might work for units that have their wan at a dedicated interface, but it will fail through bridges or switches which are "always up" from the system pov. ~ Jow -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+xOVQACgkQdputYINPTPODWQCfWJ8SqvmsOIJmAyR0Qp1eoTWM etEAniehrTsK2IsWljOFq6KIQAw0+vr3 =k7bX -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ethernet carrier, udhcpc, hotplug
I don't seem to get udhcpc renewing a lease after plugging out/in the ethernet cable. I've checked that the carrier state is being signaled correctly via 'ip link'. I imagined that either udhcpc directly, or hotplug indirectly, would make the magic happen, ie. an attempted renewal. Am I missing something? I would think this useful, as it may have been plugged into a different network. Thanks, Conor ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Add support for php5 calendar module
Hi, this patch adds calendar module support to php5 Signed-off-by: Gerald Matzka Index: feeds/packages/lang/php5/Makefile === --- feeds/packages/lang/php5/Makefile (revision 31709) +++ feeds/packages/lang/php5/Makefile (working copy) @@ -159,6 +159,10 @@ CONFIGURE_ARGS+= --disable-apc endif +ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-calendar),) + CONFIGURE_ARGS+= --enable-calendar=shared +endif + ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-ctype),) CONFIGURE_ARGS+= --enable-ctype=shared else @@ -521,6 +525,7 @@ #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS])) $(eval $(call BuildModule,apc,APC,+PACKAGE_php5-mod-apc:librt)) +$(eval $(call BuildModule,calendar,Calendar)) $(eval $(call BuildModule,ctype,Ctype)) $(eval $(call BuildModule,curl,cURL,+PACKAGE_php5-mod-curl:libcurl)) $(eval $(call BuildModule,fileinfo,Fileinfo,+PACKAGE_php5-mod-fileinfo:libmagic)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel