Re: [OpenWrt-Devel] New port

2011-07-22 Thread Alessio Sangalli
ping! :)

bye
as


On 07/20/2011 12:32 PM, Alessio Sangalli wrote:

 I see, for some reason there is a patch backported from 2.6.38
 (77f431561ef97dda1d6e9a96da8d342046fbdba0), I am not sure why. I will
 see if I can remove as it is cosmetic only, but let me ask:
 
 as this patch is specific for this board/SoC (won't interfere with other
 boards), and it comes directly from the manufacturer - it is public code at:
 http://git.stlinux.com/?p=spear/linux-2.6.git;a=summary
 it has been *validated* by a test team and so on; why OpenWRT requires
 to remove modifications to generic stuff? It would be almost impossible
 to maintain for me, everytime they have an update. Of course I modified
 this patch slightly to be able to apply OpenWRT generic patches - is
 that not enough?
 
 Eventually, the SPEAr support will go in the mainline kernel, removing
 the necessity for this patch at all, but although there is some support
 in the newest vanilla kernels, it is not quite ready yet.
 
 bye
 as
 
 ___
 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


[OpenWrt-Devel] linux 3.0 is out - patch for generic and brcm47xx

2011-07-22 Thread Peter Wagner
Hi,

this patch updates generec and brcm47xx to linux 3.0.
runs on brcm47xx like a charm (for a few minutes by now ;) )

/Peter Wagner

Signed-off-by: Peter Wagner tripo...@gmx.at
diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index 66fb021..4fd3207 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -29,6 +29,9 @@ endif
 ifeq ($(LINUX_VERSION),2.6.39.2)
   LINUX_KERNEL_MD5SUM:=51be93d92028658ec93f68b79a378b17
 endif
+ifeq ($(LINUX_VERSION),3.0)
+  LINUX_KERNEL_MD5SUM:=398e95866794def22b12dfbc15ce89c0
+endif
 
 # disable the md5sum check for unknown kernel versions
 LINUX_KERNEL_MD5SUM?=x
diff --git a/target/linux/brcm47xx/patches-3.0/240-ssb_no_sprom_on_pci.patch b/target/linux/brcm47xx/patches-3.0/240-ssb_no_sprom_on_pci.patch
index 52c8fe9..a0aa636 100644
--- a/target/linux/brcm47xx/patches-3.0/240-ssb_no_sprom_on_pci.patch
+++ b/target/linux/brcm47xx/patches-3.0/240-ssb_no_sprom_on_pci.patch
@@ -1,6 +1,8 @@
+diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c
+index 11d85bf..836e2ee 100644
 --- a/drivers/ssb/driver_pcicore.c
 +++ b/drivers/ssb/driver_pcicore.c
-@@ -412,16 +412,6 @@ static int __devinit pcicore_is_in_hostm
+@@ -412,16 +412,6 @@ static int __devinit pcicore_is_in_hostmode(struct ssb_pcicore *pc)
   * Workarounds.
   **/
  
@@ -17,12 +19,12 @@
  static u8 ssb_pcicore_polarity_workaround(struct ssb_pcicore *pc)
  {
  	return (ssb_pcie_read(pc, 0x204)  0x10) ? 0xC0 : 0x80;
-@@ -529,8 +519,6 @@ void __devinit ssb_pcicore_init(struct s
- 	if (!ssb_device_is_enabled(dev))
- 		ssb_device_enable(dev, 0);
+@@ -516,8 +506,6 @@ static void ssb_pcicore_pcie_setup_workarounds(struct ssb_pcicore *pc)
  
+ static void __devinit ssb_pcicore_init_clientmode(struct ssb_pcicore *pc)
+ {
 -	ssb_pcicore_fix_sprom_core_index(pc);
 -
- #ifdef CONFIG_SSB_PCICORE_HOSTMODE
- 	pc-hostmode = pcicore_is_in_hostmode(pc);
- 	if (pc-hostmode)
+ 	/* Disable PCI interrupts. */
+ 	ssb_write32(pc-dev, SSB_INTVEC, 0);
+ 
diff --git a/target/linux/generic/patches-3.0/020-ssb_update.patch b/target/linux/generic/patches-3.0/020-ssb_update.patch
index a310d90..4d430f8 100644
--- a/target/linux/generic/patches-3.0/020-ssb_update.patch
+++ b/target/linux/generic/patches-3.0/020-ssb_update.patch
@@ -1,6 +1,8 @@
+diff --git a/drivers/ssb/driver_chipcommon_pmu.c b/drivers/ssb/driver_chipcommon_pmu.c
+index 305ade7..a7aef47 100644
 --- a/drivers/ssb/driver_chipcommon_pmu.c
 +++ b/drivers/ssb/driver_chipcommon_pmu.c
-@@ -417,9 +417,9 @@ static void ssb_pmu_resources_init(struc
+@@ -417,9 +417,9 @@ static void ssb_pmu_resources_init(struct ssb_chipcommon *cc)
  	u32 min_msk = 0, max_msk = 0;
  	unsigned int i;
  	const struct pmu_res_updown_tab_entry *updown_tab = NULL;
@@ -12,9 +14,11 @@
  
  	switch (bus-chip_id) {
  	case 0x4312:
+diff --git a/drivers/ssb/driver_gige.c b/drivers/ssb/driver_gige.c
+index 5ba92a2..d758909 100644
 --- a/drivers/ssb/driver_gige.c
 +++ b/drivers/ssb/driver_gige.c
-@@ -106,8 +106,9 @@ void gige_pcicfg_write32(struct ssb_gige
+@@ -106,8 +106,9 @@ void gige_pcicfg_write32(struct ssb_gige *dev,
  	gige_write32(dev, SSB_GIGE_PCICFG + offset, value);
  }
  
@@ -26,7 +30,7 @@
  {
  	struct ssb_gige *dev = container_of(bus-ops, struct ssb_gige, pci_ops);
  	unsigned long flags;
-@@ -136,8 +137,9 @@ static int ssb_gige_pci_read_config(stru
+@@ -136,8 +137,9 @@ static int ssb_gige_pci_read_config(struct pci_bus *bus, unsigned int devfn,
  	return PCIBIOS_SUCCESSFUL;
  }
  
@@ -38,7 +42,7 @@
  {
  	struct ssb_gige *dev = container_of(bus-ops, struct ssb_gige, pci_ops);
  	unsigned long flags;
-@@ -166,7 +168,8 @@ static int ssb_gige_pci_write_config(str
+@@ -166,7 +168,8 @@ static int ssb_gige_pci_write_config(struct pci_bus *bus, unsigned int devfn,
  	return PCIBIOS_SUCCESSFUL;
  }
  
@@ -48,9 +52,11 @@
  {
  	struct ssb_gige *dev;
  	u32 base, tmslow, tmshigh;
+diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c
+index d6620ad..11d85bf 100644
 --- a/drivers/ssb/driver_pcicore.c
 +++ b/drivers/ssb/driver_pcicore.c
-@@ -314,7 +314,7 @@ int ssb_pcicore_pcibios_map_irq(const st
+@@ -314,7 +314,7 @@ int ssb_pcicore_pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
  	return ssb_mips_irq(extpci_core-dev) + 2;
  }
  
@@ -59,7 +65,7 @@
  {
  	u32 val;
  
-@@ -379,7 +379,7 @@ static void ssb_pcicore_init_hostmode(st
+@@ -379,7 +379,7 @@ static void ssb_pcicore_init_hostmode(struct ssb_pcicore *pc)
  	register_pci_controller(ssb_pcicore_controller);
  }
  
@@ -68,7 +74,7 @@
  {
  	struct ssb_bus *bus = pc-dev-bus;
  	u16 chipid_top;
-@@ -412,7 +412,7 @@ static int pcicore_is_in_hostmode(struct
+@@ -412,7 +412,7 @@ static int pcicore_is_in_hostmode(struct ssb_pcicore *pc)
   * Workarounds.
   **/
  
@@ -77,15 +83,17 @@
  {
  	u16 tmp = pcicore_read16(pc, SSB_PCICORE_SPROM(0));
  	if (((tmp  0xF000)  12) != pc-dev-core_index) {
-@@ 

Re: [OpenWrt-Devel] whole_filesystem extroot not working with backfire-rc5-testing

2011-07-22 Thread Daniel Dickinson
On Mon, 27 Jun 2011 16:30:05 -0400
Brian J. Murrell br...@interlinx.bc.ca wrote:

 I've created a whole_filesystem style extroot with the following
 commands:
 
 # mkfs.ext3 /dev/sda1
 # mount /dev/sda1 /mnt
 # mkdir -p /tmp/cproot
 # mount --bind / /tmp/cproot
 # tar -C /tmp/cproot -cvf - . | tar -C /mnt -xf -
 # umount /tmp/cproot
 # umount /mnt
 
 I've installed kmod-usb-storage kmod-fs-ext3 block-mount block-extroot
 block-hotplug e2fsprogs and created an /etc/config/fstab:
 
 config global automount
   option from_fstab 1
   option anon_mount 1
   
 config global autoswap
   option from_fstab 1
   option anon_swap 0
   
 config mount
   option target   /mnt
   option device   /dev/sda1
   option fstype   ext3
   option options  rw,sync
   option enabled  1
   option enabled_fsck 1
   option is_rootfs 1
 
 and yet the extroot is not being mounted at /, but rather /mnt (this
 was the syntax prior to my upgrading to RC5).  If I change the target
 to /, the mount table says it is mounted, but when I use df I see
 the same usage values as the
 /dev/root 2.1M  2.1M 0 100% /rom
 mini_fo:/overlay  2.1M  2.1M 0 100% /
 
 pair and files in / are from prior to the mount, not what is
 on /dev/sda1
 
 Is this known to be broken or working in RC5?
 
 Cheers,
 b.
 

Sorry I got busy after I made the changes to trunk and forgot to
backport them to backfire.  The whole filesystem style extroot is a
feature available in backfire at this time.

I'm hesitant to backport for 10.03.1 now, unless there will be an rc6,
because it could break things to backport those changes, and I'd like
more testing than people svn'ing the backire tree between now and the
final release.

-- 
erno hm. I've lost a machine.. literally _lost_. it responds to ping, 
it works completely, I just can't figure out where in my apartment it
is. GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C  http://gnupg.org



signature.asc
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] MMnet1000 u-boot support

2011-07-22 Thread Przemek Rudy
Add bootloader for at91 Propox (http://www.propox.com) MMnet1000 board.

Signed-off-by: Przemyslaw Rudy pru...@o2.pl

---

Index: target/linux/at91/image/u-boot/patches/300-MMnet1000.patch
===
--- target/linux/at91/image/u-boot/patches/300-MMnet1000.patch  (revision 0)
+++ target/linux/at91/image/u-boot/patches/300-MMnet1000.patch  (revision 0)
@@ -0,0 +1,512 @@
+diff -rupN a/board/propox/MMnet1000/config.mk 
b/board/propox/MMnet1000/config.mk
+--- a/board/propox/MMnet1000/config.mk 1970-01-01 01:00:00.0 +0100
 b/board/propox/MMnet1000/config.mk 2010-06-29 23:28:28.0 +0200
+@@ -0,0 +1 @@
++TEXT_BASE = 0x23f0
+diff -rupN a/board/propox/MMnet1000/led.c b/board/propox/MMnet1000/led.c
+--- a/board/propox/MMnet1000/led.c 1970-01-01 01:00:00.0 +0100
 b/board/propox/MMnet1000/led.c 2011-07-19 21:11:38.0 +0200
+@@ -0,0 +1,41 @@
++/*
++ * (C) Copyright 2007-2008
++ * Stelian Pop stelian@leadtechdesign.com
++ * Lead Tech Design www.leadtechdesign.com
++ *
++ * See file CREDITS for list of people who contributed to this
++ * project.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License as
++ * published by the Free Software Foundation; either version 2 of
++ * the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
++ * MA 02111-1307 USA
++ *
++ * Based on led.c from at91sam9260ek
++ */
++
++#include common.h
++#include asm/arch/at91sam9260.h
++#include asm/arch/at91_pmc.h
++#include asm/arch/gpio.h
++#include asm/arch/io.h
++
++void coloured_LED_init(void)
++{
++  /* Enable clock */
++  at91_sys_write(AT91_PMC_PCER, 1  AT91SAM9260_ID_PIOA);
++
++  at91_set_gpio_output(CONFIG_GREEN_LED, 1);
++
++  at91_set_gpio_value(CONFIG_GREEN_LED, 0);
++}
+diff -rupN a/board/propox/MMnet1000/Makefile b/board/propox/MMnet1000/Makefile
+--- a/board/propox/MMnet1000/Makefile  1970-01-01 01:00:00.0 +0100
 b/board/propox/MMnet1000/Makefile  2011-07-19 21:10:51.0 +0200
+@@ -0,0 +1,57 @@
++#
++# (C) Copyright 2003-2008
++# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
++#
++# (C) Copyright 2008
++# Stelian Pop stelian@leadtechdesign.com
++# Lead Tech Design www.leadtechdesign.com
++#
++# See file CREDITS for list of people who contributed to this
++# project.
++#
++# This program is free software; you can redistribute it and/or
++# modify it under the terms of the GNU General Public License as
++# published by the Free Software Foundation; either version 2 of
++# the License, or (at your option) any later version.
++#
++# This program is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with this program; if not, write to the Free Software
++# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
++# MA 02111-1307 USA
++#
++# Based on Makefile from at91sam9260ek
++#
++
++include $(TOPDIR)/config.mk
++
++LIB   = $(obj)lib$(BOARD).a
++
++COBJS-y   += MMnet1000.o
++COBJS-y   += led.o
++
++SRCS  := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
++OBJS  := $(addprefix $(obj),$(COBJS-y))
++SOBJS := $(addprefix $(obj),$(SOBJS))
++
++$(LIB):   $(obj).depend $(OBJS) $(SOBJS)
++  $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
++
++clean:
++  rm -f $(SOBJS) $(OBJS)
++
++distclean:clean
++  rm -f $(LIB) core *.bak $(obj).depend
++
++#
++
++# defines $(obj).depend target
++include $(SRCTREE)/rules.mk
++
++sinclude $(obj).depend
++
++#
+diff -rupN a/board/propox/MMnet1000/MMnet1000.c 
b/board/propox/MMnet1000/MMnet1000.c
+--- a/board/propox/MMnet1000/MMnet1000.c   1970-01-01 01:00:00.0 
+0100
 b/board/propox/MMnet1000/MMnet1000.c   2011-07-21 22:40:55.797040208 
+0200
+@@ -0,0 +1,193 @@
++/*
++ * (C) Copyright 2007-2008
++ * Stelian Pop stelian@leadtechdesign.com
++ * Lead Tech Design www.leadtechdesign.com
++ *
++ * See file CREDITS for list of people who contributed to this
++ * project.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License as
++ 

[OpenWrt-Devel] [PATCH] MMnet1000 bootstrap support

2011-07-22 Thread Przemek Rudy
Add bootstrap for at91 Propox (http://www.propox.com) MMnet1000 board.

Signed-off-by: Przemyslaw Rudy pru...@o2.pl

---

Index: target/linux/at91/image/Config.in
===
--- target/linux/at91/image/Config.in   (revision 27729)
+++ target/linux/at91/image/Config.in   (working copy)
@@ -35,3 +35,15 @@
depends TARGET_at91_flexibity
default n
 
+config AT91_BOOTSTRAP
+   bool Build bootstrap
+   depends TARGET_at91
+   default n
+
+config AT91BOOTSTRAP_TARGET
+   string Bootstrap target board
+   depends AT91_BOOTSTRAP
+   default MMnet1000
+   help
+ For all supported boards there are ready-to-use default
+   configurations available; just type board_name.
Index: target/linux/at91/image/Makefile
===
--- target/linux/at91/image/Makefile(revision 27729)
+++ target/linux/at91/image/Makefile(working copy)
@@ -9,12 +9,16 @@
 
 define Build/Clean
$(MAKE) -C u-boot clean
+   $(MAKE) -C botstrap clean
 endef
 
 define Build/Compile
if [ $(CONFIG_AT91_UBOOT) ]; then \
$(MAKE) -C u-boot compile; \
fi
+   if [ $(CONFIG_AT91_BOOTSTRAP) ]; then \
+   $(MAKE) -C bootstrap compile; \
+   fi
 endef
 
 define Image/Prepare
Index: target/linux/at91/image/bootstrap/patches/100-MMnet1000.patch
===
--- target/linux/at91/image/bootstrap/patches/100-MMnet1000.patch   
(revision 0)
+++ target/linux/at91/image/bootstrap/patches/100-MMnet1000.patch   
(revision 0)
@@ -0,0 +1,510 @@
+diff -rupN a/board/MMnet1000/MMnet1000.c b/board/MMnet1000/MMnet1000.c
+--- a/board/MMnet1000/MMnet1000.c  1970-01-01 01:00:00.0 +0100
 b/board/MMnet1000/MMnet1000.c  2011-07-21 18:29:50.158951169 +0200
+@@ -0,0 +1,243 @@
++/* 

++ * ATMEL Microcontroller Software Support  -  ROUSSET  -
++ * 

++ * Copyright (c) 2006, Atmel Corporation
++
++ * All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions are met:
++ *
++ * - Redistributions of source code must retain the above copyright notice,
++ * this list of conditions and the disclaiimer below.
++ *
++ * Atmel's name may not be used to endorse or promote products derived from
++ * this software without specific prior written permission.
++ *
++ * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL AS IS AND ANY EXPRESS OR
++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
OF
++ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
++ * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
NOT
++ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
++ * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
++ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
++ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++ * 

++ * File Name   : MMnet1000.c
++ * Object  :
++ * Creation: NLe Jul 13th 2006
++ * ODi Nov 9th : dstp #3507 Bad PIO descriptors in at91samxxxek.c
++ 
*-
++ * Based on at91sam9260ek.c
++ */
++#include ../../include/part.h
++#include ../../include/gpio.h
++#include ../../include/pmc.h
++#include ../../include/debug.h
++#include ../../include/sdramc.h
++#include ../../include/main.h
++#include ../../include/nandflash.h
++
++static inline unsigned int get_cp15(void)
++{
++  unsigned int value;
++  __asm__(mrc p15, 0, %0, c1, c0, 0 : =r (value));
++  return value;
++}
++
++static inline void set_cp15(unsigned int value)
++{
++  __asm__(mcr p15, 0, %0, c1, c0, 0 : : r (value));
++}
++
++#ifdef CFG_HW_INIT
++/**/
++/* \fnhw_init   */
++/* \brief This function performs very low level HW initialization   */
++/* This function is invoked as soon as possible during the c_startup*/
++/* The bss segment must be initialized
  */
++/**/
++void hw_init(void)
++{
++  unsigned int cp15;
++
++  /* Configure PIOs */
++  const 

[OpenWrt-Devel] [PATCH 1/1] geos: include pppstats and pppdump in default packaging

2011-07-22 Thread Philip Prindeville
As the Geos box includes an ADSL modem that's targeted towards PPPoE, PPPoA, 
and bridged utilization, including these useful tools allows for easier 
configuration and troubleshooting.

Signed-off-by: Philip Prindeville phil...@redfish-solutions.com
Index: target/linux/x86/geos/target.mk
===
--- target/linux/x86/geos/target.mk (revision 27698)
+++ target/linux/x86/geos/target.mk (working copy)
@@ -17,6 +17,7 @@
 kmod-ath kmod-ath5k kmod-ath9k \
 kmod-cpu-msr \
 soloscli linux-atm br2684ctl bridge ppp ppp-mod-pppoa \
+pppdump pppstats \
 libopenssl ocf-crypto-headers zlib hwclock hostapd \
 flashrom
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/1] alix2: relabel interfaces to match labels on case

2011-07-22 Thread Philip Prindeville
The Netgate and PC Engines cases all label eth0 as the LAN port and eth1 as the 
WAN port.

Signed-off-by: Philip Prindeville phil...@redfish-solutions.com
Index: target/linux/x86/alix2/base-files/etc/config/network
===
--- target/linux/x86/alix2/base-files/etc/config/network(revision 27698)
+++ target/linux/x86/alix2/base-files/etc/config/network(working copy)
@@ -7,8 +7,13 @@
option netmask  255.0.0.0
 
 config interface lan
-   option ifname   eth0 eth1
+   option ifname   eth0
option type bridge
option protostatic
option ipaddr   192.168.1.1
option netmask  255.255.255.0
+
+config interface wan
+   option ifname   eth1
+   option protodhcp
+
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/1] alix2: relabel interfaces to match labels on case

2011-07-22 Thread Russell Senior
 Philip == Philip Prindeville philipp_s...@redfish-solutions.com 
 writes:

Philip The Netgate and PC Engines cases all label eth0 as the LAN
Philip port and eth1 as the WAN port.  

Not on any of my cases!


-- 
Russell Senior, President
russ...@personaltelco.net
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel