[OpenWrt-Devel] /sys/class/ieee80211 is empty on the allwinner bananna pu

2014-10-21 Thread Derek Werthmuller
Working trying to understand why one USB wifi card wiil work while another
will not.  Both wifi drivers are present.
lsmod shows the drivers loaded but no device is created and the entry in
/sys/class/ieee80211 is empty.

Don't see an entry on /sys/devices either.
CHAOS CALMER (Bleeding Edge, r43010)
 -
 -
root@OpenWrt:~# lsmod |grep rtl
cfg80211  222019  2 rtlwifi
compat  1370  4 rtl8192cu
mac80211  366364  3 rtl8192cu
rtl8192c_common32945  1 rtl8192cu
rtl8192cu  58333  0
rtl_usb 8131  1 rtl8192cu
rtlwifi47470  3 rtl8192cu
root@OpenWrt:~# wifi

Any direction would be appreciated.
Cheers
 Derek
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] 6in4: https support for he.net tunnel api

2014-10-21 Thread Andrew Skalski
HE.net tunnel update API requests are now made via https if an
SSL-capable wget is installed.  Certificate validation is
conditionally enabled if the CA certs are available.

Signed-off-by: Andrew Skalski 
---
 package/network/ipv6/6in4/files/6in4.sh | 13 +++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/package/network/ipv6/6in4/files/6in4.sh 
b/package/network/ipv6/6in4/files/6in4.sh
index 714d629..7ffd40d 100755
--- a/package/network/ipv6/6in4/files/6in4.sh
+++ b/package/network/ipv6/6in4/files/6in4.sh
@@ -66,12 +66,21 @@ proto_6in4_setup() {
[ -n "$tunnelid" -a -n "$username" -a \( -n "$password" -o -n 
"$updatekey" \) ] && {
[ -n "$updatekey" ] && password="$updatekey"
 
-   local 
url="http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid";
+   local http="http"
+   local wget_opts="-qO/dev/null"
+   if wget --version | grep -qF "+https"; then
+   http="https"
+   [ -z "$(find ${SSL_CERT_DIR-/etc/ssl/certs} -name "*.0" 
2>/dev/null)" ] && {
+   wget_opts="$wget_opts --no-check-certificate"
+   }
+   fi
+
+   local 
url="$http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid";
local try=0
local max=3
 
while [ $((++try)) -le $max ]; do
-   ( exec wget -qO/dev/null "$url" 2>/dev/null ) &
+   ( exec wget $wget_opts "$url" 2>/dev/null ) &
local pid=$!
( sleep 5; kill $pid 2>/dev/null ) &
wait $pid && break
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] 6in4: https support for he.net tunnel api

2014-10-21 Thread Andrew Skalski
HE.net tunnel update API requests are now made via https if an
SSL-capable wget is installed.  Certificate validation is
conditionally enabled if the CA certs are available.
---
 package/network/ipv6/6in4/files/6in4.sh | 13 +++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/package/network/ipv6/6in4/files/6in4.sh 
b/package/network/ipv6/6in4/files/6in4.sh
index 714d629..7ffd40d 100755
--- a/package/network/ipv6/6in4/files/6in4.sh
+++ b/package/network/ipv6/6in4/files/6in4.sh
@@ -66,12 +66,21 @@ proto_6in4_setup() {
[ -n "$tunnelid" -a -n "$username" -a \( -n "$password" -o -n 
"$updatekey" \) ] && {
[ -n "$updatekey" ] && password="$updatekey"
 
-   local 
url="http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid";
+   local http="http"
+   local wget_opts="-qO/dev/null"
+   if wget --version | grep -qF "+https"; then
+   http="https"
+   [ -z "$(find ${SSL_CERT_DIR-/etc/ssl/certs} -name "*.0" 
2>/dev/null)" ] && {
+   wget_opts="$wget_opts --no-check-certificate"
+   }
+   fi
+
+   local 
url="$http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid";
local try=0
local max=3
 
while [ $((++try)) -le $max ]; do
-   ( exec wget -qO/dev/null "$url" 2>/dev/null ) &
+   ( exec wget $wget_opts "$url" 2>/dev/null ) &
local pid=$!
( sleep 5; kill $pid 2>/dev/null ) &
wait $pid && break
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] gemini: add basic nas4220 board support

2014-10-21 Thread Roman Yeryomin
Few notes:
- redboot partitions are unusable
- redboot declares only 16M of RAM, hence the mem arg in cmdline and separate 
kernel config
- boots fine but only ethernet works for now
- split wiliboard and raidsonic boards into different subtargets

Signed-off-by: Roman Yeryomin 
---
 target/linux/gemini/Makefile   |  1 +
 target/linux/gemini/image/ImageInfo-ib4220 | 19 ++
 target/linux/gemini/image/Makefile | 32 --
 target/linux/gemini/raidsonic/config-3.10  |  5 +
 target/linux/gemini/raidsonic/target.mk| 11 ++
 target/linux/gemini/wiligear/target.mk | 10 ++
 6 files changed, 76 insertions(+), 2 deletions(-)
 create mode 100644 target/linux/gemini/image/ImageInfo-ib4220
 create mode 100644 target/linux/gemini/raidsonic/config-3.10
 create mode 100644 target/linux/gemini/raidsonic/target.mk
 create mode 100644 target/linux/gemini/wiligear/target.mk

diff --git a/target/linux/gemini/Makefile b/target/linux/gemini/Makefile
index 45ae97e..82338f4 100644
--- a/target/linux/gemini/Makefile
+++ b/target/linux/gemini/Makefile
@@ -9,6 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=arm
 BOARD:=gemini
 BOARDNAME:=Cortina Systems CS351x
+SUBTARGETS:=raidsonic wiligear
 FEATURES:=squashfs pci
 CPU_TYPE:=fa526
 MAINTAINER:=Imre Kaloz 
diff --git a/target/linux/gemini/image/ImageInfo-ib4220 
b/target/linux/gemini/image/ImageInfo-ib4220
new file mode 100644
index 000..68fca5b
--- /dev/null
+++ b/target/linux/gemini/image/ImageInfo-ib4220
@@ -0,0 +1,19 @@
+Distribution="OpenWrt"
+Layout="Compact"
+UpgradeImages="zImage rd.gz hddapp.tgz"
+productName="IB-NAS4220-B"
+hardwareName="MP-LNU23SL"
+productVendor="   "
+VendorID="macpower"
+ProductID="pddlan"
+UpgradeVersion="300"
+ExtraVersion=""
+manufacturerURL="   "
+Description="IB-NAS4220-B"
+hostname="IB-NAS4220-B"
+softwareVersion="3.0"
+TSS="enabled"
+DIRECT_MODE="disabled"
+Raid_Support="raid0_raid1_raid5_linear"
+RaidTestDiskSize="0"
+Raid_Show_Disk="2"
diff --git a/target/linux/gemini/image/Makefile 
b/target/linux/gemini/image/Makefile
index 85da888..d4d0aac 100644
--- a/target/linux/gemini/image/Makefile
+++ b/target/linux/gemini/image/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2009-2010 OpenWrt.org
+# Copyright (C) 2009-2014 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -7,6 +7,7 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
+ifeq ($(SUBTARGET),wiligear)
 define Image/Prepare
 # WBD111: mach id 1690 (0x69a)
echo -en "\x06\x1c\xa0\xe3\x9a\x10\x81\xe3" > 
$(KDIR)/$(IMG_PREFIX)-wbd111-zImage
@@ -15,7 +16,17 @@ define Image/Prepare
echo -en "\x0a\x1c\xa0\xe3\xc1\x10\x81\xe3" > 
$(KDIR)/$(IMG_PREFIX)-wbd222-zImage
cat $(KDIR)/zImage >> $(KDIR)/$(IMG_PREFIX)-wbd222-zImage
 endef
+endif
 
+ifeq ($(SUBTARGET),raidsonic)
+define Image/Prepare
+# NAS4220: mach id 2038 (0x7F6)
+   echo -en "\x07\x1c\xa0\xe3\xf6\x10\x81\xe3" > 
$(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage
+   cat $(KDIR)/zImage >> $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage
+endef
+endif
+
+ifeq ($(SUBTARGET),wiligear)
 define Image/BuildKernel
 # workaround the bootloader's bug with extra nops
echo -en 
"\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1" > 
$(BIN_DIR)/$(IMG_PREFIX)-wbd111-zImage
@@ -23,6 +34,7 @@ define Image/BuildKernel
echo -en 
"\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1" > 
$(BIN_DIR)/$(IMG_PREFIX)-wbd222-zImage
cat $(KDIR)/$(IMG_PREFIX)-wbd222-zImage >> 
$(BIN_DIR)/$(IMG_PREFIX)-wbd222-zImage
 endef
+endif
 
 define Image/Build/jffs2-64k
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=64k 
conv=sync
@@ -37,9 +49,9 @@ define Image/Build/squashfs
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=128k 
conv=sync
 endef
 
+ifeq ($(SUBTARGET),wiligear)
 define Image/Build
$(call Image/Build/$(1),$(1))
-
-$(STAGING_DIR_HOST)/bin/mkfwimage2 \
-m GEOS -f 0x3000 -z \
-v WILI-S.WILIBOARD.v5.00.SL3512.OpenWrt.0.00.00 \
@@ -54,5 +66,21 @@ define Image/Build
-p 
Kernel:0x02:0x10:0:0:$(BIN_DIR)/$(IMG_PREFIX)-wbd222-zImage \
-p 
Ramdisk:0x12:0x50:0:0:$(BIN_DIR)/$(IMG_PREFIX)-$(1).img
 endef
+endif
+
+ifeq ($(SUBTARGET),raidsonic)
+define Image/Build
+   $(call Image/Build/$(1),$(1))
+   dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/rd.gz bs=6M 
count=1
+#  dd if=/dev/zero of=$(BIN_DIR)/hddapp.tgz bs=6M count=1
+   dd if=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img of=$(BIN_DIR)/hddapp.tgz bs=6M 
count=1 seek=1
+   cp $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage $(BIN_DIR)/zImage
+   cp ./ImageInfo-ib4220 $(BIN_DIR)/ImageInfo
+   (cd $(BIN_DIR); tar -czf sysupgrade-ib4220.tar.gz ImageInfo zImage 
rd.gz hddapp.tgz)
+   mv $(BIN_DIR)/rd.gz $(BIN_DIR

Re: [OpenWrt-Devel] lantiq vr9 and fxs

2014-10-21 Thread Eddi De Pieri
I've managed to get FXS working on my vgv7519 vr9 router using
asterisk-chan-lantiq.

busy/free tone ok
chan-lantiq to sip ok
sip to chan-lantiq to test.

I need to do some other tests before start to release code for BB...

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


Re: [OpenWrt-Devel] generate list of license information for packages

2014-10-21 Thread thomas.langer
Okay, will send an updated patch tomorrow.

Best Regards,
Thomas
---
There are two hard things in computer science: cache invalidation, naming 
things, and off-by-one errors.
---

> -Original Message-
> From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org]
> On Behalf Of John Crispin
> Sent: Tuesday, October 21, 2014 9:52 PM
> To: openwrt-devel@lists.openwrt.org
> Subject: Re: [OpenWrt-Devel] generate list of license information for
> packages
> 
> Hi Thomas,
> 
> i knew before trying, but i tried anyway
> 
> 
> Applying: generate list of license information for packages
> fatal: sha1 information is lacking or useless (include/package-dumpinfo.mk).
> Repository lacks necessary blobs to fall back on 3-way merge.
> Cannot fall back to three-way merge.
> Patch failed at 0001 generate list of license information for packages
> When you have resolved this problem run "git am --resolved".
> If you would prefer to skip this patch, instead run "git am --skip".
> To restore the original branch and stop patching run "git am --abort".
> applying 6516 FAILED
> 
> please send a fixed version that is generate against trunk
> 
> John
> 
> 
> 
> 
> On 21/10/2014 21:46, thomas.lan...@lantiq.com wrote:
> > From: Thomas Langer 
> >
> > Many packages define already metadata about their license
> (PKG_LICENSE),
> > but this is only included in the ipk files.
> >
> > This change allows to create the information also on the build-host,
> > to get an overview on the used licenses.
> > In the full list, also all packages without this info are shown.
> >
> > Signed-off-by: Thomas Langer 
> > ---
> > This patch is created against BB, but should also be applicable for trunk.
> >
> > diff --git a/include/package-dumpinfo.mk b/include/package-dumpinfo.mk
> > --- a/include/package-dumpinfo.mk
> > +++ b/include/package-dumpinfo.mk
> > @@ -43,7 +43,9 @@ Category: $(CATEGORY)
> >  Title: $(TITLE)
> >  Maintainer: $(MAINTAINER)
> >  Source: $(PKG_SOURCE)
> > -Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if
> $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
> > +$(if $(PKG_LICENSE),License: $(PKG_LICENSE)
> > +)$(if $(PKG_LICENSE_FILES),LicenseFiles: $(PKG_LICENSE_FILES)
> > +)Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if
> $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
> >  $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
> >  )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
> >  )$(if $(HIDDEN),Hidden: $(HIDDEN)
> > diff --git a/scripts/metadata.pl b/scripts/metadata.pl
> > --- a/scripts/metadata.pl
> > +++ b/scripts/metadata.pl
> > @@ -858,6 +858,28 @@ sub gen_package_feeds() {
> > }
> >  }
> >
> > +sub gen_package_license($) {
> > +   my $level = shift;
> > +   parse_package_metadata($ARGV[0]) or exit 1;
> > +   foreach my $name (sort {uc($a) cmp uc($b)} keys %package) {
> > +   my $pkg = $package{$name};
> > +   if ($pkg->{name}) {
> > +   if ($pkg->{license}) {
> > +   print "$pkg->{name}: ";
> > +   print "$pkg->{license}\n";
> > +   if ($pkg->{licensefiles} && $level == 0) {
> > +   print "\tFiles: $pkg->{licensefiles}\n";
> > +   }
> > +   } else {
> > +   if ($level == 1) {
> > +   print "$pkg->{name}: Missing license!
> ";
> > +   print "Please fix $pkg->{makefile}\n";
> > +   }
> > +   }
> > +   }
> > +   }
> > +}
> > +
> >  sub parse_command() {
> > my $cmd = shift @ARGV;
> > for ($cmd) {
> > @@ -867,6 +889,8 @@ sub parse_command() {
> > /^kconfig/ and return gen_kconfig_overrides();
> > /^package_source$/ and return gen_package_source();
> > /^package_feeds$/ and return gen_package_feeds();
> > +   /^package_license$/ and return gen_package_license(0);
> > +   /^package_licensefull$/ and return gen_package_license(1);
> > }
> > print < >  Available Commands:
> > @@ -876,6 +900,8 @@ Available Commands:
> > $0 kconfig [file] [config]  Kernel config overrides
> > $0 package_source [file]Package source file information
> > $0 package_feeds [file] Package feed information in
> makefile format
> > +   $0 package_license [file]   Package license information
> > +   $0 package_licensefull [file]   Package license information (full list)
> >
> >  EOF
> >  }
> > diff --git a/scripts/metadata.pm b/scripts/metadata.pm
> > --- a/scripts/metadata.pm
> > +++ b/scripts/metadata.pm
> > @@ -97,6 +97,8 @@ sub parse_package_metadata($) {
> > /^Submenu: \s*(.+)\s*$/ and $pkg->{submenu} = $1;
> > /^Submenu-Depends: \s*(.+)\s*$/ and $pkg-
> >{submenudep} = $1;
> > /^Source: \s*(.+)\s*$/ and $pkg->{source} = $1;
> > +   /^License: \s*(.+)\s*$/ and $pkg->{license} = $1;

Re: [OpenWrt-Devel] generate list of license information for packages

2014-10-21 Thread John Crispin
Hi Thomas,

i knew before trying, but i tried anyway


Applying: generate list of license information for packages
fatal: sha1 information is lacking or useless (include/package-dumpinfo.mk).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 generate list of license information for packages
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".
applying 6516 FAILED

please send a fixed version that is generate against trunk

John




On 21/10/2014 21:46, thomas.lan...@lantiq.com wrote:
> From: Thomas Langer 
>
> Many packages define already metadata about their license (PKG_LICENSE),
> but this is only included in the ipk files.
>
> This change allows to create the information also on the build-host,
> to get an overview on the used licenses.
> In the full list, also all packages without this info are shown.
>
> Signed-off-by: Thomas Langer 
> ---
> This patch is created against BB, but should also be applicable for trunk.
>
> diff --git a/include/package-dumpinfo.mk b/include/package-dumpinfo.mk
> --- a/include/package-dumpinfo.mk
> +++ b/include/package-dumpinfo.mk
> @@ -43,7 +43,9 @@ Category: $(CATEGORY)
>  Title: $(TITLE)
>  Maintainer: $(MAINTAINER)
>  Source: $(PKG_SOURCE)
> -Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if 
> $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
> +$(if $(PKG_LICENSE),License: $(PKG_LICENSE)
> +)$(if $(PKG_LICENSE_FILES),LicenseFiles: $(PKG_LICENSE_FILES)
> +)Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if 
> $(PKG_TARGETS),$(PKG_TARGETS),ipkg))
>  $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
>  )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
>  )$(if $(HIDDEN),Hidden: $(HIDDEN)
> diff --git a/scripts/metadata.pl b/scripts/metadata.pl
> --- a/scripts/metadata.pl
> +++ b/scripts/metadata.pl
> @@ -858,6 +858,28 @@ sub gen_package_feeds() {
>   }
>  }
>  
> +sub gen_package_license($) {
> + my $level = shift;
> + parse_package_metadata($ARGV[0]) or exit 1;
> + foreach my $name (sort {uc($a) cmp uc($b)} keys %package) {
> + my $pkg = $package{$name};
> + if ($pkg->{name}) {
> + if ($pkg->{license}) {
> + print "$pkg->{name}: ";
> + print "$pkg->{license}\n";
> + if ($pkg->{licensefiles} && $level == 0) {
> + print "\tFiles: $pkg->{licensefiles}\n";
> + }
> + } else {
> + if ($level == 1) {
> + print "$pkg->{name}: Missing license! ";
> + print "Please fix $pkg->{makefile}\n";
> + }
> + }
> + }
> + }
> +}
> +
>  sub parse_command() {
>   my $cmd = shift @ARGV;
>   for ($cmd) {
> @@ -867,6 +889,8 @@ sub parse_command() {
>   /^kconfig/ and return gen_kconfig_overrides();
>   /^package_source$/ and return gen_package_source();
>   /^package_feeds$/ and return gen_package_feeds();
> + /^package_license$/ and return gen_package_license(0);
> + /^package_licensefull$/ and return gen_package_license(1);
>   }
>   print <  Available Commands:
> @@ -876,6 +900,8 @@ Available Commands:
>   $0 kconfig [file] [config]  Kernel config overrides
>   $0 package_source [file]Package source file information
>   $0 package_feeds [file] Package feed information in makefile 
> format
> + $0 package_license [file]   Package license information
> + $0 package_licensefull [file]   Package license information (full list)
>  
>  EOF
>  }
> diff --git a/scripts/metadata.pm b/scripts/metadata.pm
> --- a/scripts/metadata.pm
> +++ b/scripts/metadata.pm
> @@ -97,6 +97,8 @@ sub parse_package_metadata($) {
>   /^Submenu: \s*(.+)\s*$/ and $pkg->{submenu} = $1;
>   /^Submenu-Depends: \s*(.+)\s*$/ and $pkg->{submenudep} = $1;
>   /^Source: \s*(.+)\s*$/ and $pkg->{source} = $1;
> + /^License: \s*(.+)\s*$/ and $pkg->{license} = $1;
> + /^LicenseFiles: \s*(.+)\s*$/ and $pkg->{licensefiles} = $1;
>   /^Default: \s*(.+)\s*$/ and $pkg->{default} = $1;
>   /^Provides: \s*(.+)\s*$/ and do {
>   my @vpkg = split /\s+/, $1;
> ___
> 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


[OpenWrt-Devel] generate list of license information for packages

2014-10-21 Thread thomas.langer
From: Thomas Langer 

Many packages define already metadata about their license (PKG_LICENSE),
but this is only included in the ipk files.

This change allows to create the information also on the build-host,
to get an overview on the used licenses.
In the full list, also all packages without this info are shown.

Signed-off-by: Thomas Langer 
---
This patch is created against BB, but should also be applicable for trunk.

diff --git a/include/package-dumpinfo.mk b/include/package-dumpinfo.mk
--- a/include/package-dumpinfo.mk
+++ b/include/package-dumpinfo.mk
@@ -43,7 +43,9 @@ Category: $(CATEGORY)
 Title: $(TITLE)
 Maintainer: $(MAINTAINER)
 Source: $(PKG_SOURCE)
-Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if 
$(PKG_TARGETS),$(PKG_TARGETS),ipkg))
+$(if $(PKG_LICENSE),License: $(PKG_LICENSE)
+)$(if $(PKG_LICENSE_FILES),LicenseFiles: $(PKG_LICENSE_FILES)
+)Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if 
$(PKG_TARGETS),$(PKG_TARGETS),ipkg))
 $(if $(KCONFIG),Kernel-Config: $(KCONFIG)
 )$(if $(BUILDONLY),Build-Only: $(BUILDONLY)
 )$(if $(HIDDEN),Hidden: $(HIDDEN)
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -858,6 +858,28 @@ sub gen_package_feeds() {
}
 }
 
+sub gen_package_license($) {
+   my $level = shift;
+   parse_package_metadata($ARGV[0]) or exit 1;
+   foreach my $name (sort {uc($a) cmp uc($b)} keys %package) {
+   my $pkg = $package{$name};
+   if ($pkg->{name}) {
+   if ($pkg->{license}) {
+   print "$pkg->{name}: ";
+   print "$pkg->{license}\n";
+   if ($pkg->{licensefiles} && $level == 0) {
+   print "\tFiles: $pkg->{licensefiles}\n";
+   }
+   } else {
+   if ($level == 1) {
+   print "$pkg->{name}: Missing license! ";
+   print "Please fix $pkg->{makefile}\n";
+   }
+   }
+   }
+   }
+}
+
 sub parse_command() {
my $cmd = shift @ARGV;
for ($cmd) {
@@ -867,6 +889,8 @@ sub parse_command() {
/^kconfig/ and return gen_kconfig_overrides();
/^package_source$/ and return gen_package_source();
/^package_feeds$/ and return gen_package_feeds();
+   /^package_license$/ and return gen_package_license(0);
+   /^package_licensefull$/ and return gen_package_license(1);
}
print <{submenu} = $1;
/^Submenu-Depends: \s*(.+)\s*$/ and $pkg->{submenudep} = $1;
/^Source: \s*(.+)\s*$/ and $pkg->{source} = $1;
+   /^License: \s*(.+)\s*$/ and $pkg->{license} = $1;
+   /^LicenseFiles: \s*(.+)\s*$/ and $pkg->{licensefiles} = $1;
/^Default: \s*(.+)\s*$/ and $pkg->{default} = $1;
/^Provides: \s*(.+)\s*$/ and do {
my @vpkg = split /\s+/, $1;
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [package] 6in4: https support for he.net tunnel api

2014-10-21 Thread Andrew Skalski
HE.net tunnel update API requests are now made via https if an
SSL-capable wget is installed.  Certificate validation is conditionally
enabled if the CA certs are available.

Signed-off-by: Andrew Skalski 
---
diff --git a/package/network/ipv6/6in4/files/6in4.sh
b/package/network/ipv6/6in4/files/6in4.sh
index 714d629..7ffd40d 100755
--- a/package/network/ipv6/6in4/files/6in4.sh
+++ b/package/network/ipv6/6in4/files/6in4.sh
@@ -66,12 +66,21 @@ proto_6in4_setup() {
 [ -n "$tunnelid" -a -n "$username" -a \( -n "$password" -o -n
"$updatekey" \) ] && {
 [ -n "$updatekey" ] && password="$updatekey"

-local 
url="http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid";
+local http="http"
+local wget_opts="-qO/dev/null"
+if wget --version | grep -qF "+https"; then
+http="https"
+[ -z "$(find ${SSL_CERT_DIR-/etc/ssl/certs} -name "*.0"
2>/dev/null)" ] && {
+wget_opts="$wget_opts --no-check-certificate"
+}
+fi
+
+local 
url="$http://ipv4.tunnelbroker.net/nic/update?username=$username&password=$password&hostname=$tunnelid";
 local try=0
 local max=3

 while [ $((++try)) -le $max ]; do
-( exec wget -qO/dev/null "$url" 2>/dev/null ) &
+( exec wget $wget_opts "$url" 2>/dev/null ) &
 local pid=$!
 ( sleep 5; kill $pid 2>/dev/null ) &
 wait $pid && break
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Fwd: Re: P-2812HNU-FX: next steps...

2014-10-21 Thread Owen Brotherwood


Hi
I have now received a cable, and losing my hair:)
I will try and make 1 of the 4 boxes I have available via internet if
anyone wants to try to Free the P-2812HNU-FX for ordinary users.

I continue with a hair transplant

br Owen (oxo)

On 10/15/2014 06:57 PM, John Crispin wrote:

On 15/10/2014 17:55, Owen Brotherwood wrote:

Hi

We are a few @ https://forum.openwrt.org/viewtopic.php?id=53127 who
would like to use P-2812HNU-F1 with OpenWrt but are slightly unsure as
how to proceed.
Best practise to upload one of the versions available.
Is WiFi working
Any hints would be appreciated, then I will do some more work on Wiki
@ http://wiki.openwrt.org/toh/zyxel/p2812hnu-f1


i actually have one of these in my collection. last time i booted it i
could not figure out how to flash the unit. imho the best starting point
is to add info to the wiki on how to flash the unit. i am sure that info
is hidden in the forum somewhere.



p2812hnu-f1is the standard router supplied from one of Denmarks fiber
supplier in the center of denmark,
http://www.energimidt.dk/privat/waoo-fibernet/sider/waoo-fibernet.aspx, and
it would be "nice" to allow freedom for it.

br Owen (oxo)
___
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

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


Re: [OpenWrt-Devel] omap4 / Pandaboard / Pandaboard-ES / Kernel 3.14.22

2014-10-21 Thread Bastian Bittorf
* Weimarnetz e.V., Vorstand/Vereinsvorsitzender: Bastian Bittorf 
 [27.03.2014 15:53]:
> http://www.intercity-vpn.de/files/openwrt/pandaboard_dmesg_booterror-kernel_3.14-rc8-new_uboot.txt

today i tried kernel 3.14.22 without luck, this is the bootlog which just hangs.
Has somebody OpenWrt running on an older Pandaboard?

bye, bastian

dmesg:

OMAP4460 ES1.1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img

U-Boot SPL 2014.10 (Oct 21 2014 - 05:19:28)
OMAP4460 ES1.1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img


U-Boot 2014.10 (Oct 21 2014 - 05:19:28)

CPU  : OMAP4460 ES1.1
Board: OMAP4 Panda
I2C:   ready
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0
Using default environment

Net:   No ethernet found.
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
1885608 bytes read in 98 ms (18.3 MiB/s)
50533 bytes read in 19 ms (2.5 MiB/s)
Booting from mmc0 ...
Kernel image @ 0x8200 [ 0x00 - 0x1cc5a8 ]
## Flattened Device Tree blob at 8800
   Booting using the fdt blob at 0x8800
   Loading Device Tree to 8fff, end 8564 ... OK

Starting kernel ...

[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 3.14.22 (auto...@bittorf-wireless.de) (gcc version 
4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r43008) )#1 SMP Tue Oct 21 06:11:23 EDT 
2014
[0.00] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
[0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[0.00] Machine model: TI OMAP4 PandaBoard
[0.00] Memory policy: Data cache writealloc
[0.00] OMAP4460 ES1.1
[0.00] PERCPU: Embedded 7 pages/cpu @eefcb000 s8064 r8192 d12416 u32768
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 260368
[0.00] Kernel command line: console=ttyO2,115200n8 vram=16M 
root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
[0.00] PID hash table entries: 4096 (order: 2, 16384 bytes)
[0.00] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[0.00] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[0.00] Memory: 1032560K/1047552K available (3799K kernel code, 309K 
rwdata, 1140K rodata, 267K init, 229K bss, 14992K reserved, 269312K highmem)
[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
[0.00] vmalloc : 0xf000 - 0xff00   ( 240 MB)
[0.00] lowmem  : 0xc000 - 0xef80   ( 760 MB)
[0.00] pkmap   : 0xbfe0 - 0xc000   (   2 MB)
[0.00] modules : 0xbf00 - 0xbfe0   (  14 MB)
[0.00]   .text : 0xc0008000 - 0xc04daf1c   (4940 kB)
[0.00]   .init : 0xc04db000 - 0xc051df80   ( 268 kB)
[0.00]   .data : 0xc051e000 - 0xc056b528   ( 310 kB)
[0.00].bss : 0xc056b528 - 0xc05a4c78   ( 230 kB)
[0.00] Hierarchical RCU implementation.
[0.00]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[0.00] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[0.00] NR_IRQS:16 nr_irqs:16 16
[0.00] ti_dt_clocks_register: failed to lookup clock node bandgap_fclk
[0.00] OMAP clockevent source: timer1 at 32768 Hz
[0.00] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 
655360ns
[0.30] OMAP clocksource: 32k_counter at 32768 Hz
[0.000122] smp_twd: clock not found -2
[0.000946] Console: colour dummy device 80x30
[0.000976] Calibrating local timer... 349.05MHz.
[0.059387] Calibrating delay loop... 1391.00 BogoMIPS (lpj=6955008)
[0.099304] pid_max: default: 32768 minimum: 301
[0.099487] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.099517] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.110748] CPU: Testing write buffer coherency: ok
[0.111053] CPU0: thread -1, cpu 0, socket 0, mpidr 8000
[0.111083] Setting up static identity map for 0x80013220 - 0x80013278
[0.111206] L310 cache controller enabled
[0.111206] l2x0: 16 ways, CACHE_ID 0x41c7, AUX_CTRL 0x7e47, Cache 
size: 1024 kB
[0.112426] CPU1: Booted secondary processor
[0.149139] CPU1: thread -1, cpu 1, socket 0, mpidr 8001
[0.149261] Brought up 2 CPUs
[0.149261] SMP: Total of 2 processors activated.
[0.149291] CPU: All CPU(s) started in SVC mode.
[0.152832] VFP support v0.3: implementor 41 architecture 3 part 30 variant 
9 rev 4
[0.154083] omap_hwmod: l3_main_3 using broken dt data from ocp
[0.155181] omap_hwmod: l3_main_2 using bro

Re: [OpenWrt-Devel] [PATCH 4/4] firmware-utils: restore compilation of mkhilinkfw.

2014-10-21 Thread Yousong Zhou
Hi, John, Felix

On 20 October 2014 17:24, Yousong Zhou  wrote:
> Hi, Felix
>
> On 20 October 2014 16:28, Felix Fietkau  wrote:
>> On 2014-10-17 11:58, Yousong Zhou wrote:
>>> diff --git a/tools/Makefile b/tools/Makefile
>>> index 5629251..9879be1 100644
>>> --- a/tools/Makefile
>>> +++ b/tools/Makefile
>>> @@ -72,6 +72,7 @@ $(curdir)/b43-tools/compile := $(curdir)/bison/install
>>>  $(curdir)/padjffs2/compile := $(curdir)/findutils/install
>>>  $(curdir)/cloog/compile := $(curdir)/ppl/install
>>>  $(curdir)/bc/compile := $(curdir)/bison/install
>>> +$(curdir)/firmware-utils/compile := package/openssl/host/install
>>>
>>>  ifneq ($(CONFIG_CCACHE),)
>>>  $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += 
>>> $(curdir)/ccache/install))
>> This is wrong, stuff from tools/ must not depend on anything from package/
>
> Sorry.  I am not aware of that.  Can you elaborate on this?  Thanks.

Just checked with the commit history and saw that the patch for adding
host build of openssl was reverted, but later a patch for fixing host
build error when ccache is enabled was committed.  Hmm, you may want
to check further on that.  And sorry for the inconvenience caused.

Regards.

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


Re: [OpenWrt-Devel] [PATCH 1/1] [kernel] ar71xx: reset problem fix

2014-10-21 Thread Michael Uray
John,

I have tried to use your recommended macro but it did not work.
Please see comment #70 for details: 
https://dev.openwrt.org/ticket/17839#comment:70

The patch should be then fine so far as I can see, I just corrected the 
comments.

Michael

---
This patch fixes the reset bug on the ar71xx platform.

The reboot command causes sometimes hanging routers with TL-WDR3600 (HW V1.5) 
and TL-WDR4300 (HW V1.7) platforms and probably also on other devices.

Sometimes a reboot is successful, sometimes not and a power cycle of the device 
is required.
This patch runs an endless loop when the mask for the FULL_CHIP_RESET gets set, 
the write to the reset register is done and waits then until the CPU reboots.

There is also a ticket #17839 to this bug.
https://dev.openwrt.org/ticket/17839

Signed-off-by: Michael Uray 

---
--- a/arch/mips/ath79/common.c
+++ b/arch/mips/ath79/common.c
@@ -83,6 +83,8 @@ void ath79_device_reset_set(u32 mask)
spin_lock_irqsave(&ath79_device_reset_lock, flags);
t = ath79_reset_rr(reg);
ath79_reset_wr(reg, t | mask);
+   if (mask == AR71XX_RESET_FULL_CHIP)
+for (;;);
spin_unlock_irqrestore(&ath79_device_reset_lock, flags);  }  
EXPORT_SYMBOL_GPL(ath79_device_reset_set);



-Ursprüngliche Nachricht-
Von: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] Im Auftrag 
von John Crispin
Gesendet: Samstag, 18. Oktober 2014 07:37
An: openwrt-devel@lists.openwrt.org
Betreff: Re: [OpenWrt-Devel] [PATCH 1/1] [kernel] ar71xx: reset problem fix


On 18/10/2014 00:10, Michael Uray wrote:
> This patch fixes the reset bug on the ar71xx platform.
>
> The reboot command causes sometimes hanging routers with TL-WDR3600 (HW V1.5) 
> and TL-WDR4300 (HW V1.7) platforms and probably also on other devices.
>
> Sometimes a reboot is successful, sometimes not and a power cycle of the 
> device is required.
> This patch runs an endless loop after the interrupts get disabled and the 
> FULL_CHIP_RESET gets set and waits then until the CPU reboots.
Hi,

the code does not set the FULL_CHIP_RESET but checks whether it is set.
also please look at the unreachable() macro instead of using a endless loop

John



>
> There is also a ticket #17839 to this bug.
> https://dev.openwrt.org/ticket/17839
>
> Signed-off-by: Michael Uray 
>
> I am not subscribed to the mailing list, so please put me on CC if you answer.
>
> ---
> --- a/arch/mips/ath79/common.c
> +++ b/arch/mips/ath79/common.c
> @@ -83,6 +83,8 @@ void ath79_device_reset_set(u32 mask)
> spin_lock_irqsave(&ath79_device_reset_lock, flags);
> t = ath79_reset_rr(reg);
> ath79_reset_wr(reg, t | mask);
> +   if (mask == AR71XX_RESET_FULL_CHIP)
> +for (;;);
> spin_unlock_irqrestore(&ath79_device_reset_lock, flags);  }  
> EXPORT_SYMBOL_GPL(ath79_device_reset_set);
> ___
> 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
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Minicom - wrong Download

2014-10-21 Thread smilebef
Hallo,


i build for RaspberryPi brcm2708

i have done ./scipts/feed update

ah, and the message has changed to:

/home/OpenWRT/14.07-rc1/openwrt/include/shell.sh; gzip
-dc /home/OpenWRT/14.07-rc1/openwrt/dl/minicom-2.3.tar.gz
| /bin/tar
-C 
/home/OpenWRT/14.07-rc1/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/minicom-2.3/..
-xf - 
Applying ./patches/100-fix_iconv_include.patch using plaintext: 
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|--- a/src/minicom.c
|+++ b/src/minicom.c
--
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Patch failed!  Please fix ./patches/100-fix_iconv_include.patch!



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


Re: [OpenWrt-Devel] Minicom - wrong Download

2014-10-21 Thread Jiří Šlachta
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I have checked the latest trunk and the minicom package is 
fully compilable (v2.7). I am not sure whether you have any
problem, you are not providing anything (build output, logs..).

If you do have a problem, please, paste the .config from
OpenWrt buildroot, the build output and the information about
your host machine. Otherwise we cannot help you.

Please, use the repositories mentioned on the wiki page:

* for BB: 
http://wiki.openwrt.org/doc/howto/buildroot.exigence#branch.barrier.breaker
* for CC: 
http://wiki.openwrt.org/doc/howto/buildroot.exigence#trunk.main.development.tree

Update the feeds:

http://wiki.openwrt.org/doc/howto/build#updating.feeds

enter the menuconfig:
http://wiki.openwrt.org/doc/howto/build#make.menuconfig

Select your target and minicom package. Subsequently save 
the config and call "make" command.

Kind Regards,
Jiri

Dne 21/10/2014 v 00:28 smile...@gmail.com napsal(a):
> The Build-process failed in CC for minicom.
> The Error is a download error.
> 
> Im not shure about all this things.
> 
> 
> lg
> 
> 
> Am Mon, 20 Oct 2014 19:35:35 +0300
> schrieb Sami Olmari :
> 
>> The link https://alioth.debian.org/frs/download.php/file/3977/ gives
>> minicom-2.7.tar.gz when I clicked it, so link seems to be correct...
>>
>>  Sami Olmari
>>
>> On Mon, Oct 20, 2014 at 7:23 PM,   wrote:
>>> Am Mon, 20 Oct 2014 06:38:36 +0200
>>> schrieb Jiří Šlachta :
>>>
> Hi,
> 
> I have checked the package repositories and ..
> 
> * the latest stable release contains minicom 2.7-1
> * the latest snapshots contains minicom 2.7-1
> 
> I have also checked the package Makefiles and those are referring
> to version 2.7.
> 
> Would you be so kind to refer what directory are you mentioning?

 I mean the entry in the Makefile:

 PKG_SOURCE_URL:=https://alioth.debian.org/frs/download.php/file/3977/

 Possible my makefile is too old?
 I make only this...
 ./scripts/feeds update


> 
> Also do not forget to use "opkg update"!

 What is this?
 opkg update? in my repository? Dont work.


> 
> Have a nice day!
> Jiri Slachta
> 
> Dne 20/10/2014 v 00:26 smile...@gmail.com napsal(a):
>> the download point to minicom-2.7.
>> but in this directory exists only minicom-2.3.
>>
>> lg
>>
>>
>>
>> ___
>> 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
>>>
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJURhX6AAoJECilMVBDttCP9roQAJgvPbLM8L+bq8+2Ea8Y5XUo
gpXPY6bF0il5eWoRHuTPlWvHrGj+wyghMNu/jUIXhXKRmnyNFZ7jLxZpUM+9nWs+
UbX5OqgVU+INfB6fCBb2PAo+7wcHkL+FM9pxHTwPK2BahHAhL4ejdW6iixY2N9Ak
0edK0XuLXADnq2VU40xUld8pSv4MnyvmT/plRHL7uK+ko/v5k8MjsnREIPm4392v
W9wZ9F1ueHn5oDQkQVyVUHxq/k6PYIjbCGstk1zeoLF6U4MiCfJHHf4fA/zW2F2h
3Cgb/WDk0A8gV33cwFIjSNcLtEjMHlbVgV38BNMcjaAdgy5+UkYor01PzoM36OZh
bw745hEVTdDuySJWKiG1mZeNy45zEBMc2Xbldp4svNaqWpX7/vUhrCyBd7vZ0ZG6
M+D+C4bn8Ber0kl1jq7IGF9jHQ2RUWrPGtxoRy8eDsDpalhLh2WGvOiIvhhjGyWv
9f1OV1+FA/CP+Q3lgDRFRoEKERkIa8Ih90Z3HISJKPnkux5vqZ9e0g2F9cHr64/t
TvKp0tB172RnhoTH9M8GqjbHGlWXo6b8xyGMJIXs6Das8lukFidFNBI3rVhVLZoi
uBZPb7RncSp/6LNU43T1Ue7aleMhUftrtsJzf5ngLOVkc5TgUJTwrodnNXOnxnOf
ZiU6hCQCEmjYtc/10Dum
=fgCE
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel