Re: [OpenWrt-Devel] Introduce new router board

2009-05-06 Thread Dirk Nehring
On Tue, May 05, 2009 at 09:27:26PM +0300, Linkodas wrote:
 Hi list/community,

 we would like to introduce new router supporting OpenWRT.
 It is only in development stage and we are looking for community opinion
 regarding its features and possibilities. There still currently a chance
 to change something and take into community response.
 This board is referenced to low-cost and low-power solutions.
 Any comments and opinions are very welcome!

 Below are preliminary specifications:

 PCB form factor: Pico-ITX (10cm x 7.2cm, fanless)

 Onboard CPU: Cortina Systems CS3516 (300Mhz ARM9 Core)
 Onboard DDR SDRAM: 128Mb 333Mhz 32bit
 Onboard NAND FLASH: 128Mb (or more)
 Onboard LAN: 2x 10/100Mbps Ethernet
 Onboard SATA: 2x SATA

 Onboard connectors: 2x SATA, 2x mini-PCI slots, 1x mini-PCI Express
 (with USB 2.0 interface), 1x UART, 1x Pico-ITX power, 1x JTAG, GPIO ports

 Back panel connectors: 2x RJ-45 LAN, 2x USB 2.0, 3x antenna (GSM, 3G,
 Wifi, Wimax, other), 1x RS232

 Management: Watch Dog Timer, Brown-out Reset, RTC with battery

 Operating system: OpenWRT with newest 2.6 Linux Kernel.
 Bootloader: U-boot

Sounds great.

My wishlist:

* SIM card slot for mini-PCI express would be great!
* Gigabit ethernet instead of FE.
* SDHC-slot or CF-Slot

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


Re: [OpenWrt-Devel] [Patch] ath5k support

2008-08-27 Thread Dirk Nehring
Any core developer here who find a minute to deploy it?

Dirk

On Thu, Aug 21, 2008 at 01:11:06PM +0200, Dirk Nehring wrote:
 Hi,

 this patch enables the new ath5k driver. Works for me with X86 Alix
 board an AR2413 minipci card. iw and iwconfig works.

 Please apply if you feel lucky.

 Dirk

 Index: package/mac80211/patches/001-disable_drivers.patch
 ===
 --- package/mac80211/patches/001-disable_drivers.patch(revision 12360)
 +++ package/mac80211/patches/001-disable_drivers.patch(working copy)
 @@ -1,13 +1,10 @@
 -diff -urN compat-wireless-2008-05-26/config.mk 
 compat-wireless-2008-05-26.new/config.mk
  compat-wireless-2008-05-26/config.mk 2008-05-20 09:37:02.0 
 +0200
 -+++ compat-wireless-2008-05-26.new/config.mk 2008-07-14 10:52:01.0 
 +0200
 -@@ -28,73 +28,6 @@
 - # PCI Drivers
 - ifneq ($(CONFIG_PCI),)
 +diff -urN compat-wireless-2008-08-06/config.mk 
 compat-wireless-2008-08-06.new/config.mk
 +--- compat-wireless-2008-08-06/config.mk 2008-07-18 06:11:03.0 
 +0200
  compat-wireless-2008-08-06.new/config.mk 2008-08-20 17:30:13.0 
 +0200
 +@@ -72,70 +72,6 @@
 + CONFIG_ATH5K=m
 + CONFIG_ATH5K_DEBUG=n

 --CONFIG_ATH5K=m
 --CONFIG_ATH5K_DEBUG=n
 --
  -# Required for older kernels which still use this flag.
  -CONFIG_IWLWIFI=m
  -
 @@ -75,7 +72,7 @@
   CONFIG_RT2X00_LIB_PCI=m
   CONFIG_RT2400PCI=m
   CONFIG_RT2500PCI=m
 -@@ -118,32 +51,6 @@
 +@@ -159,32 +95,6 @@
   ifneq ($(CONFIG_USB),)
   CONFIG_ZD1211RW=m

 @@ -108,7 +105,7 @@
   # RT2500USB does not require firmware
   CONFIG_RT2500USB=m
   CONFIG_RT2X00_LIB_USB=m
 -@@ -168,39 +75,6 @@
 +@@ -209,39 +119,6 @@
   CONFIG_RT2X00_LIB_FIRMWARE=y
   endif

 Index: package/mac80211/Makefile
 ===
 --- package/mac80211/Makefile (revision 12360)
 +++ package/mac80211/Makefile (working copy)
 @@ -1,4 +1,4 @@
 -#
 +#
  # Copyright (C) 2007-2008 OpenWrt.org
  #
  # This is free software, licensed under the GNU General Public License v2.
 @@ -129,6 +129,14 @@
AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
  endef

 +define KernelPackage/ath5k
 +  SUBMENU:=Wireless Drivers
 +  TITLE:=Atheros 5xxx wireless cards support
 +  DEPENDS+= @PCI_SUPPORT +kmod-mac80211
 +  
 FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath5k/ath5k.$(LINUX_KMOD_SUFFIX)
 +  AUTOLOAD:=$(call AutoLoad,27,ath5k)
 +endef
 +
  BUILDFLAGS:= \
   $(foreach opt,$(CONFOPTS),-DCONFIG_$(opt)) \
   $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS 
 -DCONFIG_LEDS_TRIGGERS) \
 @@ -187,6 +195,7 @@
   $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt73.bin $(1)/lib/firmware/
  endef

 +$(eval $(call KernelPackage,ath5k))
  $(eval $(call KernelPackage,net-zd1211rw))
  $(eval $(call KernelPackage,mac80211))
  $(eval $(call KernelPackage,rt2x00-lib))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch] Support for newer Sierra UMTS cards

2008-08-21 Thread Dirk Nehring
Hi,

these cards are already included in 2.6.27, but needed in older kernel
(2.6.25, 2.6.26). Easy patch, please apply.

Dirk
Index: target/linux/generic-2.6/patches-2.6.25/012-sierra-wireless.patch
===
--- target/linux/generic-2.6/patches-2.6.25/012-sierra-wireless.patch   
(revision 0)
+++ target/linux/generic-2.6/patches-2.6.25/012-sierra-wireless.patch   
(revision 0)
@@ -0,0 +1,23 @@
+diff -ur linux-2.6.25.12.orig/drivers/usb/serial/sierra.c 
linux-2.6.25.12/drivers/usb/serial/sierra.c
+--- linux-2.6.25.12.orig/drivers/usb/serial/sierra.c   2008-07-24 
18:14:20.0 +0200
 linux-2.6.25.12/drivers/usb/serial/sierra.c2008-08-01 
14:26:52.0 +0200
+@@ -166,14 +166,19 @@
+   { USB_DEVICE(0x1199, 0x6815) }, /* Sierra Wireless MC8775 */
+   { USB_DEVICE(0x03f0, 0x1e1d) }, /* HP hs2300 a.k.a MC8775 */
+   { USB_DEVICE(0x1199, 0x6820) }, /* Sierra Wireless AirCard 875 */
++  { USB_DEVICE(0x1199, 0x6821) }, /* Sierra Wireless AirCard 875U */
+   { USB_DEVICE(0x1199, 0x6832) }, /* Sierra Wireless MC8780*/
+   { USB_DEVICE(0x1199, 0x6833) }, /* Sierra Wireless MC8781*/
++  { USB_DEVICE(0x1199, 0x683B), .driver_info = DEVICE_1_PORT }, /* Sierra 
Wireless MC8785 Composite*/
++  { USB_DEVICE(0x1199, 0x683C), .driver_info = DEVICE_1_PORT }, /* Sierra 
Wireless MC8790 Composite*/
+   { USB_DEVICE(0x1199, 0x6850) }, /* Sierra Wireless AirCard 880 */
+   { USB_DEVICE(0x1199, 0x6851) }, /* Sierra Wireless AirCard 881 */
+   { USB_DEVICE(0x1199, 0x6852) }, /* Sierra Wireless AirCard 880 E */
+   { USB_DEVICE(0x1199, 0x6853) }, /* Sierra Wireless AirCard 881 E */
+   { USB_DEVICE(0x1199, 0x6855) }, /* Sierra Wireless AirCard 880 U */
+   { USB_DEVICE(0x1199, 0x6856) }, /* Sierra Wireless AirCard 881 U */
++  { USB_DEVICE(0x1199, 0x6859), .driver_info = DEVICE_1_PORT }, /* Sierra 
Wireless AirCard 885 E */
++  { USB_DEVICE(0x1199, 0x685A), .driver_info = DEVICE_1_PORT }, /* Sierra 
Wireless AirCard 885 E */
+ 
+   { USB_DEVICE(0x1199, 0x6468) }, /* Sierra Wireless MP3G - EVDO */
+   { USB_DEVICE(0x1199, 0x6469) }, /* Sierra Wireless MP3G - UMTS/HSPA */
Index: target/linux/generic-2.6/patches-2.6.26/012-sierra-wireless.patch
===
--- target/linux/generic-2.6/patches-2.6.26/012-sierra-wireless.patch   
(revision 0)
+++ target/linux/generic-2.6/patches-2.6.26/012-sierra-wireless.patch   
(revision 0)
@@ -0,0 +1,12 @@
+diff -ur linux-2.6.26.1.orig/drivers/usb/serial/sierra.c 
linux-2.6.26.1/drivers/usb/serial/sierra.c
+--- linux-2.6.26.1.orig/drivers/usb/serial/sierra.c2008-08-02 
00:58:24.0 +0200
 linux-2.6.26.1/drivers/usb/serial/sierra.c 2008-08-04 01:39:11.0 
+0200
+@@ -205,6 +205,7 @@
+   { USB_DEVICE(0x1199, 0x6832) }, /* Sierra Wireless MC8780*/
+   { USB_DEVICE(0x1199, 0x6833) }, /* Sierra Wireless MC8781*/
+   { USB_DEVICE(0x1199, 0x683B), .driver_info = DEVICE_1_PORT },   /* 
Sierra Wireless MC8785 Composite*/
++  { USB_DEVICE(0x1199, 0x683C), .driver_info = DEVICE_1_PORT },   /* 
Sierra Wireless MC8790 Composite*/
+   { USB_DEVICE(0x1199, 0x6850) }, /* Sierra Wireless AirCard 880 */
+   { USB_DEVICE(0x1199, 0x6851) }, /* Sierra Wireless AirCard 881 */
+   { USB_DEVICE(0x1199, 0x6852) }, /* Sierra Wireless AirCard 880 E */
+Only in linux-2.6.26.1/drivers/usb/serial: sierra.c.orig
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch] ath5k support

2008-08-21 Thread Dirk Nehring
Hi,

this patch enables the new ath5k driver. Works for me with X86 Alix
board an AR2413 minipci card. iw and iwconfig works.

Please apply if you feel lucky.

Dirk
Index: package/mac80211/patches/001-disable_drivers.patch
===
--- package/mac80211/patches/001-disable_drivers.patch  (revision 12360)
+++ package/mac80211/patches/001-disable_drivers.patch  (working copy)
@@ -1,13 +1,10 @@
-diff -urN compat-wireless-2008-05-26/config.mk 
compat-wireless-2008-05-26.new/config.mk
 compat-wireless-2008-05-26/config.mk   2008-05-20 09:37:02.0 
+0200
-+++ compat-wireless-2008-05-26.new/config.mk   2008-07-14 10:52:01.0 
+0200
-@@ -28,73 +28,6 @@
- # PCI Drivers
- ifneq ($(CONFIG_PCI),)
+diff -urN compat-wireless-2008-08-06/config.mk 
compat-wireless-2008-08-06.new/config.mk
+--- compat-wireless-2008-08-06/config.mk   2008-07-18 06:11:03.0 
+0200
 compat-wireless-2008-08-06.new/config.mk   2008-08-20 17:30:13.0 
+0200
+@@ -72,70 +72,6 @@
+ CONFIG_ATH5K=m
+ CONFIG_ATH5K_DEBUG=n
  
--CONFIG_ATH5K=m
--CONFIG_ATH5K_DEBUG=n
--
 -# Required for older kernels which still use this flag.
 -CONFIG_IWLWIFI=m
 -
@@ -75,7 +72,7 @@
  CONFIG_RT2X00_LIB_PCI=m
  CONFIG_RT2400PCI=m
  CONFIG_RT2500PCI=m
-@@ -118,32 +51,6 @@
+@@ -159,32 +95,6 @@
  ifneq ($(CONFIG_USB),)
  CONFIG_ZD1211RW=m
  
@@ -108,7 +105,7 @@
  # RT2500USB does not require firmware
  CONFIG_RT2500USB=m
  CONFIG_RT2X00_LIB_USB=m
-@@ -168,39 +75,6 @@
+@@ -209,39 +119,6 @@
  CONFIG_RT2X00_LIB_FIRMWARE=y
  endif
  
Index: package/mac80211/Makefile
===
--- package/mac80211/Makefile   (revision 12360)
+++ package/mac80211/Makefile   (working copy)
@@ -1,4 +1,4 @@
-# 
+#
 # Copyright (C) 2007-2008 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -129,6 +129,14 @@
   AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
 endef
 
+define KernelPackage/ath5k
+  SUBMENU:=Wireless Drivers
+  TITLE:=Atheros 5xxx wireless cards support
+  DEPENDS+= @PCI_SUPPORT +kmod-mac80211
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath5k/ath5k.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,27,ath5k)
+endef
+
 BUILDFLAGS:= \
$(foreach opt,$(CONFOPTS),-DCONFIG_$(opt)) \
$(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS 
-DCONFIG_LEDS_TRIGGERS) \
@@ -187,6 +195,7 @@
$(INSTALL_DATA) $(PKG_BUILD_DIR)/rt73.bin $(1)/lib/firmware/
 endef
 
+$(eval $(call KernelPackage,ath5k))
 $(eval $(call KernelPackage,net-zd1211rw))
 $(eval $(call KernelPackage,mac80211))
 $(eval $(call KernelPackage,rt2x00-lib))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Patch] SLUB allocator

2008-08-05 Thread Dirk Nehring
Hi,

the SLUB allocator is included in the official kernel since 2.6.22,
smaller footprint, better performance and the standard allocator in
make defconfig. We should safely switch to this one.

Dirk

Index: target/linux/generic-2.6/config-2.6.26
===
--- target/linux/generic-2.6/config-2.6.26  (revision 12133)
+++ target/linux/generic-2.6/config-2.6.26  (working copy)
@@ -1371,11 +1371,11 @@
 # CONFIG_SK98LIN is not set
 # CONFIG_SKGE is not set
 # CONFIG_SKY2 is not set
-CONFIG_SLAB=y
+# CONFIG_SLAB is not set
 CONFIG_SLHC=m
 # CONFIG_SLIP is not set
 # CONFIG_SLOB is not set
-# CONFIG_SLUB is not set
+CONFIG_SLUB=y
 # CONFIG_SMB_FS is not set
 # CONFIG_SMB_NLS_DEFAULT is not set
 CONFIG_SND=m
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] brcm47xx 2.6 still does not compile

2008-05-20 Thread Dirk Nehring
On Tue, May 20, 2008 at 09:23:41AM +0100, Peter Denison wrote:
 On Mon, 19 May 2008, Steve Brown wrote:

  Dirk Nehring wrote:
  [...]
  make[5]: Leaving directory 
  `/home/technik/dnehring/openwrt/build_dir/linux-brcm47xx/linux-2.6.25.1'
  make[5]: Entering directory 
  `/home/technik/dnehring/openwrt/build_dir/linux-brcm47xx/linux-2.6.25.1'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALLscripts/checksyscalls.sh
CHK include/linux/compile.h
CC  drivers/ssb/driver_pcicore.o
  drivers/ssb/driver_pcicore.c: In function 'ssb_pcicore_fixup_pcibridge':
  drivers/ssb/driver_pcicore.c:314: error: implicit declaration of function 
  'pcibios_enable_device'
  make[7]: *** [drivers/ssb/driver_pcicore.o] Error 1
  make[6]: *** [drivers/ssb] Error 2
  make[5]: *** [drivers] Error 2
  make[5]: Leaving directory 
  `/home/technik/dnehring/openwrt/build_dir/linux-brcm47xx/linux-2.6.25.1'
  make[4]: *** 
  [/home/technik/dnehring/openwrt/build_dir/linux-brcm47xx/linux-2.6.25.1/.image]
   Error 2
  make[4]: Leaving directory 
  `/home/technik/dnehring/openwrt/target/linux/brcm47xx'
 
  And, iproute2 must be updated (works with iproute2-2.6.25.tar.bz2).

 Yes. I have a patch waiting to go in, but I'm waiting for confirmation (or
 time to test it) that it works under older kernels as well.

Me too, I just drop most of the included patches (I don't understand why
people are heavily patching stuff like new options for the htb queuing
class. This does not belong into the mainstream trunk, imho).

iproute2$ svn st
D  patches/003-iproute2-htb_overhead.patch
D  patches/004-darwin_fixes.patch
D  patches/000-debian_patches_3.patch
D  patches/005-flex-generated.patch
D  patches/006-iproute2-tc_esfq.patch
D  patches/002-iproute2-ipxfrm_no_sctp.patch
M  Makefile

Index: Makefile
===
--- Makefile(revision 11218)
+++ Makefile(working copy)
@@ -1,4 +1,4 @@
-#
+#
 # Copyright (C) 2006 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License
 v2.
@@ -9,14 +9,14 @@
 include $(TOPDIR)/rules.mk

 PKG_NAME:=iproute2
-PKG_VERSION:=2.6.20-070313
+PKG_VERSION:=2.6.25
 PKG_RELEASE:=1

-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://developer.osdl.org/dev/iproute2/download/
-PKG_MD5SUM:=7bc5883aadf740761fa2dd70b661e8cc
+PKG_MD5SUM:=5737bade2f5e03fad0e2c81da91e551e

-PKG_BUILD_DIR:=$(BUILD_DIR)/iproute-$(PKG_VERSION)
+PKG_BUILD_DIR:=$(BUILD_DIR)/iproute2-$(PKG_VERSION)

 include $(INCLUDE_DIR)/package.mk

@@ -49,7 +49,7 @@
$(SED) s,^LIBC_INCLUDE.*,LIBC_INCLUDE=$(STAGING_DIR)/include, \
$(PKG_BUILD_DIR)/Makefile
# For now disable compiling of the misc directory because it seems to 
fail
-   rm -rf $(PKG_BUILD_DIR)/misc
+   rm -rf $(PKG_BUILD_DIR)/misc
$(SED) s, misc,, $(PKG_BUILD_DIR)/Makefile
 endef


 
  I added the following to config-2.6.25.
 
  CONFIG_PCI=y
  CONFIG_SYS_HAS_EARLY_PRINTK=y
  CONFIG_EARLY_PRINTK=y
  # CONFIG_MEMSTICK is not set
  # CONFIG_SGI_IP28 is not set
  # CONFIG_THERMAL is not set
 
  The config_pci is to get the declaration for pcibios_enable_device to be
  included. A better solution would be to add the missing ifdef around
  that code.

 Not really. The platform has PCI, so that config setting should be set.
 Possibly there are some config dependencies that should go in so that you
 don't get a compilation failure.

  I was pretty surprised at having to add the commented lines. If they
  aren't there, you get questions from the 'make oldconfig' during the
  kernel build.

 Sorry. If I understood exactly where to set things to get the right
 resultant .config, it would work more often.

  The early printk stuff was to try to figure why it would boot on a
  Buffalo whr-hp-54g, but not an Asus wl520gu. I still don't know why.

 CONFIG_BCM47XX sets CONFIG_SYS_HAS_EARLY_PRINTK, so you shouldn't need to
 set that. I can't work out where CONFIG_EARLY_PRINTK is set in my config,
 maybe by hand? That should probably go in.

Why not just taking the resulting .config from the kernel dir? It
includes all relevant stuff and it is up-to-date every time.

Dirk
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel