Re: [OpenWrt-Devel] question about kernel profiling

2010-06-25 Thread Yongheng Qi
I am

On 6/26/10, jason duhamell  wrote:
> Has anyone heard Yongheng Qi?
>
> On Sun, Dec 6, 2009 at 5:36 PM, Yongheng Qi  wrote:
>
>> Dear all:
>>
>> my openwrt kernel cpu loading very high at large thoughput. I want to user
>> kernel profile.
>>
>> I read the
>> link:http://homepages.cwi.nl/~aeb/linux/profile.html
>>
>> thay say: Boot the kernel with command line option profile=2 (or some
>> other number instead of 2). This will cause a file /proc/profile to be
>> created.
>>
>> I want to know how to set profile=2 at openwrt kernel boot?
>>
>> in addition, I compile oprofile on openwrt. the version is 0.94, it's
>> start
>> and running is ok, but the opreport say:
>>
>> r...@openwrt:/dev/oprofile/stats/cpu0# opreport -l
>> opreport error: No sample file found: try running opcontrol --dump
>> or specify a session containing sample files
>>
>> by the way: my broadband is MIPS 71xx.
>>
>> Thanks
>>
>>
>> ___
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>>
>>
>

-- 
Sent from my mobile device

Yongheng Qi

Mobile: +86 1390 119 7481
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] question about kernel profiling

2010-06-25 Thread linux_pro
hi,jason.
[?]

2010/6/26 jason duhamell 

> Has anyone heard Yongheng Qi?
>
> On Sun, Dec 6, 2009 at 5:36 PM, Yongheng Qi  wrote:
>
>>  Dear all:
>>
>> my openwrt kernel cpu loading very high at large thoughput. I want to user
>> kernel profile.
>>
>> I read the 
>> link:http://homepages.cwi.nl/~aeb/linux/profile.html
>>
>> thay say: Boot the kernel with command line option profile=2 (or some
>> other number instead of 2). This will cause a file /proc/profile to be
>> created.
>>
>> I want to know how to set profile=2 at openwrt kernel boot?
>>
>> in addition, I compile oprofile on openwrt. the version is 0.94, it's
>> start and running is ok, but the opreport say:
>>
>> r...@openwrt:/dev/oprofile/stats/cpu0# opreport -l
>> opreport error: No sample file found: try running opcontrol --dump
>> or specify a session containing sample files
>>
>> by the way: my broadband is MIPS 71xx.
>>
>> Thanks
>>
>>
>> ___
>> 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
>
>
<<332.gif>>___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] question about kernel profiling

2010-06-25 Thread jason duhamell
Has anyone heard Yongheng Qi?

On Sun, Dec 6, 2009 at 5:36 PM, Yongheng Qi  wrote:

> Dear all:
>
> my openwrt kernel cpu loading very high at large thoughput. I want to user
> kernel profile.
>
> I read the 
> link:http://homepages.cwi.nl/~aeb/linux/profile.html
>
> thay say: Boot the kernel with command line option profile=2 (or some
> other number instead of 2). This will cause a file /proc/profile to be
> created.
>
> I want to know how to set profile=2 at openwrt kernel boot?
>
> in addition, I compile oprofile on openwrt. the version is 0.94, it's start
> and running is ok, but the opreport say:
>
> r...@openwrt:/dev/oprofile/stats/cpu0# opreport -l
> opreport error: No sample file found: try running opcontrol --dump
> or specify a session containing sample files
>
> by the way: my broadband is MIPS 71xx.
>
> Thanks
>
>
> ___
> 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] Is this router openwrt compatible?

2010-06-25 Thread Gioacchino Mazzurco
ok very thanks ;) we cannot at all because we use openwrt full of ipv6 stuff
then it is impossible to run on a 2MB flash :|

2010/6/25 Jonas Gorski

>

> Hi,
>
> On 25 June 2010 21:58, Gioacchino Mazzurco  wrote:
> > Hey all!
> > I see this big promotion on axuse.com site
> >
> http://www.axuse.com/produkt/AX10447/Router_TLWR340G_TPLink/448/24/001001004/en/
> >
> > I am looking for if it is compatible with openwrt, and if it support
> > multiple Acces Point with one radio ( like fonera and other madwifi )
>
> According to the FCC photos, this thing is a AR2317 with 8 MByte ram.
> While the flash chip isn't visible in the photos, it most likely is a
> 2 MByte one, which makes it all in all definitely not supported by
> stock openwrt. Even getting a custom stripped down version to run
> might be near impossible (and no fun).
>
> Regards,
> Jonas
> ___
> 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] Is this router openwrt compatible?

2010-06-25 Thread Jonas Gorski
Hi,

On 25 June 2010 21:58, Gioacchino Mazzurco  wrote:
> Hey all!
> I see this big promotion on axuse.com site
> http://www.axuse.com/produkt/AX10447/Router_TLWR340G_TPLink/448/24/001001004/en/
>
> I am looking for if it is compatible with openwrt, and if it support
> multiple Acces Point with one radio ( like fonera and other madwifi )

According to the FCC photos, this thing is a AR2317 with 8 MByte ram.
While the flash chip isn't visible in the photos, it most likely is a
2 MByte one, which makes it all in all definitely not supported by
stock openwrt. Even getting a custom stripped down version to run
might be near impossible (and no fun).

Regards,
Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Is this router openwrt compatible?

2010-06-25 Thread Gioacchino Mazzurco
Hey all!
I see this big promotion on axuse.com site
http://www.axuse.com/produkt/AX10447/Router_TLWR340G_TPLink/448/24/001001004/en/

I am looking for if it is compatible with openwrt, and if it support
multiple Acces Point with one radio ( like fonera and other madwifi )

because we can use this low price router, in place where we risk node steal

some one know?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] 3G modem - don't require a pincode

2010-06-25 Thread Jose Vasconcellos
Some ISPs don't use a pincode on their SIM cards.
This patch checks to see if a pincode is defined before
trying to set it.

Signed off by: Jose Vasconcellos 

Index: package/comgt/files/3g.sh
===
--- package/comgt/files/3g.sh   (revision 21899)
+++ package/comgt/files/3g.sh   (working copy)
@@ -91,7 +91,7 @@
fi
# Don't assume Option to be default as it breaks with Huawei 
Cards/Sticks

-   PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom 
|| {
+   test -z "$pincode" || PINCODE="$pincode" gcom -d "$device" -s
/etc/gcom/setpin.gcom || {
echo "$config(3g): Failed to set the PIN code."
set_3g_led 0 0 0
return 1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [patch] add md5sum of kernel 2.6.35-rc3

2010-06-25 Thread Matthias Buecher / Germany
Updates MD5SUM of kernel 2.6.35 to RC3.

Signed off by: Matthias Buecher 
Index: include/kernel-version.mk
===
--- include/kernel-version.mk	(revision 21899)
+++ include/kernel-version.mk	(working copy)
@@ -26,8 +26,8 @@
 ifeq ($(LINUX_VERSION),2.6.34)
   LINUX_KERNEL_MD5SUM:=10eebcb0178fb4540e2165bfd7efc7ad
 endif
-ifeq ($(LINUX_VERSION),2.6.35-rc2)
-  LINUX_KERNEL_MD5SUM:=6b6b76e689e11b70b2e53f9482006929
+ifeq ($(LINUX_VERSION),2.6.35-rc3)
+  LINUX_KERNEL_MD5SUM:=aa9383b655787bac2f369a0b8b6fee76
 endif
 
 # disable the md5sum check for unknown kernel versions
@@ -38,4 +38,3 @@
 KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION)))
 KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE
 KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE
-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 4/4 v2] package/mac80211 refactor ath9k_platform to support ath5k

2010-06-25 Thread Daniel Golle

Ouch, ath_platform_data.eeprom_data isn't a pointer actually :/
As one might well supply a MAC address only, it would make sense to make 
it one.

Otherwise I will change pdata->eeprom_data to pdata.eeprom_data ...


On 06/24/2010 07:28 PM, daniel.go...@gmail.com wrote:

This adds a patch to mac80211 which modifies the ath5k driver in such a way 
that it respects eeprom_data and mac from ath_platform_data.
If ath_platform_data is supplied, ath_platform_data->eeprom_data is used 
instead of reading from the module eeprom.
Similarly, a non-zero macaddr given in ath_platform_data overrides the mac 
address.
   


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] package/madwifi override MAC address from platform_data

2010-06-25 Thread daniel . golle
This patch makes ath_pci check for ath_platform_data and set the MAC address to 
the one provided in ath_platform_data.
It's built upon the changes in my previous posts related to 
refactoring/renaming ath9k_platform_data.
>From what I understood, a clean solution to use eeprom_data would require 
>changes to the HAL, and as Atheros license doesn't allow HAL modifications, 
>this could only
be done in dirty ways.
However, overriding the interface address is possible with a small modification 
of if_ath.c, which appears to be covered by the GPL.

(I believe, a patch-of-a-patch would by even less convenient than attaching the 
file to be put into package/madwifi/patches)
diff -ru a/ath/if_ath.c b/ath/if_ath.c
--- a/ath/if_ath.c  2010-06-24 23:02:47.0 +0200
+++ b/ath/if_ath.c  2010-06-24 23:48:07.0 +0200
@@ -63,6 +63,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 
 #include "if_ethersubr.h"  /* for ETHER_IS_MULTICAST */
@@ -587,8 +589,13 @@
unsigned int i;
int autocreatemode = -1;
u_int8_t csz;
+#ifdef ATH_PCI
+   struct ath_platform_data *pdata;
+   struct pci_dev *pdev;
+#endif
 
sc->devid = devid;
+
 #ifdef AR_DEBUG
ath_debug_global = (ath_debug & ATH_DEBUG_GLOBAL);
sc->sc_debug = (ath_debug & ~ATH_DEBUG_GLOBAL);
@@ -648,8 +655,15 @@
}
sc->sc_ah = ah;
 
-   /* WAR for AR7100 PCI bug */
 #ifdef CONFIG_ATHEROS_AR71XX
+#ifdef ATH_PCI
+   /* set MAC from ath_platform_data */
+   pdev = (struct pci_dev *)sc->sc_bdev;
+   pdata = (struct ath_platform_data *)pdev->dev.platform_data;
+   if (pdata && pdata->macaddr)
+   ath_hal_setmac(ah, pdata->macaddr);
+#endif
+   /* WAR for AR7100 PCI bug */
if ((ar_device(sc->devid) >= 5210) && (ar_device(sc->devid) < 5416)) {
ath_hal_setcapability(ah, HAL_CAP_DMABURST_RX, 0, 
HAL_DMABURST_4B, NULL);
ath_hal_setcapability(ah, HAL_CAP_DMABURST_TX, 0, 
HAL_DMABURST_4B, NULL);
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel