Re: [OpenWrt-Devel] [PATCH] curl: enable https protocol

2015-01-07 Thread Felix Fietkau
On 2014-12-27 18:32, Lars Kruse wrote:
 Hi,
 
 even though SSL-support is configurable for curl, there is currently
 no support for https (just http). The attached patch fixes that.
 
 Lars
 
 
 
 Provide optional --enable-https flag for curl.
 
 Signed-off-by: Lars Kruse de...@sumpfralle.de
Like the other one, this patch is whitespace damaged and has wrong
formatting for description.

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


Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Karl Palsson

Yousong Zhou yszhou4t...@gmail.com wrote:
 
 Which libc was in use?  Because RLIMIT_DATA only applies to those
 allocated by brk() and sbrk(), while malloc() of glibc may fallback to
 mmap() if sbrk() fails.  AFAIK, malloc() of uClibc for MIPS in OpenWrt
 utilizes only sbrk() with the default config.

whatever the default was for atheros in OpenWrt 1407.  so, 
uClibc 0.9.33.2
 
  But procd does nothing that I can see, no logging, no restarting.  Is
  this the correct usage? Is there some other way these procd limits are
  meant to be used?  The only reference to a procd init script using this
  feature is
  https://github.com/zqlee/smartproxy/blob/master/files/smartproxy.init
 
 as= (RTLIMIT_AS) is another option you can try.

What does that actually limit?  Matching up names from the procd commit
RTLIMIT_xxx with man ulimit for instance isn't always obvious (to me
at least)___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Modifying configuration at package install

2015-01-07 Thread Eric Schultz
I'm trying to create an example package. In it, I want the package to
modify the IP address of the LAN to 10.0.2.15. If I had access to a
running OpenWrt console, I'd use uci set to change the ip address.
I'd like to perform this change manually though at package
installation time.

Is there a way to run uci during the Package/install action in the
Makefile? Or is there a better way of making this change?

Thanks,

Eric

-- 
Eric Schultz, Community Manager, prpl Foundation
http://www.prplfoundation.org
eschu...@prplfoundation.org
cell: 920-539-0404
skype: ericschultzwi
@EricPrpl
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Luci2] Problems since 2015-01-05-e28f8f6

2015-01-07 Thread Jo-Philipp Wich
Hi.

 login window now without wrong user ... and no alert boxes
 but still hanging at Loading data...

No idea about that, it works fine here. Check your firebug / chrome
debugger console for errors.

~ Jow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [Luci2] Problems since 2015-01-05-e28f8f6

2015-01-07 Thread Christian Schoenebeck
Hi,
I recompiled and installed Luci2 on OpenWrt x86 inside VirtualBox.
I already used the previous version of LuCI2.
Here my findings for the new Version using FireFox 34 installed on Xubuntu 
14.10:

- Login screen starts with: Wrong username or password given!
- After login I got the following alert boxes:
Unable to instantiate proto /luci2/proto/static.js: TypeError: 
L.NetworkModel is undefined
Unable to instantiate proto /luci2/proto/dslite.js: TypeError: 
L.NetworkModel is undefined
Unable to instantiate proto /luci2/proto/dhcpv6.js: TypeError: 
L.NetworkModel is undefined
Unable to instantiate proto /luci2/proto/dhcp.js: TypeError: 
L.NetworkModel is undefined
Unable to instantiate proto /luci2/proto/6to4.js: TypeError: 
L.NetworkModel is undefined
Unable to instantiate proto /luci2/proto/none.js: TypeError: 
L.NetworkModel is undefined
  after this alerts the Loading data... stays permanent.

The directory listing:
root@OpenWrt:/www/luci2/proto# ll
drwxrwxr-x2 root root   140 Jan  7 20:29 ./
drwxrwxr-x7 root root   379 Jan  7 20:29 ../
-rw-rw-r--1 root root  2878 Dec 29 19:15 6in4.js
-rw-rw-r--1 root root  1943 Dec 29 19:15 6rd.js
-rw-rw-r--1 root root  1022 Dec 29 19:15 6to4.js
-rw-rw-r--1 root root  1827 Dec 29 19:15 dhcp.js
-rw-rw-r--1 root root  1998 Dec 29 19:15 dhcpv6.js
-rw-rw-r--1 root root  1342 Dec 29 19:15 dslite.js
-rw-rw-r--1 root root   133 Dec 29 19:15 none.js
-rw-rw-r--1 root root  3164 Dec 29 19:15 static.js

root@OpenWrt:/www/luci2# ll
drwxrwxr-x7 root root   379 Jan  7 20:29 ./
drwxr-xr-x5 root root   110 Jan  7 20:29 ../
-rw-rw-r--1 root root 43283 Dec 29 19:15 bootstrap.js
-rw-rw-r--1 root root 66829 Jan  5 21:07 cbi.js
drwxrwxr-x2 root root53 Jan  7 20:29 css/
-rw-rw-r--1 root root   927 Jan  5 21:07 firewall.js
-rw-rw-r--1 root root  2429 Dec 29 19:15 html5.js
drwxrwxr-x3 root root   612 Jan  7 20:29 icons/
-rw-rw-r--1 root root268381 Dec 29 19:15 jquery-1.9.1.js
-rw-rw-r--1 root root  6574 Dec 29 19:15 jquery.peity.js
-rw-rw-r--1 root root 13924 Jan  5 21:07 luci2.js
-rw-rw-r--1 root root 30953 Jan  5 21:07 network.js
drwxrwxr-x2 root root   140 Jan  7 20:29 proto/
-rw-rw-r--1 root root  4047 Dec 29 19:15 respond.min.js
-rw-rw-r--1 root root  3943 Jan  5 21:07 rpc.js
-rw-rw-r--1 root root  1464 Jan  5 21:07 session.js
-rw-rw-r--1 root root  1801 Jan  5 21:07 system.js
drwxrwxr-x2 root root   508 Jan  7 20:29 template/
-rw-rw-r--1 root root  9852 Jan  5 21:07 uci.js
-rw-rw-r--1 root root 30821 Jan  5 21:07 ui.js
drwxrwxr-x2 root root   489 Jan  7 20:29 view/
-rw-rw-r--1 root root  3425 Jan  5 21:07 wireless.js
-rw-rw-r--1 root root 12968 Dec 29 19:15 zoneinfo.json

What did I wrong ?

Cheers,
Christian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Modifying configuration at package install

2015-01-07 Thread Matthias Strubel
Hi Eric,
yes, you can run scripts at specific points during (un)installation  of a 
package.
You can find more information here: http://wiki.openwrt.org/doc/devel/packages 

I think you want to use the Package/postinst part. 
Some quickly found examples:

https://github.com/openwrt-routing/packages/blob/master/miniupnpd/Makefile
https://github.com/openwrt/packages/blob/master/net/ddns-scripts/Makefile

Hope that helps,
best regards 
Matthias

On 01/07/2015 09:28 PM, Eric Schultz wrote:
 I'm trying to create an example package. In it, I want the package to
 modify the IP address of the LAN to 10.0.2.15. If I had access to a
 running OpenWrt console, I'd use uci set to change the ip address.
 I'd like to perform this change manually though at package
 installation time.
 
 Is there a way to run uci during the Package/install action in the
 Makefile? Or is there a better way of making this change?
 
 Thanks,
 
 Eric
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Luci2] Problems since 2015-01-05-e28f8f6

2015-01-07 Thread Christian Schoenebeck
Hi,

login window now without wrong user ... and no alert boxes
but still hanging at Loading data...
I removed old package first and reinstalled the newly compiled 
2015-01-07-09dc12a.

Christian

Am 07.01.2015 um 21:19 schrieb Jo-Philipp Wich:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 the proto thing should be fixed now.
 
 ~ Jow
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.12 (GNU/Linux)
 
 iEYEARECAAYFAlStlLwACgkQdputYINPTPO0NQCfWAob5N3XcP/DTQ3GJRolhzl2
 pL0AnAsgCEmtKIw8lmNTLMbTAdhfJqGd
 =7HDn
 -END PGP SIGNATURE-
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Yousong Zhou
On 7 January 2015 at 00:19, Karl Palsson ka...@tweak.net.au wrote:
 Hi,

 I'm trying out using procd to kill/restart processes that use too much
 memory, using the limits feature added in
 https://lists.openwrt.org/pipermail/openwrt-devel/2013-December/022793.html
 and I've confirmed that it's available in the BB branch procd that I'm
 testing against.

 My init script looks like so...

 # cat /etc/init.d/hogger
 #!/bin/sh /etc/rc.common
 START=85
 USE_PROCD=1
 PROCD_DEBUG=1
 APP=hogger


 start_service() {
 procd_open_instance
 procd_set_param command $APP
 procd_append_param limits data=4000
 procd_set_param respawn
 procd_close_instance
 }

 Starting this service gives a nice debug output from procd, such as:

 # /etc/init.d/hogger start
 { name: hogger, script: \/etc\/init.d\/hogger, instances: { 
 instance1: { command: [ hogger ], limits: { data: 4000 }, 
 respawn: [ ] } } }


 The hogger application just uses malloc/free to raise/lower it's
 memory usage, and /proc/$PID/status shows that the VmData field
 increases, eg...



 VmPeak: 4492 kB
 VmSize: 4488 kB
 VmRSS:  1144 kB
 VmData: 1812 kB
 
 VmPeak: 6536 kB
 VmSize: 6536 kB
 VmRSS:  3216 kB
 VmData: 3860 kB
 
 VmPeak:10632 kB
 VmSize:10632 kB
 VmRSS:  7308 kB
 VmData: 7956 kB


Which libc was in use?  Because RLIMIT_DATA only applies to those
allocated by brk() and sbrk(), while malloc() of glibc may fallback to
mmap() if sbrk() fails.  AFAIK, malloc() of uClibc for MIPS in OpenWrt
utilizes only sbrk() with the default config.

 But procd does nothing that I can see, no logging, no restarting.  Is
 this the correct usage? Is there some other way these procd limits are
 meant to be used?  The only reference to a procd init script using this
 feature is
 https://github.com/zqlee/smartproxy/blob/master/files/smartproxy.init

as= (RTLIMIT_AS) is another option you can try.

Regards,

yousong


 Sincerely,
 Karl P

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

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


Re: [OpenWrt-Devel] [Luci2] Problems since 2015-01-05-e28f8f6

2015-01-07 Thread Jo-Philipp Wich
Hi,

my bad - I forgot to push the updated views as well. Please try again.

~ Jow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [Luci2] Problems since 2015-01-05-e28f8f6

2015-01-07 Thread Christian Schoenebeck
Hi,
that's it. Thanks
Christian

Am 07.01.2015 um 22:29 schrieb Jo-Philipp Wich:
 Hi,
 
 my bad - I forgot to push the updated views as well. Please try again.
 
 ~ Jow
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Modifying configuration at package install

2015-01-07 Thread Eric Schultz
Matthias,

Thanks for the help. Will these scripts run even if it's the process
of creating a new OpenWrt image? Or only if I installed the opkg from
inside OpenWrt?

I'm looking for a way to change the previously setting on image
creation. For example, the setting is initially set to the default
192.168.1.1 during the build process and when my package is built and
added to the image, it's changed to 10.0.2.15.

I should have been clearer about what I was trying to do :)

Thanks again,

Eric

Hi Eric,
yes, you can run scripts at specific points during (un)installation  of a 
package.
You can find more information here: http://wiki.openwrt.org/doc/devel/packages

I think you want to use the Package/postinst part.
Some quickly found examples:

https://github.com/openwrt-routing/packages/blob/master/miniupnpd/Makefile
https://github.com/openwrt/packages/blob/master/net/ddns-scripts/Makefile

Hope that helps,
best regards
Matthias

On 01/07/2015 09:28 PM, Eric Schultz wrote:
 I'm trying to create an example package. In it, I want the package to
 modify the IP address of the LAN to 10.0.2.15. If I had access to a
 running OpenWrt console, I'd use uci set to change the ip address.
 I'd like to perform this change manually though at package
 installation time.

 Is there a way to run uci during the Package/install action in the
 Makefile? Or is there a better way of making this change?

 Thanks,

 Eric


-- 
Eric Schultz, Community Manager, prpl Foundation
http://www.prplfoundation.org
eschu...@prplfoundation.org
cell: 920-539-0404
skype: ericschultzwi
@EricPrpl
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Modifying configuration at package install

2015-01-07 Thread Jo-Philipp Wich
Hi Eric,

make your package ship an /etc/uci-defaults/99_custom_settings that
executes the appropriate uci set commands.

That script is automatically sourced on the first OpenWrt boot and
deleted afterwards. Make sure it exits with code 0.

You can not rely on postinstall hooks as the network configuration may
not be available at build time, on ar71xx for example it is generated on
the first boot (from /etc/uci-defaults/02_network).

~ Jow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] fstools: update to the latest git HEAD

2015-01-07 Thread Rafał Miłecki
This allows using UBIFS volume as overlay and adds support for Btrfs.

Signed-off-by: Rafał Miłecki zaj...@gmail.com
---
 package/system/fstools/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/system/fstools/Makefile b/package/system/fstools/Makefile
index 9e3dde7..a71401d 100644
--- a/package/system/fstools/Makefile
+++ b/package/system/fstools/Makefile
@@ -8,14 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fstools
-PKG_VERSION:=2014-12-15
+PKG_VERSION:=2015-01-07
 
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=git://nbd.name/fstools.git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_SOURCE_VERSION:=83cf8896a598fb9fc58da0a9bb4f137695f78853
+PKG_SOURCE_VERSION:=6a448a100c7ce8b8b85f262ba1258e54363da9cc
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
 CMAKE_INSTALL:=1
 PKG_CHECK_FORMAT_SECURITY:=0
-- 
1.8.4.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [RFC PATCH] mac80211: brcmfmac: separate SDIO and USB support

2015-01-07 Thread Zoltan HERPAI
This patch will add options to select SDIO and USB support in the brcmfmac 
driver, and not tie it to only support USB. As the driver doesn't build 
the host interface code into separate .ko, the required ones are selected 
via config options.


PCIe support is not added now, can be added later. As of now, only sunxi 
would use the SDIO support for the Ampak modules.


Signed-off-by: Zoltan HERPAI wigy...@uid0.hu
---
Index: package/kernel/mac80211/Makefile
===
--- package/kernel/mac80211/Makefile(revision 43857)
+++ package/kernel/mac80211/Makefile(working copy)
@@ -1477,17 +1477,36 @@

 define KernelPackage/brcmfmac
   $(call KernelPackage/mac80211/Default)
-  TITLE:=Broadcom IEEE802.11n USB FullMAC WLAN driver
+  TITLE:=Broadcom IEEE802.11n USB/SDIO FullMAC WLAN driver
   URL:=http://linuxwireless.org/en/users/Drivers/brcm80211
-  DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-cfg80211 +@DRIVER_11N_SUPPORT 
+kmod-brcmutil
+  DEPENDS+= @(USB_SUPPORT||TARGET_sunxi) +kmod-cfg80211 +@DRIVER_11N_SUPPORT 
+kmod-brcmutil
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
   AUTOLOAD:=$(call AutoProbe,brcmfmac)
 endef

 define KernelPackage/brcmfmac/description
- Kernel module for Broadcom IEEE802.11n USB Wireless cards
+ Kernel module for Broadcom IEEE802.11n USB/SDIO Wireless cards
 endef

+define KernelPackage/brcmfmac/config
+if PACKAGE_kmod-brcmfmac
+
+   config PACKAGE_BRCMFMAC_SDIO
+   depends TARGET_sunxi
+   bool Broadcom FullMAC SDIO support
+   help
+   Say Y if you want to enable SDIO support for the 
brcmfmac driver.
+
+   config PACKAGE_BRCMFMAC_USB
+   select PACKAGE_kmod-usb-core
+   default y
+   bool Broadcom FullMAC USB support
+   help
+   Say Y if you want to enable USB support for the 
brcmfmac driver.
+
+endif
+endef
+
 config_package=$(if $(CONFIG_PACKAGE_kmod-$(1)),m)

 config-y:= \
@@ -1558,8 +1577,9 @@
 config-$(call config_package,brcmutil) += BRCMUTIL
 config-$(call config_package,brcmsmac) += BRCMSMAC
 config-$(call config_package,brcmfmac) += BRCMFMAC
-config-y += BRCMFMAC_USB
+config-$(CONFIG_PACKAGE_BRCMFMAC_USB) += BRCMFMAC_USB
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
+config-$(CONFIG_PACKAGE_BRCMFMAC_SDIO) += BRCMFMAC_SDIO

 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM

@@ -1969,12 +1989,25 @@

 define KernelPackage/brcmfmac/install
$(INSTALL_DIR) $(1)/lib/firmware/brcm
+ifeq ($(CONFIG_PACKAGE_BRCMFMAC_USB),y)
$(INSTALL_DATA) \

$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43236b.bin \
$(1)/lib/firmware/brcm/
$(INSTALL_DATA) \

$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43143.bin \
$(1)/lib/firmware/brcm/
+endif
+ifeq ($(CONFIG_PACKAGE_BRCMFMAC_SDIO),y)
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac4329-sdio.bin \
+   $(1)/lib/firmware/brcm/
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac4330-sdio.bin \
+   $(1)/lib/firmware/brcm/
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/brcm/brcmfmac43362-sdio.bin \
+   $(1)/lib/firmware/brcm/
+endif
 endef

 $(eval $(call KernelPackage,adm8211))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH fstools] libblkid-tiny: add btrfs probe info

2015-01-07 Thread Felix Fietkau
On 2014-12-22 12:34, Daniel Golle wrote:
 This only adds the magic for btrfs to show btrfs volumes in
 block detect.
 
 In order to properly support btrfs with more than one device and avoid
 trying to mount the same device group once for each instance we have to
 make sure that only one device per group will be mounted (btrfs then
 automatically detects all other devices of the group).
 For unmounting, the opposite should be applied: umount if called for
 any of the devices in a mounted device group, unmount the filesystem.
 
 Signed-off-by: Daniel Golle dan...@makrotopia.org
This was missing a change to CMakeLists.txt, fixed that up and applied
the patch.

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


[OpenWrt-Devel] ubus document

2015-01-07 Thread Yang Haixiang
Hi,
I want to add an event handler in ubus. But there is little document about
it. Could someone do me a favor please?
Thanks.

Best Regards
Leo Yang
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] procd limits usage

2015-01-07 Thread Karl Palsson

Yousong Zhou yszhou4t...@gmail.com wrote:
 
 Okay.  But then I have no idea what's going wrong.  You can try adding
 getrlimit() call to hogger to see whether the soft/hard limit has
 indeed been imposed before exec() by procd.  BTW, the format of limits
 params allows setting both soft and hard limit for each resource type.
 As in the following
 
 procd_set_params limits data=4000 8000
 
 If only one value was given, only the soft limit is supposed to be
 changed with the hard limit left as it is.

Good to know, and I've tried it in that form now too.

 
  What does that actually limit?  Matching up names from the procd commit
  RTLIMIT_xxx with man ulimit for instance isn't always obvious (to me
  at least)
 
 My bad, should be RLIMIT_AS.

Ok, was looking in the right spaces now.  _any_ limit on AS stops my
process from starting (or, killing it immediately) I used up to as much
as procd_append_param limits as=512000 512000 with no help.

So, I guess that's working  I went back to RLIMIT_DATA, and added
getrlimit, and it indeed shows that procd is setting the limits, but it
still has no effect.  

Sincerely,
Karl P

-- 
Sent using Mailpile, Free Software from www.mailpile.is___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel