[LEDE-DEV] Lede r881 - how to get better Wireless performace ?

2016-07-02 Thread Dennis Schneck


Hello,
i use a TP Link Archer C7 v2 with LEDE r811.
But the Wireless performace (2,4GHz) is not optimal.
Are the parameter or something else to tune the performace ?
If use other Firmware in the same Environment get better transfer rates.
 
CPU use is near 10% at the speed test.
Free memory near 95MB
 
Thanks
 

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] procd: patch to support busybox mkfs.ext2

2016-07-02 Thread Luke McKee
Actually lzo compresses better but they are both fast. lz4 is faster
on embedded devices.

zram-swap should use lz4 if available and the patch can be as it
was.http://blog.jpountz.net/post/28092106032/wow-lz4-is-fast

 lz4 has compression levels. in any case, speed > size on
embedded devices. interestingly enough, higher lz4 compression yields
faster decompression
 
http://www.ilsistemista.net/index.php/linux-a-unix/44-linux-compressors-comparison-on-centos-6-5-x86-64-lzo-vs-lz4-vs-gzip-vs-bzip2-vs-lzma.html?start=4

They are mostly the same. On average 2.8 compression ratio in lz4 vs
3.0 in lzo. Can't hurt to go with the fastest.


On 3 July 2016 at 07:10, Luke McKee  wrote:
> v2 of the patch. uses lz4 compression by default. lz4 is always
> installed by openwrt Makefile Config.in if zram.
>
> lz4 is best for compressed filesystems as we all know (if you had to
> choose between that and lzo).
> zram-swap can keep using lzo for speed!
>
> I'll work in a compatibility patch for zram-swap script next to see if
> zram0 is already being used and hot-add a new device.

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] procd: patch to support busybox mkfs.ext2

2016-07-02 Thread Luke McKee
Hi guys,

This is a little one. Busybox mkfs.ext2 works and with this setup the
ext4 module can mount /tmp without a journal. See #22666 I tested it.

Also the Makefile for procd doesn't have any dependencies for busybox
CONFIG_BUSYBOX_CONFIG_MKFS_EXT2=y OR e2fsprogs.

See the zram-swap Makefile. Mkfs.ext2 is also installed with e2fsprogs
so this wont break anything for those who install the more bloated
utility.

As we all know there is no need for mounting a journal on volatile
memory, so that's the other justification for this patch. busybox
supports all the commandline arguments given to mkfs.ext2

Also THE PATH WAS WRONG IN THE ORIGINAL PATCH for the error messages :P
Maybe e2fsprogs has to be patched so it installs to /sbin like most
other distros (e.g. gentoo)



--- zram.c.orig 2016-07-03 02:55:02.412237548 +0700
+++ zram.c 2016-07-03 02:55:54.691233783 +0700
@@ -82,7 +82,7 @@
 int
 mount_zram_on_tmp(void)
 {
- char *mkfs[] = { "/usr/sbin/mkfs.ext4", "-b", "4096", "-F", "-L",
"TEMP", "-m", "0", "/dev/zram0", NULL };
+ char *mkfs[] = { "/sbin/mkfs.ext2", "-b", "4096", "-F", "-L",
"TEMP", "-m", "0", "/dev/zram0", NULL };
  FILE *fp;
  long zramsize;
  pid_t pid;
@@ -107,10 +107,10 @@
  pid = fork();
  if (!pid) {
  execvp(mkfs[0], mkfs);
- ERROR("Can't exec /sbin/mkfs.ext4\n");
+ ERROR("Can't exec /sbin/mkfs.ext2\n");
  exit(-1);
  } else if (pid <= 0) {
- ERROR("Can't exec /sbin/mkfs.ext4\n");
+ ERROR("Can't exec /sbin/mkfs.ext2\n");
  return -1;
  } else {
  waitpid(pid, NULL, 0);

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [PATCH 1/5] uci-defaults: add MAC address option to atm bridge

2016-07-02 Thread Kevin Darbyshire-Bryant



On 02/07/16 16:00, Mathias Kresin wrote:

Signed-off-by: Mathias Kresin 
---
  package/base-files/files/bin/config_generate   | 5 +++--
  package/base-files/files/lib/functions/uci-defaults.sh | 2 ++
  2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/package/base-files/files/bin/config_generate 
b/package/base-files/files/bin/config_generate
index 7f34eec..8919d31 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -24,8 +24,8 @@ generate_static_network() {
json_select dsl
if json_is_a atmbridge object; then
json_select atmbridge
-   local vpi vci encaps payload
-   json_get_vars vpi vci encaps payload
+   local vpi vci encaps payload mac
+   json_get_vars vpi vci encaps payload mac
uci -q batch <<-EOF
delete network.atm
set network.atm='atm-bridge'
@@ -33,6 +33,7 @@ generate_static_network() {
set network.atm.vci='$vci'
set network.atm.encaps='$encaps'
set 
network.atm.payload='$payload'
+   set network.atm.mac='$mac'
EOF
json_select ..
fi
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh 
b/package/base-files/files/lib/functions/uci-defaults.sh
index 8c95437..6623be9 100755
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -315,6 +315,7 @@ ucidef_add_atm_bridge() {
local vci="$2"
local encaps="$3"
local payload="$4"
+   local mac="$5"
  
  	json_select_object dsl

json_select_object atmbridge
@@ -322,6 +323,7 @@ ucidef_add_atm_bridge() {
json_add_int vci "$vci"
json_add_string encaps "$encaps"
json_add_string payload "$payload"
+   json_add_string mac "$mac"
json_select ..
json_select ..
  }


For this patch set:

Tested-by: Kevin Darbyshire-Bryant 

Actually it should be something like Guinea-pig/remote compile,test 
bot/to destruction/and back again by: Kevin Darbyshire-Bryant  :-)


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] kmod-udptunnel{4, 6} packages are empty (Was: Kernel symbol dependencies and KCONFIG usage for kernel packages)

2016-07-02 Thread Hauke Mehrtens
On 07/02/2016 05:38 PM, Baptiste Jonglez wrote:
> On Sat, Jul 02, 2016 at 04:55:28PM +0200, Baptiste Jonglez wrote:
>> I think I found the cause of the issue: the packages kmod-udptunnel4.ipk
>> and kmod-udptunnel6.ipk are generated, but are empty (no .ko file).  When
>> I activate the kernel symbol in kernel_menuconfig, these packages do
>> provide the .ko files as expected.
> 
> Moving to a different subject, since this is unrelated to wireguard.
> 
> Here is how to reproduce the issue (tried with 2a8bb46294):
> 
> - start with a fresh config
> - activate kmod-udptunnel4 and kmod-udptunnel6 as modules (in Kernel modules 
> → Network Support)
> - select a target profile (I tried with TP-LINK TL-WR841N/ND v8)
> - build
> 
> The resulting packages for kmod-udptunnel{4,6} are only 800 octets and do
> not contain any .ko module:
> 
> $ find bin/ -name "*.ipk" -size '-1000c' -exec ls -lh {} \;
> -rw-r--r-- 1 bjonglez users 805 juil.  2 17:14 
> bin/targets/ar71xx/generic/packages/kmod-udptunnel6_4.4.14-1_mips_34kc.ipk
> -rw-r--r-- 1 bjonglez users 802 juil.  2 17:14 
> bin/targets/ar71xx/generic/packages/kmod-udptunnel4_4.4.14-1_mips_34kc.ipk
> -rw-r--r-- 1 bjonglez users 781 juil.  2 17:14 
> bin/targets/ar71xx/generic/packages/kernel_4.4.14-1-43373ff95800a35b632ff21cb43a1ef1_mips_34kc.ipk
> -rw-r--r-- 1 bjonglez users 900 juil.  2 17:15 
> bin/packages/mips_34kc/base/ip6tables_1.4.21-2_mips_34kc.ipk
> 
> The .ko are actually not built:
> 
> $ find 
> build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/packages/ipkg-mips_34kc/udptunnel4
>  -name "*.ko"
> 
> $ find 
> build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/linux-4.4.14/ 
> -name "*udp*.ko"
> build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/linux-4.4.14/net/netfilter/xt_tcpudp.ko
> 
> 
> The packages in the snapshots are somehow correct:
> 
>   
> https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/packages/
> 
> So, this may actually be a local issue...
> 
> Baptiste

Thank you for the report, this looks like a problem in lede in
combination with the kernel KConfig system.

Can you pelase try this patch:
https://git.lede-project.org/?p=lede/hauke/staging.git;a=commitdiff;h=195413a223fb1d6f91927a2c5a8780c7b1829f76

Hauke



signature.asc
Description: OpenPGP digital signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] kmod-udptunnel{4, 6} packages are empty (Was: Kernel symbol dependencies and KCONFIG usage for kernel packages)

2016-07-02 Thread Baptiste Jonglez
On Sat, Jul 02, 2016 at 04:55:28PM +0200, Baptiste Jonglez wrote:
> I think I found the cause of the issue: the packages kmod-udptunnel4.ipk
> and kmod-udptunnel6.ipk are generated, but are empty (no .ko file).  When
> I activate the kernel symbol in kernel_menuconfig, these packages do
> provide the .ko files as expected.

Moving to a different subject, since this is unrelated to wireguard.

Here is how to reproduce the issue (tried with 2a8bb46294):

- start with a fresh config
- activate kmod-udptunnel4 and kmod-udptunnel6 as modules (in Kernel modules → 
Network Support)
- select a target profile (I tried with TP-LINK TL-WR841N/ND v8)
- build

The resulting packages for kmod-udptunnel{4,6} are only 800 octets and do
not contain any .ko module:

$ find bin/ -name "*.ipk" -size '-1000c' -exec ls -lh {} \;
-rw-r--r-- 1 bjonglez users 805 juil.  2 17:14 
bin/targets/ar71xx/generic/packages/kmod-udptunnel6_4.4.14-1_mips_34kc.ipk
-rw-r--r-- 1 bjonglez users 802 juil.  2 17:14 
bin/targets/ar71xx/generic/packages/kmod-udptunnel4_4.4.14-1_mips_34kc.ipk
-rw-r--r-- 1 bjonglez users 781 juil.  2 17:14 
bin/targets/ar71xx/generic/packages/kernel_4.4.14-1-43373ff95800a35b632ff21cb43a1ef1_mips_34kc.ipk
-rw-r--r-- 1 bjonglez users 900 juil.  2 17:15 
bin/packages/mips_34kc/base/ip6tables_1.4.21-2_mips_34kc.ipk

The .ko are actually not built:

$ find 
build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/packages/ipkg-mips_34kc/udptunnel4
 -name "*.ko"

$ find 
build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/linux-4.4.14/ -name 
"*udp*.ko"
build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/linux-4.4.14/net/netfilter/xt_tcpudp.ko


The packages in the snapshots are somehow correct:

  https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/packages/

So, this may actually be a local issue...

Baptiste


signature.asc
Description: PGP signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH 5/5] lantiq: DGN3500: use the MAC address from uboot env

2016-07-02 Thread Mathias Kresin
Extract the base MAC address from the u-boot environment instead of
relying on a properly passed ethaddr kernel command-line parameter.

Signed-off-by: Mathias Kresin 
---
 target/linux/lantiq/base-files/etc/board.d/02_network | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network 
b/target/linux/lantiq/base-files/etc/board.d/02_network
index 3bb4e6e..43ab17f 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -75,6 +75,8 @@ ARV4518PWR01*)
 ;;
 
 DGN3500*)
+   lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr)
+   wan_mac=$(macaddr_add "$lan_mac" 1)
ucidef_add_switch "switch0" \
"3:lan:1" "2:lan:2" "1:lan:3" "0:lan:4" "5t@eth0"
;;
-- 
1.9.1


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH 2/5] br2684ctl: set the MAC address configured for the atm bridge using

2016-07-02 Thread Mathias Kresin
If an ESI is set, it will be used as MAC address for the nas0
interface.

According to the ESI man page, changes to the ESI are not automatically
propagated throughout the system and therefore esi should be used
early during system.

Setting the ESI before creating the nas interface should be early enough
for all following services.

Signed-off-by: Mathias Kresin 
---
 package/network/utils/linux-atm/Makefile| 1 +
 package/network/utils/linux-atm/files/br2684ctl | 5 +
 2 files changed, 6 insertions(+)

diff --git a/package/network/utils/linux-atm/Makefile 
b/package/network/utils/linux-atm/Makefile
index 62d71ea..52f789c 100644
--- a/package/network/utils/linux-atm/Makefile
+++ b/package/network/utils/linux-atm/Makefile
@@ -77,6 +77,7 @@ endef
 
 define Package/br2684ctl
   $(call Package/linux-atm/Default)
+  DEPENDS+=+atm-esi
   TITLE:=ATM Ethernet bridging configuration utility
 endef
 
diff --git a/package/network/utils/linux-atm/files/br2684ctl 
b/package/network/utils/linux-atm/files/br2684ctl
index 0fa86bd..2563455 100755
--- a/package/network/utils/linux-atm/files/br2684ctl
+++ b/package/network/utils/linux-atm/files/br2684ctl
@@ -44,6 +44,9 @@ start_daemon() {
local sendsize
config_get sendsize "$cfg" sendsize
 
+   local mac
+   config_get mac "$cfg" mac
+
found=
for device in /sys/class/atm/*; do
[ -d "$device" ] || break
@@ -56,6 +59,8 @@ start_daemon() {
 
local circuit="$atmdev.$vpi.$vci"
 
+   [ -n "$mac" ] && /usr/sbin/esi "${mac//:/}" $unit
+
procd_open_instance
procd_set_param command \
/usr/sbin/br2684ctl_wrap "nas$unit" \
-- 
1.9.1


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH 3/5] lantiq: pass MAC address to the ATM bridge helper

2016-07-02 Thread Mathias Kresin
Signed-off-by: Mathias Kresin 
---
 target/linux/lantiq/base-files/etc/board.d/02_network | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network 
b/target/linux/lantiq/base-files/etc/board.d/02_network
index c271e62..3bb4e6e 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -163,7 +163,7 @@ WBMR300)
 esac
 
 if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
-   ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
+   ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload" "$wan_mac"
 fi
 
 if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
@@ -177,7 +177,7 @@ fi
 ucidef_set_interface_wan "$interface_wan" "pppoe"
 
 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan "$lan_mac"
-[ -n "$wan_mac" ] && ucidef_set_interface_macaddr wan "$wan_mac"
+[ -n "$wan_mac" ] && [ "$interface_wan" != "nas0" ] && 
ucidef_set_interface_macaddr wan "$wan_mac"
 
 board_config_flush
 
-- 
1.9.1


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] Kernel symbol dependencies and KCONFIG usage for kernel packages

2016-07-02 Thread Baptiste Jonglez
On Sat, Jul 02, 2016 at 03:48:36PM +0200, Hauke Mehrtens wrote:
> > However, I have some trouble understanding what KCONFIG does.  Wireguard
> > needs a few kernel options, so I thought that KCONFIG was the place to
> > declare such dependencies:
> > 
> >   
> > https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile#L90
> 
> > KCONFIG:=CONFIG_NET_UDP_TUNNEL CONFIG_IPV6 \
> >  CONFIG_NETFILTER_XT_MATCH_HASHLIMIT
> 
> Instead of activating the kernel symbols you should add a dependency to
> the packages which are building these models:
> 
> DEPENDS:=+kmod-udptunnel4 +kmod-udptunnel6 +kmod-ipt-hashlimit

Well, actually, this is already there, on the next line :)

  https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile#L91

So, I can remove the KCONFIG line altogether?  I thought the kernel
symbols activated some necessary machinery in the kernel, in addition to
producing the .ko module.

I think I found the cause of the issue: the packages kmod-udptunnel4.ipk
and kmod-udptunnel6.ipk are generated, but are empty (no .ko file).  When
I activate the kernel symbol in kernel_menuconfig, these packages do
provide the .ko files as expected.

I have attached the empty packages to this email, just in case.

Thanks,
Baptiste


kmod-udptunnel4_4.4.14-1_mips_34kc.ipk
Description: application/vnd.shana.informed.package


kmod-udptunnel6_4.4.14-1_mips_34kc.ipk
Description: application/vnd.shana.informed.package


signature.asc
Description: PGP signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] Kernel symbol dependencies and KCONFIG usage for kernel packages

2016-07-02 Thread Hauke Mehrtens
On 07/02/2016 03:20 PM, Baptiste Jonglez wrote:
> Hi,
> 
> I am packaging a new kernel module (wireguard), the package is currently here 
> [1].
> 
> However, I have some trouble understanding what KCONFIG does.  Wireguard
> needs a few kernel options, so I thought that KCONFIG was the place to
> declare such dependencies:
> 
>   
> https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile#L90

> KCONFIG:=CONFIG_NET_UDP_TUNNEL CONFIG_IPV6 \
>  CONFIG_NETFILTER_XT_MATCH_HASHLIMIT

Instead of activating the kernel symbols you should add a dependency to
the packages which are building these models:

DEPENDS:=+kmod-udptunnel4 +kmod-udptunnel6 +kmod-ipt-hashlimit

> However, it does not seem to enable these options.  The module compiles
> fine, it installs fine [2], but then it fails to load at runtime:
> 
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.015838] wireguard: Unknown 
> symbol udp_sock_create4 (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.022021] wireguard: Unknown 
> symbol udp_tunnel6_xmit_skb (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.028767] wireguard: Unknown 
> symbol udp_tunnel_sock_release (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.035570] wireguard: Unknown 
> symbol setup_udp_tunnel_sock (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.042136] wireguard: Unknown 
> symbol udp_sock_create6 (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.048297] wireguard: Unknown 
> symbol udp_tunnel_xmit_skb (err 0)
> 
> It works when selecting the needed options manually in kernel_menuconfig,
> but it's a huge pain.

You should avoid make kernel_menuconfig

> Is there a way to get the needed kernel options automatically?  Maybe this
> only happens for packages that are part of the core Lede distribution?
> 
> Thanks,
> Baptiste
> 
> [1] https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile
> [2] http://paste.aliens-lyon.fr/CBI




signature.asc
Description: OpenPGP digital signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] Kernel symbol dependencies and KCONFIG usage for kernel packages

2016-07-02 Thread John Crispin


On 02/07/2016 15:20, Baptiste Jonglez wrote:
> Hi,
> 
> I am packaging a new kernel module (wireguard), the package is currently here 
> [1].
> 
> However, I have some trouble understanding what KCONFIG does.  Wireguard
> needs a few kernel options, so I thought that KCONFIG was the place to
> declare such dependencies:
> 
>   
> https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile#L90
> 
> However, it does not seem to enable these options.  The module compiles
> fine, it installs fine [2], but then it fails to load at runtime:
> 
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.015838] wireguard: Unknown 
> symbol udp_sock_create4 (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.022021] wireguard: Unknown 
> symbol udp_tunnel6_xmit_skb (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.028767] wireguard: Unknown 
> symbol udp_tunnel_sock_release (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.035570] wireguard: Unknown 
> symbol setup_udp_tunnel_sock (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.042136] wireguard: Unknown 
> symbol udp_sock_create6 (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.048297] wireguard: Unknown 
> symbol udp_tunnel_xmit_skb (err 0)
> 
> It works when selecting the needed options manually in kernel_menuconfig,
> but it's a huge pain.
> 
> Is there a way to get the needed kernel options automatically?  Maybe this
> only happens for packages that are part of the core Lede distribution?
> 
> Thanks,
> Baptiste
> 
> [1] https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile
> [2] http://paste.aliens-lyon.fr/CBI
> 
> 
> 
> ___
> Lede-dev mailing list
> Lede-dev@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
> 

>

Hi,

wireguard depends on other moduls so you will need to package them aswell.

CONFIG_NET_UDP_TUNNEL will create ip6_udp_tunnel.ko which for example
has udp_tunnel6_xmit_skb inside it.

once all of these are packaged you can make wireguard depend on them.

John


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] Kernel symbol dependencies and KCONFIG usage for kernel packages

2016-07-02 Thread John Crispin


On 02/07/2016 15:20, Baptiste Jonglez wrote:
> Hi,
> 
> I am packaging a new kernel module (wireguard), the package is currently here 
> [1].
> 
> However, I have some trouble understanding what KCONFIG does.  Wireguard
> needs a few kernel options, so I thought that KCONFIG was the place to
> declare such dependencies:
> 
>   
> https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile#L90
> 
> However, it does not seem to enable these options.  The module compiles
> fine, it installs fine [2], but then it fails to load at runtime:
> 
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.015838] wireguard: Unknown 
> symbol udp_sock_create4 (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.022021] wireguard: Unknown 
> symbol udp_tunnel6_xmit_skb (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.028767] wireguard: Unknown 
> symbol udp_tunnel_sock_release (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.035570] wireguard: Unknown 
> symbol setup_udp_tunnel_sock (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.042136] wireguard: Unknown 
> symbol udp_sock_create6 (err 0)
> Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.048297] wireguard: Unknown 
> symbol udp_tunnel_xmit_skb (err 0)
> 
> It works when selecting the needed options manually in kernel_menuconfig,
> but it's a huge pain.
> 
> Is there a way to get the needed kernel options automatically?  Maybe this
> only happens for packages that are part of the core Lede distribution?
> 
> Thanks,
> Baptiste
> 
> [1] https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile
> [2] http://paste.aliens-lyon.fr/CBI
> 
> 

Hi,

wireguard depends on other moduls so you will need to package them aswell.

CONFIG_NET_UDP_TUNNEL will create ip6_udp_tunnel.ko which for example
has udp_tunnel6_xmit_skb inside it.

once all of these are packaged you can make wireguard depend on them.

John

> 
> ___
> Lede-dev mailing list
> Lede-dev@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
> 

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] Kernel symbol dependencies and KCONFIG usage for kernel packages

2016-07-02 Thread Baptiste Jonglez
Hi,

I am packaging a new kernel module (wireguard), the package is currently here 
[1].

However, I have some trouble understanding what KCONFIG does.  Wireguard
needs a few kernel options, so I thought that KCONFIG was the place to
declare such dependencies:

  https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile#L90

However, it does not seem to enable these options.  The module compiles
fine, it installs fine [2], but then it fails to load at runtime:

Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.015838] wireguard: Unknown 
symbol udp_sock_create4 (err 0)
Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.022021] wireguard: Unknown 
symbol udp_tunnel6_xmit_skb (err 0)
Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.028767] wireguard: Unknown 
symbol udp_tunnel_sock_release (err 0)
Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.035570] wireguard: Unknown 
symbol setup_udp_tunnel_sock (err 0)
Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.042136] wireguard: Unknown 
symbol udp_sock_create6 (err 0)
Sat Jul  2 10:04:50 2016 kern.warn kernel: [   95.048297] wireguard: Unknown 
symbol udp_tunnel_xmit_skb (err 0)

It works when selecting the needed options manually in kernel_menuconfig,
but it's a huge pain.

Is there a way to get the needed kernel options automatically?  Maybe this
only happens for packages that are part of the core Lede distribution?

Thanks,
Baptiste

[1] https://github.com/zorun/packages-1/blob/wireguard/net/wireguard/Makefile
[2] http://paste.aliens-lyon.fr/CBI


signature.asc
Description: PGP signature
___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH web] docs: fix rpcd page header syntax

2016-07-02 Thread Rafał Miłecki
Signed-off-by: Rafał Miłecki 
---
 docs/rpcd.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/rpcd.txt b/docs/rpcd.txt
index 211..3756ee3 100644
--- a/docs/rpcd.txt
+++ b/docs/rpcd.txt
@@ -1,7 +1,7 @@
 ---
 ---
 RPC daemon
-
+==
 
 == RPC daemon
 
-- 
1.8.4.5


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev