Re: [OpenWrt-Devel] patch for pptp package
I am sorry for Turkish reply :) Here is the English version: As a guess, ppp.sh may be the generic setting location and applications may override these type of settings. Regards, Bayram On 3 April 2010 00:25, Bayram Kurumahmut bayram.kurumah...@gmail.comwrote: Selam Murat, Nasilsin? ppp.sh generic bir dosya olarak kabul edilip, application specific olan script lerde bu gibi variable lar overwrite ediliyor olabilir. Yani bu tarz bisey dusunerek yapmis olabilirler. Hadi kolay gelsin, Bayram On 2 April 2010 22:02, Murat Sezgin sezginmu...@gmail.com wrote: Hi, I am proposing the below patch for pptp package. Because this ifname correction is done in the ppp.sh script for all the ppp based protocols. Thanks, Murat Sezgin www.ubicom.com diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh index e38c242..6008a48 100644 --- a/package/pptp/files/pptp.sh +++ b/package/pptp/files/pptp.sh @@ -31,11 +31,6 @@ setup_interface_pptp() { config_get netmask $config netmask [ -z $netmask -o -z $device ] || ifconfig $device netmask $netmask - # make sure the network state references the correct ifname - scan_ppp $config - config_get ifname $config ifname - uci_set_state network $config ifname $ifname - config_get mtu $config mtu mtu=${mtu:-1452} start_pppd $config \ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Bayram -- Bayram ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] firewall/iptables
Latest busybox version is 1.15.2 and includes local builtin implemented. You can check the following link: http://busybox.net/. As noted, in the present time, hush is a must for nommu processors like we have: ubicom32. Bayram -Original Message- From: openwrt-devel-boun...@lists.openwrt.org on behalf of Florian Fainelli Sent: Tue 10/20/2009 09:03 To: openwrt-devel@lists.openwrt.org Subject: Re: [OpenWrt-Devel] [PATCH] firewall/iptables Hi, On Tuesday 20 October 2009 17:48:34 Jo-Philipp Wich wrote: Hi. What about emulating local with something like the following? local() { eval $1=''; } This way you can keep the current scripts and handle the not-implemented local gracefully. I definitively prefer that solution, anytime hush makes more progress towards having local variables support or ash finally works on no-mmu systems this hack can be removed. ___ 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
Re: [OpenWrt-Devel] [PATCH] [target/ubicom32] add new subtarget and profiles
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
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
[OpenWrt-Devel] [PATCH] [target/ubicom32] add new subtarget and profiles
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 --- /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 +# CONFIG_DEBUG_MUTEXES is not set +# CONFIG_DEBUG_LOCK_ALLOC is not set +# CONFIG_PROVE_LOCKING is not set +# CONFIG_LOCK_STAT is not set +# CONFIG_DEBUG_SPINLOCK_SLEEP is not set +# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set +# CONFIG_DEBUG_KOBJECT is not set +CONFIG_DEBUG_INFO=y +# CONFIG_DEBUG_VM is not set