Re: [OpenWrt-Devel] [PATCH] AA: unlocked bootloader for SX76x cannot read LAN for rescue, band-aid fix
On Tue, Jan 29, 2013 at 06:48:22PM -0800, Daniel Gimpelevich wrote: No sooner did I post this than it stopped working, even with this patch, no changes to the source. I'm guessing this uBoot isn't initializing the Ethernet switch properly. It definitely doesn't work in any way, shape, or form without this patch, though. Why don't you use u-boot from trunk? Luka ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] AA: unlocked bootloader for SX76x cannot read LAN for rescue, band-aid fix
On Wed, 2013-01-30 at 12:29 +0100, Luka Perkov wrote: On Tue, Jan 29, 2013 at 06:48:22PM -0800, Daniel Gimpelevich wrote: No sooner did I post this than it stopped working, even with this patch, no changes to the source. I'm guessing this uBoot isn't initializing the Ethernet switch properly. It definitely doesn't work in any way, shape, or form without this patch, though. Why don't you use u-boot from trunk? Luka That would require two separate build trees for the same device, trunk and AA, which I can do, but since it is known that trunk cannot currently build a firmware for the device, do you know for sure the the Lantiq uBoot in trunk works properly and has a recovery mode patched in like the AA one? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH][V4] Zabbix: add extra packages with discovery/userparameter
On 01/08/2013 11:31 PM, Etienne Champetier wrote: Hi Hey, +define Package/zabbix-extra-mac80211/postinst +[ -n $${IPKG_INSTROOT} ] || /etc/init.d/zabbix_extra_mac80211 enable +exit 0 +endef + +define Package/zabbix-extra-network/postinst +[ -n $${IPKG_INSTROOT} ] || /etc/init.d/zabbix_extra_network enable +exit 0 +endef + +define Package/zabbix-extra-wifi/postinst +[ -n $${IPKG_INSTROOT} ] || /etc/init.d/zabbix_extra_wifi enable +exit 0 +endef + There's a reason for package init scripts not being enabled by default. Although its intention is indeed worth a discussion, workarounding this within the package makefiles however doesn't make it any better and is definitely not the right place to do so. Index: files/zabbix_extra_network.init === --- files/zabbix_extra_network.init (révision 0) +++ files/zabbix_extra_network.init (révision 0) @@ -0,0 +1,9 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008-2011 OpenWrt.org + +START=59 + +start() { + chmod a+r /var/state/network +} + Sorry, this is a no-go. You can't just change the permissions of files related to another package, the core-system or kernel exposed files from a package-Makefile for obvious reasons. This needs to be solved some other way. === --- files/zabbix_extra_mac80211.init (révision 0) +++ files/zabbix_extra_mac80211.init (révision 0) @@ -0,0 +1,9 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008-2011 OpenWrt.org + +START=59 + +start() { + chmod -R a+r /sys/kernel/debug/ieee80211/*/statistics/ +} See above. Index: files/zabbix_extra_wifi.init === --- files/zabbix_extra_wifi.init (révision 0) +++ files/zabbix_extra_wifi.init (révision 0) @@ -0,0 +1,9 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008-2011 OpenWrt.org + +START=59 + +start() { + chmod a+r /var/state/wireless +} + See above. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [ar71xx] fixes whitespaces for dir-825-c1
From: Alexander Stadler sa.mailli...@univie.ac.at fix whitespaces for dir-825-c1 Signed-off-by: Alexander Stadler sa.mailli...@univie.ac.at --- diff -urN a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c 2013-01-30 17:59:44.0 +0100 +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-825-c1.c 2013-01-30 18:09:55.0 +0100 @@ -37,14 +37,13 @@ #define DIR825C1_GPIO_BTN_RESET17 #define DIR825C1_GPIO_BTN_WPS 16 +#define DIR825C1_KEYS_POLL_INTERVAL20 /* msecs */ +#define DIR825C1_KEYS_DEBOUNCE_INTERVAL(3 * DIR825C1_KEYS_POLL_INTERVAL) -#define DIR825C1_KEYS_POLL_INTERVAL20 /* msecs */ -#define DIR825C1_KEYS_DEBOUNCE_INTERVAL(3 * DIR825C1_KEYS_POLL_INTERVAL) - -#define DIR825C1_MAC0_OFFSET 0x4 -#define DIR825C1_MAC1_OFFSET 0x18 -#define DIR825C1_WMAC_CALDATA_OFFSET 0x1000 -#define DIR825C1_PCIE_CALDATA_OFFSET 0x5000 +#define DIR825C1_MAC0_OFFSET 0x4 +#define DIR825C1_MAC1_OFFSET 0x18 +#define DIR825C1_WMAC_CALDATA_OFFSET 0x1000 +#define DIR825C1_PCIE_CALDATA_OFFSET 0x5000 static struct gpio_led dir825c1_leds_gpio[] __initdata = { { diff -urN a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile --- a/target/linux/ar71xx/image/Makefile2013-01-30 17:59:44.0 +0100 +++ b/target/linux/ar71xx/image/Makefile2013-01-30 18:05:10.0 +0100 @@ -355,11 +355,11 @@ endef define Image/Build/Cameo934x -$(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo934x_mtdlayout),1310720,15007744,$(4)) + $(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo934x_mtdlayout),1310720,15007744,$(4)) endef define Image/Build/Cameo934x/initramfs -$(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo934x_mtdlayout)) + $(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo934x_mtdlayout)) endef define Image/Build/Ath diff -urN a/target/linux/ar71xx/patches-3.7/612-MIPS-ath79-add-DIR-825-C1-support.patch b/target/linux/ar71xx/patches-3.7/612-MIPS-ath79-add-DIR-825-C1-support.patch --- a/target/linux/ar71xx/patches-3.7/612-MIPS-ath79-add-DIR-825-C1-support.patch 2013-01-30 17:59:44.0 +0100 +++ b/target/linux/ar71xx/patches-3.7/612-MIPS-ath79-add-DIR-825-C1-support.patch 2013-01-30 18:07:52.0 +0100 @@ -15,15 +15,15 @@ select ATH79_DEV_USB +config ATH79_MACH_DIR_825_C1 -+bool D-Link DIR-825 rev. C1 board support -+select SOC_AR934X -+select ATH79_DEV_AP9X_PCI if PCI -+select ATH79_DEV_ETH -+select ATH79_DEV_GPIO_BUTTONS -+select ATH79_DEV_LEDS_GPIO -+select ATH79_DEV_M25P80 -+select ATH79_DEV_USB -+select ATH79_DEV_WMAC ++ bool D-Link DIR-825 rev. C1 board support ++ select SOC_AR934X ++ select ATH79_DEV_AP9X_PCI if PCI ++ select ATH79_DEV_ETH ++ select ATH79_DEV_GPIO_BUTTONS ++ select ATH79_DEV_LEDS_GPIO ++ select ATH79_DEV_M25P80 ++ select ATH79_DEV_USB ++ select ATH79_DEV_WMAC + config ATH79_MACH_EW_DORIN bool embedded wireless Dorin Platform support ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] Add support for PMC PM25LQ032 SPI Flash in m25p80.c
Add support for PMC PM25LQ032 (4MB) SPI Flash used in Hame MPR-A1 and clones. Signed-off-by: Michel Stempin michel.stem...@wanadoo.fr --- Index: target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch === --- target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch (revision 0) +++ target/linux/generic/patches-3.8/474-mtd_mp25p80_add_pm25lq032.patch (working copy) @@ -0,0 +1,10 @@ +--- a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c +@@ -682,6 +682,7 @@ + /* PMC -- pm25x blocks are 32K, sectors are 4K */ + { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) }, + { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) }, ++ { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) }, + + /* Spansion -- single (large) sector size only, at least +* for the chips listed here (without boot sectors). Index: target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch === --- target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch (revision 0) +++ target/linux/generic/patches-3.6/474-mtd_mp25p80_add_pm25lq032.patch (working copy) @@ -0,0 +1,10 @@ +--- a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c +@@ -682,6 +682,7 @@ + /* PMC -- pm25x blocks are 32K, sectors are 4K */ + { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) }, + { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) }, ++ { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) }, + + /* Spansion -- single (large) sector size only, at least +* for the chips listed here (without boot sectors). Index: target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch === --- target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch (revision 0) +++ target/linux/generic/patches-3.7/474-mtd_mp25p80_add_pm25lq032.patch (working copy) @@ -0,0 +1,10 @@ +--- a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c +@@ -682,6 +682,7 @@ + /* PMC -- pm25x blocks are 32K, sectors are 4K */ + { pm25lv512, INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) }, + { pm25lv010, INFO(0, 0, 32 * 1024, 4, SECT_4K_PMC) }, ++ { pm25lq032, INFO(0x7F9D46, 0, 64 * 1024, 64, SECT_4K) }, + + /* Spansion -- single (large) sector size only, at least +* for the chips listed here (without boot sectors). ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] source code for the device dsl-2730u
This is the source code for the device dsl-2730u http://pmdap.dlink.com.tw/PMD/GetAgileFile?itemNumber=GPL132fileName=DSL-2730U_C1_GPL_20130111.7zfileSize=2.14715066E8; kernel Ver for the source is : 2.6.30 Model : DSL-2730U H/W : C1 F/W: ME_1.00 CPU: 963281TAVNG Flash size: 8 mb Ram size : 32 mb ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [brcm63xx] Re: source code for the device dsl-2730u
On Thu, 2013-01-31 at 04:12 +, NUCLEAR WAR wrote: This is the source code for the device dsl-2730u http://pmdap.dlink.com.tw/PMD/GetAgileFile?itemNumber=GPL132fileName=DSL-2730U_C1_GPL_20130111.7zfileSize=2.14715066E8; kernel Ver for the source is : 2.6.30 Model : DSL-2730U H/W : C1 F/W: ME_1.00 CPU: 963281TAVNG Flash size: 8 mb Ram size : 32 mb I don't know whether this will be of much use. Florian, any hope of reusing the binary ADSL modules in 3.x? They're there as unversioned .o, to be linked into .ko out-of-tree. In any case, maybe more DT data can be gleaned from this tarball. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [brcm63xx] Re: source code / disassembler / decompiler
* Daniel Gimpelevich dan...@gimpelevich.san-francisco.ca.us [31.01.2013 08:48]: I don't know whether this will be of much use. Florian, any hope of reusing the binary ADSL modules in 3.x? They're there as unversioned .o, back in the old days we just used disassemblers, now we even have tools which make c-code out of an .o - has anyone tried such tools to open the source? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel