Re: [OpenWrt-Devel] [PATCH] iproute2 make dependencies broken (parallel builds broken)

2010-09-12 Thread Michael Büsch
On Sat, 2010-09-11 at 18:19 -0600, Joseph Roback wrote: 
 iproute2 tc/Makefile does not define proper dependencies for the Bison/Flex 
 files used. 
 Therefore parallel builds are broken.

I will apply the dependency fix and leave the removal of the generated
flex code out, because...

 It also contains a 3 year old patch for broken flex implementation.
 Is this still broken? Removing this patch worked for me on Ubuntu 10.04 and 
 Darwin 10.6.4.

Well, lex/yacc from the host is used. So you can never be sure whether
there is a broken version or not. 

Thanks a lot for your patch.

-- 
Greetings Michael.

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


[OpenWrt-Devel] [PATCH] Ralink RT305x, support for Prolink PWH2004 (Abocom5205)

2010-09-12 Thread Esa Hyytiä

The attached patch adds a preliminary support for Prolink PWH2004 board
(Ralink RT305x based). LAN and flash appear to work. However, the USB
port and WLAN I have not managed to activate properly yet, but that
problem appears to be present with other rt305x targets as well(?).

Please include.

Signed-off-by: Esa Hyytia esa at netlab.tkk.fi

Esa


Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (revision 23027)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig   (working copy)
@@ -32,6 +32,10 @@
select RALINK_DEV_GPIO_BUTTONS
select RALINK_DEV_GPIO_LEDS

+config RT305X_MACH_PWH2004
+   bool Prolink PWH2004 / Abocom WR5205 support (32M RAM, 8M flash)
+   default y
+
 endmenu

 endif
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/mach-pwh2004.c
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-pwh2004.c
(revision 0)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/mach-pwh2004.c
(revision 0)
@@ -0,0 +1,103 @@
+/*
+ *  Prolink PWH2004 support (or Abocom WR5205)
+ *
+ *  Copyright (C) 2010 Esa Hyytia e...@netlab.tkk.fi
+ *
+ *  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/init.h
+#include linux/platform_device.h
+#include linux/mtd/mtd.h
+#include linux/mtd/partitions.h
+#include linux/mtd/physmap.h
+
+#include asm/mach-ralink/machine.h
+#include asm/mach-ralink/dev-gpio-buttons.h
+#include asm/mach-ralink/dev-gpio-leds.h
+#include asm/mach-ralink/rt305x.h
+#include asm/mach-ralink/rt305x_regs.h
+
+#include devices.h
+
+#define PWH2004_GPIO_BUTTON_WPS12
+#define PWH2004_GPIO_LED_POWER 9
+#define PWH2004_GPIO_LED_WIFI  14
+#define PWH2004_BUTTONS_POLL_INTERVAL  20
+
+#ifdef CONFIG_MTD_PARTITIONS
+static struct mtd_partition pwh2004_partitions[] = {
+   {
+   .name   = u-boot,
+   .offset = 0,
+   .size   = 0x03,
+   .mask_flags = MTD_WRITEABLE,
+   }, {
+.name  = config,
+   .offset = 0x03,
+   .size   = 0x01,
+   .mask_flags = MTD_WRITEABLE,
+   }, {
+   .name   = factory,
+   .offset = 0x04,
+   .size   = 0x01,
+   .mask_flags = MTD_WRITEABLE,
+   }, {
+   .name   = kernel,
+   .offset = 0x05,
+   .size   = 0x7b,
+   }, {
+   .name   = openwrt,
+   .offset = 0x05,
+   .size   = 0x7b,
+   }
+};
+#endif /* CONFIG_MTD_PARTITIONS */
+
+static struct physmap_flash_data pwh2004_flash_data = {
+#ifdef CONFIG_MTD_PARTITIONS
+   .nr_parts   = ARRAY_SIZE(pwh2004_partitions),
+   .parts  = pwh2004_partitions,
+#endif
+};
+
+static struct gpio_led pwh2004_leds_gpio[] __initdata = {
+   {
+   .name   = pwh2004:red:wifi,
+   .gpio   = PWH2004_GPIO_LED_WIFI,
+   .active_low = 1,
+   }, {
+   .name   = pwh2004:green:power,
+   .gpio   = PWH2004_GPIO_LED_POWER,
+   .active_low = 1,
+   }
+};
+
+static struct gpio_button pwh2004_gpio_buttons[] __initdata = {
+   {
+   .desc   = wps,
+   .type   = EV_KEY,
+   .code   = KEY_RESTART,
+   .threshold  = 3,
+   .gpio   = PWH2004_GPIO_BUTTON_WPS,
+   .active_low = 1,
+   }
+};
+
+static void __init pwh2004_init(void)
+{
+   rt305x_gpio_init(RT305X_GPIO_MODE_GPIO  RT305X_GPIO_MODE_UART0_SHIFT);
+   rt305x_register_flash(0, pwh2004_flash_data);
+   ramips_register_gpio_leds(-1, ARRAY_SIZE(pwh2004_leds_gpio),
+ pwh2004_leds_gpio);
+   ramips_register_gpio_buttons(-1, PWH2004_BUTTONS_POLL_INTERVAL,
+ARRAY_SIZE(pwh2004_gpio_buttons),
+pwh2004_gpio_buttons);
+   rt305x_register_ethernet();
+   rt305x_register_wifi();
+}
+
+MIPS_MACHINE(RAMIPS_MACH_PWH2004, PWH2004, Prolink PWH2004,
+pwh2004_init);
Index: target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile
===
--- target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile  (revision 23027)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile  (working copy)
@@ -16,3 +16,4 @@
 obj-$(CONFIG_RT305X_MACH_WCR150GN) += mach-wcr150gn.o
 obj-$(CONFIG_RT305X_MACH_WHR_G300N)+= mach-whr-g300n.o
 

Re: [OpenWrt-Devel] [PATCH] Ralink RT305x, support for Prolink PWH2004 (Abocom5205)

2010-09-12 Thread Helmut Schaa
Hi,

Am Sonntag 12 September 2010 schrieb Esa Hyytiä:
 The attached patch adds a preliminary support for Prolink PWH2004 board
 (Ralink RT305x based). LAN and flash appear to work. However, the USB
 port and WLAN I have not managed to activate properly yet, but that
 problem appears to be present with other rt305x targets as well(?).

USB does not work on other boards. But WLAN should be supported using
rt2800pci (in the default config you'll only get 11g but when using
minstrel_ht you should also get some 11n stuff working).

If it doesn't work for you the calibration data in the flash might be at
another location.

What does dmesg give you after loading rt2800pci?

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


Re: [OpenWrt-Devel] [PATCH] Ralink RT305x, support for Prolink PWH2004 (Abocom5205)

2010-09-12 Thread Esa Hyytiä
On Sun, 12 Sep 2010, Helmut Schaa wrote:

 Hi,

 Am Sonntag 12 September 2010 schrieb Esa Hyytiä:
  The attached patch adds a preliminary support for Prolink PWH2004 board
  (Ralink RT305x based). LAN and flash appear to work. However, the USB
  port and WLAN I have not managed to activate properly yet, but that
  problem appears to be present with other rt305x targets as well(?).

 USB does not work on other boards. But WLAN should be supported using
 rt2800pci (in the default config you'll only get 11g but when using
 minstrel_ht you should also get some 11n stuff working).

 If it doesn't work for you the calibration data in the flash might be at
 another location.

 What does dmesg give you after loading rt2800pci?

You are correct, rt2800pci indeed seems to work.

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


[OpenWrt-Devel] FYI: Paper: Normalized sourcecode repositories

2010-09-12 Thread Enrico Weigelt

Hi folks,


jfyi: here's a little paper on how to the oss-qm project handles
normalized sourcecode repositories and automatic imports (from
upstream as well as certain distros), in order to allow easy
sharing of changesets between distros/projects as well as allowing
automatic systems (eg. distro build systems) auto directly operate
on w/ minimal per-package adaptions.

http://www.metux.de/download/oss-qm/normalized_repository.pdf

Feel free to comment on it :)


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] RFC: Rules for distro-friendly packages

2010-09-12 Thread Enrico Weigelt

Hi folks,


i've collected several rules which upstreams should follow for
making distro maintainer's life much easier.

Comments welcomed :)

http://www.metux.de/index.php/de/component/content/article/57.html


cu
-- 
--
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weig...@metux.de
 mobile: +49 151 27565287  icq:   210169427 skype: nekrad666
--
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
--
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel