Re: [OpenWrt-Devel] [PATCH] [target/ubicom32] add new subtarget and profiles

2009-10-12 Thread Florian Fainelli
Hello Bayram,

On Friday 09 October 2009 12:56:59 Bayram Kurumahmut wrote:
 add IP7160RGW subtarget and kernel configs
 add RouterGateway/VPNGateway profiles and initramfs files

 Signed-off-by: Bayram Kurumahmut kbay...@ubicom.com
 ---
  target/linux/ubicom32/.gitignore   |1 +
  .../ubicom32/IP7160RGW/config-2.6.28.RouterGateway |  328
 ++ .../ubicom32/IP7160RGW/config-2.6.28.VPNGateway| 
 349  .../IP7160RGW/profiles/100-RouterGateway.mk   
 |   19 +
  .../ubicom32/IP7160RGW/profiles/200-VPNGateway.mk  |   19 +
  target/linux/ubicom32/IP7160RGW/target.mk  |5 +
  target/linux/ubicom32/Makefile |8 +
  target/linux/ubicom32/config-2.6.28|  169 --
  .../ubicom32/image/RouterGateway_initramfs_list|  238 +
  .../linux/ubicom32/image/VPNGateway_initramfs_list |  238 +
  10 files changed, 1205 insertions(+), 169 deletions(-)
  create mode 100644 target/linux/ubicom32/.gitignore
  create mode 100644
 target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway create mode
 100644 target/linux/ubicom32/IP7160RGW/config-2.6.28.VPNGateway create mode
 100644 target/linux/ubicom32/IP7160RGW/profiles/100-RouterGateway.mk create
 mode 100644 target/linux/ubicom32/IP7160RGW/profiles/200-VPNGateway.mk
 create mode 100644 target/linux/ubicom32/IP7160RGW/target.mk
  delete mode 100755 target/linux/ubicom32/config-2.6.28
  create mode 100644
 target/linux/ubicom32/image/RouterGateway_initramfs_list create mode 100644
 target/linux/ubicom32/image/VPNGateway_initramfs_list

 diff --git a/target/linux/ubicom32/.gitignore
 b/target/linux/ubicom32/.gitignore new file mode 100644
 index 000..076b3e5
 --- /dev/null
 +++ b/target/linux/ubicom32/.gitignore
 @@ -0,0 +1 @@
 +config-2.6.28
 diff --git a/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway
 b/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway new file mode
 100644
 index 000..e68a8b3

Your configuration file contains a lot of items that are already in the generic 
configuration, try to remove as many items as you can.

 --- /dev/null
 +++ b/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway
 @@ -0,0 +1,328 @@
 +CONFIG_RAMBASE=0x4000
 +# CONFIG_BRD_8MB is not set
 +# CONFIG_BRD_16MB is not set
 +# CONFIG_BRD_64MB is not set
 +CONFIG_BRD_32MB=y
 +# CONFIG_BRD_128MB is not set
 +# CONFIG_BRD_256MB is not set
 +CONFIG_UBICOM32=y
 +CONFIG_RAMKERNEL=y
 +CONFIG_CPU_BIG_ENDIAN=y
 +CONFIG_FORCE_MAX_ZONEORDER=14
 +CONFIG_HAVE_CLK=y
 +# CONFIG_MMU is not set
 +# CONFIG_FPU is not set
 +# CONFIG_ARCH_HAS_ILOG2_U32 is not set
 +# CONFIG_ARCH_HAS_ILOG2_U64 is not set
 +CONFIG_GENERIC_FIND_NEXT_BIT=y
 +CONFIG_GENERIC_GPIO=y
 +CONFIG_GPIOLIB=y
 +CONFIG_TIME_LOW_RES=y
 +CONFIG_GENERIC_CLOCKEVENTS=y
 +CONFIG_NO_IOPORT=y
 +CONFIG_ARCH_SUPPORTS_AOUT=y
 +CONFIG_IRQ_PER_CPU=y
 +CONFIG_UBICOM32_V4=y
 +# CONFIG_NOBOARD is not set
 +# CONFIG_IP5170DPF is not set
 +# CONFIG_IP5160DEV is not set
 +# CONFIG_IP5160EVAL is not set
 +# CONFIG_IP7145DPF is not set
 +CONFIG_IP7160RGW=y
 +# CONFIG_IP7160BRINGUP is not set
 +# CONFIG_IP7160DPF is not set
 +# CONFIG_IP7500MODULE is not set
 +# CONFIG_IP7500AV is not set
 +# CONFIG_IP7500MEDIA is not set
 +# CONFIG_SMP is not set
 +CONFIG_TIMER_EXTRA_ALLOC=0
 +# CONFIG_IRQSTACKS is not set
 +CONFIG_UBICOM32_OCM_MODULES=y
 +CONFIG_OCM_MODULES_RESERVATION=41
 +CONFIG_OCM_MODULES_MAY_CONSUME_REMAINING_CODESPACE=y
 +# CONFIG_OCM_MODULES_FALLBACK_TO_DDR is not set
 +CONFIG_RAMSIZE=0x400
 +CONFIG_KERNELBASE=0x4040
 +# CONFIG_LINKER_RELAXATION is not set
 +CONFIG_PCI=y
 +# CONFIG_ARCH_SUPPORTS_MSI is not set
 +# CONFIG_PCI_DEBUG is not set
 +CONFIG_PCI_DEV0_IDSEL=0x00100
 +CONFIG_PCI_DEV1_IDSEL=0x00200
 +CONFIG_UBICOM_INPUT=y
 +# CONFIG_UBICOM_INPUT_I2C is not set
 +CONFIG_UBICOM_SWITCH=y
 +CONFIG_UBICOM_SWITCH_BCM539X=y
 +# CONFIG_UBICOM_HID is not set
 +CONFIG_CMDLINE_BOOL=y
 +CONFIG_CMDLINE=console=ttyUM0 console=ttyUS0
 serdes=0x02004000,61,25000 +# CONFIG_CMDLINE_OVERRIDE is not set
 +CONFIG_PROTECT_KERNEL=y
 +# CONFIG_NO_KERNEL_MSG is not set
 +CONFIG_EARLY_PRINTK=y
 +# CONFIG_STOP_ON_TRAP is not set
 +# CONFIG_STOP_ON_BUG is not set
 +# CONFIG_DEBUG_IRQMEASURE is not set
 +# CONFIG_DEBUG_PCIMEASURE is not set
 +# CONFIG_ACCESS_OK_CHECKS_ENABLED is not set
 +CONFIG_UNALIGNED_ACCESS_ENABLED=y
 +# CONFIG_UNALIGNED_ACCESS_USERSPACE_ONLY is not set
 +# CONFIG_UNALIGNED_ACCESS_DISABLED is not set
 +# CONFIG_DEBUG_STACKOVERFLOW is not set
 +# CONFIG_DEBUG_STACK_USAGE is not set
 +CONFIG_PRINTK_TIME=y
 +CONFIG_ENABLE_MUST_CHECK=y
 +# CONFIG_DEBUG_FS is not set
 +CONFIG_DEBUG_KERNEL=y
 +# CONFIG_DEBUG_SHIRQ is not set
 +# CONFIG_DETECT_SOFTLOCKUP is not set
 +# CONFIG_SCHED_DEBUG is not set
 +# CONFIG_SCHEDSTATS is not set
 +# CONFIG_TIMER_STATS is not set
 +# CONFIG_DEBUG_OBJECTS is not set
 +# CONFIG_DEBUG_SLAB is not set
 +# CONFIG_DEBUG_SPINLOCK is not set
 

Re: [OpenWrt-Devel] [PATCH] [target/ubicom32] add new subtarget and profiles

2009-10-12 Thread Bayram Kurumahmut
Hi Florian, comments inline...

On Mon, Oct 12, 2009 at 11:56 AM, Florian Fainelli flor...@openwrt.org wrote:

 Hello Bayram,

 On Friday 09 October 2009 12:56:59 Bayram Kurumahmut wrote:
  add IP7160RGW subtarget and kernel configs
  add RouterGateway/VPNGateway profiles and initramfs files
 
  Signed-off-by: Bayram Kurumahmut kbay...@ubicom.com
  ---
   target/linux/ubicom32/.gitignore                   |    1 +
   .../ubicom32/IP7160RGW/config-2.6.28.RouterGateway |  328
  ++ .../ubicom32/IP7160RGW/config-2.6.28.VPNGateway    |
  349  .../IP7160RGW/profiles/100-RouterGateway.mk
  |   19 +
   .../ubicom32/IP7160RGW/profiles/200-VPNGateway.mk  |   19 +
   target/linux/ubicom32/IP7160RGW/target.mk          |    5 +
   target/linux/ubicom32/Makefile                     |    8 +
   target/linux/ubicom32/config-2.6.28                |  169 --
   .../ubicom32/image/RouterGateway_initramfs_list    |  238 +
   .../linux/ubicom32/image/VPNGateway_initramfs_list |  238 +
   10 files changed, 1205 insertions(+), 169 deletions(-)
   create mode 100644 target/linux/ubicom32/.gitignore
   create mode 100644
  target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway create mode
  100644 target/linux/ubicom32/IP7160RGW/config-2.6.28.VPNGateway create mode
  100644 target/linux/ubicom32/IP7160RGW/profiles/100-RouterGateway.mk create
  mode 100644 target/linux/ubicom32/IP7160RGW/profiles/200-VPNGateway.mk
  create mode 100644 target/linux/ubicom32/IP7160RGW/target.mk
   delete mode 100755 target/linux/ubicom32/config-2.6.28
   create mode 100644
  target/linux/ubicom32/image/RouterGateway_initramfs_list create mode 100644
  target/linux/ubicom32/image/VPNGateway_initramfs_list
 
  diff --git a/target/linux/ubicom32/.gitignore
  b/target/linux/ubicom32/.gitignore new file mode 100644
  index 000..076b3e5
  --- /dev/null
  +++ b/target/linux/ubicom32/.gitignore
  @@ -0,0 +1 @@
  +config-2.6.28
  diff --git a/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway
  b/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway new file mode
  100644
  index 000..e68a8b3

 Your configuration file contains a lot of items that are already in the 
 generic
 configuration, try to remove as many items as you can.
[BK] I couldn't see any duplication between target/linux/config-2.6.28
and these kernel config files. Is the generic file I am looking at
correct?


  --- /dev/null
  +++ b/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway
  @@ -0,0 +1,328 @@
  +CONFIG_RAMBASE=0x4000
  +# CONFIG_BRD_8MB is not set
  +# CONFIG_BRD_16MB is not set
  +# CONFIG_BRD_64MB is not set
  +CONFIG_BRD_32MB=y
  +# CONFIG_BRD_128MB is not set
  +# CONFIG_BRD_256MB is not set
  +CONFIG_UBICOM32=y
  +CONFIG_RAMKERNEL=y
  +CONFIG_CPU_BIG_ENDIAN=y
  +CONFIG_FORCE_MAX_ZONEORDER=14
  +CONFIG_HAVE_CLK=y
  +# CONFIG_MMU is not set
  +# CONFIG_FPU is not set
  +# CONFIG_ARCH_HAS_ILOG2_U32 is not set
  +# CONFIG_ARCH_HAS_ILOG2_U64 is not set
  +CONFIG_GENERIC_FIND_NEXT_BIT=y
  +CONFIG_GENERIC_GPIO=y
  +CONFIG_GPIOLIB=y
  +CONFIG_TIME_LOW_RES=y
  +CONFIG_GENERIC_CLOCKEVENTS=y
  +CONFIG_NO_IOPORT=y
  +CONFIG_ARCH_SUPPORTS_AOUT=y
  +CONFIG_IRQ_PER_CPU=y
  +CONFIG_UBICOM32_V4=y
  +# CONFIG_NOBOARD is not set
  +# CONFIG_IP5170DPF is not set
  +# CONFIG_IP5160DEV is not set
  +# CONFIG_IP5160EVAL is not set
  +# CONFIG_IP7145DPF is not set
  +CONFIG_IP7160RGW=y
  +# CONFIG_IP7160BRINGUP is not set
  +# CONFIG_IP7160DPF is not set
  +# CONFIG_IP7500MODULE is not set
  +# CONFIG_IP7500AV is not set
  +# CONFIG_IP7500MEDIA is not set
  +# CONFIG_SMP is not set
  +CONFIG_TIMER_EXTRA_ALLOC=0
  +# CONFIG_IRQSTACKS is not set
  +CONFIG_UBICOM32_OCM_MODULES=y
  +CONFIG_OCM_MODULES_RESERVATION=41
  +CONFIG_OCM_MODULES_MAY_CONSUME_REMAINING_CODESPACE=y
  +# CONFIG_OCM_MODULES_FALLBACK_TO_DDR is not set
  +CONFIG_RAMSIZE=0x400
  +CONFIG_KERNELBASE=0x4040
  +# CONFIG_LINKER_RELAXATION is not set
  +CONFIG_PCI=y
  +# CONFIG_ARCH_SUPPORTS_MSI is not set
  +# CONFIG_PCI_DEBUG is not set
  +CONFIG_PCI_DEV0_IDSEL=0x00100
  +CONFIG_PCI_DEV1_IDSEL=0x00200
  +CONFIG_UBICOM_INPUT=y
  +# CONFIG_UBICOM_INPUT_I2C is not set
  +CONFIG_UBICOM_SWITCH=y
  +CONFIG_UBICOM_SWITCH_BCM539X=y
  +# CONFIG_UBICOM_HID is not set
  +CONFIG_CMDLINE_BOOL=y
  +CONFIG_CMDLINE=console=ttyUM0 console=ttyUS0
  serdes=0x02004000,61,25000 +# CONFIG_CMDLINE_OVERRIDE is not set
  +CONFIG_PROTECT_KERNEL=y
  +# CONFIG_NO_KERNEL_MSG is not set
  +CONFIG_EARLY_PRINTK=y
  +# CONFIG_STOP_ON_TRAP is not set
  +# CONFIG_STOP_ON_BUG is not set
  +# CONFIG_DEBUG_IRQMEASURE is not set
  +# CONFIG_DEBUG_PCIMEASURE is not set
  +# CONFIG_ACCESS_OK_CHECKS_ENABLED is not set
  +CONFIG_UNALIGNED_ACCESS_ENABLED=y
  +# CONFIG_UNALIGNED_ACCESS_USERSPACE_ONLY is not set
  +# CONFIG_UNALIGNED_ACCESS_DISABLED is not set
  +# CONFIG_DEBUG_STACKOVERFLOW is not set
  +# CONFIG_DEBUG_STACK_USAGE is not set
  

Re: [OpenWrt-Devel] [PATCH] [target/ubicom32] add new subtarget and profiles

2009-10-12 Thread Bayram Kurumahmut
What I mean is target/linux/generic-2.6/config-2.6.28.


On Mon, Oct 12, 2009 at 1:23 PM, Bayram Kurumahmut
bayram.kurumah...@gmail.com wrote:
 Hi Florian, comments inline...

 On Mon, Oct 12, 2009 at 11:56 AM, Florian Fainelli flor...@openwrt.org 
 wrote:

 Hello Bayram,

 On Friday 09 October 2009 12:56:59 Bayram Kurumahmut wrote:
  add IP7160RGW subtarget and kernel configs
  add RouterGateway/VPNGateway profiles and initramfs files
 
  Signed-off-by: Bayram Kurumahmut kbay...@ubicom.com
  ---
   target/linux/ubicom32/.gitignore                   |    1 +
   .../ubicom32/IP7160RGW/config-2.6.28.RouterGateway |  328
  ++ .../ubicom32/IP7160RGW/config-2.6.28.VPNGateway    |
  349  .../IP7160RGW/profiles/100-RouterGateway.mk
  |   19 +
   .../ubicom32/IP7160RGW/profiles/200-VPNGateway.mk  |   19 +
   target/linux/ubicom32/IP7160RGW/target.mk          |    5 +
   target/linux/ubicom32/Makefile                     |    8 +
   target/linux/ubicom32/config-2.6.28                |  169 --
   .../ubicom32/image/RouterGateway_initramfs_list    |  238 +
   .../linux/ubicom32/image/VPNGateway_initramfs_list |  238 +
   10 files changed, 1205 insertions(+), 169 deletions(-)
   create mode 100644 target/linux/ubicom32/.gitignore
   create mode 100644
  target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway create mode
  100644 target/linux/ubicom32/IP7160RGW/config-2.6.28.VPNGateway create mode
  100644 target/linux/ubicom32/IP7160RGW/profiles/100-RouterGateway.mk create
  mode 100644 target/linux/ubicom32/IP7160RGW/profiles/200-VPNGateway.mk
  create mode 100644 target/linux/ubicom32/IP7160RGW/target.mk
   delete mode 100755 target/linux/ubicom32/config-2.6.28
   create mode 100644
  target/linux/ubicom32/image/RouterGateway_initramfs_list create mode 100644
  target/linux/ubicom32/image/VPNGateway_initramfs_list
 
  diff --git a/target/linux/ubicom32/.gitignore
  b/target/linux/ubicom32/.gitignore new file mode 100644
  index 000..076b3e5
  --- /dev/null
  +++ b/target/linux/ubicom32/.gitignore
  @@ -0,0 +1 @@
  +config-2.6.28
  diff --git a/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway
  b/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway new file mode
  100644
  index 000..e68a8b3

 Your configuration file contains a lot of items that are already in the 
 generic
 configuration, try to remove as many items as you can.
 [BK] I couldn't see any duplication between target/linux/config-2.6.28
 and these kernel config files. Is the generic file I am looking at
 correct?


  --- /dev/null
  +++ b/target/linux/ubicom32/IP7160RGW/config-2.6.28.RouterGateway
  @@ -0,0 +1,328 @@
  +CONFIG_RAMBASE=0x4000
  +# CONFIG_BRD_8MB is not set
  +# CONFIG_BRD_16MB is not set
  +# CONFIG_BRD_64MB is not set
  +CONFIG_BRD_32MB=y
  +# CONFIG_BRD_128MB is not set
  +# CONFIG_BRD_256MB is not set
  +CONFIG_UBICOM32=y
  +CONFIG_RAMKERNEL=y
  +CONFIG_CPU_BIG_ENDIAN=y
  +CONFIG_FORCE_MAX_ZONEORDER=14
  +CONFIG_HAVE_CLK=y
  +# CONFIG_MMU is not set
  +# CONFIG_FPU is not set
  +# CONFIG_ARCH_HAS_ILOG2_U32 is not set
  +# CONFIG_ARCH_HAS_ILOG2_U64 is not set
  +CONFIG_GENERIC_FIND_NEXT_BIT=y
  +CONFIG_GENERIC_GPIO=y
  +CONFIG_GPIOLIB=y
  +CONFIG_TIME_LOW_RES=y
  +CONFIG_GENERIC_CLOCKEVENTS=y
  +CONFIG_NO_IOPORT=y
  +CONFIG_ARCH_SUPPORTS_AOUT=y
  +CONFIG_IRQ_PER_CPU=y
  +CONFIG_UBICOM32_V4=y
  +# CONFIG_NOBOARD is not set
  +# CONFIG_IP5170DPF is not set
  +# CONFIG_IP5160DEV is not set
  +# CONFIG_IP5160EVAL is not set
  +# CONFIG_IP7145DPF is not set
  +CONFIG_IP7160RGW=y
  +# CONFIG_IP7160BRINGUP is not set
  +# CONFIG_IP7160DPF is not set
  +# CONFIG_IP7500MODULE is not set
  +# CONFIG_IP7500AV is not set
  +# CONFIG_IP7500MEDIA is not set
  +# CONFIG_SMP is not set
  +CONFIG_TIMER_EXTRA_ALLOC=0
  +# CONFIG_IRQSTACKS is not set
  +CONFIG_UBICOM32_OCM_MODULES=y
  +CONFIG_OCM_MODULES_RESERVATION=41
  +CONFIG_OCM_MODULES_MAY_CONSUME_REMAINING_CODESPACE=y
  +# CONFIG_OCM_MODULES_FALLBACK_TO_DDR is not set
  +CONFIG_RAMSIZE=0x400
  +CONFIG_KERNELBASE=0x4040
  +# CONFIG_LINKER_RELAXATION is not set
  +CONFIG_PCI=y
  +# CONFIG_ARCH_SUPPORTS_MSI is not set
  +# CONFIG_PCI_DEBUG is not set
  +CONFIG_PCI_DEV0_IDSEL=0x00100
  +CONFIG_PCI_DEV1_IDSEL=0x00200
  +CONFIG_UBICOM_INPUT=y
  +# CONFIG_UBICOM_INPUT_I2C is not set
  +CONFIG_UBICOM_SWITCH=y
  +CONFIG_UBICOM_SWITCH_BCM539X=y
  +# CONFIG_UBICOM_HID is not set
  +CONFIG_CMDLINE_BOOL=y
  +CONFIG_CMDLINE=console=ttyUM0 console=ttyUS0
  serdes=0x02004000,61,25000 +# CONFIG_CMDLINE_OVERRIDE is not set
  +CONFIG_PROTECT_KERNEL=y
  +# CONFIG_NO_KERNEL_MSG is not set
  +CONFIG_EARLY_PRINTK=y
  +# CONFIG_STOP_ON_TRAP is not set
  +# CONFIG_STOP_ON_BUG is not set
  +# CONFIG_DEBUG_IRQMEASURE is not set
  +# CONFIG_DEBUG_PCIMEASURE is not set
  +# CONFIG_ACCESS_OK_CHECKS_ENABLED is not set
  +CONFIG_UNALIGNED_ACCESS_ENABLED=y
  +# CONFIG_UNALIGNED_ACCESS_USERSPACE_ONLY is not set
 

Re: [OpenWrt-Devel] [PATCH] fix led_alix2 symbol

2009-10-12 Thread Roberto Riggio

Isn't better to just drop older kernels on the x86 target (trunk)?

On 10/11/2009 12:20 AM, Felix Fietkau wrote:

Roberto Riggio wrote:
   

Sorry I reversed the if..else

Index: package/kernel/modules/other.mk
===
--- package/kernel/modules/other.mk(revision 18014)
+++ package/kernel/modules/other.mk(working copy)
@@ -489,7 +489,11 @@
 SUBMENU:=$(OTHER_MENU)
 TITLE:=PCengines ALIX LED support
 DEPENDS:=...@target_x86
+ifeq ($(strip $(call
CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.31)),1)
 KCONFIG:=CONFIG_LEDS_ALIX
+else
+  KCONFIG:=CONFIG_LEDS_ALIX2
+endif
 FILES:=$(LINUX_DIR)/drivers/leds/leds-alix.$(LINUX_KMOD_SUFFIX)
 AUTOLOAD:=$(call AutoLoad,50,leds-alix)
   endef
 

Doesn't work. KCONFIG is processed at DUMP time, at which point the
kernel version isn't available yet (because .config isn't processed).
An easier fix would be to specify both KCONFIG symbols there and it'll
try to enable both.

- Felix
___
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