Re: grub2-editenv: does depend since recently on liblzma

2021-05-20 Thread Dirk Neukirchen
Hello Florian

On 20.05.21 09:41, Florian Eckert wrote:
> What is your opinion on this or how can we solve this in another way?
> Or do you not have this problem?
>
liblzma detection is automatic  - so this seems to be some hidden error before 
/ build environment related

disabling it is possible according to configure.ac


"LZMA" (liblzma -> USE_LIBLZMA, lzma.h) is used in grub util/mkimage.c

looking at grub code - lzma.h/liblzma from xz means "GRUB_COMPRESSION_XZ" / 
compress_kernel_xz

disabling it then prints

"Without liblzma (no support for XZ-compressed mips images) (explicitly 
disabled)"

-

afaik we do not support grub on MIPS; but --compress=xz  is also disabled by 
that so many cmdline defaults might not be working : (util/grub-mkimage.c)

Notice that grub contains an grub-core/lib/xzembed/xz.h for some other XZ 
functionality (grub-core/fs/squash4.c:    COMPRESSION_XZ = 4)

Attached the simple patch that is build-tested with:

CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_generic=y
CONFIG_TARGET_x86_generic_DEVICE_generic=y
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y
CONFIG_EXPERIMENTAL=y
# CONFIG_FEED_luci is not set
# CONFIG_FEED_packages is not set
# CONFIG_FEED_routing is not set
# CONFIG_FEED_telephony is not set
CONFIG_LINUX_5_10=y
CONFIG_PACKAGE_grub2-editenv=y
CONFIG_PACKAGE_kmod-mdio-devres=y
CONFIG_PACKAGE_liblzma=y
CONFIG_TESTING_KERNEL=y

no lzma error , lzma linkage  seems fine : checked compile.log for the disable 
msg + @build path the config.log

Feel free to add / modify etc

sry for strange formatting - thunderbird update currently messes with text-only 
settings that worked fine before


>
> Best regards
>
> Florian
>
>
> [1] 
> https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e74d81ece2e2932a4f370d8e6d180061a6a2c229
> [2] https://github.com/openwrt/packages/tree/master/utils/xz


Greetings, Dirk

>From aef9acf31244eff9ec7eac29e1fc9da16d4cf1fe Mon Sep 17 00:00:00 2001
From: Dirk Neukirchen 
Date: Thu, 20 May 2021 10:39:35 +0200
Subject: [PATCH] [RFC] grub2: disable liblzma dependency

LZMA is used in mkimage.c
disabling it prints
Without liblzma (no support for XZ-compressed mips images) (explicitly disabled)
(see configure.ac)

liblzma is autodetected so this issue was present but hidden somehow

[unsure: grep/image generation does not use grub with that option]
OpenWrt does not use that feature currently

[!] some scripts and examples use --compression=xz or -C xz and those will break

grub has an internal xzlib for different "lzma" functionality
(ext. LIBLZMA from XZ (GRUB_COMPRESSION_XZ) vs. GRUB_COMPRESSION_LZMA)

Signed-off-by: Dirk Neukirchen 
---
 package/boot/grub2/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile
index b3cb5e076f..8bb2d419d9 100644
--- a/package/boot/grub2/Makefile
+++ b/package/boot/grub2/Makefile
@@ -65,6 +65,7 @@ CONFIGURE_ARGS += \
 	--disable-nls \
 	--disable-device-mapper \
 	--disable-libzfs \
+	--disable-liblzma \
 	--disable-grub-mkfont \
 	--with-platform=$(BUILD_VARIANT)
 
-- 
2.31.1

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


Re: [OpenWrt-Devel] [PATCH 1/2] Add support for AVM FritzBox 7360SL

2016-06-04 Thread Dirk Neukirchen
On 19.05.2016 14:12, Sebastian Ortwein wrote:
> Add support for FritzBox 7360SL
> 
> working: USB,WIFI,SWITCH,LAN
> 
> not working:DECT, Telephone
> 
> 
> 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 

as Martin wrote - please add a signed-off-by
see https://dev.openwrt.org/wiki/SubmittingPatches
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] package/devel/gdb: Add support of ARC gdb

2016-06-01 Thread Dirk Neukirchen
On 01.06.2016 17:32, Alexey Brodkin wrote:
> Also we disable sim because if the following breakage while
> building with it:
> >8
> /usr/bin/env bash ./../common/genmloop.sh -shell /usr/bin/env bash \
> -mono -fast -pbb -switch sem5-switch.c \
> -cpu a5f -infile ./mloop5.in \
> -outfile-suffix 5
> unknown option: bash
> Makefile:699: recipe for target 'stamp-5mloop' failed
> make[7]: *** [stamp-5mloop] Error 1
> >8

rules.mk with its SHELL:=/usr/bin/env bash is the culprit

I had some issues when I set CONFIG_SHELL in the same  way
- using SHELL:=/bin/bash probably fixes this but might have
other side effects or breakage (globally/for other packages)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: build airo on x86 only

2016-03-22 Thread Dirk Neukirchen
airo requires ISA_DMA_API and
that symbol is only set on some ppc,malta,x86
x86 is probably only platform where that driver is used

fixes buildbot errors on ar71xx,lantiq ...:
airo.ko is missing

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 734b6fe..4ab3899 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -142,7 +142,7 @@ endef
 define KernelPackage/airo
   $(call KernelPackage/mac80211/Default)
   TITLE:=Cisco Aironet driver
-  DEPENDS+=@PCI_SUPPORT +@DRIVER_WEXT_SUPPORT +kmod-cfg80211
+  DEPENDS+=@PCI_SUPPORT +@DRIVER_WEXT_SUPPORT +kmod-cfg80211 @TARGET_x86
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/cisco/airo.ko
   AUTOLOAD:=$(call AutoProbe,airo)
 endef
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/4] mac80211: add cisco airo

2016-03-20 Thread Dirk Neukirchen
airo depends on cfg80211, move it to mac80211

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 17 +
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index e168efd..734b6fe 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -24,6 +24,7 @@ PKG_MAINTAINER:=Felix Fietkau <n...@openwrt.org>
 
 PKG_DRIVERS = \
adm8211 \
+   airo \
ath ath5k ath9k ath9k-common ath9k-htc ath10k \
b43 b43legacy \
carl9170 \
@@ -138,6 +139,18 @@ define KernelPackage/adm8211
   AUTOLOAD:=$(call AutoProbe,adm8211)
 endef
 
+define KernelPackage/airo
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=Cisco Aironet driver
+  DEPENDS+=@PCI_SUPPORT +@DRIVER_WEXT_SUPPORT +kmod-cfg80211
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/cisco/airo.ko
+  AUTOLOAD:=$(call AutoProbe,airo)
+endef
+
+define KernelPackage/airo/description
+ Kernel support for Cisco Aironet cards
+endef
+
 define KernelPackage/ath/config
   if PACKAGE_kmod-ath
config ATH_USER_REGD
@@ -1454,6 +1467,7 @@ config-y:= \
WLAN_VENDOR_ATH \
WLAN_VENDOR_ATMEL \
WLAN_VENDOR_BROADCOM \
+   WLAN_VENDOR_CISCO \
WLAN_VENDOR_INTEL \
WLAN_VENDOR_INTERSIL \
WLAN_VENDOR_MARVELL \
@@ -1492,6 +1506,8 @@ endif
 
 config-$(call config_package,lib80211) += LIB80211 LIB80211_CRYPT_WEP 
LIB80211_CRYPT_CCMP LIB80211_CRYPT_TKIP
 
+config-$(call config_package,airo) += AIRO
+
 config-$(call config_package,ath) += ATH_CARDS ATH_COMMON
 config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG
 config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED
@@ -1765,6 +1781,7 @@ endef
 
 
 $(eval $(call KernelPackage,adm8211))
+$(eval $(call KernelPackage,airo))
 $(eval $(call KernelPackage,ath))
 $(eval $(call KernelPackage,ath10k))
 $(eval $(call KernelPackage,ath5k))
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/4] wireless: add vendor dirs

2016-03-20 Thread Dirk Neukirchen
Kernel 4.5 changes wireless driver organisation

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/linux/modules/wireless.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/wireless.mk 
b/package/kernel/linux/modules/wireless.mk
index 89b4bbb..0301aa1 100644
--- a/package/kernel/linux/modules/wireless.mk
+++ b/package/kernel/linux/modules/wireless.mk
@@ -12,7 +12,9 @@ define KernelPackage/net-prism54
   TITLE:=Intersil Prism54 support
   DEPENDS:=@PCI_SUPPORT +@DRIVER_WEXT_SUPPORT
   KCONFIG:=CONFIG_PRISM54
-  FILES:=$(LINUX_DIR)/drivers/net/wireless/prism54/prism54.ko
+  FILES:= \
+   $(LINUX_DIR)/drivers/net/wireless/prism54/prism54.ko@lt4.5 \
+   $(LINUX_DIR)/drivers/net/wireless/intersil/prism54/prism54.ko@ge4.5
   AUTOLOAD:=$(call AutoProbe,prism54)
 endef
 
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/4] wireless: remove rtl8188eu (staging)

2016-03-20 Thread Dirk Neukirchen
- depends on CFG80211 (upstream: 9da4aa48d04bbdbae3c959809e14da2bf0c53f61)
in os_dep/mon.c

This removes rtl8188eu completely from OpenWrt
since mac80211/compat-wireless/backports does not
provide staging wireless drivers

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/linux/modules/wireless.mk | 18 --
 1 file changed, 18 deletions(-)

diff --git a/package/kernel/linux/modules/wireless.mk 
b/package/kernel/linux/modules/wireless.mk
index 0301aa1..b62827e 100644
--- a/package/kernel/linux/modules/wireless.mk
+++ b/package/kernel/linux/modules/wireless.mk
@@ -39,24 +39,6 @@ endef
 $(eval $(call Download,net-prism54))
 $(eval $(call KernelPackage,net-prism54))
 
-define KernelPackage/net-rtl8188eu
-  SUBMENU:=$(WIRELESS_MENU)
-  TITLE:=RTL8188EU support (staging)
-  DEPENDS:=@USB_SUPPORT +@DRIVER_WEXT_SUPPORT +r8188eu-firmware +kmod-usb-core
-  KCONFIG:=\
-   CONFIG_STAGING=y \
-   CONFIG_R8188EU \
-   CONFIG_88EU_AP_MODE=y \
-   CONFIG_88EU_P2P=n
-  FILES:=$(LINUX_DIR)/drivers/staging/rtl8188eu/r8188eu.ko
-  AUTOLOAD:=$(call AutoProbe,r8188eu)
-endef
-
-define KernelPackage/net-rtl8188eu/description
- Kernel modules for RealTek RTL8188EU support
-endef
-
-$(eval $(call KernelPackage,net-rtl8188eu))
 
 define KernelPackage/net-rtl8192su
   SUBMENU:=$(WIRELESS_MENU)
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/4] wireless: remove cisco airo

2016-03-20 Thread Dirk Neukirchen
it depends on cfg80211
cfg80211 & wext drivers don't mix on OpenWrt

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/linux/modules/wireless.mk | 16 
 1 file changed, 16 deletions(-)

diff --git a/package/kernel/linux/modules/wireless.mk 
b/package/kernel/linux/modules/wireless.mk
index 2627b57..89b4bbb 100644
--- a/package/kernel/linux/modules/wireless.mk
+++ b/package/kernel/linux/modules/wireless.mk
@@ -7,22 +7,6 @@
 
 WIRELESS_MENU:=Wireless Drivers
 
-define KernelPackage/net-airo
-  SUBMENU:=$(WIRELESS_MENU)
-  TITLE:=Cisco Aironet driver
-  DEPENDS:=@PCI_SUPPORT +@DRIVER_WEXT_SUPPORT
-  KCONFIG:=CONFIG_AIRO
-  FILES:=$(LINUX_DIR)/drivers/net/wireless/airo.ko
-  AUTOLOAD:=$(call AutoProbe,airo)
-endef
-
-define KernelPackage/net-airo/description
- Kernel support for Cisco Aironet cards
-endef
-
-$(eval $(call KernelPackage,net-airo))
-
-
 define KernelPackage/net-prism54
   SUBMENU:=$(WIRELESS_MENU)
   TITLE:=Intersil Prism54 support
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/3] ar71xx: add WNR2200 HW_ID

2016-03-07 Thread Dirk Neukirchen
found in North American 1.0.1.96 GPL tarball

Untested

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/ar71xx/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index d9168fd..da19ce7 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -2451,7 +2451,7 @@ $(eval $(call 
SingleProfile,MyLoader,64k,WPE72_16M,wpe72,,ttyS0,115200,0x100
 
 $(eval $(call 
SingleProfile,Netgear,64kraw,WNR2000V3,wnr2000v3,WNR2000V3,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303033,WNR2000V3,""
 NA,-H 29763551+04+32))
 $(eval $(call 
SingleProfile,NetgearLzma,64kraw,WNR2000V4,wnr2000v4,WNR2000V4,ttyS0,115200,$$(wnr2000v4_mtdlayout),0x32303034,WNR2000V4,""
 NA,))
-$(eval $(call 
SingleProfile,Netgear,64kraw,WNR2200_8M,wnr2200-8m,WNR2200,ttyS0,115200,$$(wnr2200_mtdlayout_8M),0x32323030,wnr2200,""
 NA,))
+$(eval $(call 
SingleProfile,Netgear,64kraw,WNR2200_8M,wnr2200-8m,WNR2200,ttyS0,115200,$$(wnr2200_mtdlayout_8M),0x32323030,wnr2200,""
 NA,-H 29763600+08+64))
 $(eval $(call 
SingleProfile,Netgear,64kraw,WNR2200_16M,wnr2200-16m,WNR2200,ttyS0,115200,$$(wnr2200_mtdlayout_16M),0x32323030,wnr2200,""
 WW,))
 $(eval $(call 
SingleProfile,Netgear,64kraw,REALWNR612V2,wnr612v2,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,WNR612V2,"",))
 $(eval $(call 
SingleProfile,Netgear,64kraw,N150R,n150r,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,N150R,"",))
-- 
2.7.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/3] ar71xx: add WNR2200 16M version

2016-03-07 Thread Dirk Neukirchen
- change naming of old firmware to indicate 8M flash

this change should support 16M international version

totally untested, used
- input from IRC chat,
- ticket #14356 w. patch,
- verified against GPL tarball (WNR2200 russia version)

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/ar71xx/image/Makefile | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index ca4437b..d9168fd 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -1594,7 +1594,8 @@ 
dr344_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6336k(rootfs),1
 wpj531_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
 wpj558_mtdlayout_16M=mtdparts=spi0.0:192k(u-boot)ro,16128k(firmware),64k(art)ro
 
wndap360_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1728k(kernel),6016k(rootfs),64k(nvram)ro,64k(art)ro,7744k@0x5(firmware)
-wnr2200_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmware),64k(art)ro
+wnr2200_mtdlayout_8M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,7808k(firmware),64k(art)ro
+wnr2200_mtdlayout_16M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,14784k(firmware),64k(config)ro,1024k(language_table)ro,64k(pot)ro,64k(traffic_meter)ro,64(art)ro,1536k0x05(kernel),13248k@0x1d(rootfs)
 
wnr2000v3_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,3712k(firmware),64k(art)ro
 
wnr2000v4_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,3776k(firmware),64k(art)ro
 
r6100_mtdlayout=mtdparts=ar934x-nfc:128k(u-boot)ro,256k(caldata),256k(caldata-backup),512k(config),512k(pot),2048k(kernel),122240k(ubi),25600k@0x1a(firmware),2048k(language),3072k(traffic_meter)
@@ -2450,7 +2451,8 @@ $(eval $(call 
SingleProfile,MyLoader,64k,WPE72_16M,wpe72,,ttyS0,115200,0x100
 
 $(eval $(call 
SingleProfile,Netgear,64kraw,WNR2000V3,wnr2000v3,WNR2000V3,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303033,WNR2000V3,""
 NA,-H 29763551+04+32))
 $(eval $(call 
SingleProfile,NetgearLzma,64kraw,WNR2000V4,wnr2000v4,WNR2000V4,ttyS0,115200,$$(wnr2000v4_mtdlayout),0x32303034,WNR2000V4,""
 NA,))
-$(eval $(call 
SingleProfile,Netgear,64kraw,WNR2200,wnr2200,WNR2200,ttyS0,115200,$$(wnr2200_mtdlayout),0x32323030,wnr2200,""
 NA,))
+$(eval $(call 
SingleProfile,Netgear,64kraw,WNR2200_8M,wnr2200-8m,WNR2200,ttyS0,115200,$$(wnr2200_mtdlayout_8M),0x32323030,wnr2200,""
 NA,))
+$(eval $(call 
SingleProfile,Netgear,64kraw,WNR2200_16M,wnr2200-16m,WNR2200,ttyS0,115200,$$(wnr2200_mtdlayout_16M),0x32323030,wnr2200,""
 WW,))
 $(eval $(call 
SingleProfile,Netgear,64kraw,REALWNR612V2,wnr612v2,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,WNR612V2,"",))
 $(eval $(call 
SingleProfile,Netgear,64kraw,N150R,n150r,WNR612V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x32303631,N150R,"",))
 $(eval $(call 
SingleProfile,Netgear,64kraw,REALWNR1000V2,wnr1000v2,WNR1000V2,ttyS0,115200,$$(wnr2000v3_mtdlayout),0x31303031,WNR1000V2,"",))
@@ -2514,6 +2516,7 @@ $(eval $(call MultiProfile,TEW652BRP,TEW652BRP_FW 
TEW652BRP_RECOVERY))
 $(eval $(call MultiProfile,TUBE2H,TUBE2H8M TUBE2H16M))
 $(eval $(call MultiProfile,WNR612V2,REALWNR612V2 N150R))
 $(eval $(call MultiProfile,WNR1000V2,REALWNR1000V2 WNR1000V2_VC))
+$(eval $(call MultiProfile,WNR2200,WNR2200_8M WNR2200_16M))
 $(eval $(call MultiProfile,WP543,WP543_2M WP543_4M WP543_8M WP543_16M))
 $(eval $(call MultiProfile,WPE72,WPE72_4M WPE72_8M WPE72_16M))
 $(eval $(call MultiProfile,WPJ344,WPJ344_16M))
-- 
2.7.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/3] ar71xx: add WLAN LED for WNR2200

2016-03-07 Thread Dirk Neukirchen
this trivial change seems to be useful for 16M international version

Untested, used
- input from IRC chat (partitions),
- ticket #14356,
- GPL tarball (partitions)

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c 
b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
index 5d23f21..1cbbd0e 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2200.c
@@ -38,6 +38,7 @@
 #define WNR2200_GPIO_LED_PWR_GREEN 22
 #define WNR2200_GPIO_USB_5V4
 #define WNR2200_GPIO_USB_POWER 24
+#define WNR2200_GPIO_LED_WLAN  0
 
 #define WNR2200_KEYS_POLL_INTERVAL 20 /* msecs */
 #define WNR2200_KEYS_DEBOUNCE_INTERVAL (3 * WNR2200_KEYS_POLL_INTERVAL)
@@ -124,6 +125,8 @@ static void __init wnr2200_setup(void)
ap91_pci_init(art + WNR2200_PCIE_CALDATA_OFFSET,
  art + WNR2200_MAC1_OFFSET);
 
+   ap9x_pci_setup_wmac_led_pin(0, WNR2200_GPIO_LED_WLAN);
+
ath79_register_leds_gpio(-1, ARRAY_SIZE(wnr2200_leds_gpio),
wnr2200_leds_gpio);
 
-- 
2.7.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] tools/flock: fix compile on Alpine Linux

2016-03-07 Thread Dirk Neukirchen
fixes build errors:
src/flock.c:208:34: error: 'O_NOCTTY' undeclared (first use in this function)
 fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666);
src/flock.c:208:43: error: 'O_CREAT' undeclared (first use in this function)
 fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666);

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 tools/flock/src/flock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/flock/src/flock.c b/tools/flock/src/flock.c
index 13baec4..3ac3a4b 100644
--- a/tools/flock/src/flock.c
+++ b/tools/flock/src/flock.c
@@ -39,6 +39,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #define PACKAGE_STRING "util-linux-ng 2.18"
 #define _(x) (x)
-- 
2.7.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] tools/cmake: fix compile on Alpine Linux

2016-03-07 Thread Dirk Neukirchen
internal jsoncpp include order leads to multiple build
errors on Alpine Linux which uses musl libc

use include order from upstream jsoncpp

first error was:
In file included from /usr/include/c++/5.3.0/stdexcept:38:0,
 from 
/home//openwrt/build_dir/host/cmake-3.4.3/Utilities/cmjsoncpp/include/json/assertions.h:16,
 from 
/home//openwrt/build_dir/host/cmake-3.4.3/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp:7:
/usr/include/c++/5.3.0/exception:35:9: error: '#pragma' is not allowed here
 #pragma GCC visibility push(default)

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 tools/cmake/patches/120-alpine_musl-compat.patch | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 tools/cmake/patches/120-alpine_musl-compat.patch

diff --git a/tools/cmake/patches/120-alpine_musl-compat.patch 
b/tools/cmake/patches/120-alpine_musl-compat.patch
new file mode 100644
index 000..ae93201
--- /dev/null
+++ b/tools/cmake/patches/120-alpine_musl-compat.patch
@@ -0,0 +1,17 @@
+--- a/Utilities/cmjsoncpp/include/json/assertions.h
 b/Utilities/cmjsoncpp/include/json/assertions.h
+@@ -6,12 +6,12 @@
+ #ifndef CPPTL_JSON_ASSERTIONS_H_INCLUDED
+ #define CPPTL_JSON_ASSERTIONS_H_INCLUDED
+ 
++#include 
++
+ #if !defined(JSON_IS_AMALGAMATION)
+ #include "config.h"
+ #endif // if !defined(JSON_IS_AMALGAMATION)
+ 
+-#include 
+-
+ #if JSON_USE_EXCEPTION
+ #include 
+ #define JSON_ASSERT(condition)
 \
-- 
2.7.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] x86: enable CONFIG_PWM

2016-02-05 Thread Dirk Neukirchen
fixes buildbot error:
linux-4.4/drivers/video/backlight/pwm_bl.ko' is missing

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/x86/config-4.4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/x86/config-4.4 b/target/linux/x86/config-4.4
index f87eba9..c69c18f 100644
--- a/target/linux/x86/config-4.4
+++ b/target/linux/x86/config-4.4
@@ -332,6 +332,8 @@ CONFIG_POWER_SUPPLY=y
 CONFIG_PROC_PAGE_MONITOR=y
 # CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set
 # CONFIG_PUNIT_ATOM_DEBUG is not set
+CONFIG_PWM=y
+# CONFIG_PWM_LPSS is not set
 CONFIG_RATIONAL=y
 # CONFIG_RCU_STALL_COMMON is not set
 CONFIG_RD_BZIP2=y
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] video: kmod-pwm does not exist anymore

2016-02-05 Thread Dirk Neukirchen
it was removed in r43947

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/linux/modules/video.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 81e7e42..cf77c86 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -41,7 +41,7 @@ $(eval $(call KernelPackage,backlight))
 define KernelPackage/backlight-pwm
SUBMENU:=$(VIDEO_MENU)
TITLE:=PWM Backlight support
-   DEPENDS:=+kmod-pwm +kmod-backlight
+   DEPENDS:=+kmod-backlight
KCONFIG:=CONFIG_BACKLIGHT_PWM=m
FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
AUTOLOAD:=$(call AutoProbe,video pwm_bl)
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] kernel: crypto: add fsl CAAM package

2016-02-05 Thread Dirk Neukirchen
some comments:

- follow alphabetic order
- keep crypto-hw prefix
- dump vendor
I would suggest: crypto-hw-caam
Reasoning: talitos, omap, ccp, geode do not contain hw vendor name

unsure: since this package is specific to imx6 you may want to use
target/linux/imx6/modules.mk (like sunxi, ar71xx ...)


On 06.02.2016 00:11, Pushpal Sidhu wrote:
> Kernel package enables the Freescale CAAM (crypto accelerator and assurance
> module, aka SEC4). Sets kernel defaults for ringsize, intc, and debug.
> 
> Signed-off-by: Pushpal Sidhu 
> ---
>  package/kernel/linux/modules/crypto.mk | 24 
>  1 file changed, 24 insertions(+)
> 
> diff --git a/package/kernel/linux/modules/crypto.mk 
> b/package/kernel/linux/modules/crypto.mk
> index 99fb5a0..f328ac5 100644
> --- a/package/kernel/linux/modules/crypto.mk
> +++ b/package/kernel/linux/modules/crypto.mk
> @@ -194,6 +194,30 @@ endef
>  
>  $(eval $(call KernelPackage,crypto-hw-ccp))
>  
> +define KernelPackage/crypto-fsl-caam
> +  TITLE:=Freescale CAAM driver
> +  DEPENDS:=@TARGET_imx6 +kmod-crypto-aead +kmod-crypto-authenc 
> +kmod-crypto-hash +kmod-random-core
> +  KCONFIG:= \
> + CONFIG_CRYPTO_HW=y \
> + CONFIG_CRYPTO_DEV_FSL_CAAM \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_JR \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=n \
> + CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=n
> +  FILES:= \
> + $(LINUX_DIR)/drivers/crypto/caam/caam.ko \
> + $(LINUX_DIR)/drivers/crypto/caam/caamalg.ko \
> + $(LINUX_DIR)/drivers/crypto/caam/caamhash.ko \
> + $(LINUX_DIR)/drivers/crypto/caam/caam_jr.ko \
> + $(LINUX_DIR)/drivers/crypto/caam/caamrng.ko
> +  AUTOLOAD:=$(call AutoLoad,09,caam caamalg caamhash caam_jr caamrng)
> +  $(call AddDepends/crypto)
> +endef
> +
> +$(eval $(call KernelPackage,crypto-fsl-caam))
>  
>  define KernelPackage/crypto-hw-geode
>TITLE:=AMD Geode hardware crypto module
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH, v2] kernel: remove obsolete config symbols from 4.4

2016-01-12 Thread Dirk Neukirchen
Only remove old symbols for 4.4 since older Kernels might be
removed sooner/later and 4.4 is the next LTS

build tested against:
 omap 4.4 CONFIG_ALL_KMODS
 x86_64

List of enabled & orphaned symbols:

-CONFIG_ARPD=y
-CONFIG_BT_L2CAP=y
-CONFIG_BT_SCO=y
-CONFIG_CAVIUM_OCTEON_HELPER=y
-CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
-CONFIG_DISABLE_DEV_COREDUMP=y
-CONFIG_EXPERIMENTAL=y
-CONFIG_EXT4_FS_XATTR=y
-CONFIG_GENERIC_HARDIRQS=y
-CONFIG_GENERIC_TIME=y
-CONFIG_HOTPLUG=y
-CONFIG_INITRAMFS_COMPRESSION_NONE=y
-CONFIG_INLINE_SPIN_UNLOCK=y
-CONFIG_LEDS_GPIO_OF=y
-CONFIG_LEDS_GPIO_PLATFORM=y
-CONFIG_MFD_SUPPORT=y
-CONFIG_MISC_DEVICES=y
-CONFIG_MTD_CHAR=y
-CONFIG_NETDEV_1000=y
-CONFIG_NET_ETHERNET=y
-CONFIG_NET_PCI=y
-CONFIG_NET_VENDOR_SILICOM=y
-CONFIG_SCSI_MULTI_LUN=y
-CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
-CONFIG_USB_ARCH_HAS_EHCI=y
-CONFIG_USB_ARCH_HAS_OHCI=y
-CONFIG_USB_DEVICEFS=y
-CONFIG_USB_EZUSB=y

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/generic/config-4.4 | 292 
 1 file changed, 292 deletions(-)

diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4
index 2d555c1..e900e33 100644
--- a/target/linux/generic/config-4.4
+++ b/target/linux/generic/config-4.4
@@ -17,9 +17,6 @@ CONFIG_32BIT=y
 # CONFIG_ACPI_CUSTOM_METHOD is not set
 # CONFIG_ACPI_EXTLOG is not set
 # CONFIG_ACPI_HED is not set
-# CONFIG_ACPI_INT3403_THERMAL is not set
-# CONFIG_ACPI_POWER_METER is not set
-# CONFIG_ACPI_QUICKSTART is not set
 # CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
 # CONFIG_AD2S1200 is not set
 # CONFIG_AD2S1210 is not set
@@ -37,7 +34,6 @@ CONFIG_32BIT=y
 # CONFIG_AD5755 is not set
 # CONFIG_AD5764 is not set
 # CONFIG_AD5791 is not set
-# CONFIG_AD5930 is not set
 # CONFIG_AD5933 is not set
 # CONFIG_AD7150 is not set
 # CONFIG_AD7152 is not set
@@ -61,10 +57,6 @@ CONFIG_32BIT=y
 # CONFIG_AD9523 is not set
 # CONFIG_AD9832 is not set
 # CONFIG_AD9834 is not set
-# CONFIG_AD9850 is not set
-# CONFIG_AD9852 is not set
-# CONFIG_AD9910 is not set
-# CONFIG_AD9951 is not set
 # CONFIG_ADAPTEC_STARFIRE is not set
 # CONFIG_ADE7753 is not set
 # CONFIG_ADE7754 is not set
@@ -83,7 +75,6 @@ CONFIG_32BIT=y
 # CONFIG_ADIS16209 is not set
 # CONFIG_ADIS16220 is not set
 # CONFIG_ADIS16240 is not set
-# CONFIG_ADIS16255 is not set
 # CONFIG_ADIS16260 is not set
 # CONFIG_ADIS16400 is not set
 # CONFIG_ADIS16480 is not set
@@ -108,7 +99,6 @@ CONFIG_AIO=y
 # CONFIG_AK09911 is not set
 # CONFIG_AK8975 is not set
 # CONFIG_AL3320A is not set
-# CONFIG_ALCHEMY_GPIO_INDIRECT is not set
 # CONFIG_ALIM7101_WDT is not set
 CONFIG_ALLOW_DEV_COREDUMP=y
 # CONFIG_ALTERA_MBOX is not set
@@ -119,7 +109,6 @@ CONFIG_ALLOW_DEV_COREDUMP=y
 # CONFIG_AMD8111_ETH is not set
 # CONFIG_AMD_PHY is not set
 # CONFIG_AMD_XGBE is not set
-# CONFIG_AMD_XGBE_PHY is not set
 # CONFIG_AMIGA_PARTITION is not set
 # CONFIG_AMILO_RFKILL is not set
 # CONFIG_ANDROID is not set
@@ -138,7 +127,6 @@ CONFIG_ANON_INODES=y
 # CONFIG_ARCH_AT91 is not set
 # CONFIG_ARCH_BCM is not set
 # CONFIG_ARCH_BCM2835 is not set
-# CONFIG_ARCH_BCMRING is not set
 # CONFIG_ARCH_BERLIN is not set
 # CONFIG_ARCH_CLPS711X is not set
 # CONFIG_ARCH_CNS3XXX is not set
@@ -152,7 +140,6 @@ CONFIG_ANON_INODES=y
 CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_FOOTBRIDGE is not set
 # CONFIG_ARCH_GEMINI is not set
-# CONFIG_ARCH_H720X is not set
 # CONFIG_ARCH_HAS_ILOG2_U32 is not set
 # CONFIG_ARCH_HAS_ILOG2_U64 is not set
 # CONFIG_ARCH_HI3xxx is not set
@@ -162,19 +149,13 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_IOP13XX is not set
 # CONFIG_ARCH_IOP32X is not set
 # CONFIG_ARCH_IOP33X is not set
-# CONFIG_ARCH_IXP2000 is not set
-# CONFIG_ARCH_IXP23XX is not set
 # CONFIG_ARCH_IXP4XX is not set
 # CONFIG_ARCH_KEYSTONE is not set
-# CONFIG_ARCH_KIRKWOOD is not set
 # CONFIG_ARCH_KS8695 is not set
 # CONFIG_ARCH_LPC32XX is not set
 # CONFIG_ARCH_MEDIATEK is not set
 # CONFIG_ARCH_MESON is not set
 # CONFIG_ARCH_MMP is not set
-# CONFIG_ARCH_MSM is not set
-# CONFIG_ARCH_MSM_DT is not set
-# CONFIG_ARCH_MSM_NODT is not set
 # CONFIG_ARCH_MULTIPLATFORM is not set
 # CONFIG_ARCH_MULTI_V6 is not set
 # CONFIG_ARCH_MULTI_V7 is not set
@@ -186,7 +167,6 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_NETX is not set
 # CONFIG_ARCH_NOMADIK is not set
 # CONFIG_ARCH_NSPIRE is not set
-# CONFIG_ARCH_NUC93X is not set
 # CONFIG_ARCH_OMAP is not set
 # CONFIG_ARCH_OMAP1 is not set
 # CONFIG_ARCH_OMAP2PLUS is not set
@@ -195,7 +175,6 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_ORION5X is not set
 # CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set
 # CONFIG_ARCH_PICOXCELL is not set
-# CONFIG_ARCH_PNX4008 is not set
 # CONFIG_ARCH_PRIMA2 is not set
 # CONFIG_ARCH_PXA is not set
 # CONFIG_ARCH_QCOM is not set
@@ -204,20 +183,14 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_RPC is not set
 # CONFIG_ARCH_S3C24XX is not set
 # CONFIG_ARCH_S3C64XX is not set
-# CONFIG_ARCH_S5P64X0 is not set
-# CONFIG_ARCH_S5PC100 

[OpenWrt-Devel] [PATCH] kernel: add missing symbols for Kernel 4.4

2016-01-12 Thread Dirk Neukirchen
found w. x86_64

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/generic/config-4.4 | 2 ++
 target/linux/x86/config-4.4 | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4
index a6d4d1a..2d555c1 100644
--- a/target/linux/generic/config-4.4
+++ b/target/linux/generic/config-4.4
@@ -11,6 +11,7 @@ CONFIG_32BIT=y
 # CONFIG_ACENIC is not set
 # CONFIG_ACERHDF is not set
 # CONFIG_ACORN_PARTITION is not set
+# CONFIG_ACPI_ALS is not set
 # CONFIG_ACPI_APEI is not set
 # CONFIG_ACPI_BUTTON is not set
 # CONFIG_ACPI_CUSTOM_METHOD is not set
@@ -800,6 +801,7 @@ CONFIG_CRYPTO_BLKCIPHER2=y
 # CONFIG_CRYPTO_DEV_IMGTEC_HASH is not set
 # CONFIG_CRYPTO_DEV_MV_CESA is not set
 # CONFIG_CRYPTO_DEV_QAT_DH895xCC is not set
+# CONFIG_CRYPTO_DEV_QAT_DH895xCCVF is not set
 # CONFIG_CRYPTO_DEV_QCE is not set
 # CONFIG_CRYPTO_DEV_SAHARA is not set
 # CONFIG_CRYPTO_DEV_TALITOS is not set
diff --git a/target/linux/x86/config-4.4 b/target/linux/x86/config-4.4
index 49a0cfd..c165b51 100644
--- a/target/linux/x86/config-4.4
+++ b/target/linux/x86/config-4.4
@@ -363,6 +363,8 @@ CONFIG_SLUB_DEBUG=y
 # CONFIG_SLUB_DEBUG_ON is not set
 # CONFIG_SMSC37B787_WDT is not set
 # CONFIG_SMSC_SCH311X_WDT is not set
+# CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH is not set
+# CONFIG_SND_SOC_INTEL_SKL_RT286_MACH is not set
 CONFIG_SPARSEMEM_STATIC=y
 CONFIG_SPARSE_IRQ=y
 CONFIG_SRCU=y
-- 
2.7.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: mt7601u use linux-firmware

2015-12-25 Thread Dirk Neukirchen
upstream added mt7601u firmware with commit
9df5430a3c1bf4fa92d9198b6d7d8713408ff6bc Add firmware for mt7601u. version 34

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 17 ++---
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 2a0fc02..67a944f 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -1154,18 +1154,6 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
-PKG_MT7601U_FW_NAME:=DPO_MT7601U_LinuxSTA
-PKG_MT7601U_FW_VERSION:=3.0.0.4_20130913
-PKG_MT7601U_FW_MD5SUM:=5f440dccc8bc952745a191994fc34699
-PKG_MT7601U_FW_SOURCE:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION).tar.bz2
-PKG_MT7601U_FW_SOURCE_URL:=http://www.mediatek.com/AmazonS3/Downloads/linux/
-define Download/mt7601u-firmware
-  FILE:=$(PKG_MT7601U_FW_SOURCE)
-  URL:=$(PKG_MT7601U_FW_SOURCE_URL)
-  MD5SUM:=$(PKG_MT7601U_FW_MD5SUM)
-  SUBDIR:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)
-endef
-$(eval $(call Download,mt7601u-firmware))
 
 define KernelPackage/mt7601u
   $(call KernelPackage/mac80211/Default)
@@ -1803,7 +1791,6 @@ define Build/Prepare
$(TAR) -C $(PKG_BUILD_DIR) -xzf 
$(DL_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
$(TAR) -C $(PKG_BUILD_DIR) -xjf 
$(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
$(TAR) -C $(PKG_BUILD_DIR) -xJf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE)
-   $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_MT7601U_FW_SOURCE)
rm -rf \
$(PKG_BUILD_DIR)/include/linux/ssb \
$(PKG_BUILD_DIR)/include/linux/bcma \
@@ -2030,8 +2017,8 @@ endef
 define KernelPackage/mt7601u/install
$(INSTALL_DIR) $(1)/lib/firmware
$(INSTALL_DATA) \
-   
$(PKG_BUILD_DIR)/$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)/mcu/bin/MT7601.bin
 \
-   $(1)/lib/firmware/mt7601u.bin
+   $(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/mt7601u.bin \
+   $(1)/lib/firmware
 endef
 
 define KernelPackage/mwl8k/install
-- 
2.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: iwlwifi: update firmware to ucode -16 version

2015-12-25 Thread Dirk Neukirchen
We don't use Kernel drivers but ucode -16 is
usable on Kernel 4.3+ - with backports and mac80211
this should work on older Kernel versions too.

Intel does not provide a changelog.

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 67a944f..bdde345 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -1952,7 +1952,7 @@ ifneq ($(CONFIG_IWL2030_FW),)
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-2030-6.ucode 
$(1)/lib/firmware
 endif
 ifneq ($(CONFIG_IWL3160_FW),)
-   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-3160-13.ucode 
$(1)/lib/firmware
+   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-3160-16.ucode 
$(1)/lib/firmware
 endif
 ifneq ($(CONFIG_IWL5000_FW),)
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-5000-5.ucode 
$(1)/lib/firmware
@@ -1973,14 +1973,14 @@ ifneq ($(CONFIG_IWL6050_FW),)
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-6050-5.ucode 
$(1)/lib/firmware
 endif
 ifneq ($(CONFIG_IWL7260_FW),)
-   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7260-13.ucode 
$(1)/lib/firmware
+   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7260-16.ucode 
$(1)/lib/firmware
 endif
 ifneq ($(CONFIG_IWL7265_FW),)
-   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7265-13.ucode 
$(1)/lib/firmware
-   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7265D-13.ucode 
$(1)/lib/firmware
+   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7265-16.ucode 
$(1)/lib/firmware
+   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-7265D-16.ucode 
$(1)/lib/firmware
 endif
 ifneq ($(CONFIG_IWL8000_FW),)
-   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-8000C-13.ucode 
$(1)/lib/firmware
+   $(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-8000C-16.ucode 
$(1)/lib/firmware
 endif
 endef
 
-- 
2.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: add rtl8xxxu

2015-12-25 Thread Dirk Neukirchen
OpenWrt is often used to develop or test new devices
Some users might want to test and help to improve
this new driver

upstream commit notice 26f1fad29ad973b0fb26a9ca3dcb2a73dde781aa

New driver: rtl8xxxu (mac80211)
This is an alternate driver for a number of Realtek WiFi USB devices,
including RTL8723AU, RTL8188CU, RTL8188RU, RTL8191CU, and RTL8192CU.
It was written from scratch utilizing the Linux mac80211 stack.

After spending months cleaning up the vendor provided rtl8723au
driver, which comes with it's own 802.11 stack included, I decided to
rewrite this driver from the bottom up.

Many thanks to Johannes Berg for 802.11 insights and help and Larry
Finger for help with the vendor driver.

The full git log for the development of this driver can be found here:
git git://git.kernel.org/pub/scm/linux/kernel/git/jes/linux.git
branch rtl8723au-mac80211

This driver is still under development, but has proven to be very
stable for me. It currently supports station mode only. It has support
for OFDM and CCK rates. It does lack certain features found in the
staging driver, such as power management, AMPDU, and 40MHz channel
support. In addition it does not support AD-HOC, AP, and monitor mode
support at this point.

The driver is known to work with the following devices:
Lenovo Yoga (rtl8723au)
TP-Link TL-WN823N (rtl8192cu)
Etekcity 6R (rtl8188cu)
Daffodil LAN03 (rtl8188cu)
Alfa AWUS036NHR (rtl8188ru)

Compile tested only

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 38 ++
 1 file changed, 38 insertions(+)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index bdde345..eb0f70c 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -43,6 +43,7 @@ PKG_DRIVERS = \
rtl8180 rtl8187 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
rtl8192de rtl8192cu \
+   rtl8xxxu \
wlcore wl12xx wl18xx \
zd1211rw
 
@@ -1526,6 +1527,39 @@ define KernelPackage/rtl8192cu/install
 endef
 
 
+define KernelPackage/rtl8xxxu
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=alternative Realtek RTL8XXXU support
+  DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-mac80211
+  FILES:= $(PKG_BUILD_DIR)/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
+  AUTOLOAD:=$(call AutoProbe,rtl8xxxu)
+endef
+
+define KernelPackage/rtl8xxxu/description
+  This is an alternative driver for various Realtek RTL8XXX
+  parts written to utilize the Linux mac80211 stack.
+  The driver is known to work with a number of RTL8723AU,
+  RL8188CU, RTL8188RU, RTL8191CU, and RTL8192CU devices
+
+  This driver is under development and has a limited feature
+  set. In particular it does not yet support 40MHz channels
+  and power management. However it should have a smaller
+  memory footprint than the vendor drivers and benetifs
+  from the in kernel mac80211 stack.
+
+  It can coexist with drivers from drivers/staging/rtl8723au,
+  drivers/staging/rtl8192u, and drivers/net/wireless/rtlwifi,
+  but you will need to control which module you wish to load.
+
+  RTL8XXXU_UNTESTED is enabled
+  This option enables detection of Realtek 8723/8188/8191/8192 WiFi
+  USB devices which have not been tested directly by the driver
+  author or reported to be working by third parties.
+
+  Please report your results!
+endef
+
+
 define KernelPackage/wlcore
   $(call KernelPackage/mac80211/Default)
   TITLE:=TI common driver part
@@ -1756,6 +1790,9 @@ config-$(call config_package,rtl8192de) += RTL8192DE
 config-$(call config_package,rtl8192cu) += RTL8192CU
 config-$(CONFIG_PACKAGE_RTLWIFI_DEBUG) += RTLWIFI_DEBUG
 
+config-$(call config_package,rtl8xxxu) += RTL8XXXU
+config-y += RTL8XXXU_UNTESTED
+
 config-$(CONFIG_LEDS_TRIGGERS) += MAC80211_LEDS B43_LEDS B43LEGACY_LEDS
 
 MAKE_OPTS:= -C "$(PKG_BUILD_DIR)" \
@@ -2169,6 +2206,7 @@ $(eval $(call KernelPackage,rtl8192ce))
 $(eval $(call KernelPackage,rtl8192se))
 $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
+$(eval $(call KernelPackage,rtl8xxxu))
 $(eval $(call KernelPackage,wlcore))
 $(eval $(call KernelPackage,wl12xx))
 $(eval $(call KernelPackage,wl18xx))
-- 
2.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] openvpn: fix configure options

2015-12-21 Thread Dirk Neukirchen
- eurephia:
commit: Remove the --disable-eurephia configure option

- fix option name:
http proxy option is now called http-proxy (see configure.ac)

fixes:
configure: WARNING: unrecognized options: --disable-nls, --disable-eurephia, 
--enable-http

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/network/services/openvpn/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/network/services/openvpn/Makefile 
b/package/network/services/openvpn/Makefile
index a1784f4..5290b0f 100644
--- a/package/network/services/openvpn/Makefile
+++ b/package/network/services/openvpn/Makefile
@@ -72,7 +72,6 @@ define Build/Configure
--disable-systemd \
--disable-plugins \
--disable-debug \
-   --disable-eurephia \
--disable-pkcs11 \
--enable-password-save \
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_LZO),--enable,--disable)-lzo \
@@ -80,7 +79,7 @@ define Build/Configure
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_SERVER),--enable,--disable)-server \
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_MANAGEMENT),--enable,--disable)-management
 \
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_SOCKS),--enable,--disable)-socks \
-   $(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_HTTP),--enable,--disable)-http \
+   $(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_HTTP),--enable,--disable)-http-proxy \
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_FRAGMENT),--enable,--disable)-fragment 
\
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_MULTIHOME),--enable,--disable)-multihome
 \
$(if 
$(CONFIG_OPENVPN_$(BUILD_VARIANT)_ENABLE_IPROUTE2),--enable,--disable)-iproute2 
\
-- 
2.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] generic: add missing 4.4 symbols

2015-12-14 Thread Dirk Neukirchen
found with omap target

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/generic/config-4.4 | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4
index 25a8d1b..094a505 100644
--- a/target/linux/generic/config-4.4
+++ b/target/linux/generic/config-4.4
@@ -648,6 +648,7 @@ CONFIG_CC_STACKPROTECTOR_NONE=y
 # CONFIG_CHARGER_MAX8903 is not set
 # CONFIG_CHARGER_RT9455 is not set
 # CONFIG_CHARGER_SMB347 is not set
+# CONFIG_CHARGER_TPS65217 is not set
 # CONFIG_CHARGER_TWL4030 is not set
 # CONFIG_CHECKPOINT_RESTORE is not set
 # CONFIG_CHELSIO_T1 is not set
@@ -1067,6 +1068,7 @@ CONFIG_EXPERT=y
 # CONFIG_EXT4_FS_SECURITY is not set
 CONFIG_EXT4_FS_XATTR=y
 CONFIG_EXT4_USE_FOR_EXT2=y
+CONFIG_EXT4_USE_FOR_EXT23=y
 # CONFIG_EXTCON is not set
 CONFIG_EXTRA_FIRMWARE=""
 CONFIG_EXTRA_TARGETS=""
@@ -4295,11 +4297,13 @@ CONFIG_TMPFS_XATTR=y
 # CONFIG_TOUCHSCREEN_EGALAX is not set
 # CONFIG_TOUCHSCREEN_ELAN is not set
 # CONFIG_TOUCHSCREEN_ELO is not set
+# CONFIG_TOUCHSCREEN_FT6236 is not set
 # CONFIG_TOUCHSCREEN_FUJITSU is not set
 # CONFIG_TOUCHSCREEN_GOODIX is not set
 # CONFIG_TOUCHSCREEN_GUNZE is not set
 # CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
 # CONFIG_TOUCHSCREEN_ILI210X is not set
+# CONFIG_TOUCHSCREEN_IMX6UL_TSC is not set
 # CONFIG_TOUCHSCREEN_INEXIO is not set
 # CONFIG_TOUCHSCREEN_MAX11801 is not set
 # CONFIG_TOUCHSCREEN_MCS5000 is not set
@@ -4308,6 +4312,7 @@ CONFIG_TMPFS_XATTR=y
 # CONFIG_TOUCHSCREEN_MTOUCH is not set
 # CONFIG_TOUCHSCREEN_PENMOUNT is not set
 # CONFIG_TOUCHSCREEN_PIXCIR is not set
+# CONFIG_TOUCHSCREEN_ROHM_BU21023 is not set
 # CONFIG_TOUCHSCREEN_S3C2410 is not set
 # CONFIG_TOUCHSCREEN_ST1232 is not set
 # CONFIG_TOUCHSCREEN_SUR40 is not set
@@ -4317,6 +4322,7 @@ CONFIG_TMPFS_XATTR=y
 # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
 # CONFIG_TOUCHSCREEN_TOUCHWIN is not set
 # CONFIG_TOUCHSCREEN_TPS6507X is not set
+# CONFIG_TOUCHSCREEN_TSC2004 is not set
 # CONFIG_TOUCHSCREEN_TSC2005 is not set
 # CONFIG_TOUCHSCREEN_TSC2007 is not set
 # CONFIG_TOUCHSCREEN_TSC_SERIO is not set
@@ -4324,6 +4330,7 @@ CONFIG_TMPFS_XATTR=y
 # CONFIG_TOUCHSCREEN_W90X900 is not set
 # CONFIG_TOUCHSCREEN_WACOM_I2C is not set
 # CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
+# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
 # CONFIG_TOUCHSCREEN_WM97XX is not set
 # CONFIG_TOUCHSCREEN_ZFORCE is not set
 # CONFIG_TPS6105X is not set
-- 
2.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] generic: add missing 4.4 symbols

2015-12-14 Thread Dirk Neukirchen
On 14.12.2015 20:19, Felix Fietkau wrote:
> On 2015-12-14 18:20, Dirk Neukirchen wrote:
>> found with omap target
>>
>> Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
>> ---
>>  target/linux/generic/config-4.4 | 7 +++
>>  1 file changed, 7 insertions(+)
>>
>> diff --git a/target/linux/generic/config-4.4 
>> b/target/linux/generic/config-4.4
>> index 25a8d1b..094a505 100644
>> --- a/target/linux/generic/config-4.4
>> +++ b/target/linux/generic/config-4.4
>> @@ -648,6 +648,7 @@ CONFIG_CC_STACKPROTECTOR_NONE=y
>>  # CONFIG_CHARGER_MAX8903 is not set
>>  # CONFIG_CHARGER_RT9455 is not set
>>  # CONFIG_CHARGER_SMB347 is not set
>> +# CONFIG_CHARGER_TPS65217 is not set
>>  # CONFIG_CHARGER_TWL4030 is not set
>>  # CONFIG_CHECKPOINT_RESTORE is not set
>>  # CONFIG_CHELSIO_T1 is not set
>> @@ -1067,6 +1068,7 @@ CONFIG_EXPERT=y
>>  # CONFIG_EXT4_FS_SECURITY is not set
>>  CONFIG_EXT4_FS_XATTR=y
>>  CONFIG_EXT4_USE_FOR_EXT2=y
>> +CONFIG_EXT4_USE_FOR_EXT23=y
> Why do you add this only to remove it again in the next patch?
> 

Sorry, this is indeed not necessary.
I was bisecting kernel versions (4.1..4.4) and thought I cleaned up :/


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


[OpenWrt-Devel] [PATCH] kernel: remove obsolete config symbols from 4.4

2015-12-14 Thread Dirk Neukirchen
Only remove old symbols for 4.4 since older Kernels might be
removed sooner/later and 4.4 is the next LTS

build tested against omap 4.4 CONFIG_ALL_KMODS

291 old symbols in generic were found and deleted

selected but no longer functional symbols overview:
-CONFIG_ARPD=y
-CONFIG_BT_L2CAP=y
-CONFIG_BT_SCO=y
-CONFIG_CAVIUM_OCTEON_HELPER=y
-CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
-CONFIG_DISABLE_DEV_COREDUMP=y
-CONFIG_EXPERIMENTAL=y
-CONFIG_EXT4_FS_XATTR=y
-CONFIG_EXT4_USE_FOR_EXT23=y
-CONFIG_GENERIC_HARDIRQS=y
-CONFIG_HOTPLUG=y
-CONFIG_INITRAMFS_COMPRESSION_NONE=y
-CONFIG_INLINE_SPIN_UNLOCK=y
-CONFIG_LEDS_GPIO_OF=y
-CONFIG_LEDS_GPIO_PLATFORM=y
-CONFIG_MFD_SUPPORT=y
-CONFIG_MISC_DEVICES=y
-CONFIG_MTD_CHAR=y
-CONFIG_NETDEV_1000=y
-CONFIG_NET_ETHERNET=y
-CONFIG_NET_PCI=y
-CONFIG_NET_VENDOR_SILICOM=y
-CONFIG_SCSI_MULTI_LUN=y
-CONFIG_UIDGID_STRICT_TYPE_CHECKS=y
-CONFIG_USB_ARCH_HAS_EHCI=y
-CONFIG_USB_ARCH_HAS_OHCI=y
-CONFIG_USB_DEVICEFS=y
-CONFIG_USB_EZUSB=y


Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
I wrote a script to collect available Kernel config symbols
from a tree (external tree in my case) and OpenWrt specific addons (in target/)
and check against symbols in generic (or omap in my case)

see 
https://github.com/plntyk/openwrt-patches/blob/master/scripts/check_oldsymbols.sh

it creates a url to make querying lkddb more efficient

feel free to use/test/verify

 target/linux/generic/config-4.4 | 291 
 1 file changed, 291 deletions(-)

diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4
index 094a505..8630902 100644
--- a/target/linux/generic/config-4.4
+++ b/target/linux/generic/config-4.4
@@ -16,9 +16,6 @@ CONFIG_32BIT=y
 # CONFIG_ACPI_CUSTOM_METHOD is not set
 # CONFIG_ACPI_EXTLOG is not set
 # CONFIG_ACPI_HED is not set
-# CONFIG_ACPI_INT3403_THERMAL is not set
-# CONFIG_ACPI_POWER_METER is not set
-# CONFIG_ACPI_QUICKSTART is not set
 # CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
 # CONFIG_AD2S1200 is not set
 # CONFIG_AD2S1210 is not set
@@ -36,7 +33,6 @@ CONFIG_32BIT=y
 # CONFIG_AD5755 is not set
 # CONFIG_AD5764 is not set
 # CONFIG_AD5791 is not set
-# CONFIG_AD5930 is not set
 # CONFIG_AD5933 is not set
 # CONFIG_AD7150 is not set
 # CONFIG_AD7152 is not set
@@ -60,10 +56,6 @@ CONFIG_32BIT=y
 # CONFIG_AD9523 is not set
 # CONFIG_AD9832 is not set
 # CONFIG_AD9834 is not set
-# CONFIG_AD9850 is not set
-# CONFIG_AD9852 is not set
-# CONFIG_AD9910 is not set
-# CONFIG_AD9951 is not set
 # CONFIG_ADAPTEC_STARFIRE is not set
 # CONFIG_ADE7753 is not set
 # CONFIG_ADE7754 is not set
@@ -82,7 +74,6 @@ CONFIG_32BIT=y
 # CONFIG_ADIS16209 is not set
 # CONFIG_ADIS16220 is not set
 # CONFIG_ADIS16240 is not set
-# CONFIG_ADIS16255 is not set
 # CONFIG_ADIS16260 is not set
 # CONFIG_ADIS16400 is not set
 # CONFIG_ADIS16480 is not set
@@ -107,7 +98,6 @@ CONFIG_AIO=y
 # CONFIG_AK09911 is not set
 # CONFIG_AK8975 is not set
 # CONFIG_AL3320A is not set
-# CONFIG_ALCHEMY_GPIO_INDIRECT is not set
 # CONFIG_ALIM7101_WDT is not set
 CONFIG_ALLOW_DEV_COREDUMP=y
 # CONFIG_ALTERA_MBOX is not set
@@ -118,7 +108,6 @@ CONFIG_ALLOW_DEV_COREDUMP=y
 # CONFIG_AMD8111_ETH is not set
 # CONFIG_AMD_PHY is not set
 # CONFIG_AMD_XGBE is not set
-# CONFIG_AMD_XGBE_PHY is not set
 # CONFIG_AMIGA_PARTITION is not set
 # CONFIG_AMILO_RFKILL is not set
 # CONFIG_ANDROID is not set
@@ -137,7 +126,6 @@ CONFIG_ANON_INODES=y
 # CONFIG_ARCH_AT91 is not set
 # CONFIG_ARCH_BCM is not set
 # CONFIG_ARCH_BCM2835 is not set
-# CONFIG_ARCH_BCMRING is not set
 # CONFIG_ARCH_BERLIN is not set
 # CONFIG_ARCH_CLPS711X is not set
 # CONFIG_ARCH_CNS3XXX is not set
@@ -151,7 +139,6 @@ CONFIG_ANON_INODES=y
 CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_FOOTBRIDGE is not set
 # CONFIG_ARCH_GEMINI is not set
-# CONFIG_ARCH_H720X is not set
 # CONFIG_ARCH_HAS_ILOG2_U32 is not set
 # CONFIG_ARCH_HAS_ILOG2_U64 is not set
 # CONFIG_ARCH_HI3xxx is not set
@@ -161,19 +148,13 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_IOP13XX is not set
 # CONFIG_ARCH_IOP32X is not set
 # CONFIG_ARCH_IOP33X is not set
-# CONFIG_ARCH_IXP2000 is not set
-# CONFIG_ARCH_IXP23XX is not set
 # CONFIG_ARCH_IXP4XX is not set
 # CONFIG_ARCH_KEYSTONE is not set
-# CONFIG_ARCH_KIRKWOOD is not set
 # CONFIG_ARCH_KS8695 is not set
 # CONFIG_ARCH_LPC32XX is not set
 # CONFIG_ARCH_MEDIATEK is not set
 # CONFIG_ARCH_MESON is not set
 # CONFIG_ARCH_MMP is not set
-# CONFIG_ARCH_MSM is not set
-# CONFIG_ARCH_MSM_DT is not set
-# CONFIG_ARCH_MSM_NODT is not set
 # CONFIG_ARCH_MULTIPLATFORM is not set
 # CONFIG_ARCH_MULTI_V6 is not set
 # CONFIG_ARCH_MULTI_V7 is not set
@@ -185,7 +166,6 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_NETX is not set
 # CONFIG_ARCH_NOMADIK is not set
 # CONFIG_ARCH_NSPIRE is not set
-# CONFIG_ARCH_NUC93X is not set
 # CONFIG_ARCH_OMAP is not set
 # CONFIG_ARCH_OMAP1 is not set
 # CONFIG_ARCH_OMAP2PLUS is not set
@@ -194,7 +174,6 @@ CONFIG_ARCH_FLATMEM_ENABLE=y
 # CONFIG_ARCH_O

[OpenWrt-Devel] [PATCH] kernel: kmod-ptp selects a new config symbol

2015-12-14 Thread Dirk Neukirchen
since Kernel 3.14
408eccce net: ptp: move PTP classifier in its own file

found while bug search
thx olmari on IRC

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/linux/modules/other.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/other.mk 
b/package/kernel/linux/modules/other.mk
index 9bb9dec..62fdc3c 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -820,7 +820,9 @@ define KernelPackage/ptp
   SUBMENU:=$(OTHER_MENU)
   TITLE:=PTP clock support
   DEPENDS:=+kmod-pps
-  KCONFIG:=CONFIG_PTP_1588_CLOCK
+  KCONFIG:= \
+   CONFIG_PTP_1588_CLOCK \
+   CONFIG_NET_PTP_CLASSIFY=y
   FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko
   AUTOLOAD:=$(call AutoLoad,18,ptp,1)
 endef
-- 
2.6.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] omap: add kernel 4.4

2015-12-12 Thread Dirk Neukirchen
- tested on Beagleboard C4

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
a bootlog of Kernel 4.4-rc4 with u-boot 2015.10 (see other patch)
is available at: paste.debian.net/343602


 target/linux/omap/config-4.4 | 721 +++
 1 file changed, 721 insertions(+)
 create mode 100644 target/linux/omap/config-4.4

diff --git a/target/linux/omap/config-4.4 b/target/linux/omap/config-4.4
new file mode 100644
index 000..1e77fe9
--- /dev/null
+++ b/target/linux/omap/config-4.4
@@ -0,0 +1,721 @@
+CONFIG_ALIGNMENT_TRAP=y
+# CONFIG_APM_EMULATION is not set
+CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
+CONFIG_ARCH_HAS_BANDGAP=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
+CONFIG_ARCH_HAS_SG_CHAIN=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
+CONFIG_ARCH_MULTIPLATFORM=y
+# CONFIG_ARCH_MULTI_CPU_AUTO is not set
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_MULTI_V6_V7=y
+CONFIG_ARCH_NR_GPIO=0
+CONFIG_ARCH_OMAP=y
+CONFIG_ARCH_OMAP2PLUS=y
+CONFIG_ARCH_OMAP2PLUS_TYPICAL=y
+CONFIG_ARCH_OMAP3=y
+CONFIG_ARCH_OMAP4=y
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_USE_BUILTIN_BSWAP=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
+# CONFIG_ARCH_WM8750 is not set
+CONFIG_ARM=y
+CONFIG_ARM_APPENDED_DTB=y
+CONFIG_ARM_ATAG_DTB_COMPAT=y
+# CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is not set
+CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y
+# CONFIG_ARM_CPU_SUSPEND is not set
+CONFIG_ARM_ERRATA_411920=y
+CONFIG_ARM_HAS_SG_CHAIN=y
+CONFIG_ARM_HEAVY_MB=y
+CONFIG_ARM_L1_CACHE_SHIFT=5
+# CONFIG_ARM_LPAE is not set
+# CONFIG_ARM_OMAP2PLUS_CPUFREQ is not set
+CONFIG_ARM_PATCH_PHYS_VIRT=y
+CONFIG_ARM_THUMB=y
+CONFIG_ARM_THUMBEE=y
+CONFIG_ASSOCIATIVE_ARRAY=y
+CONFIG_AT803X_PHY=y
+CONFIG_ATA=y
+# CONFIG_ATH_CARDS is not set
+CONFIG_AUDIT=y
+# CONFIG_AUDITSYSCALL is not set
+CONFIG_AUDIT_GENERIC=y
+CONFIG_AUTO_ZRELADDR=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+# CONFIG_BACKLIGHT_GENERIC is not set
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
+# CONFIG_BACKLIGHT_PM8941_WLED is not set
+# CONFIG_BACKLIGHT_PWM is not set
+# CONFIG_BACKLIGHT_TPS65217 is not set
+CONFIG_BCH=y
+CONFIG_BINFMT_MISC=y
+CONFIG_BLK_CGROUP=y
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_RAM_COUNT=16
+CONFIG_BLK_DEV_RAM_SIZE=16384
+CONFIG_BLK_DEV_SD=y
+CONFIG_BMP085=y
+CONFIG_BMP085_I2C=y
+CONFIG_BOUNCE=y
+CONFIG_BSD_PROCESS_ACCT=y
+CONFIG_BUILD_BIN2C=y
+CONFIG_CACHE_L2X0=y
+CONFIG_CLKDEV_LOOKUP=y
+CONFIG_CLKSRC_MMIO=y
+CONFIG_CLKSRC_OF=y
+CONFIG_CLKSRC_PROBE=y
+CONFIG_CLKSRC_TI_32K=y
+# CONFIG_CLK_TWL6040 is not set
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CMA=y
+CONFIG_CMA_ALIGNMENT=8
+CONFIG_CMA_AREAS=7
+# CONFIG_CMA_DEBUG is not set
+# CONFIG_CMA_DEBUGFS is not set
+CONFIG_CMA_SIZE_MBYTES=16
+# CONFIG_CMA_SIZE_SEL_MAX is not set
+CONFIG_CMA_SIZE_SEL_MBYTES=y
+# CONFIG_CMA_SIZE_SEL_MIN is not set
+# CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set
+CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyO2,115200"
+CONFIG_COMMON_CLK=y
+# CONFIG_COMMON_CLK_PALMAS is not set
+CONFIG_CONFIGFS_FS=y
+CONFIG_CONNECTOR=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUSETS=y
+CONFIG_CPU_32v6=y
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_ABRT_EV6=y
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V6=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_STAT_DETAILS=y
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_IDLE=y
+CONFIG_CPU_IDLE_GOV_LADDER=y
+CONFIG_CPU_IDLE_GOV_MENU=y
+CONFIG_CPU_PABRT_V6=y
+CONFIG_CPU_PM=y
+CONFIG_CPU_THERMAL=y
+CONFIG_CPU_TLB_V6=y
+CONFIG_CPU_V6=y
+CONFIG_CPU_V6K=y
+CONFIG_CRAMFS=y
+CONFIG_CRC16=y
+CONFIG_CRC7=y
+CONFIG_CRC_CCITT=y
+CONFIG_CRC_ITU_T=y
+CONFIG_CRC_T10DIF=y
+CONFIG_DDR=y
+# CONFIG_DEBUG_BLK_CGROUP is not set
+CONFIG_DEBUG_GPIO=y
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
+CONFIG_DEBUG_LOCK_ALLOC=y
+CONFIG_DEBUG_MUTEXES=y
+CONFIG_DEBUG_SPINLOCK=y
+# CONFIG_DEBUG_UART_8250 is not set
+# CONFIG_DEBUG_USER is not set
+CONFIG_DEVTMPFS=y
+CONFIG_DEVTMPFS_MOUNT=y
+CONFIG_DEV_COREDUMP=y
+CONFIG_DIS

[OpenWrt-Devel] [PATCH] add opkg host dependency

2015-12-10 Thread Dirk Neukirchen
fixes a missing host opkg
found by: unselect base-files, opkg

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/Makefile b/package/Makefile
index cc691b5..aa5d522 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -91,7 +91,7 @@ PACKAGE_INSTALL_FILES:= \
 $(curdir)/cleanup: $(TMP_DIR)/.build
rm -rf $(STAGING_DIR_ROOT)
 
-$(curdir)/install: $(TMP_DIR)/.build
+$(curdir)/install: $(TMP_DIR)/.build $(curdir)/system/opkg/host/install
- find $(STAGING_DIR_ROOT) -type d | $(XARGS) chmod 0755
rm -rf $(TARGET_DIR)
[ -d $(TARGET_DIR)/tmp ] || mkdir -p $(TARGET_DIR)/tmp
-- 
2.6.3
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Issues with Intel Wifi 7260 AC

2015-12-02 Thread Dirk Neukirchen
On 30.11.2015 19:35, Carlos Ferreira wrote:
>  Direct firmware load for
> iwlwifi-7260-17.ucode failed with error -2

Originally IWLWIFI versions depend on Kernel versions.see[3]

Since we use a separate mac80211 we should not care about kernel
version - since we use "development"/newest drivers

iwlwifi seems to expect newer firmware too.
- rev. 17 does not seem to be published yet.
- rev. 16 (iwlwifi-7260-16.ucode) is available in linux-firmware[1]
- rev 14,15 are not in mainline linux-firmware but in other repos[2]

Older Firmware is supposed to work with newer drivers according
to iwlwifi documentation[3] - Kernel 3.10+ means that this should
work with later versions too

iwlwifi is a little bit untested on OpenWrt because AP/5GHz issue
on cards. So maybe its a bug with firmware or code itself and
you could report it to the wireless/iwlwifi kernel guys.
See wireless kernel wiki page[4]

[1]http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/
[2]
https://chromium.googlesource.com/chromiumos/third_party/linux-firmware/
https://github.com/OpenELEC/iwlwifi-firmware/tree/master/firmware
[3]https://wireless.wiki.kernel.org/en/users/Drivers/iwlwifi
[4]https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Fast build testing [Was: Git mirror with branches, tags and full history]

2015-12-02 Thread Dirk Neukirchen
On 01.12.2015 18:17, Bastian Bittorf wrote:
> * Petr Štetiar  [30.11.2015 13:47]:
>>> build testing OpenWrt can be *really* fast, if you
>>>
>>> a) build in a ram-disk
>>> b) use dedicated hardware for each architecture
>>>
>>> i bet it's about 300 seconds for a full fresh
>>> distributed build for *all* architectures.
>>
>> That sounds really great, can you please share more details? It's just your
>> guess or you've achieved such build times already?
> 
> i just retested on one spare machine:
> Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
> 
> you need ~12 tmpfs and a
> "make clean; make -j25"
> runs in 310 secs. it seems to last very long
> to generate the image-files, compiling itself is fast.
> 
> tomorrow i will test another board with 4ghz AMD.
> 

Can you please add some compile speed numbers
on cloud service/workstation/ >8thread hardware to
this wiki page: https://wiki.openwrt.org/doc/faq/development


> my idea was, that people of the community can "spend"
> cpu-time and run builds for only 1 arch after each checkin.
> 
> bye, bastian
> ___
> 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] openwrt gpsd compilation fail

2015-11-17 Thread Dirk Neukirchen
On 12.11.2015 20:41, Pushpal Sidhu wrote:
> Hi Luigi,
> 
> On Thu, Nov 12, 2015 at 9:27 AM, luigi findanno <lfinda...@yahoo.it> wrote:
>>
>> Hi, I'm trying to compile openwrt for raspberry pi but I found this error:
>>
>> http://pastebin.com/yQFhza8Y
>>
>> I don't know how to go on. I found your email in the Makefile and I'll be 
>> happy if you can help me.
>> Regards
>> Luigi Findanno
> 
> 
> I just pulled down the latest openwrt and latest packages and built
> gpsd, gpsd-clients, and libgps for an arm cortex-a9. I then selected
> the Raspberry Pi 2 Model B target and built just fine, so I'm not
> totally sure what you're seeing. Can you run a 'strip --version' and
> give me that info please? I imagine that your tool needs to be
> updated.
> 
> - Pushpal
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 

This patch should fix this issue (it seems an option name was changed)
feel free to use/push to github packages repo

gpsd: fix strip in build

current SConstruct file contains a "nostrip" option

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 utils/gpsd/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/gpsd/Makefile b/utils/gpsd/Makefile
index df67cf8..2351f71 100644
--- a/utils/gpsd/Makefile
+++ b/utils/gpsd/Makefile
@@ -97,7 +97,7 @@ SCONS_OPTIONS += \
libgpsmm=no \
libQgpsmm=no \
bluez=no \
-   strip=no \
+   nostrip=yes \
python=no \
implicit_link=no \
chrpath=no
-- 
2.6.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] uboot-omap: update to 2015.10-rc3

2015-09-20 Thread Dirk Neukirchen
- remove upstream patches

- disable THUMB mode on OMAP3 this increases binary size
(remove CONFIG_SYS_THUMB_BUILD)
- reduce SPL size by disabling EXT feature
(remove CONFIG_SPL_EXT_SUPPORT)

this fixes 2015.07 and 2015.10-rc3
Beagleboard C4 booting
which were broken by upstream commit
with id: bd2c4522c26d535515aebca52d27c004a7e0c05c

Arm THUMB mode is broken because of an yet unknown errata
see: http://lists.denx.de/pipermail/u-boot/2015-August/225793.html

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---

The previous patch had some issues:
- patch series not needed
- sign-off missing

I bisected the boot issue on beagleboard C4 and later found some
mailing list post with the same problem - so I reverted the commit
that is breaking boot.
Divide the revert into 2 patches
because one is a compile fix (affects size/features) while
the other is the Arm errata/THUMB problem.

be aware uboot 2015.10-rc3 has some changes to default ubootenv
that affect boot scripts.

 package/boot/uboot-omap/Makefile   |  4 +--
 .../uboot-omap/patches/001-switch_omap4_ext4.patch |  6 ++--
 .../boot/uboot-omap/patches/002-fix_jffs2.patch| 34 --
 .../uboot-omap/patches/003-fix_findfdt_C4.patch| 11 ---
 .../patches/010-omap3_disable_thumb.patch  | 11 +++
 .../patches/011-omap3_reduce_spl_rodata.patch  | 10 +++
 6 files changed, 26 insertions(+), 50 deletions(-)
 delete mode 100644 package/boot/uboot-omap/patches/002-fix_jffs2.patch
 delete mode 100644 package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch
 create mode 100644 
package/boot/uboot-omap/patches/010-omap3_disable_thumb.patch
 create mode 100644 
package/boot/uboot-omap/patches/011-omap3_reduce_spl_rodata.patch

diff --git a/package/boot/uboot-omap/Makefile b/package/boot/uboot-omap/Makefile
index e21e2e1..0b5c51c 100644
--- a/package/boot/uboot-omap/Makefile
+++ b/package/boot/uboot-omap/Makefile
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=u-boot
-PKG_VERSION:=2013.10
+PKG_VERSION:=2015.10-rc3
 PKG_RELEASE:=1
 
 
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
@@ -16,7 +16,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:= \
http://mirror2.openwrt.org/sources \
ftp://ftp.denx.de/pub/u-boot
-PKG_MD5SUM:=a076a044b64371edc52f7e562b13f6b2
+PKG_MD5SUM:=e7a72e070ca43b6b1979007d764e625e
 
 PKG_LICENSE:=GPL-2.0 GPL-2.0+
 PKG_LICENSE_FILES:=Licenses/README
diff --git a/package/boot/uboot-omap/patches/001-switch_omap4_ext4.patch 
b/package/boot/uboot-omap/patches/001-switch_omap4_ext4.patch
index d741c08..785a750 100644
--- a/package/boot/uboot-omap/patches/001-switch_omap4_ext4.patch
+++ b/package/boot/uboot-omap/patches/001-switch_omap4_ext4.patch
@@ -1,6 +1,6 @@
 a/include/configs/omap4_common
-+++ b/include/configs/omap4_common.h
-@@ -143,7 +143,7 @@
+--- a/include/configs/ti_omap4_common.h
 b/include/configs/ti_omap4_common.h
+@@ -92,7 +92,7 @@
"vram=16M\0" \
"mmcdev=0\0" \
"mmcroot=/dev/mmcblk0p2 rw\0" \
diff --git a/package/boot/uboot-omap/patches/002-fix_jffs2.patch 
b/package/boot/uboot-omap/patches/002-fix_jffs2.patch
deleted file mode 100644
index cba0e25..000
--- a/package/boot/uboot-omap/patches/002-fix_jffs2.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-Building boards that have JFFS2 support enabled will fail when using
-U-Boot's builtin GCC library, for example like this:
-
-USE_PRIVATE_LIBGCC=yes ./MAKEALL omap3_evm
-...
-fs/jffs2/libjffs2.o: In function `jffs2_1pass_build_lists':
-fs/jffs2/jffs2_1pass.c:1441: undefined reference to `__aeabi_uldivmod'
-
-This is caused by a u64 / u32 division in jffs2_1pass.c; the problem
-can be avoided by using do_div() instead of plain division.
-
-Signed-off-by: Wolfgang Denk <w...@denx.de>
-Reported-by: Chris Ruehl <chris.ru...@gtsys.com.hk>
-Cc: Chris Ruehl <chris.ru...@gtsys.com.hk>
-

- fs/jffs2/jffs2_1pass.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c
-index c856983..a7dbe79 100644
 a/fs/jffs2/jffs2_1pass.c
-+++ b/fs/jffs2/jffs2_1pass.c
-@@ -1438,7 +1438,7 @@ jffs2_1pass_build_lists(struct part_info * part)
- {
-   struct b_lists *pL;
-   struct jffs2_unknown_node *node;
--  u32 nr_sectors = part->size/part->sector_size;
-+  u32 nr_sectors = do_div(part->size, part->sector_size);
-   u32 i;
-   u32 counter4 = 0;
-   u32 counterF = 0;
---
-1.8.3.1
diff --git a/package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch 
b/package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch
deleted file mode 100644
index b0b85e5..000
--- a/package/boot/uboot-omap/patches/003-fix_findfdt_C4.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/include/configs/omap3_beagle.h
-+++ b/include/configs/omap3_beagle.h
-@@ -242,6 +242,8 @@
-   "setenv fdt

Re: [OpenWrt-Devel] [Patch 1/3] Update uboot-omap to 15.07

2015-09-18 Thread Dirk Neukirchen
On 17.09.2015 21:22, Tara Lorenz wrote:
> 
> Hello everybody,
> 
> the old uboot-omap package fails to compile when using gcc 5.x.
> Therefore i made a patch using a more recent version of u-boot.
> I decided to choose 15.07, the same version as currently used for the
> sunxi based boards.
> 
> So far i only tested that the package can now be compiled using
> gcc 5.x.  I can test functionality for beagle-board, beagle-bone
> and panda-board during the weekend, if that's needed.
> 
> I hope it's helpful somehow.
> 
> Cheers, Tara
> 

u-boot 2015.07 does not boot at my end.
Hardware: BeagleBoard C4 ("ebvbeagle")

I was doing some development locally and wanted to update u-boot but 
the MLO seems to be broken.
2015.04 works (all earlier versions work too)
2015.07 does not work (holding USR button, pressing RESET does not work)
2015.10-rc3 does not work

I used default gcc 4.8 to eliminate compile issues (backporting gcc5 patches 
to uboot 2013 works)

Please test the update on your 3 boards

working bootlog - as written before 2015.07 does not react/print anything:

U-Boot SPL 2015.04 (Sep 18 2015 - 08:05:03)
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 2015.04 (Sep 18 2015 - 08:05:03)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment

Beagle Rev C4
Timed out in wait_for_event: status=
Check if pads/pull-ups of bus 1 are properly configured
No EEPROM on expansion board
Die ID #2f920004040365fa16001013
Net:   usb_ether
Error: usb_ether address not set.

Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
gpio: pin 173 (gpio 173) value is 1
gpio: pin 7 (gpio 7) value is 0
SD/MMC found on device 0
reading uEnv.txt
488 bytes read in 5 ms (94.7 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading openwrt-omap-zImage
2081208 bytes read in 160 ms (12.4 MiB/s)
reading omap3-beagle.dtb
61168 bytes read in 12 ms (4.9 MiB/s)
Kernel image @ 0x8020 [ 0x00 - 0x1fc1b8 ]
## Flattened Device Tree blob at 80f8
   Booting using the fdt blob at 0x80f8
   Using Device Tree in place at 80f8, end 80f91eef

Starting kernel ...

[0.00] Booting Linux on physical CPU 0x0
[0.00] Linux version 3.18.21 (tenchi@tenchi-htpc) (gcc version 4.8.3 
(OpenWrt/Linaro GCC 4.8-2014.04 r46986) ) #1 SMP Fri Sep 18 08:08:04 CEST 2015
[0.00] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387d
[0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing 
instruction cache
[0.00] Machine model: TI OMAP3 BeagleBoard
...


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


[OpenWrt-Devel] [PATCH] arm64: switch to Kernel 4.1

2015-09-18 Thread Dirk Neukirchen
- fix Kernel dts subdir location
- enable virtio networking
  we are using -M virt which supports virtio devices

changes in symbols due to make kernel_oldconfig:

- CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y : removed
fix security: upstream id: d1fd836dcf00d2028c700c7e44d2c23404062c90

- CONFIG_ARM64_CPU_SUSPEND: removed
commit id: af3cfdbf56b91785650f54e7c9a899d814b4b9fb

- CONFIG_ARM64_PGTABLE_LEVELS=3 : renamed PGTABLE_LEVELS
commit id: 9f25e6ad58e1fb3b4d441e4c55635c4598a6fa94

- CONFIG_GENERIC_CLOCKEVENTS_BUILD=y : removed upstream
commit id: 9f083b74df3a7eaa100b456f2dc195512daf728e

-# CONFIG_PREEMPT_RCU: unnecessary

unknown remove reasons:
-CONFIG_GENERIC_IOMAP=y
-# CONFIG_POWER_RESET_GPIO is not set
-# CONFIG_POWER_RESET_GPIO_RESTART is not set
-# CONFIG_POWER_RESET_LTC2952 is not set
-# CONFIG_POWER_RESET_SYSCON is not set
-# CONFIG_XEN is not set

tested and boot, networking work with qemu

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/arm64/Makefile|  2 +-
 target/linux/arm64/config-default  | 56 --
 target/linux/arm64/image/boot-wrapper/Makefile |  2 +-
 3 files changed, 46 insertions(+), 14 deletions(-)

diff --git a/target/linux/arm64/Makefile b/target/linux/arm64/Makefile
index 8292cfe..25ece9a 100644
--- a/target/linux/arm64/Makefile
+++ b/target/linux/arm64/Makefile
@@ -13,7 +13,7 @@ FEATURES:=fpu ramdisk
 CFLAGS:=-Os -pipe -fno-caller-saves
 MAINTAINER:=Florian Fainelli <flor...@openwrt.org>
 
-KERNEL_PATCHVER:=3.18
+KERNEL_PATCHVER:=4.1
 
 DEVICE_TYPE:=developerboard
 
diff --git a/target/linux/arm64/config-default 
b/target/linux/arm64/config-default
index 1ff61d5..55d333d 100644
--- a/target/linux/arm64/config-default
+++ b/target/linux/arm64/config-default
@@ -1,16 +1,31 @@
 CONFIG_64BIT=y
-CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
+CONFIG_ACPI=y
+# CONFIG_ACPI_CONTAINER is not set
+# CONFIG_ACPI_CUSTOM_DSDT is not set
+# CONFIG_ACPI_DEBUG is not set
+# CONFIG_ACPI_DOCK is not set
+# CONFIG_ACPI_EC_DEBUGFS is not set
+CONFIG_ACPI_GENERIC_GSI=y
+# CONFIG_ACPI_PCI_SLOT is not set
+# CONFIG_ACPI_PROCFS_POWER is not set
+CONFIG_ACPI_REDUCED_HARDWARE_ONLY=y
 CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+# CONFIG_ARCH_EXYNOS7 is not set
+# CONFIG_ARCH_FSL_LS2085A is not set
 CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
 CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
 CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
 CONFIG_ARCH_HAS_SG_CHAIN=y
 CONFIG_ARCH_HAS_TICK_BROADCAST=y
 CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
 CONFIG_ARCH_REQUIRE_GPIOLIB=y
+# CONFIG_ARCH_SEATTLE is not set
 CONFIG_ARCH_SELECT_MEMORY_MODEL=y
 CONFIG_ARCH_SPARSEMEM_DEFAULT=y
 CONFIG_ARCH_SPARSEMEM_ENABLE=y
+# CONFIG_ARCH_SPRD is not set
 CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
 CONFIG_ARCH_SUSPEND_POSSIBLE=y
 # CONFIG_ARCH_THUNDER is not set
@@ -22,10 +37,10 @@ CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
 CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
 CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
 # CONFIG_ARCH_XGENE is not set
+# CONFIG_ARCH_ZYNQMP is not set
 CONFIG_ARM64=y
 CONFIG_ARM64_4K_PAGES=y
 # CONFIG_ARM64_64K_PAGES is not set
-# CONFIG_ARM64_CPU_SUSPEND is not set
 # CONFIG_ARM64_CRYPTO is not set
 CONFIG_ARM64_ERRATUM_819472=y
 CONFIG_ARM64_ERRATUM_824069=y
@@ -33,11 +48,12 @@ CONFIG_ARM64_ERRATUM_826319=y
 CONFIG_ARM64_ERRATUM_827319=y
 CONFIG_ARM64_ERRATUM_832075=y
 CONFIG_ARM64_ERRATUM_845719=y
-CONFIG_ARM64_PGTABLE_LEVELS=3
+# CONFIG_ARM64_PTDUMP is not set
 # CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
 CONFIG_ARM64_VA_BITS=39
 CONFIG_ARM64_VA_BITS_39=y
 # CONFIG_ARM64_VA_BITS_48 is not set
+# CONFIG_ARMV8_DEPRECATED is not set
 CONFIG_ARM_AMBA=y
 CONFIG_ARM_ARCH_TIMER=y
 CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
@@ -46,6 +62,7 @@ CONFIG_ARM_GIC_V3=y
 # CONFIG_ARM_SP805_WATCHDOG is not set
 CONFIG_ATOMIC64_SELFTEST=y
 CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y
+CONFIG_AVERAGE=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_BLOCK_COMPAT=y
 CONFIG_BOUNCE=y
@@ -73,6 +90,8 @@ CONFIG_CRC16=y
 CONFIG_CRYPTO_CRC32C=y
 CONFIG_CRYPTO_HASH=y
 CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_WORKQUEUE=y
 CONFIG_CUSE=y
 CONFIG_DCACHE_WORD_ACCESS=y
 CONFIG_DEBUG_INFO=y
@@ -92,20 +111,22 @@ CONFIG_FB_CFB_FILLRECT=y
 CONFIG_FB_CFB_IMAGEBLIT=y
 CONFIG_FB_CMDLINE=y
 CONFIG_FB_MODE_HELPERS=y
+# CONFIG_FB_SM750 is not set
 CONFIG_FIX_EARLYCON_MEM=y
 CONFIG_FRAME_POINTER=y
+# CONFIG_FSL_MC_BUS is not set
+# CONFIG_FS_DAX is not set
 CONFIG_FS_MBCACHE=y
 CONFIG_FUSE_FS=y
 CONFIG_GENERIC_ALLOCATOR=y
 CONFIG_GENERIC_CLOCKEVENTS=y
 CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
-CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
 CONFIG_GENERIC_CPU_AUTOPROBE=y
 CONFIG_GENERIC_CSUM=y
 CONFIG_GENERIC_EARLY_IOREMAP=y
 CONFIG_GENERIC_IO=y
-CONFIG_GENERIC_IOMAP=y
 CONFIG_GENERIC_IRQ_SHOW=y
+CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_SCHED_CLOCK=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
@@ -113,6 +134,7 @@ CONFIG_GENERIC_STRNCPY_FROM_USER=y
 CONFIG_GENERIC_ST

[OpenWrt-Devel] [PATCH] can: disable xilinx CAN

2015-09-18 Thread Dirk Neukirchen
fix missing symbol on arm64

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/linux/modules/can.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/kernel/linux/modules/can.mk 
b/package/kernel/linux/modules/can.mk
index f9490b4..eeef88a 100644
--- a/package/kernel/linux/modules/can.mk
+++ b/package/kernel/linux/modules/can.mk
@@ -26,6 +26,7 @@ define KernelPackage/can
CONFIG_CAN_MSCAN=n \
CONFIG_CAN_SJA1000=n \
CONFIG_CAN_SOFTING=n \
+   CONFIG_CAN_XILINXCAN=n \
CONFIG_NET_EMATCH_CANID=n \
CONFIG_CAN_DEBUG_DEVICES=n
   FILES:=$(LINUX_DIR)/drivers/net/can/can-dev.ko \
-- 
2.5.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] omap: add Kernel 4.1

2015-09-18 Thread Dirk Neukirchen

tested on Beagleboard C4

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
bootlog: https://paste.debian.net/312304/

 target/linux/omap/config-4.1   | 540 +
 .../0334-video-da8xx-fb-adding-dt-support.patch| 201 
 ...-fb-Add-API-to-register-wait-for-vsync-ca.patch |  91 
 ...-fb-fix-defect-with-vsync-callback-invoca.patch |  38 ++
 ...ts-am335x-evmsk-add-support-for-lcd-panel.patch |  70 +++
 .../patches-4.1/950-am335x-evmsk-wilink-dts.patch  |  79 +++
 6 files changed, 1019 insertions(+)
 create mode 100644 target/linux/omap/config-4.1
 create mode 100644 
target/linux/omap/patches-4.1/0334-video-da8xx-fb-adding-dt-support.patch
 create mode 100644 
target/linux/omap/patches-4.1/0343-video-da8xx-fb-Add-API-to-register-wait-for-vsync-ca.patch
 create mode 100644 
target/linux/omap/patches-4.1/0752-video-da8xx-fb-fix-defect-with-vsync-callback-invoca.patch
 create mode 100644 
target/linux/omap/patches-4.1/920-arm-dts-am335x-evmsk-add-support-for-lcd-panel.patch
 create mode 100644 
target/linux/omap/patches-4.1/950-am335x-evmsk-wilink-dts.patch

diff --git a/target/linux/omap/config-4.1 b/target/linux/omap/config-4.1
new file mode 100644
index 000..14f13f0
--- /dev/null
+++ b/target/linux/omap/config-4.1
@@ -0,0 +1,540 @@
+CONFIG_ALIGNMENT_TRAP=y
+# CONFIG_APM_EMULATION is not set
+CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
+CONFIG_ARCH_HAS_BANDGAP=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
+CONFIG_ARCH_HAS_SG_CHAIN=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
+CONFIG_ARCH_MULTIPLATFORM=y
+# CONFIG_ARCH_MULTI_CPU_AUTO is not set
+CONFIG_ARCH_MULTI_V6_V7=y
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED=y
+CONFIG_ARCH_NR_GPIO=0
+CONFIG_ARCH_OMAP=y
+CONFIG_ARCH_OMAP2PLUS=y
+CONFIG_ARCH_OMAP2PLUS_TYPICAL=y
+CONFIG_ARCH_OMAP3=y
+CONFIG_ARCH_OMAP4=y
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_USE_BUILTIN_BSWAP=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
+CONFIG_ARM=y
+# CONFIG_ARM_CPUIDLE is not set
+CONFIG_ARM_CPU_SUSPEND=y
+CONFIG_ARM_ERRATA_720789=y
+CONFIG_ARM_ERRATA_754322=y
+CONFIG_ARM_ERRATA_775420=y
+CONFIG_ARM_GIC=y
+CONFIG_ARM_HAS_SG_CHAIN=y
+CONFIG_ARM_L1_CACHE_SHIFT=6
+CONFIG_ARM_L1_CACHE_SHIFT_6=y
+# CONFIG_ARM_LPAE is not set
+CONFIG_ARM_OMAP2PLUS_CPUFREQ=y
+CONFIG_ARM_PATCH_PHYS_VIRT=y
+CONFIG_ARM_THUMB=y
+# CONFIG_ARM_THUMBEE is not set
+CONFIG_ARM_VIRT_EXT=y
+CONFIG_AT803X_PHY=y
+CONFIG_AUTO_ZRELADDR=y
+CONFIG_AVERAGE=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+# CONFIG_BACKLIGHT_GENERIC is not set
+CONFIG_BACKLIGHT_LCD_SUPPORT=y
+CONFIG_BACKLIGHT_PWM=y
+# CONFIG_BACKLIGHT_TPS65217 is not set
+CONFIG_BCH=y
+CONFIG_BOUNCE=y
+CONFIG_CACHE_L2X0=y
+CONFIG_CLKDEV_LOOKUP=y
+CONFIG_CLKSRC_MMIO=y
+CONFIG_CLKSRC_OF=y
+# CONFIG_CLK_TWL6040 is not set
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CMDLINE="console=ttyO0,115200n8"
+CONFIG_COMMON_CLK=y
+CONFIG_CONSOLE_TRANSLATIONS=y
+# CONFIG_CPUFREQ_DT is not set
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v7=y
+CONFIG_CPU_ABRT_EV7=y
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V7=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
+# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
+CONFIG_CPU_FREQ_GOV_COMMON=y
+# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
+# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
+CONFIG_CPU_FREQ_STAT=y
+# CONFIG_CPU_FREQ_STAT_DETAILS is not set
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_IDLE=y
+CONFIG_CPU_IDLE_GOV_LADDER=y
+CONFIG_CPU_IDLE_GOV_MENU=y
+CONFIG_CPU_PABRT_V7=y
+CONFIG_CPU_PM=y
+CONFIG_CPU_RMAP=y
+CONFIG_CPU_TLB_V7=y
+CONFIG_CPU_V7=y
+CONFIG_CRC16=y
+CONFIG_CRYPTO_AEAD=m
+CONFIG_CRYPTO_AEAD2=m
+CONFIG_CRYPTO_CCM=m
+CONFIG_CRYPTO_CRC32C=y
+CONFIG_CRYPTO_CTR=m
+CONFIG_CRYPTO_GCM=m
+CONFIG_CRYPTO_GF128MUL=m
+CONFIG_CRYPTO_GHASH=m
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_MANAGER=m
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_NULL=m
+CONFIG_CRYPTO_RNG=m
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_SEQIV=m
+CONFIG_CRYPTO_WORKQUEUE=y
+CONFIG_DCACHE_WORD_ACCESS=y
+CONFIG_DDR=y
+CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
+# CONFIG_DEBUG_UART_8250 is not set
+# CO

[OpenWrt-Devel] [PATCH 2/3] mac80211: cleanup sort

2015-09-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 2115 +++---
 1 file changed, 1071 insertions(+), 1044 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 75a43dc..fa253f4 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -23,15 +23,28 @@ PKG_BUILD_PARALLEL:=1
 PKG_MAINTAINER:=Felix Fietkau <n...@openwrt.org>
 
 PKG_DRIVERS = \
-   adm8211 ath5k libertas-usb libertas-sdio p54-common p54-pci p54-usb 
p54-spi \
-   rt2x00-lib rt2x00-pci rt2x00-usb rt2800-lib rt2400-pci rt2500-pci \
-   rt2500-usb rt61-pci rt73-usb rt2800-mmio rt2800-pci rt2800-usb 
rt2800-soc \
-   rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
-   ath9k-common ath9k ath9k-htc ath10k ath libipw ipw2100 ipw2200 \
-   mwl8k mwifiex-pcie hermes hermes-pci hermes-plx hermes-pcmcia \
-   iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
+   adm8211 \
+   ath ath5k ath9k ath9k-common ath9k-htc ath10k \
+   b43 b43legacy \
+   carl9170 \
+   hermes hermes-pci hermes-pcmcia hermes-plx\
+   iwl-legacy iwl3945 iwl4965 iwlagn \
+   lib80211 \
+   libipw ipw2100 ipw2200 \
+   libertas-sdio libertas-usb \
+   mac80211-hwsim \
+   mt7601u \
+   mwl8k mwifiex-pcie \
+   p54-common p54-pci p54-spi p54-usb \
+   rt2x00-lib rt2x00-pci rt2x00-usb \
+   rt2400-pci rt2500-pci rt2500-usb \
+   rt2800-lib rt2800-mmio rt2800-pci rt2800-soc rt2800-usb \
+   rt61-pci rt73-usb \
+   rtl8180 rtl8187 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu mt7601u
+   rtl8192de rtl8192cu \
+   wlcore wl12xx wl18xx \
+   zd1211rw
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -126,369 +139,6 @@ define Download/linux-firmware
 endef
 $(eval $(call Download,linux-firmware))
 
-PKG_ATH10K_LINUX_FIRMWARE_NAME:=ath10k-firmware
-PKG_ATH10K_LINUX_FIRMWARE_VERSION:=b46f3e01a6c1f9150fb4612ef53611d714565842
-PKG_ATH10K_LINUX_FIRMWARE_SOURCE:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION).tar.bz2
-PKG_ATH10K_LINUX_FIRMWARE_PROTO:=git
-PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
-PKG_ATH10K_LINUX_FIRMWARE_SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION)
-#PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM:=?
-
-define Download/ath10k-firmware
-  FILE:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE)
-  URL:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL)
-  PROTO:=$(PKG_ATH10K_LINUX_FIRMWARE_PROTO)
-  VERSION:=$(PKG_ATH10K_LINUX_FIRMWARE_VERSION)
-  SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)
-  #MIRROR_MD5SUM:=$(PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM)
-endef
-$(eval $(call Download,ath10k-firmware))
-
-# Prism54 drivers
-P54PCIFW:=2.13.12.0.arm
-P54USBFW:=2.13.24.0.lm87.arm
-P54SPIFW:=2.13.0.0.a.13.14.arm
-
-define Download/p54usb
-  FILE:=$(P54USBFW)
-  URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
-  MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
-endef
-$(eval $(call Download,p54usb))
-
-define Download/p54pci
-  FILE:=$(P54PCIFW)
-  URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
-  MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
-endef
-$(eval $(call Download,p54pci))
-
-define Download/p54spi
-  FILE:=$(P54SPIFW)
-  URL:=http://daemonizer.de/prism54/prism54-fw/stlc4560
-  MD5SUM:=42661f8ecbadd88012807493f596081d
-endef
-$(eval $(call Download,p54spi))
-
-define KernelPackage/p54/Default
-  $(call KernelPackage/mac80211/Default)
-  TITLE:=Prism54 Drivers
-endef
-
-define KernelPackage/p54/description
-  Kernel module for Prism54 chipsets (mac80211)
-endef
-
-define KernelPackage/p54-common
-  $(call KernelPackage/p54/Default)
-  DEPENDS+= @PCI_SUPPORT||@USB_SUPPORT||@TARGET_omap24xx +kmod-mac80211 
+kmod-lib-crc-ccitt
-  TITLE+= (COMMON)
-  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54common.ko
-endef
-
-define KernelPackage/p54-pci
-  $(call KernelPackage/p54/Default)
-  TITLE+= (PCI)
-  DEPENDS+= @PCI_SUPPORT +kmod-p54-common
-  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54pci.ko
-  AUTOLOAD:=$(call AutoProbe,p54pci)
-endef
-
-define KernelPackage/p54-usb
-  $(call KernelPackage/p54/Default)
-  TITLE+= (USB)
-  DEPENDS+= @USB_SUPPORT +kmod-usb-core +kmod-p54-common
-  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54usb.ko
-  AUTOLOAD:=$(call AutoProbe,p54usb)
-endef
-
-define KernelPackage/p54-spi
-  $(call KernelPackage/p54/Default)
-  TITLE+= (SPI)
-  DEPENDS+= @TARGET_omap24xx +kmod-p54-common
-  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/p54/p54spi.ko
-  AUTOLOAD:=$(call AutoProbe,p54spi)
-endef
-
-define KernelPackage/rt2x00/Default
-  $(call KernelPackage/mac80211/Default)
-  TITLE:=Ralink Drivers for RT2x00 cards
-endef
-
-define KernelPackage/rt2x00-lib
-$(call KernelPackage/rt2x00/Default

[OpenWrt-Devel] [PATCH 1/3] mac80211: cleanup remove net prefixes

2015-09-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 82 
 1 file changed, 41 insertions(+), 41 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index a56825f..75a43dc 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -27,8 +27,8 @@ PKG_DRIVERS = \
rt2x00-lib rt2x00-pci rt2x00-usb rt2800-lib rt2400-pci rt2500-pci \
rt2500-usb rt61-pci rt73-usb rt2800-mmio rt2800-pci rt2800-usb 
rt2800-soc \
rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
-   ath9k-common ath9k ath9k-htc ath10k ath net-libipw net-ipw2100 
net-ipw2200 \
-   mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
+   ath9k-common ath9k ath9k-htc ath10k ath libipw ipw2100 ipw2200 \
+   mwl8k mwifiex-pcie hermes hermes-pci hermes-plx hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
rtl8192de rtl8192cu mt7601u
@@ -716,7 +716,7 @@ define KernelPackage/mt7601u
   AUTOLOAD:=$(call AutoProbe,mt7601)
 endef
 
-define KernelPackage/net-libipw
+define KernelPackage/libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
   DEPENDS:=@PCI_SUPPORT +kmod-crypto-michael-mic +kmod-lib80211 +kmod-cfg80211 
+@DRIVER_WEXT_SUPPORT @!BIG_ENDIAN
@@ -724,29 +724,29 @@ define KernelPackage/net-libipw
   AUTOLOAD:=$(call AutoProbe,libipw)
 endef
 
-define KernelPackage/net-libipw/description
+define KernelPackage/libipw/description
  Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
 endef
 
 IPW2100_NAME:=ipw2100-fw
 IPW2100_VERSION:=1.3
 
-define Download/net-ipw2100
+define Download/ipw2100
   URL:=http://bughost.org/firmware/
   FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
   MD5SUM=46aa75bcda1a00efa841f9707bbbd113
 endef
-$(eval $(call Download,net-ipw2100))
+$(eval $(call Download,ipw2100))
 
-define KernelPackage/net-ipw2100
+define KernelPackage/ipw2100
   $(call KernelPackage/mac80211/Default)
   TITLE:=Intel IPW2100 driver
-  DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
+  DEPENDS:=@PCI_SUPPORT +kmod-libipw
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2100.ko
   AUTOLOAD:=$(call AutoProbe,ipw2100)
 endef
 
-define KernelPackage/net-ipw2100/description
+define KernelPackage/ipw2100/description
  Kernel support for Intel IPW2100
  Includes:
  - ipw2100
@@ -755,29 +755,29 @@ endef
 IPW2200_NAME:=ipw2200-fw
 IPW2200_VERSION:=3.1
 
-define Download/net-ipw2200
+define Download/ipw2200
   URL:=http://bughost.org/firmware/
   FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
   MD5SUM=eaba788643c7cc7483dd67ace70f6e99
 endef
-$(eval $(call Download,net-ipw2200))
+$(eval $(call Download,ipw2200))
 
-define KernelPackage/net-ipw2200
+define KernelPackage/ipw2200
   $(call KernelPackage/mac80211/Default)
   TITLE:=Intel IPW2200 driver
-  DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
+  DEPENDS:=@PCI_SUPPORT +kmod-libipw
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2200.ko
   AUTOLOAD:=$(call AutoProbe,ipw2200)
 endef
 
-define KernelPackage/net-ipw2200/description
+define KernelPackage/ipw2200/description
  Kernel support for Intel IPW2200
  Includes:
  - ipw2200
 endef
 
 
-define KernelPackage/net-hermes
+define KernelPackage/hermes
   $(call KernelPackage/mac80211/Default)
   TITLE:=Hermes 802.11b chipset support
   DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT
@@ -785,43 +785,43 @@ define KernelPackage/net-hermes
   AUTOLOAD:=$(call AutoProbe,orinoco)
 endef
 
-define KernelPackage/net-hermes/description
+define KernelPackage/hermes/description
  Kernel support for Hermes 802.11b chipsets
 endef
 
-define KernelPackage/net-hermes-pci
+define KernelPackage/hermes-pci
   $(call KernelPackage/mac80211/Default)
   TITLE:=Intersil Prism 2.5 PCI support
-  DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
+  DEPENDS:=@PCI_SUPPORT +kmod-hermes
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_pci.ko
   AUTOLOAD:=$(call AutoProbe,orinoco_pci)
 endef
 
-define KernelPackage/net-hermes-pci/description
+define KernelPackage/hermes-pci/description
  Kernel modules for Intersil Prism 2.5 PCI support
 endef
 
-define KernelPackage/net-hermes-plx
+define KernelPackage/hermes-plx
   $(call KernelPackage/mac80211/Default)
   TITLE:=PLX9052 based PCI adaptor
-  DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
+  DEPENDS:=@PCI_SUPPORT +kmod-hermes
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_plx.ko
   AUTOLOAD:=$(call AutoProbe,orinoco_plx)
 endef
 
-define KernelPackage/net-hermes-plx/description
+define KernelPackage/hermes-plx/description
  Kernel modules for Hermes in PLX9052 based PCI adaptors
 endef
 
-define KernelPackage/net-hermes-pcmcia
+define KernelPackage/hermes-pcmcia
   $(call KernelP

[OpenWrt-Devel] [PATCH 3/3] mac80211: rename iwlagn to iwlwifi

2015-09-16 Thread Dirk Neukirchen
follow upstream module rename
commit 3c607d27c818cf4a5d28f2c73b18a88f8fbdfa33

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/kernel/mac80211/Makefile | 20 ++--
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index fa253f4..70a5ad0 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -28,7 +28,7 @@ PKG_DRIVERS = \
b43 b43legacy \
carl9170 \
hermes hermes-pci hermes-pcmcia hermes-plx\
-   iwl-legacy iwl3945 iwl4965 iwlagn \
+   iwl-legacy iwl3945 iwl4965 iwlwifi \
lib80211 \
libipw ipw2100 ipw2200 \
libertas-sdio libertas-usb \
@@ -841,7 +841,7 @@ define KernelPackage/hermes-pcmcia/description
 endef
 
 
-define KernelPackage/iwlagn
+define KernelPackage/iwlwifi
   $(call KernelPackage/mac80211/Default)
   DEPENDS:= +kmod-mac80211 @PCI_SUPPORT +@DRIVER_11N_SUPPORT
   TITLE:=Intel AGN Wireless support
@@ -853,8 +853,8 @@ define KernelPackage/iwlagn
   MENU:=1
 endef
 
-define KernelPackage/iwlagn/description
- iwlagn kernel module for
+define KernelPackage/iwlwifi/description
+ iwlwifi kernel module for
  Intel Wireless WiFi Link 6250AGN Adapter
  Intel 6000 Series Wi-Fi Adapters (6200AGN and 6300AGN)
  Intel WiFi Link 1000BGN
@@ -872,11 +872,11 @@ define KernelPackage/iwlagn/description
  Intel 3165 Wi-Fi Adapter
 endef
 
-define KernelPackage/iwlagn/config
-  if PACKAGE_kmod-iwlagn
+define KernelPackage/iwlwifi/config
+  if PACKAGE_kmod-iwlwifi
 
config PACKAGE_IWLWIFI_DEBUG
-   bool "Enable full debugging output in the iwlagn driver"
+   bool "Enable full debugging output in the iwlwifi driver"
default n
help
  This option will enable debug tracing output for the iwlwifi 
drivers
@@ -1725,7 +1725,7 @@ config-y += RT2800USB_RT33XX RT2800USB_RT35XX 
RT2800USB_RT3573 RT2800USB_RT53XX
 config-$(call config_package,iwl-legacy) += IWLEGACY
 config-$(call config_package,iwl3945) += IWL3945
 config-$(call config_package,iwl4965) += IWL4965
-config-$(call config_package,iwlagn) += IWLWIFI IWLDVM IWLMVM
+config-$(call config_package,iwlwifi) += IWLWIFI IWLDVM IWLMVM
 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUG)+= IWLWIFI_DEBUG
 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUGFS)+= IWLWIFI_DEBUGFS
 
@@ -1959,7 +1959,7 @@ define KernelPackage/ipw2200/install
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw 
$(1)/lib/firmware
 endef
 
-define KernelPackage/iwlagn/install
+define KernelPackage/iwlwifi/install
$(INSTALL_DIR) $(1)/lib/firmware
 ifneq ($(CONFIG_IWL100_FW),)
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-100-5.ucode 
$(1)/lib/firmware
@@ -2154,7 +2154,7 @@ $(eval $(call KernelPackage,hermes))
 $(eval $(call KernelPackage,hermes-pci))
 $(eval $(call KernelPackage,hermes-plx))
 $(eval $(call KernelPackage,hermes-pcmcia))
-$(eval $(call KernelPackage,iwlagn))
+$(eval $(call KernelPackage,iwlwifi))
 $(eval $(call KernelPackage,iwl-legacy))
 $(eval $(call KernelPackage,iwl4965))
 $(eval $(call KernelPackage,iwl3945))
-- 
2.5.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] x86: add missing symbol

2015-09-12 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/x86/config-3.18 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/x86/config-3.18 b/target/linux/x86/config-3.18
index 3a6a1be..bb647c8 100644
--- a/target/linux/x86/config-3.18
+++ b/target/linux/x86/config-3.18
@@ -385,6 +385,7 @@ CONFIG_X86_ALIGNMENT_16=y
 # CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
 # CONFIG_X86_CPUFREQ_NFORCE2 is not set
 # CONFIG_X86_CPUID is not set
+# CONFIG_X86_DECODER_SELFTEST is not set
 # CONFIG_X86_EXTENDED_PLATFORM is not set
 CONFIG_X86_F00F_BUG=y
 CONFIG_X86_FEATURE_NAMES=y
-- 
2.5.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel 3.18/kernel 4.0/kernel 4.1: add missing symbol

2015-09-12 Thread Dirk Neukirchen
deactivate NET_SCTPPROBE just like NET_TCPPROBE

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 target/linux/generic/config-3.18 | 1 +
 target/linux/generic/config-4.0  | 1 +
 target/linux/generic/config-4.1  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/target/linux/generic/config-3.18 b/target/linux/generic/config-3.18
index 6e5ad7f..dfb4d50 100644
--- a/target/linux/generic/config-3.18
+++ b/target/linux/generic/config-3.18
@@ -2486,6 +2486,7 @@ CONFIG_NET_SCH_FQ_CODEL=y
 # CONFIG_NET_SCH_SFQ is not set
 # CONFIG_NET_SCH_TBF is not set
 # CONFIG_NET_SCH_TEQL is not set
+# CONFIG_NET_SCTPPROBE is not set
 # CONFIG_NET_TCPPROBE is not set
 # CONFIG_NET_TEAM is not set
 # CONFIG_NET_TULIP is not set
diff --git a/target/linux/generic/config-4.0 b/target/linux/generic/config-4.0
index b52408a..0c630ea 100644
--- a/target/linux/generic/config-4.0
+++ b/target/linux/generic/config-4.0
@@ -2527,6 +2527,7 @@ CONFIG_NET_SCH_FQ_CODEL=y
 # CONFIG_NET_SCH_SFQ is not set
 # CONFIG_NET_SCH_TBF is not set
 # CONFIG_NET_SCH_TEQL is not set
+# CONFIG_NET_SCTPPROBE is not set
 # CONFIG_NET_SWITCHDEV is not set
 # CONFIG_NET_TCPPROBE is not set
 # CONFIG_NET_TEAM is not set
diff --git a/target/linux/generic/config-4.1 b/target/linux/generic/config-4.1
index 630b49d..3751022 100644
--- a/target/linux/generic/config-4.1
+++ b/target/linux/generic/config-4.1
@@ -2578,6 +2578,7 @@ CONFIG_NET_SCH_FQ_CODEL=y
 # CONFIG_NET_SCH_SFQ is not set
 # CONFIG_NET_SCH_TBF is not set
 # CONFIG_NET_SCH_TEQL is not set
+# CONFIG_NET_SCTPPROBE is not set
 # CONFIG_NET_SWITCHDEV is not set
 # CONFIG_NET_TCPPROBE is not set
 # CONFIG_NET_TEAM is not set
-- 
2.5.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ugps: fix filename to eliminate build problems

2015-08-31 Thread Dirk Neukirchen
due to ordering PKG_SOURCE_VERSION is not defined leading
to a filename "ugps-.tar.bz2"
This errors out when an older version is in the dl/ dir (or LOCALMIRROR)

fix order and use uhttpd file naming scheme to visibly include date

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 package/utils/ugps/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/utils/ugps/Makefile b/package/utils/ugps/Makefile
index 1c8ac6f..e30578f 100644
--- a/package/utils/ugps/Makefile
+++ b/package/utils/ugps/Makefile
@@ -11,11 +11,11 @@ PKG_NAME:=ugps
 PKG_VERSION:=2015-08-17
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=git://git.openwrt.org/project/ugps.git
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_VERSION:=971e6703eb9bed936cc62cd335105bd2acca14ef
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.bz2
 
 PKG_MAINTAINER:=John Crispin <blo...@openwrt.org>
 PKG_LICENSE:=GPL-2.0+
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] include/image.mk: make tar reproducible

2015-08-30 Thread Dirk Neukirchen
several packages reported different file order between builds
make binutils, kmod-sched reproducible

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 include/image.mk   | 2 +-
 scripts/ipkg-build | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/image.mk b/include/image.mk
index 73fc805..f8601f0 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -245,7 +245,7 @@ define Image/mkfs/cpiogz
 endef
 
 define Image/mkfs/targz
-   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE),-$(PROFILE))-rootfs.tar.gz --numeric-owner --owner=0 --group=0 -C 
$(TARGET_DIR)/ .
+   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
$(PROFILE),-$(PROFILE))-rootfs.tar.gz --numeric-owner --owner=0 --group=0 
--sort=name -C $(TARGET_DIR)/ .
 endef
 
 E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index cd70c1f..a54e9b5 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -139,20 +139,20 @@ mkdir $tmp_dir
 
 echo $CONTROL  $tmp_dir/tarX
 # Preserve permissions (-p) when creating data.tar.gz as non-root user
-( cd $pkg_dir  $TAR $ogargs -X $tmp_dir/tarX --format=gnu -czpf 
$tmp_dir/data.tar.gz --mtime=$TIMESTAMP . )
+( cd $pkg_dir  $TAR $ogargs -X $tmp_dir/tarX --format=gnu --sort=name -czpf 
$tmp_dir/data.tar.gz --mtime=$TIMESTAMP . )
 
 installed_size=`stat -c %s $tmp_dir/data.tar.gz`
 sed -i -e s/^Installed-Size: .*/Installed-Size: $installed_size/ \
$pkg_dir/$CONTROL/control
 
-( cd $pkg_dir/$CONTROL  $TAR $ogargs --format=gnu -czf 
$tmp_dir/control.tar.gz --mtime=$TIMESTAMP . )
+( cd $pkg_dir/$CONTROL  $TAR $ogargs --format=gnu --sort=name -czf 
$tmp_dir/control.tar.gz --mtime=$TIMESTAMP . )
 rm $tmp_dir/tarX
 
 echo 2.0  $tmp_dir/debian-binary
 
 pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk
 rm -f $pkg_file
-( cd $tmp_dir  $TAR --format=gnu -zcf $pkg_file --mtime=$TIMESTAMP 
./debian-binary ./data.tar.gz ./control.tar.gz )
+( cd $tmp_dir  $TAR --format=gnu --sort=name -zcf $pkg_file 
--mtime=$TIMESTAMP ./debian-binary ./data.tar.gz ./control.tar.gz )
 
 rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz
 rmdir $tmp_dir
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] openvpn: remove __DATE__ from options output

2015-08-30 Thread Dirk Neukirchen
reported by:
https://reproducible.debian.net/openwrt/dbd/ar71xx/base/openvpn-nossl_2.3.7-1_ar71xx.ipk.html

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 .../openvpn/patches/001-reproducible-remove_DATE.patch | 10 ++
 1 file changed, 10 insertions(+)
 create mode 100644 
package/network/services/openvpn/patches/001-reproducible-remove_DATE.patch

diff --git 
a/package/network/services/openvpn/patches/001-reproducible-remove_DATE.patch 
b/package/network/services/openvpn/patches/001-reproducible-remove_DATE.patch
new file mode 100644
index 000..3ceef6f
--- /dev/null
+++ 
b/package/network/services/openvpn/patches/001-reproducible-remove_DATE.patch
@@ -0,0 +1,10 @@
+--- a/src/openvpn/options.c
 b/src/openvpn/options.c
+@@ -102,7 +102,6 @@ const char title_string[] =
+[MH]
+ #endif
+[IPv6]
+-   built on  __DATE__
+ ;
+ 
+ #ifndef ENABLE_SMALL
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] yaffs2: remove __TIME__ __DATE__ macros

2015-08-30 Thread Dirk Neukirchen
prevent compiler errors with gcc 4.9
increase reproducibility

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/generic/files/fs/yaffs2/yaffs_vfs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/generic/files/fs/yaffs2/yaffs_vfs.c 
b/target/linux/generic/files/fs/yaffs2/yaffs_vfs.c
index 6540434..864a5dc 100644
--- a/target/linux/generic/files/fs/yaffs2/yaffs_vfs.c
+++ b/target/linux/generic/files/fs/yaffs2/yaffs_vfs.c
@@ -3250,7 +3250,7 @@ static int yaffs_proc_read(char *page,
if (step == 0)
buf +=
sprintf(buf,
-   Multi-version YAFFS built: __DATE__   __TIME__
+   Multi-version YAFFS.
\n);
else if (step == 1)
buf += sprintf(buf, \n);
@@ -3601,7 +3601,7 @@ static int __init init_yaffs_fs(void)
struct file_system_to_install *fsinst;
 
yaffs_trace(YAFFS_TRACE_ALWAYS,
-   yaffs built  __DATE__   __TIME__  Installing.);
+   yaffs Installing.);
 
mutex_init(yaffs_context_lock);
 
@@ -3642,7 +3642,7 @@ static void __exit exit_yaffs_fs(void)
struct file_system_to_install *fsinst;
 
yaffs_trace(YAFFS_TRACE_ALWAYS,
-   yaffs built  __DATE__   __TIME__  removing.);
+   yaffs removing.);
 
remove_proc_entry(yaffs, YPROC_ROOT);
 
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] include/image.mk: make tar reproducible

2015-08-30 Thread Dirk Neukirchen
On 30.08.2015 19:42, Jonas Gorski wrote:
 Hi,
 
 On Sun, Aug 30, 2015 at 6:26 PM, Dirk Neukirchen dirkneukirc...@web.de 
 wrote:
 several packages reported different file order between builds
 make binutils, kmod-sched reproducible

 Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
 
 These are stil not reproducible for others, because ...
 ---
  include/image.mk   | 2 +-
  scripts/ipkg-build | 6 +++---
  2 files changed, 4 insertions(+), 4 deletions(-)

 diff --git a/include/image.mk b/include/image.mk
 index 73fc805..f8601f0 100644
 --- a/include/image.mk
 +++ b/include/image.mk
 @@ -245,7 +245,7 @@ define Image/mkfs/cpiogz
  endef

  define Image/mkfs/targz
 -   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
 $(PROFILE),-$(PROFILE))-rootfs.tar.gz --numeric-owner --owner=0 --group=0 -C 
 $(TARGET_DIR)/ .
 +   $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if 
 $(PROFILE),-$(PROFILE))-rootfs.tar.gz --numeric-owner --owner=0 --group=0 
 --sort=name -C $(TARGET_DIR)/ .
  endef

  E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
 diff --git a/scripts/ipkg-build b/scripts/ipkg-build
 index cd70c1f..a54e9b5 100755
 --- a/scripts/ipkg-build
 +++ b/scripts/ipkg-build
 @@ -139,20 +139,20 @@ mkdir $tmp_dir

  echo $CONTROL  $tmp_dir/tarX
  # Preserve permissions (-p) when creating data.tar.gz as non-root user
 -( cd $pkg_dir  $TAR $ogargs -X $tmp_dir/tarX --format=gnu -czpf 
 $tmp_dir/data.tar.gz --mtime=$TIMESTAMP . )
 +( cd $pkg_dir  $TAR $ogargs -X $tmp_dir/tarX --format=gnu --sort=name 
 -czpf $tmp_dir/data.tar.gz --mtime=$TIMESTAMP . )

  installed_size=`stat -c %s $tmp_dir/data.tar.gz`
  sed -i -e s/^Installed-Size: .*/Installed-Size: $installed_size/ \
 $pkg_dir/$CONTROL/control

 -( cd $pkg_dir/$CONTROL  $TAR $ogargs --format=gnu -czf 
 $tmp_dir/control.tar.gz --mtime=$TIMESTAMP . )
 +( cd $pkg_dir/$CONTROL  $TAR $ogargs --format=gnu --sort=name -czf 
 $tmp_dir/control.tar.gz --mtime=$TIMESTAMP . )
  rm $tmp_dir/tarX

  echo 2.0  $tmp_dir/debian-binary

  pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk
  rm -f $pkg_file
 -( cd $tmp_dir  $TAR --format=gnu -zcf $pkg_file --mtime=$TIMESTAMP 
 ./debian-binary ./data.tar.gz ./control.tar.gz )
 +( cd $tmp_dir  $TAR --format=gnu --sort=name -zcf $pkg_file 
 --mtime=$TIMESTAMP ./debian-binary ./data.tar.gz ./control.tar.gz )
 
 this $TAR invocation does not use $ogargs, so the outer .ipk will use
 the current user as the owner for its contents. I don't think this
 omission is intentional, but I haven't tested if anything breaks when
 adding it.
 
 

Adding $ogargs does not seem to break anything - it currently works
with extracting name:ID thepeople/1008 on the device.

Currently OpenWrt reproducible page does not change more between
different builds. 
This is documented (uid is not yet varied between rebuilds of OpenWrt.)

So this still fixes the file ordering for inner and outer tar.
(https://reproducible.debian.net/openwrt/dbd/ramips/base/binutils_2.24-3_ramips.ipk.html)

I sent a separate patch on top of this one to add $oargs.


  rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz
  rmdir $tmp_dir
 
 
 Jonas
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] ipkg-build: add ogargs to outer tar/ipk

2015-08-30 Thread Dirk Neukirchen
prevent name:uid leaks of build system

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 requires include/image.mk: make tar reproducible


 scripts/ipkg-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ipkg-build b/scripts/ipkg-build
index f9d00af..fb1321a 100755
--- a/scripts/ipkg-build
+++ b/scripts/ipkg-build
@@ -152,7 +152,7 @@ echo 2.0  $tmp_dir/debian-binary
 
 pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk
 rm -f $pkg_file
-( cd $tmp_dir  $TAR --format=gnu --sort=name -zcf $pkg_file 
--mtime=$TIMESTAMP ./debian-binary ./data.tar.gz ./control.tar.gz )
+( cd $tmp_dir  $TAR $ogargs --format=gnu --sort=name -zcf $pkg_file 
--mtime=$TIMESTAMP ./debian-binary ./data.tar.gz ./control.tar.gz )
 
 rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz
 rmdir $tmp_dir
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] malta: disable mips16

2015-08-27 Thread Dirk Neukirchen
On 27.08.2015 09:27, Yousong Zhou wrote:
 On 27 August 2015 at 12:02, Dirk Neukirchen dirkneukirc...@web.de wrote:
 - it causes issues with qemu versions  2.2
 should fix issues with Ubuntu 14.03 LTS (qemu 2.0)
 errors are:
 Kernel panic - not syncing: Attempted to kill init! exitcode=0x0004

 
 But it's a bug within qemu.  I have a simple script [1] for building
 qemu at least v2.3.0 from source code.
 
  [1] https://github.com/yousong/build-scripts/blob/master/build-qemu.sh
 
 yousong
 

MIPS16 is still deactivated on 44 packages so it still can be considered 
unstable 
/imho

Other reasons to fix:
- potential code size reduction by using MIPS16 is not important qemu targets
- compiling qemu might break and that requires more user action
- some ppl dont like to compile software thats available in distro packages
- Ubuntu LTS will keep 2.0
- Debian 8/jessie has 2.1
- its unlikely that qemu will backport fixes to 2.0 version
- its unclear if/when Ubuntu will backport that fix

Reasons not to fix:
- Malta targets developers that want to test features / build test environments 

it is expected mostly developers use this target and they know how to either
handle or circumvent this known issue.

Most people do not seem to read wiki or search bugtracker for open/known issues.
Is putting a README into the bin/ dir on half broken platforms a better 
solution ?
Some prefix/suffix indicating which qemu version is working with that file ?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] malta: disable mips16

2015-08-26 Thread Dirk Neukirchen
- it causes issues with qemu versions  2.2
should fix issues with Ubuntu 14.03 LTS (qemu 2.0)
errors are:
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0004

see ticket #16881

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/malta/be/target.mk | 2 +-
 target/linux/malta/le/target.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/malta/be/target.mk b/target/linux/malta/be/target.mk
index 92ae58e..b505e3b 100644
--- a/target/linux/malta/be/target.mk
+++ b/target/linux/malta/be/target.mk
@@ -2,7 +2,7 @@ ARCH:=mips
 ARCH_PACKAGES:=malta_mips
 SUBTARGET:=be
 BOARDNAME:=Big Endian
-FEATURES:=ramdisk mips16
+FEATURES:=ramdisk
 
 define Target/Description
Build BE firmware images for MIPS Malta CoreLV board running in
diff --git a/target/linux/malta/le/target.mk b/target/linux/malta/le/target.mk
index 35fcf4c..7906aa7 100644
--- a/target/linux/malta/le/target.mk
+++ b/target/linux/malta/le/target.mk
@@ -2,7 +2,7 @@ ARCH:=mipsel
 ARCH_PACKAGES:=malta_mipsel
 SUBTARGET:=le
 BOARDNAME:=Little Endian
-FEATURES:=ramdisk mips16
+FEATURES:=ramdisk
 
 define Target/Description
Build LE firmware images for MIPS Malta CoreLV board running in
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/8 v2] mac80211: refresh Intel firmware

2015-08-24 Thread Dirk Neukirchen
- sort firmware
- add newer firmware for Intel chipsets
- newer Intel MVM require firmware

only compile tested

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
v2: 
- remove old / always use newer firmware
- remove Kernel version dependencies

The Kernel version only seem to indicate the changed driver
code. I couldn't find hard version checks just that
after some code fixes there are firmware API bumps.

thx Hauke for hinting at that

 package/kernel/mac80211/Makefile | 169 +++
 1 file changed, 98 insertions(+), 71 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index a3ecb5b..75622cc 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -838,116 +838,139 @@ define KernelPackage/iwlagn
 endef
 
 define KernelPackage/iwlagn/description
- iwlagn kernel module for Intel 5000/5150/1000/6000/6050/6005/6030/100 support
+ iwlagn kernel module for
+ Intel Wireless WiFi Link 6250AGN Adapter
+ Intel 6000 Series Wi-Fi Adapters (6200AGN and 6300AGN)
+ Intel WiFi Link 1000BGN
+ Intel Wireless WiFi 5150AGN
+ Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
+ Intel 6005 Series Wi-Fi Adapters
+ Intel 6030 Series Wi-Fi Adapters
+ Intel Wireless WiFi Link 6150BGN 2 Adapter
+ Intel 100 Series Wi-Fi Adapters (100BGN and 130BGN)
+ Intel 2000 Series Wi-Fi Adapters
+ Intel 7260 Wi-Fi Adapter
+ Intel 3160 Wi-Fi Adapter
+ Intel 7265 Wi-Fi Adapter
+ Intel 8260 Wi-Fi Adapter
+ Intel 3165 Wi-Fi Adapter
 endef
 
 define KernelPackage/iwlagn/config
   if PACKAGE_kmod-iwlagn
 
-   config IWL5000_FW
-   bool Intel 5000 Firmware
+   config IWL100_FW
+   bool Intel 100 Firmware
default y
help
  Download and install firmware for:
-   Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
+   Intel Centrino Wireless-N 100
 
-   config IWL5150_FW
-   bool Intel 5150 Firmware
+   config IWL1000_FW
+   bool Intel 1000 Firmware
default y
help
  Download and install firmware for:
-   Intel Wireless WiFi 5150AGN
+   Intel Centrino Wireless-N 1000
 
-   config IWL1000_FW
-   bool Intel 1000 Firmware
+   config IWL105_FW
+   bool Intel 105 Firmware
default y
help
  Download and install firmware for:
-   Intel Centrino Wireless-N 1000
+   Intel Centrino Wireless-N 105
 
-   config IWL6000_FW
-   bool Intel 6000 Firmware
+   config IWL135_FW
+   bool Intel 135 Firmware
default y
help
  Download and install firmware for:
-   Intel Centrino Ultimate-N 6300 and Advanced-N 6200
+   Intel Centrino Wireless-N 135
 
-   config IWL6050_FW
-   bool Intel 6050 Firmware
+   config IWL2000_FW
+   bool Intel 2000 Firmware
default y
help
  Download and install firmware for:
-   Intel Centrino Advanced-N + WiMAX 6250 and Wireless-N + 
WiMAX 6150
+   Intel Centrino Wireless-N 2200
 
-   config IWL6005_FW
-   bool Intel 6005 Firmware
+   config IWL2030_FW
+   bool Intel 2030 Firmware
default y
help
  Download and install firmware for:
-   Intel Centrino Advanced-N 6205
+   Intel Centrino Wireless-N 2230
 
-   config IWL6030_FW
-   bool Intel 6030 Firmware
+   config IWL3160_FW
+   bool Intel 3160 Firmware
default y
help
  Download and install firmware for:
-   Intel Centrino Advanced-N 6230, Wireless-N 1030, Wireless-N 
130 and Advanced-N 6235
+   Intel Wireless WiFi 3160
 
-   config IWL7260_FW
-   bool Intel 7260 Firmware
+   config IWL5000_FW
+   bool Intel 5000 Firmware
default y
help
  Download and install firmware for:
-   Intel Dual Band Wireless-N 7260 and Intel Dual Band 
Wireless-AC 7260
+   Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
 
-   config IWL7265_FW
-   bool Intel 7265 Firmware
+   config IWL5150_FW
+   bool Intel 5150 Firmware
default y
help
  Download and install firmware for:
-   Intel Wireless 7265
+   Intel Wireless WiFi 5150AGN
 
-   config IWL100_FW
-   bool Intel 100 Firmware
+   config IWL6000_FW
+   bool Intel 6000 Firmware
default y
help

[OpenWrt-Devel] [PATCH 1/2 v2] mac80211: cleanup remove net prefixes

2015-08-24 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
v2 : split 6/7 into two commits

 package/kernel/mac80211/Makefile | 82 
 1 file changed, 41 insertions(+), 41 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index be179f2..b7471b9 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -27,8 +27,8 @@ PKG_DRIVERS = \
rt2x00-lib rt2x00-pci rt2x00-usb rt2800-lib rt2400-pci rt2500-pci \
rt2500-usb rt61-pci rt73-usb rt2800-mmio rt2800-pci rt2800-usb 
rt2800-soc \
rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
-   ath9k-common ath9k ath9k-htc ath10k ath net-libipw net-ipw2100 
net-ipw2200 \
-   mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
+   ath9k-common ath9k ath9k-htc ath10k ath libipw ipw2100 ipw2200 \
+   mwl8k mwifiex-pcie hermes hermes-pci hermes-plx hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
rtl8192de rtl8192cu mt7601u
@@ -716,7 +716,7 @@ define KernelPackage/mt7601u
   AUTOLOAD:=$(call AutoProbe,mt7601)
 endef
 
-define KernelPackage/net-libipw
+define KernelPackage/libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
   DEPENDS:=@PCI_SUPPORT +kmod-crypto-core +kmod-crypto-arc4 
+kmod-crypto-michael-mic +kmod-lib80211 +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT 
@!BIG_ENDIAN
@@ -724,29 +724,29 @@ define KernelPackage/net-libipw
   AUTOLOAD:=$(call AutoProbe,libipw)
 endef
 
-define KernelPackage/net-libipw/description
+define KernelPackage/libipw/description
  Hardware independent IEEE 802.11 networking stack for ipw2100 and ipw2200.
 endef
 
 IPW2100_NAME:=ipw2100-fw
 IPW2100_VERSION:=1.3
 
-define Download/net-ipw2100
+define Download/ipw2100
   URL:=http://bughost.org/firmware/
   FILE:=$(IPW2100_NAME)-$(IPW2100_VERSION).tgz
   MD5SUM=46aa75bcda1a00efa841f9707bbbd113
 endef
-$(eval $(call Download,net-ipw2100))
+$(eval $(call Download,ipw2100))
 
-define KernelPackage/net-ipw2100
+define KernelPackage/ipw2100
   $(call KernelPackage/mac80211/Default)
   TITLE:=Intel IPW2100 driver
-  DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
+  DEPENDS:=@PCI_SUPPORT +kmod-libipw
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2100.ko
   AUTOLOAD:=$(call AutoProbe,ipw2100)
 endef
 
-define KernelPackage/net-ipw2100/description
+define KernelPackage/ipw2100/description
  Kernel support for Intel IPW2100
  Includes:
  - ipw2100
@@ -755,29 +755,29 @@ endef
 IPW2200_NAME:=ipw2200-fw
 IPW2200_VERSION:=3.1
 
-define Download/net-ipw2200
+define Download/ipw2200
   URL:=http://bughost.org/firmware/
   FILE:=$(IPW2200_NAME)-$(IPW2200_VERSION).tgz
   MD5SUM=eaba788643c7cc7483dd67ace70f6e99
 endef
-$(eval $(call Download,net-ipw2200))
+$(eval $(call Download,ipw2200))
 
-define KernelPackage/net-ipw2200
+define KernelPackage/ipw2200
   $(call KernelPackage/mac80211/Default)
   TITLE:=Intel IPW2200 driver
-  DEPENDS:=@PCI_SUPPORT +kmod-net-libipw
+  DEPENDS:=@PCI_SUPPORT +kmod-libipw
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ipw2x00/ipw2200.ko
   AUTOLOAD:=$(call AutoProbe,ipw2200)
 endef
 
-define KernelPackage/net-ipw2200/description
+define KernelPackage/ipw2200/description
  Kernel support for Intel IPW2200
  Includes:
  - ipw2200
 endef
 
 
-define KernelPackage/net-hermes
+define KernelPackage/hermes
   $(call KernelPackage/mac80211/Default)
   TITLE:=Hermes 802.11b chipset support
   DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-cfg80211 +@DRIVER_WEXT_SUPPORT
@@ -785,43 +785,43 @@ define KernelPackage/net-hermes
   AUTOLOAD:=$(call AutoProbe,orinoco)
 endef
 
-define KernelPackage/net-hermes/description
+define KernelPackage/hermes/description
  Kernel support for Hermes 802.11b chipsets
 endef
 
-define KernelPackage/net-hermes-pci
+define KernelPackage/hermes-pci
   $(call KernelPackage/mac80211/Default)
   TITLE:=Intersil Prism 2.5 PCI support
-  DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
+  DEPENDS:=@PCI_SUPPORT +kmod-hermes
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_pci.ko
   AUTOLOAD:=$(call AutoProbe,orinoco_pci)
 endef
 
-define KernelPackage/net-hermes-pci/description
+define KernelPackage/hermes-pci/description
  Kernel modules for Intersil Prism 2.5 PCI support
 endef
 
-define KernelPackage/net-hermes-plx
+define KernelPackage/hermes-plx
   $(call KernelPackage/mac80211/Default)
   TITLE:=PLX9052 based PCI adaptor
-  DEPENDS:=@PCI_SUPPORT +kmod-net-hermes
+  DEPENDS:=@PCI_SUPPORT +kmod-hermes
   FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/orinoco/orinoco_plx.ko
   AUTOLOAD:=$(call AutoProbe,orinoco_plx)
 endef
 
-define KernelPackage/net-hermes-plx/description
+define KernelPackage/hermes-plx/description
  Kernel modules for Hermes in PLX9052 based PCI adaptors
 endef
 
-define KernelPackage/net-hermes

Re: [OpenWrt-Devel] [PATCH 4/7] mac80211: refresh Intel firmware

2015-08-24 Thread Dirk Neukirchen
On 23.08.2015 22:17, Hauke Mehrtens wrote:
 
 
 On 08/23/2015 12:56 PM, Dirk Neukirchen wrote:
 - sort firmware
 - add newer firmware for Intel chipsets
 - newer Intel MVM require firmware
 - ucode 13 requires Kernel 4.1+

 only compile tested
 
 Have you looked if this would close any open feature requests / issues
 in OpenWrt trac?
 

The first patch that adds IWLMVM should fix 
https://dev.openwrt.org/ticket/19459

Forum users try to use Intel cards - example:
https://forum.openwrt.org/viewtopic.php?id=54488
Also more IWLMVM symbol then firmware issues

 Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
 ---
  package/kernel/mac80211/Makefile | 198 
 ++-
  1 file changed, 133 insertions(+), 65 deletions(-)

 +
 +config IWL3160_FW
 +bool Intel 3160 Firmware
 +default y
 +help
 +  Download and install firmware for:
 +Intel Wireless WiFi 3160
 +
 +config IWL3160_13_FW
 +bool Intel 3160 Firmware ucode 13 (4.1+)
 +default y
 +depends on LINUX_4_1
 +help
 +  Download and install firmware for:
 +Intel Wireless WiFi 3160
 
 Does this really depend on the kernel version and not on the iwl driver
 version? OpenWrt uses the driver from a very recent wireless tree, so it
 should be equivalent to something between 4.2 and 4.3 now.
 
 I would suggest just using the most recent firmware files for the Intel
 wifi devices.
 
I submitted an updated version of the patch - the kernel version only
means that the driver has *some* (?) git commits and a bump in the ABI version

Intel has some changelog for their firmware but the linux-firmware commits dont 
contain these.
Sometimes other firmware repos contain these but those differ from main 
linux-firmware
( https://chromium.googlesource.com/chromiumos/third_party/linux-firmware/ has 
ucode-14 
and sometimes include changelogs )

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


[OpenWrt-Devel] [PATCH 0/7] mac80211 experimental extensions and cleanup

2015-08-23 Thread Dirk Neukirchen
*Disclaimer: compile tested only*

This series first adds features that were requested by some users
but might be broken or does not support OpenWrt intended usage
- experimental hardware (rt2800-usb)
- new Intel Hardware (iwlmvm) according to web reports
  does not support AP mode in 5GHz on some cards
  so it can be regarded as broken.
  This seems to be badly documented.
see: http://www.spinics.net/lists/linux-wireless/msg137906.html
or: http://www.spinics.net/lists/linux-wireless/msg137861.html
as example

Intel has published updated firmware that is only working
with newer Kernels (since we use backports that shouldnt matter anyway)
but there might be new bugs so keep the old versions too

Last two patches are trying to clean up the Makefile.

Dirk Neukirchen (7):
  mac80211: iwlagn: enable iwlmvm
  mac80211: rt2800-usb: enable unknown USB IDs
  mac80211: update linux-firmware to 2014-07-14
  mac80211: refresh Intel firmware
  mac80211: add iwlagn debug options
  mac80211: cosmetic changes
  mac80211: rename iwlagn to iwlwifi

 package/kernel/mac80211/Makefile | 2707 --
 1 file changed, 1425 insertions(+), 1282 deletions(-)

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


[OpenWrt-Devel] [PATCH 2/7] mac80211: rt2800-usb: enable unknown USB IDs

2015-08-23 Thread Dirk Neukirchen
- should fix issue: https://forum.openwrt.org/viewtopic.php?id=57315
- enable support of more USB stick with rt28xx chipsets
- experimental: USB-IDs not in vendor linux driver
- experimental: exact chipset is unknown
- experimental: enabling these devices may or may not work

only compile tested

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/mac80211/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 1cebf92..3037d79 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -1638,7 +1638,7 @@ config-$(call config_package,rt2800-pci) += RT2800PCI
 config-y += RT2800PCI_RT33XX RT2800PCI_RT35XX RT2800PCI_RT53XX RT2800PCI_RT3290
 
 config-$(call config_package,rt2800-usb) += RT2800USB
-config-y += RT2800USB_RT33XX RT2800USB_RT35XX RT2800USB_RT3573 
RT2800USB_RT53XX RT2800USB_RT55XX
+config-y += RT2800USB_RT33XX RT2800USB_RT35XX RT2800USB_RT3573 
RT2800USB_RT53XX RT2800USB_RT55XX RT2800USB_UNKNOWN
 
 config-$(call config_package,iwl-legacy) += IWLEGACY
 config-$(call config_package,iwl3945) += IWL3945
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/7] mac80211: update linux-firmware to 2014-07-14

2015-08-23 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/mac80211/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 3037d79..a3ecb5b 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -108,8 +108,8 @@ Generic IEEE 802.11 Networking Stack (mac80211)
 endef
 
 PKG_LINUX_FIRMWARE_NAME:=linux-firmware
-PKG_LINUX_FIRMWARE_VERSION:=f404336ba808cbd57547196e13367079a23b822c
-PKG_LINUX_FIRMWARE_SOURCE:=$(PKG_LINUX_FIRMWARE_NAME)-2015-03-20-$(PKG_LINUX_FIRMWARE_VERSION).tar.bz2
+PKG_LINUX_FIRMWARE_VERSION:=696403047a940c425c93cb8da1efcec6ffda0b6e
+PKG_LINUX_FIRMWARE_SOURCE:=$(PKG_LINUX_FIRMWARE_NAME)-2015-07-14-$(PKG_LINUX_FIRMWARE_VERSION).tar.bz2
 PKG_LINUX_FIRMWARE_PROTO:=git
 
PKG_LINUX_FIRMWARE_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
 
PKG_LINUX_FIRMWARE_SUBDIR:=$(PKG_LINUX_FIRMWARE_NAME)-$(PKG_LINUX_FIRMWARE_VERSION)
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: arm64: psci: move psci firmware calls out of line

2015-08-23 Thread Dirk Neukirchen
- fixes build error on arm64 with FTRACE enabled
- upstream ticket says gcc5 but both linaro gcc variants
OpenWrt is using seem to be affected

backport upstream change f5e0a12ca2d939e47995f73428d9bf1ad372b289
for Kernel 3.18

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
found this in my local tree, diffconfig to replicate:

CONFIG_TARGET_arm64=y
CONFIG_TARGET_arm64_Default=y
CONFIG_TARGET_BOARD=arm64
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y
CONFIG_KERNEL_DYNAMIC_FTRACE=y
CONFIG_KERNEL_ENABLE_DEFAULT_TRACERS=y
CONFIG_KERNEL_FTRACE=y
CONFIG_KERNEL_FTRACE_SYSCALLS=y
CONFIG_KERNEL_FUNCTION_GRAPH_TRACER=y
CONFIG_KERNEL_FUNCTION_PROFILER=y
CONFIG_KERNEL_FUNCTION_TRACER=y


 ...psci_move_psci_firmware_calls_out_of_line.patch | 124 +
 1 file changed, 124 insertions(+)
 create mode 100644 
target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch

diff --git 
a/target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch
 
b/target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch
new file mode 100644
index 000..1db9d5f
--- /dev/null
+++ 
b/target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch
@@ -0,0 +1,124 @@
+From f5e0a12ca2d939e47995f73428d9bf1ad372b289 Mon Sep 17 00:00:00 2001
+From: Will Deacon will.dea...@arm.com
+Date: Wed, 25 Feb 2015 12:10:35 +
+Subject: arm64: psci: move psci firmware calls out of line
+
+An arm64 allmodconfig fails to build with GCC 5 due to __asmeq
+assertions in the PSCI firmware calling code firing due to mcount
+preambles breaking our assumptions about register allocation of function
+arguments:
+
+  /tmp/ccDqJsJ6.s: Assembler messages:
+  /tmp/ccDqJsJ6.s:60: Error: .err encountered
+  /tmp/ccDqJsJ6.s:61: Error: .err encountered
+  /tmp/ccDqJsJ6.s:62: Error: .err encountered
+  /tmp/ccDqJsJ6.s:99: Error: .err encountered
+  /tmp/ccDqJsJ6.s:100: Error: .err encountered
+  /tmp/ccDqJsJ6.s:101: Error: .err encountered
+
+This patch fixes the issue by moving the PSCI calls out-of-line into
+their own assembly files, which are safe from the compiler's meddling
+fingers.
+
+Reported-by: Andy Whitcroft a...@canonical.com
+Signed-off-by: Will Deacon will.dea...@arm.com
+Signed-off-by: Catalin Marinas catalin.mari...@arm.com
+
+--- /dev/null
 b/arch/arm64/kernel/psci-call.S
+@@ -0,0 +1,28 @@
++/*
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * Copyright (C) 2015 ARM Limited
++ *
++ * Author: Will Deacon will.dea...@arm.com
++ */
++
++#include linux/linkage.h
++
++/* int __invoke_psci_fn_hvc(u64 function_id, u64 arg0, u64 arg1, u64 arg2) */
++ENTRY(__invoke_psci_fn_hvc)
++  hvc #0
++  ret
++ENDPROC(__invoke_psci_fn_hvc)
++
++/* int __invoke_psci_fn_smc(u64 function_id, u64 arg0, u64 arg1, u64 arg2) */
++ENTRY(__invoke_psci_fn_smc)
++  smc #0
++  ret
++ENDPROC(__invoke_psci_fn_smc)
+--- a/arch/arm64/kernel/psci.c
 b/arch/arm64/kernel/psci.c
+@@ -57,6 +57,9 @@ static struct psci_operations psci_ops;
+ static int (*invoke_psci_fn)(u64, u64, u64, u64);
+ typedef int (*psci_initcall_t)(const struct device_node *);
+ 
++asmlinkage int __invoke_psci_fn_hvc(u64, u64, u64, u64);
++asmlinkage int __invoke_psci_fn_smc(u64, u64, u64, u64);
++
+ enum psci_function {
+   PSCI_FN_CPU_SUSPEND,
+   PSCI_FN_CPU_ON,
+@@ -109,40 +112,6 @@ static void psci_power_state_unpack(u32
+   PSCI_0_2_POWER_STATE_AFFL_SHIFT;
+ }
+ 
+-/*
+- * The following two functions are invoked via the invoke_psci_fn pointer
+- * and will not be inlined, allowing us to piggyback on the AAPCS.
+- */
+-static noinline int __invoke_psci_fn_hvc(u64 function_id, u64 arg0, u64 arg1,
+-   u64 arg2)
+-{
+-  asm volatile(
+-  __asmeq(%0, x0)
+-  __asmeq(%1, x1)
+-  __asmeq(%2, x2)
+-  __asmeq(%3, x3)
+-  hvc#0\n
+-  : +r (function_id)
+-  : r (arg0), r (arg1), r (arg2));
+-
+-  return function_id;
+-}
+-
+-static noinline int __invoke_psci_fn_smc(u64 function_id, u64 arg0, u64 arg1,
+-   u64 arg2)
+-{
+-  asm volatile(
+-  __asmeq(%0, x0)
+-  __asmeq(%1, x1)
+-  __asmeq(%2, x2)
+-  __asmeq(%3, x3)
+-  smc#0\n
+-  : +r (function_id)
+-  : r

[OpenWrt-Devel] [PATCH 6/7] mac80211: cosmetic changes

2015-08-23 Thread Dirk Neukirchen

- remove net prefix from some modules
- try to sort alphabetically

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/mac80211/Makefile | 2494 +++---
 1 file changed, 1266 insertions(+), 1228 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index b9042db..061f117 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -23,15 +23,28 @@ PKG_BUILD_PARALLEL:=1
 PKG_MAINTAINER:=Felix Fietkau n...@openwrt.org
 
 PKG_DRIVERS = \
-   adm8211 ath5k libertas-usb libertas-sdio p54-common p54-pci p54-usb 
p54-spi \
-   rt2x00-lib rt2x00-pci rt2x00-usb rt2800-lib rt2400-pci rt2500-pci \
-   rt2500-usb rt61-pci rt73-usb rt2800-mmio rt2800-pci rt2800-usb 
rt2800-soc \
-   rtl8180 rtl8187 zd1211rw mac80211-hwsim carl9170 b43 b43legacy \
-   ath9k-common ath9k ath9k-htc ath10k ath net-libipw net-ipw2100 
net-ipw2200 \
-   mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
-   iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
+   adm8211 \
+   ath ath5k ath9k ath9k-common ath9k-htc ath10k \
+   b43 b43legacy \
+   carl9170 \
+   hermes hermes-pci hermes-pcmcia hermes-plx \
+   iwl-legacy iwl3945 iwl4965 iwlagn \
+   libipw ipw2100 ipw2200 \
+   libertas-usb libertas-sdio \
+   lib80211 \
+   mac80211-hwsim \
+   mt7601u \
+   mwl8k mwifiex-pcie \
+   p54-common p54-pci p54-usb p54-spi \
+   rt2x00-lib rt2x00-pci rt2x00-usb \
+   rt2400-pci rt2500-pci rt2500-usb \
+   rt2800-lib rt2800-mmio rt2800-pci rt2800-usb rt2800-soc \
+   rt61-pci rt73-usb \
+   rtl8180 rtl8187 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu mt7601u
+   rtl8192de rtl8192cu \
+   wlcore wl12xx wl18xx \
+   zd1211rw
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -126,513 +139,652 @@ define Download/linux-firmware
 endef
 $(eval $(call Download,linux-firmware))
 
-PKG_ATH10K_LINUX_FIRMWARE_NAME:=ath10k-firmware
-PKG_ATH10K_LINUX_FIRMWARE_VERSION:=b46f3e01a6c1f9150fb4612ef53611d714565842
-PKG_ATH10K_LINUX_FIRMWARE_SOURCE:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION).tar.bz2
-PKG_ATH10K_LINUX_FIRMWARE_PROTO:=git
-PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
-PKG_ATH10K_LINUX_FIRMWARE_SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_NAME)-$(PKG_ATH10K_LINUX_FIRMWARE_VERSION)
-#PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM:=?
 
-define Download/ath10k-firmware
-  FILE:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE)
-  URL:=$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE_URL)
-  PROTO:=$(PKG_ATH10K_LINUX_FIRMWARE_PROTO)
-  VERSION:=$(PKG_ATH10K_LINUX_FIRMWARE_VERSION)
-  SUBDIR:=$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)
-  #MIRROR_MD5SUM:=$(PKG_ATH10K_LINUX_FIRMWARE_MIRROR_MD5SUM)
+define KernelPackage/adm8211
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=ADMTek 8211 support
+  DEPENDS+=@PCI_SUPPORT +kmod-mac80211 +kmod-eeprom-93cx6
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/adm8211.ko
+  AUTOLOAD:=$(call AutoProbe,adm8211)
 endef
-$(eval $(call Download,ath10k-firmware))
 
-# Prism54 drivers
-P54PCIFW:=2.13.12.0.arm
-P54USBFW:=2.13.24.0.lm87.arm
-P54SPIFW:=2.13.0.0.a.13.14.arm
 
-define Download/p54usb
-  FILE:=$(P54USBFW)
-  URL:=http://daemonizer.de/prism54/prism54-fw/fw-usb
-  MD5SUM:=8e8ab005a4f8f0123bcdc51bc25b47f6
-endef
-$(eval $(call Download,p54usb))
+define KernelPackage/ath/config
+  if PACKAGE_kmod-ath
+   config ATH_USER_REGD
+   bool Force Atheros drivers to respect the user's regdomain 
settings
+   help
+ Atheros' idea of regulatory handling is that the EEPROM of 
the card defines
+ the regulatory limits and the user is only allowed to 
restrict the settings
+ even further, even if the country allows frequencies or power 
levels that
+ are forbidden by the EEPROM settings.
 
-define Download/p54pci
-  FILE:=$(P54PCIFW)
-  URL:=http://daemonizer.de/prism54/prism54-fw/fw-softmac
-  MD5SUM:=ff7536af2092b1c4b21315bd103ef4c4
-endef
-$(eval $(call Download,p54pci))
+ Select this option if you want the driver to respect the 
user's decision about
+ regulatory settings.
 
-define Download/p54spi
-  FILE:=$(P54SPIFW)
-  URL:=http://daemonizer.de/prism54/prism54-fw/stlc4560
-  MD5SUM:=42661f8ecbadd88012807493f596081d
-endef
-$(eval $(call Download,p54spi))
+   config PACKAGE_ATH_DEBUG
+   bool Atheros wireless debugging
+   help
+ Say Y, if you want to debug atheros wireless drivers.
+ Only ath9k  ath10k make use of this.
 
-define KernelPackage/p54/Default
-  $(call KernelPackage/mac80211/Default)
-  TITLE:=Prism54 Drivers
-endef
+   config PACKAGE_ATH_DFS

[OpenWrt-Devel] [PATCH 7/7] mac80211: rename iwlagn to iwlwifi

2015-08-23 Thread Dirk Neukirchen
follow upstream module rename
commit 3c607d27c818cf4a5d28f2c73b18a88f8fbdfa33

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/mac80211/Makefile | 20 ++--
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 061f117..cb38ab0 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -28,7 +28,7 @@ PKG_DRIVERS = \
b43 b43legacy \
carl9170 \
hermes hermes-pci hermes-pcmcia hermes-plx \
-   iwl-legacy iwl3945 iwl4965 iwlagn \
+   iwl-legacy iwl3945 iwl4965 iwlwifi \
libipw ipw2100 ipw2200 \
libertas-usb libertas-sdio \
lib80211 \
@@ -904,7 +904,7 @@ define KernelPackage/ipw2200/description
 endef
 
 
-define KernelPackage/iwlagn
+define KernelPackage/iwlwifi
   $(call KernelPackage/mac80211/Default)
   DEPENDS:= +kmod-mac80211 @PCI_SUPPORT +@DRIVER_11N_SUPPORT
   TITLE:=Intel AGN Wireless support
@@ -916,8 +916,8 @@ define KernelPackage/iwlagn
   MENU:=1
 endef
 
-define KernelPackage/iwlagn/description
- iwlagn kernel module for
+define KernelPackage/iwlwifi/description
+ iwlwifi kernel module for
  Intel Wireless WiFi Link 6250AGN Adapter
  Intel 6000 Series Wi-Fi Adapters (6200AGN and 6300AGN)
  Intel WiFi Link 1000BGN
@@ -935,11 +935,11 @@ define KernelPackage/iwlagn/description
  Intel 3165 Wi-Fi Adapter
 endef
 
-define KernelPackage/iwlagn/config
-  if PACKAGE_kmod-iwlagn
+define KernelPackage/iwlwifi/config
+  if PACKAGE_kmod-iwlwifi
 
config PACKAGE_IWLWIFI_DEBUG
-   bool Enable full debugging output in the iwlagn driver
+   bool Enable full debugging output in the iwlwif driver
default n
help
  This option will enable debug tracing output for the iwlwifi 
drivers
@@ -1747,7 +1747,7 @@ config-$(call config_package,ipw2200) += IPW2200
 config-$(call config_package,iwl-legacy) += IWLEGACY
 config-$(call config_package,iwl3945) += IWL3945
 config-$(call config_package,iwl4965) += IWL4965
-config-$(call config_package,iwlagn) += IWLWIFI IWLDVM IWLMVM
+config-$(call config_package,iwlwifi) += IWLWIFI IWLDVM IWLMVM
 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUG)+= IWLWIFI_DEBUG
 config-$(CONFIG_PACKAGE_IWLWIFI_DEBUGFS)+= IWLWIFI_DEBUGFS
 
@@ -2001,7 +2001,7 @@ define KernelPackage/ipw2200/install
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(IPW2200_NAME)-$(IPW2200_VERSION)/ipw2200*.fw 
$(1)/lib/firmware
 endef
 
-define KernelPackage/iwlagn/install
+define KernelPackage/iwlwifi/install
$(INSTALL_DIR) $(1)/lib/firmware
 ifneq ($(CONFIG_IWL100_FW),)
$(INSTALL_DATA) 
$(PKG_BUILD_DIR)/$(PKG_LINUX_FIRMWARE_SUBDIR)/iwlwifi-100-5.ucode 
$(1)/lib/firmware
@@ -2205,7 +2205,7 @@ $(eval $(call KernelPackage,carl9170))
 $(eval $(call KernelPackage,cfg80211))
 $(eval $(call KernelPackage,iwl3945))
 $(eval $(call KernelPackage,iwl4965))
-$(eval $(call KernelPackage,iwlagn))
+$(eval $(call KernelPackage,iwlwifi))
 $(eval $(call KernelPackage,iwl-legacy))
 $(eval $(call KernelPackage,lib80211))
 $(eval $(call KernelPackage,libertas-sdio))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/7] mac80211: add iwlagn debug options

2015-08-23 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/mac80211/Makefile | 36 
 1 file changed, 36 insertions(+)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index f2ea123..b9042db 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -859,6 +859,40 @@ endef
 define KernelPackage/iwlagn/config
   if PACKAGE_kmod-iwlagn
 
+   config PACKAGE_IWLWIFI_DEBUG
+   bool Enable full debugging output in the iwlagn driver
+   default n
+   help
+ This option will enable debug tracing output for the iwlwifi 
drivers
+
+ This will result in the kernel module being ~100k larger.  
You can
+ control which debug output is sent to the kernel log by 
setting the
+ value in
+
+   /sys/module/iwlwifi/parameters/debug
+
+ This entry will only exist if this option is enabled.
+
+ To set a value, simply echo an 8-byte hex value to the same 
file:
+
+ % echo 0x43fff  /sys/module/iwlwifi/parameters/debug
+
+ You can find the list of debug mask values in:
+ drivers/net/wireless/iwlwifi/iwl-debug.h
+
+ If this is your first time using this driver, you should say 
Y here
+ as the debug information can assist others in helping you 
resolve
+ any problems you may encounter.
+
+   config PACKAGE_IWLWIFI_DEBUGFS
+   bool iwlwifi debugfs support
+   depends on PACKAGE_MAC80211_DEBUGFS
+   default n
+   help
+ Enable creation of debugfs files for the iwlwifi drivers. This
+ is a low-impact option that allows getting insight into the
+ driver's state at runtime.
+
config IWL100_FW
bool Intel 100 Firmware
default y
@@ -1699,6 +1733,8 @@ config-$(call config_package,iwl-legacy) += IWLEGACY
 config-$(call config_package,iwl3945) += IWL3945
 config-$(call config_package,iwl4965) += IWL4965
 config-$(call config_package,iwlagn) += IWLWIFI IWLDVM IWLMVM
+config-$(CONFIG_PACKAGE_IWLWIFI_DEBUG)+= IWLWIFI_DEBUG
+config-$(CONFIG_PACKAGE_IWLWIFI_DEBUGFS)+= IWLWIFI_DEBUGFS
 
 config-$(call config_package,net-libipw) += LIBIPW
 config-$(call config_package,net-ipw2100) += IPW2100
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Broken GCC 4.9 (and 5.2) on ARM - asking for review/test

2015-08-20 Thread Dirk Neukirchen
GCC 4.9 was marked BROKEN with r46089. Recently GCC 5.2 was added (marked as 
broken too)

commit msg:  toolchain: mark gcc 4.9 as broken, it miscompiles some code 
especially on ARM

Looking through some GCC 5 serious regressions I found:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932

I cannot replicate the ARM issue because of missing details and I dont have ARM 
hw where it occurs (arch: malta seems fine)
 - but there was an open ticket from a dev on github regarding the boot 
problem, which might be a symptom of code miscompile

https://github.com/wongsyrone/openwrt-1/issues/44

According to his tests GCC4.9 and GCC5.2 now work with this 2 changes:

adding -fno-ipa-sra to Kernel/CPU CFLAGS

https://github.com/wongsyrone/openwrt-1/commit/35308f2435ec75192324d68817e7702e3b257e71
https://github.com/wongsyrone/openwrt-1/commit/93c0a5173414cfa7684547de3c3a1f3dc4240383
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] rules.mk : remove GCC 4.4 and GCC 4.5 conditional

2015-08-18 Thread Dirk Neukirchen
gcc 4.4 was removed in r44957 gcc: remove 4.4.7 (only used by avr32)
gcc 4.5 was removed in r36149

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 rules.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules.mk b/rules.mk
index 58b9f3e..819bea5 100644
--- a/rules.mk
+++ b/rules.mk
@@ -143,7 +143,7 @@ ifndef DUMP
 -include $(TOOLCHAIN_DIR)/info.mk
 export GCC_HONOUR_COPTS:=0
 TARGET_CROSS:=$(if 
$(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if 
$(TARGET_SUFFIX),-$(TARGET_SUFFIX))-)
-TARGET_CFLAGS+= -fhonour-copts $(if 
$(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),,-Wno-error=unused-but-set-variable)
+TARGET_CFLAGS+= -fhonour-copts -Wno-error=unused-but-set-variable
 TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include
 ifeq ($(CONFIG_USE_MUSL),y)
   TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/include/fortify
@@ -201,7 +201,7 @@ HOST_CPPFLAGS:=-I$(STAGING_DIR_HOST)/include 
-I$(STAGING_DIR_HOST)/usr/include
 HOST_CFLAGS:=-O2 $(HOST_CPPFLAGS)
 HOST_LDFLAGS:=-L$(STAGING_DIR_HOST)/lib -L$(STAGING_DIR_HOST)/usr/lib
 
-ifeq 
($(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_6)$(CONFIG_EXTERNAL_TOOLCHAIN),)
+ifeq ($(CONFIG_GCC_VERSION_4_6)$(CONFIG_EXTERNAL_TOOLCHAIN),)
   TARGET_AR:=$(TARGET_CROSS)gcc-ar
   TARGET_RANLIB:=$(TARGET_CROSS)gcc-ranlib
   TARGET_NM:=$(TARGET_CROSS)gcc-nm
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Mount mmc block

2015-08-18 Thread Dirk Neukirchen
On 18.08.2015 15:15, Baptiste Clenet wrote:
  mount -t -ext3

On 18.08.2015 15:15, Baptiste Clenet wrote:
 /dev/mmcblk0p1   11610 3781632   6 ***FAT16***

mounting FAT16 with ext3 param fails ?
tune2fs is a part of e2fsprogs and probably cannot handle FAT16
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] generic: crypto: remove IRQF_DISABLED

2015-08-17 Thread Dirk Neukirchen
no-op since 2.6.35
removed in Kernel 4.1
see https://lwn.net/Articles/380931/

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c | 2 +-
 target/linux/generic/files/crypto/ocf/pasemi/pasemi.c | 2 +-
 target/linux/generic/files/crypto/ocf/ubsec_ssb/ubsec_ssb.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c 
b/target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c
index e689f24..6fb9e09 100644
--- a/target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c
+++ b/target/linux/generic/files/crypto/ocf/kirkwood/cesa_ocf_drv.c
@@ -1203,7 +1203,7 @@ mv_cesa_ocf_init(struct platform_device *pdev)
 #endif
/* register interrupt */
if( request_irq( cesa_device.irq, cesa_interrupt_handler,
- (IRQF_DISABLED) , cesa, cesa_ocf_id)  0) {
+ 0, cesa, cesa_ocf_id)  0) {
printk(%s,%d: cannot assign irq %x\n, __FILE__, __LINE__, 
cesa_device.reg);
return EINVAL;
 }
diff --git a/target/linux/generic/files/crypto/ocf/pasemi/pasemi.c 
b/target/linux/generic/files/crypto/ocf/pasemi/pasemi.c
index 7bb62bc..216c578 100644
--- a/target/linux/generic/files/crypto/ocf/pasemi/pasemi.c
+++ b/target/linux/generic/files/crypto/ocf/pasemi/pasemi.c
@@ -767,7 +767,7 @@ static int pasemi_dma_setup_tx_resources(struct 
pasemi_softc *sc, int chan)
 
ring-irq = irq_create_mapping(NULL, sc-base_irq + chan);
ret = request_irq(ring-irq, (irq_handler_t)
- pasemi_intr, IRQF_DISABLED, ring-irq_name, sc);
+ pasemi_intr, 0, ring-irq_name, sc);
if (ret) {
printk(KERN_ERR DRV_NAME : failed to hook irq %d ret %d\n,
   ring-irq, ret);
diff --git a/target/linux/generic/files/crypto/ocf/ubsec_ssb/ubsec_ssb.c 
b/target/linux/generic/files/crypto/ocf/ubsec_ssb/ubsec_ssb.c
index 6dc22c7..a81594e 100644
--- a/target/linux/generic/files/crypto/ocf/ubsec_ssb/ubsec_ssb.c
+++ b/target/linux/generic/files/crypto/ocf/ubsec_ssb/ubsec_ssb.c
@@ -499,7 +499,7 @@ ubsec_ssb_probe(struct ssb_device *sdev,
 }
 
 err = request_irq(sdev-irq, (irq_handler_t)ubsec_ssb_isr, 
-IRQF_DISABLED | IRQF_SHARED, DRV_MODULE_NAME, sdev);
+IRQF_SHARED, DRV_MODULE_NAME, sdev);
 if (err) {
 dev_err(sdev-dev, Could not request irq\n);
 goto err_out_powerdown;
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] orion: remove IRQF_DISABLED

2015-08-17 Thread Dirk Neukirchen
no-op since 2.6.35
removed in Kernel 4.1
see https://lwn.net/Articles/380931/

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c 
b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c
index b341ed6..658ea92 100644
--- a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c
+++ b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c
@@ -335,7 +335,7 @@ static void __init dt2_init(void)
platform_device_register(dt2_leds);
 
if (request_irq(gpio_to_irq(DT2_PIN_GPIO_RESET), dt2_reset_handler,
-   IRQF_DISABLED | IRQF_TRIGGER_LOW,
+   IRQF_TRIGGER_LOW,
DT2: Reset button, NULL)  0) {
 
printk(DT2: Reset Button IRQ %d not available\n,
@@ -343,7 +343,7 @@ static void __init dt2_init(void)
}
 
if (request_irq(gpio_to_irq(DT2_PIN_GPIO_POWER), dt2_power_handler,
-   IRQF_DISABLED | IRQF_TRIGGER_LOW,
+   IRQF_TRIGGER_LOW,
DT2: Power button, NULL)  0) {
 
printk(KERN_DEBUG DT2: Power Button IRQ %d not available\n,
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: add mt7601u driver

2015-08-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/mac80211/Makefile | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 40b08c0..874ff9f 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -31,7 +31,7 @@ PKG_DRIVERS = \
mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu
+   rtl8192de rtl8192cu mt7601u
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -695,6 +695,14 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
+define KernelPackage/mt7601u
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=mac80211 HW simulation device
+  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
+  AUTOLOAD:=$(call AutoProbe,mt7601)
+endef
+
 define KernelPackage/net-libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
@@ -1593,6 +1601,8 @@ config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
 
 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
+config-$(call config_package,mt7601u) += MT7601U
+config-y += WL_MEDIATEK
 
 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
@@ -2052,6 +2062,7 @@ $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
 $(eval $(call KernelPackage,zd1211rw))
 $(eval $(call KernelPackage,mac80211-hwsim))
+$(eval $(call KernelPackage,mt7601u))
 $(eval $(call KernelPackage,ath9k-common))
 $(eval $(call KernelPackage,ath9k))
 $(eval $(call KernelPackage,ath9k-htc))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] mac80211: add mt7601u driver

2015-08-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
v2: fix TITLE c/p error

 package/kernel/mac80211/Makefile | 13 -
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 40b08c0..debb292 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -31,7 +31,7 @@ PKG_DRIVERS = \
mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu
+   rtl8192de rtl8192cu mt7601u
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -695,6 +695,14 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
+define KernelPackage/mt7601u
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=MT7601U-based USB dongles Wireless Driver
+  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
+  AUTOLOAD:=$(call AutoProbe,mt7601)
+endef
+
 define KernelPackage/net-libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
@@ -1593,6 +1601,8 @@ config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
 
 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
+config-$(call config_package,mt7601u) += MT7601U
+config-y += WL_MEDIATEK
 
 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
@@ -2052,6 +2062,7 @@ $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
 $(eval $(call KernelPackage,zd1211rw))
 $(eval $(call KernelPackage,mac80211-hwsim))
+$(eval $(call KernelPackage,mt7601u))
 $(eval $(call KernelPackage,ath9k-common))
 $(eval $(call KernelPackage,ath9k))
 $(eval $(call KernelPackage,ath9k-htc))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3] mac80211: add mt7601u driver

2015-08-16 Thread Dirk Neukirchen
firmware is not available in linux-firmware yet
so use official driver source

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
v2: fix TITLE c/p error
v3: add missing firmware

 package/kernel/mac80211/Makefile | 34 +-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 40b08c0..6afef10 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -31,7 +31,7 @@ PKG_DRIVERS = \
mwl8k mwifiex-pcie net-hermes net-hermes-pci net-hermes-plx 
net-hermes-pcmcia \
iwl-legacy iwl3945 iwl4965 iwlagn wlcore wl12xx wl18xx lib80211 \
rtlwifi rtlwifi-pci rtlwifi-usb rtl8192c-common rtl8192ce rtl8192se \
-   rtl8192de rtl8192cu
+   rtl8192de rtl8192cu mt7601u
 
 PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-mac80211 \
@@ -695,6 +695,27 @@ define KernelPackage/mac80211-hwsim
   AUTOLOAD:=$(call AutoProbe,mac80211_hwsim)
 endef
 
+PKG_MT7601U_FW_NAME:=DPO_MT7601U_LinuxSTA
+PKG_MT7601U_FW_VERSION:=3.0.0.4_20130913
+PKG_MT7601U_FW_MD5SUM:=5f440dccc8bc952745a191994fc34699
+PKG_MT7601U_FW_SOURCE:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION).tar.bz2
+PKG_MT7601U_FW_SOURCE_URL:=http://www.mediatek.com/AmazonS3/Downloads/linux/
+define Download/mt7601u-firmware
+  FILE:=$(PKG_MT7601U_FW_SOURCE)
+  URL:=$(PKG_MT7601U_FW_SOURCE_URL)
+  MD5SUM:=$(PKG_MT7601U_FW_MD5SUM)
+  SUBDIR:=$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)
+endef
+$(eval $(call Download,mt7601u-firmware))
+
+define KernelPackage/mt7601u
+  $(call KernelPackage/mac80211/Default)
+  TITLE:=MT7601U-based USB dongles Wireless Driver
+  DEPENDS+= +kmod-mac80211 +@DRIVER_11N_SUPPORT @USB_SUPPORT +kmod-usb-core
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/mediatek/mt7601u/mt7601u.ko
+  AUTOLOAD:=$(call AutoProbe,mt7601)
+endef
+
 define KernelPackage/net-libipw
   $(call KernelPackage/mac80211/Default)
   TITLE:=libipw for ipw2100 and ipw2200
@@ -1593,6 +1614,8 @@ config-$(CONFIG_BRCMFMAC_PCIE) += BRCMFMAC_PCIE
 config-$(CONFIG_PACKAGE_BRCM80211_DEBUG) += BRCMDBG
 
 config-$(call config_package,mac80211-hwsim) += MAC80211_HWSIM
+config-$(call config_package,mt7601u) += MT7601U
+config-y += WL_MEDIATEK
 
 config-$(call config_package,rt2x00-lib) += RT2X00 RT2X00_LIB
 config-$(call config_package,rt2x00-pci) += RT2X00_LIB_PCI
@@ -1695,6 +1718,7 @@ define Build/Prepare
$(TAR) -C $(PKG_BUILD_DIR) -xjf 
$(DL_DIR)/$(ZD1211FW_NAME)-$(ZD1211FW_VERSION).tar.bz2
$(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_LINUX_FIRMWARE_SOURCE)
$(TAR) -C $(PKG_BUILD_DIR) -xjf 
$(DL_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SOURCE)
+   $(TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_MT7601U_FW_SOURCE)
rm -rf \
$(PKG_BUILD_DIR)/include/linux/ssb \
$(PKG_BUILD_DIR)/include/linux/bcma \
@@ -1868,6 +1892,13 @@ else
 endif
 endef
 
+define KernelPackage/mt7601u/install
+   $(INSTALL_DIR) $(1)/lib/firmware
+   $(INSTALL_DATA) \
+   
$(PKG_BUILD_DIR)/$(PKG_MT7601U_FW_NAME)_$(PKG_MT7601U_FW_VERSION)/mcu/bin/MT7601.bin
 \
+   $(1)/lib/firmware/mt7601u.bin
+endef
+
 define KernelPackage/mwl8k/install
$(INSTALL_DIR) $(1)/lib/firmware/mwl8k
$(INSTALL_DATA) \
@@ -2052,6 +2083,7 @@ $(eval $(call KernelPackage,rtl8192de))
 $(eval $(call KernelPackage,rtl8192cu))
 $(eval $(call KernelPackage,zd1211rw))
 $(eval $(call KernelPackage,mac80211-hwsim))
+$(eval $(call KernelPackage,mt7601u))
 $(eval $(call KernelPackage,ath9k-common))
 $(eval $(call KernelPackage,ath9k))
 $(eval $(call KernelPackage,ath9k-htc))
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] enable strong SSP / Stackprotector on gcc5

2015-08-16 Thread Dirk Neukirchen
Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 config/Config-build.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/Config-build.in b/config/Config-build.in
index f2d292e..e2defaa 100644
--- a/config/Config-build.in
+++ b/config/Config-build.in
@@ -232,7 +232,7 @@ menu Global build settings
config PKG_CC_STACKPROTECTOR_STRONG
bool Strong
select SSP_SUPPORT if !USE_MUSL
-   depends on GCC_VERSION_4_9_LINARO
+   depends on GCC_VERSION_4_9_LINARO || GCC_VERSION_5
depends on KERNEL_CC_STACKPROTECTOR_STRONG
endchoice
 
@@ -247,7 +247,7 @@ menu Global build settings
config KERNEL_CC_STACKPROTECTOR_REGULAR
bool Regular
config KERNEL_CC_STACKPROTECTOR_STRONG
-   depends on GCC_VERSION_4_9_LINARO
+   depends on GCC_VERSION_4_9_LINARO || GCC_VERSION_5
bool Strong
endchoice
 
-- 
2.5.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Dirk Neukirchen
On 05.08.2015 10:09, Baptiste Clenet wrote:
 Hi,
 
 I'm trying to add a package for libcoap and then compile it with my
 target Ralink MT7628.
 
 Here is the Makefile:
 #

 
 coap_address_t is defined in address.h inside some #ifdef (#ifdef
 WITH_LWIP or #ifdef WITH_CONTIKI or #ifdef WITH_POSIX)
 
 I don't know if WITH_POSIX is defined.
 
 Regards,
 

- You can check for WITH_POSIX (or other CFLAGS etc. in config.log
- configure always sets -DWITH_POSIX in CPPFLAGS (see configure.in)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] acx-mac80211: update git url

2015-07-28 Thread Dirk Neukirchen
use URL scheme documented at http://sourceforge.net/p/forge/documentation/Git/

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de

diff --git a/package/kernel/acx-mac80211/Makefile 
b/package/kernel/acx-mac80211/Makefile
index 84537de..c5c020d 100644
--- a/package/kernel/acx-mac80211/Makefile
+++ b/package/kernel/acx-mac80211/Makefile
@@ -14,7 +14,7 @@ PKG_VERSION:=20140216
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=git://acx100.git.sourceforge.net/gitroot/acx100/acx-mac80211
+PKG_SOURCE_URL:=git://git.code.sf.net/p/acx100/acx-mac80211
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_VERSION:=$(PKG_REV)
-- 
2.4.6
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] toplevel.mk: fix distclean

2015-07-28 Thread Dirk Neukirchen

- remove logs like make dirclean does
- remove key-build*

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---

git clean -xfd only removes 1 file more:
scripts/config/zconf.lex.c

 include/toplevel.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/toplevel.mk b/include/toplevel.mk
index 11b2dd9..1421091 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -217,7 +217,7 @@ docs/clean: FORCE
@$(_SINGLE)$(SUBMAKE) -C docs clean
 
 distclean:
-   rm -rf tmp build_dir staging_dir dl .config* feeds package/feeds 
package/openwrt-packages bin
+   rm -rf bin build_dir .config* dl feeds key-build* logs package/feeds 
package/openwrt-packages staging_dir tmp
@$(_SINGLE)$(SUBMAKE) -C scripts/config clean
 
 ifeq ($(findstring v,$(DEBUG)),)
-- 
2.4.6
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] toolchain: fix gcc 4.6 build with gcc5

2015-07-11 Thread Dirk Neukirchen
build error:
cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p'
cfns.gperf:26:14: error: but not here
observed on Arch Linux

affected versions gcc 4.6, gcc 4.7

reported  fixed in DragonFlyBSD issue #136
https://github.com/DragonFlyBSD/DPorts/issues/136

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 .../gcc/patches/4.6-linaro/010-documentation.patch  |  2 +-
 .../gcc/patches/4.6-linaro/910-mbsd_multi.patch |  6 +++---
 .../4.6-linaro/920-specs_nonfatal_getenv.patch  |  2 +-
 toolchain/gcc/patches/4.6-linaro/999-coldfire.patch |  2 +-
 .../patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch | 21 +
 5 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644 
toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch

diff --git a/toolchain/gcc/patches/4.6-linaro/010-documentation.patch 
b/toolchain/gcc/patches/4.6-linaro/010-documentation.patch
index 25773a3..46178da 100644
--- a/toolchain/gcc/patches/4.6-linaro/010-documentation.patch
+++ b/toolchain/gcc/patches/4.6-linaro/010-documentation.patch
@@ -1,6 +1,6 @@
 --- a/gcc/Makefile.in
 +++ b/gcc/Makefile.in
-@@ -4251,18 +4251,10 @@
+@@ -4267,18 +4267,10 @@ doc/gcc.info: $(TEXI_GCC_FILES)
  doc/gccint.info: $(TEXI_GCCINT_FILES)
  doc/cppinternals.info: $(TEXI_CPPINT_FILES)
  
diff --git a/toolchain/gcc/patches/4.6-linaro/910-mbsd_multi.patch 
b/toolchain/gcc/patches/4.6-linaro/910-mbsd_multi.patch
index 51bbc7f..32b408a 100644
--- a/toolchain/gcc/patches/4.6-linaro/910-mbsd_multi.patch
+++ b/toolchain/gcc/patches/4.6-linaro/910-mbsd_multi.patch
@@ -125,7 +125,7 @@
  Assume normal C execution environment
 --- a/gcc/common.opt
 +++ b/gcc/common.opt
-@@ -520,6 +520,10 @@ Werror=
+@@ -523,6 +523,10 @@ Werror=
  Common Joined
  Treat specified warning as error
  
@@ -136,7 +136,7 @@
  Wextra
  Common Var(extra_warnings) Warning
  Print extra (possibly unwanted) warnings
-@@ -1156,6 +1160,9 @@ fguess-branch-probability
+@@ -1159,6 +1163,9 @@ fguess-branch-probability
  Common Report Var(flag_guess_branch_prob) Optimization
  Enable guessing of branch probabilities
  
@@ -232,7 +232,7 @@
  @item -Wstack-protector
  @opindex Wstack-protector
  @opindex Wno-stack-protector
-@@ -6317,7 +6333,7 @@ so, the first branch is redirected to ei
+@@ -6322,7 +6338,7 @@ so, the first branch is redirected to ei
  second branch or a point immediately following it, depending on whether
  the condition is known to be true or false.
  
diff --git a/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch 
b/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch
index 5055ae8..0b241fa 100644
--- a/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch
+++ b/toolchain/gcc/patches/4.6-linaro/920-specs_nonfatal_getenv.patch
@@ -1,6 +1,6 @@
 --- a/gcc/gcc.c
 +++ b/gcc/gcc.c
-@@ -7772,7 +7772,10 @@ getenv_spec_function (int argc, const ch
+@@ -7830,7 +7830,10 @@ getenv_spec_function (int argc, const ch
  
value = getenv (argv[0]);
if (!value)
diff --git a/toolchain/gcc/patches/4.6-linaro/999-coldfire.patch 
b/toolchain/gcc/patches/4.6-linaro/999-coldfire.patch
index 0913f34..e014386 100644
--- a/toolchain/gcc/patches/4.6-linaro/999-coldfire.patch
+++ b/toolchain/gcc/patches/4.6-linaro/999-coldfire.patch
@@ -1,6 +1,6 @@
 --- a/gcc/config.gcc
 +++ b/gcc/config.gcc
-@@ -1805,7 +1805,7 @@ m68k-*-linux*)   # Motorola m68k's runnin
+@@ -1809,7 +1809,7 @@ m68k-*-linux*)   # Motorola m68k's runnin
default_m68k_cpu=68020
default_cf_cpu=5475
with_arch=${with_arch:-m68k}
diff --git a/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch 
b/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch
new file mode 100644
index 000..7ab0d4c
--- /dev/null
+++ b/toolchain/gcc/patches/4.6-linaro/999-gcc5-gcc_cp_cfns_h.patch
@@ -0,0 +1,21 @@
+--- a/gcc/cp/cfns.h
 b/gcc/cp/cfns.h
+@@ -53,6 +53,9 @@ __inline
+ static unsigned int hash (const char *, unsigned int);
+ #ifdef __GNUC__
+ __inline
++#ifdef __GNUC_STDC_INLINE__
++__attribute__ ((__gnu_inline__))
++#endif
+ #endif
+ const char * libc_name_p (const char *, unsigned int);
+ /* maximum key range = 391, duplicates = 0 */
+@@ -96,7 +99,7 @@ hash (register const char *str, register
+   400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
+   400, 400, 400, 400, 400, 400, 400
+ };
+-  register int hval = len;
++  register int hval = (int)len;
+ 
+   switch (hval)
+ {
-- 
2.4.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Hardening Issues / Revert r46146 ?

2015-07-08 Thread Dirk Neukirchen
On 08.07.2015 09:41, Steven Barth wrote:
 The reason for the commit was that supporting hardening such as SSP
 accross 3 libcs is a PITA to maintain. I'm fine if someone comes up
 with a patch that would fix it, though.
 
 In general, you suggest to always enabled UCLIBCs SSP options and get
 rid of the GCCs libssp?
 

If I read the documents correctly libssp will be empty because
glibc and uclibc both contain the symbols for SSP in libc.so/ldso
(by default (?) in glibc, if enabled in uclibc case)
This since around 2005/2006.

Most normal software should link/use that glibc/uclibc implementation in 
OpenWrt environment.

Since libssp is empty the libssp switch should have no effect on building 
binaries
because gcc decides what to link against in both cases of 
--disable/enable-libssp
(If your libc does not provide SSP, then libssp will be linked automatically.)

so we only need libssp when:
- using a libc without SSP that requires libssp from gcc (dietlibc)
- we disable the SSP features that are in uclibc/glibc
- software not linked against libc (?, example: grub2 upstream disables ssp)

The main issues are probably bad __FLAGS handling when cross compiling and
most of these issues are/should be already fixed by upstream, other hardened 
distros 
or variants of these.


 
 Cheers,
 
 Steven
 ___
 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] [PATCH] ar71xx: ag71xx remove IRQF_DISABLED

2015-07-08 Thread Dirk Neukirchen
no-op since 2.6.35
removed in Kernel 4.1
see https://lwn.net/Articles/380931/

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 .../ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c 
b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index dc77699..c7671d9 100644
--- 
a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ 
b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@ -1248,7 +1248,7 @@ static int ag71xx_probe(struct platform_device *pdev)
 
dev-irq = platform_get_irq(pdev, 0);
err = request_irq(dev-irq, ag71xx_interrupt,
- IRQF_DISABLED,
+ 0x0,
  dev-name, dev);
if (err) {
dev_err(pdev-dev, unable to request IRQ %d\n, dev-irq);
-- 
2.4.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] AES module vs builtin

2015-07-08 Thread Dirk Neukirchen
On 08.07.2015 16:20, Cristian Morales Vega wrote:
 target/linux/generic/config-* has CONFIG_CRYPTO_AES=y.

for reference its introduced in: https://dev.openwrt.org/changeset/35329/

 But package/kernel/linux/modules/crypto.mk still defines a
 kmod-crypto-aes package which just contains a file in /etc/modules.d/
 trying to load a module which doesn't exist.
 
 Not sure how the config files in target/linux/generic files are
 created... Should kmod-crypto-aes be removed, or is
 CONFIG_CRYPTO_AES=y what shouldn't be there?
 
 
 Also, it's a bit worrisome that there was no build failure since the
 kmod-crypto-aes package description defines
 FILES:=$(LINUX_DIR)/crypto/aes_generic.ko
 and the file doesn't exist.
 There is an OpenWRT build system expert around? Otherwise I will try
 to take a look.

If you enable logging there will be messages that help you find cases of 
builtin modules
or other inconsistencies:

NOTICE: module 
'.../build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.58/drivers/net/phy/rtl8366s.ko'
 is built-in.
WARNING: kmod-pwm is not available in the kernel config - generating empty 
package

No build failure makes sense because
- some modules depend on other symbols not available on all target archs
- some modules have to be built-in to boot from a rootfs (ext4) when on other 
targets built-in does not make sense
(4mb flash routers with squashfs)

 ___
 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] Hardening Issues / Revert r46146 ?

2015-07-07 Thread Dirk Neukirchen
r46146 change broke uclibc compile in x86/x86_64 target/linux/install with 
Error:
arch/x86/Makefile:114: stack-protector enabled but compiler support broken

Reason in Config-build.in:
depends on USE_MUSL - means no PKG_CC_STACKPROTECTOR_REGULAR or 
PKG_CC_STACKPROTECTOR_STRONG are set

toolchain/uClibc/common.mk has

-e 's,^.*UCLIBC_HAS_SSP[^_].*,UCLIBC_HAS_SSP=$(if $(or 
$(CONFIG_PKG_CC_STACKPROTECTOR_REGULAR),$(CONFIG_PKG_CC_STACKPROTECTOR_STRONG)),y,n),g'
 \

which now will set 

UCLIBC_HAS_SSP=n

This breaks compiler support because Kernel SSP is enabled by default
- the Kernel runs kernel_dir/scripts/gcc-x86_bits-has-stack-protector.sh 
to determine support/breakage

Reading documentation like [1]
suggests that SSP (Stack Smashing Protection) should work with
a GCC that has --disable libssp (toolchain/gcc/common.mk), because uclibc and 
glibc do
provide these since 2005/2006 according to commits/versions involved.

[2] : GCC does not have to provide libssp, the needed functions are added to 
ldso/libc instead.

References:
[1] http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
[2] http://git.buildroot.net/uClibc/tree/extra/Configs/Config.in
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] fix 64bit uclibc external toolchain detection

2015-07-07 Thread Dirk Neukirchen
according to gcc, UCLIBC_DYNAMIC_LINKER64

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 scripts/ext-toolchain.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ext-toolchain.sh b/scripts/ext-toolchain.sh
index 3ebaa21..a552fbe 100755
--- a/scripts/ext-toolchain.sh
+++ b/scripts/ext-toolchain.sh
@@ -91,7 +91,7 @@ test_uclibc() {
local sysroot=$($CC $CFLAGS -print-sysroot 2/dev/null)
if [ -d ${sysroot:-$TOOLCHAIN} ]; then
local lib
-   for lib in 
${sysroot:-$TOOLCHAIN}/{lib,usr/lib,usr/local/lib}/ld-uClibc*.so*; do
+   for lib in 
${sysroot:-$TOOLCHAIN}/{lib,usr/lib,usr/local/lib}/ld*-uClibc*.so*; do
if [ -f $lib ]  [ ! -h $lib ]; then
return 0
fi
-- 
2.4.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] toolchain/uClibc: add uclibc-ng 1.0.3

2015-07-07 Thread Dirk Neukirchen

uclibc-ng is used by buildroot sine June 2015
see http://lists.busybox.net/pipermail/buildroot/2015-June/130161.html

maybe some OpenWrt users are interested to test

- fix ld-uclibc.so.1 breakage by symlinking to expected .so.0
- use 0.9.33.2 config, add add missing config symbols
- use buildroot patches

successful boots on qemu malta, qemu x86_64

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/libs/toolchain/Makefile|  10 +
 toolchain/uClibc/Config.in |   4 +
 toolchain/uClibc/Config.version|   6 +-
 toolchain/uClibc/common.mk |  12 +-
 toolchain/uClibc/config-1.0.3/arm  |   7 +
 toolchain/uClibc/config-1.0.3/armeb|   7 +
 toolchain/uClibc/config-1.0.3/common   | 222 +
 toolchain/uClibc/config-1.0.3/debug|   6 +
 toolchain/uClibc/config-1.0.3/i386 |  21 ++
 toolchain/uClibc/config-1.0.3/i686 |  21 ++
 toolchain/uClibc/config-1.0.3/m68k |   6 +
 toolchain/uClibc/config-1.0.3/mips |  18 ++
 toolchain/uClibc/config-1.0.3/mips64   |  18 ++
 toolchain/uClibc/config-1.0.3/mips64.32|  19 ++
 toolchain/uClibc/config-1.0.3/mips64.64|  19 ++
 toolchain/uClibc/config-1.0.3/mips64.n32   |  19 ++
 toolchain/uClibc/config-1.0.3/mips64el |  18 ++
 toolchain/uClibc/config-1.0.3/mips64el.32  |  19 ++
 toolchain/uClibc/config-1.0.3/mips64el.64  |  19 ++
 toolchain/uClibc/config-1.0.3/mips64el.n32 |  19 ++
 toolchain/uClibc/config-1.0.3/mipsel   |  18 ++
 toolchain/uClibc/config-1.0.3/mipsel.cobalt|  18 ++
 toolchain/uClibc/config-1.0.3/powerpc  |   6 +
 toolchain/uClibc/config-1.0.3/powerpc.e500 |   6 +
 toolchain/uClibc/config-1.0.3/sparc|   8 +
 toolchain/uClibc/config-1.0.3/sparc.leon   |   8 +
 toolchain/uClibc/config-1.0.3/x86_64   |   6 +
 .../0001-Fix-libgcc_s_resume-issue.patch   |  56 ++
 .../patches-1.0.3/0002-fix-parallel-build.patch|  21 ++
 29 files changed, 635 insertions(+), 2 deletions(-)
 create mode 100644 toolchain/uClibc/config-1.0.3/arm
 create mode 100644 toolchain/uClibc/config-1.0.3/armeb
 create mode 100644 toolchain/uClibc/config-1.0.3/common
 create mode 100644 toolchain/uClibc/config-1.0.3/debug
 create mode 100644 toolchain/uClibc/config-1.0.3/i386
 create mode 100644 toolchain/uClibc/config-1.0.3/i686
 create mode 100644 toolchain/uClibc/config-1.0.3/m68k
 create mode 100644 toolchain/uClibc/config-1.0.3/mips
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64.32
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64.64
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64.n32
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64el
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64el.32
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64el.64
 create mode 100644 toolchain/uClibc/config-1.0.3/mips64el.n32
 create mode 100644 toolchain/uClibc/config-1.0.3/mipsel
 create mode 100644 toolchain/uClibc/config-1.0.3/mipsel.cobalt
 create mode 100644 toolchain/uClibc/config-1.0.3/powerpc
 create mode 100644 toolchain/uClibc/config-1.0.3/powerpc.e500
 create mode 100644 toolchain/uClibc/config-1.0.3/sparc
 create mode 100644 toolchain/uClibc/config-1.0.3/sparc.leon
 create mode 100644 toolchain/uClibc/config-1.0.3/x86_64
 create mode 100644 
toolchain/uClibc/patches-1.0.3/0001-Fix-libgcc_s_resume-issue.patch
 create mode 100644 toolchain/uClibc/patches-1.0.3/0002-fix-parallel-build.patch

diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile
index 27865de..37edef7 100644
--- a/package/libs/toolchain/Makefile
+++ b/package/libs/toolchain/Makefile
@@ -464,6 +464,16 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
$(PKG_BUILD_DIR)/libm-* \
$(PKG_BUILD_DIR)/libcrypt-* \
$(1)/lib/
+
+  ifeq ($(CONFIG_UCLIBC_VERSION_NG),y)
+   if [ -e $(1)/lib/ld-uClibc.so.1 ]; then \
+   (cd $(1)/lib;ln -sf ld-uClibc.so.1 ld-uClibc.so.0) \
+   fi
+   if [ -e $(1)/lib/ld64-uClibc.so.1 ]; then \
+   (cd $(1)/lib;ln -sf ld64-uClibc.so.1 ld64-uClibc.so.0) \
+   fi
+  endif
+
   endef
 
   LD_MUSL_NAME = $(notdir $(firstword $(wildcard 
$(TOOLCHAIN_DIR)/lib/libc.so*)))
diff --git a/toolchain/uClibc/Config.in b/toolchain/uClibc/Config.in
index 08ea00a..19f5b9a 100644
--- a/toolchain/uClibc/Config.in
+++ b/toolchain/uClibc/Config.in
@@ -11,6 +11,10 @@ choice
select UCLIBC_VERSION_0_9_33
bool uClibc 0.9.33.2
 
+   config UCLIBC_USE_VERSION_NG
+   select UCLIBC_VERSION_NG
+   bool uClibc-ng 1.0.3
+
 endchoice
 
 # Debug version.
diff --git a/toolchain/uClibc/Config.version

[OpenWrt-Devel] [PATCH] toolchain: binutils: enhance build reproducability

2015-06-25 Thread Dirk Neukirchen
built toolchain utilities will always operate in deterministic mode:
https://sourceware.org/binutils/docs-2.25/binutils/ar-cmdline.html

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de

diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index 9043db7..0276512 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -32,6 +32,7 @@ BINUTILS_CONFIGURE:= \
--host=$(GNU_HOST_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
--with-sysroot=$(TOOLCHAIN_DIR) \
+   --enable-deterministic-archives \
--enable-plugins \
--disable-multilib \
--disable-werror \
-- 
2.4.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [package] strace: update to 4.10

2015-06-25 Thread Dirk Neukirchen

- include upstream fixes for musl compatibility
Include sys/stat.h for S_I* macros
d34e00b293942b1012ddc49ed3ab379a32337611

Include linux/ioctl.h for _IOC_* macros
3460dc486d333231998de0f19918204aacee9ae3

strace 4.8 is broken with musl on some arch
(arm: omap,oxnas according to buildbot)

compile tested only

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de

diff --git a/package/devel/strace/Makefile b/package/devel/strace/Makefile
index 4c29d69..04456f0 100644
--- a/package/devel/strace/Makefile
+++ b/package/devel/strace/Makefile
@@ -10,9 +10,9 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=strace
 
-PKG_VERSION:=4.8
+PKG_VERSION:=4.10
 PKG_RELEASE:=1
-PKG_MD5SUM:=c575ef43829586801f514fd91bfe7575
+PKG_MD5SUM:=107a5be455493861189e9b57a3a51912
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
diff --git a/package/devel/strace/patches/001-upstream-musl_includes.patch 
b/package/devel/strace/patches/001-upstream-musl_includes.patch
new file mode 100644
index 000..a35d7fd
--- /dev/null
+++ b/package/devel/strace/patches/001-upstream-musl_includes.patch
@@ -0,0 +1,53 @@
+--- a/evdev.c
 b/evdev.c
+@@ -28,6 +28,8 @@
+ 
+ #include defs.h
+ 
++#include linux/ioctl.h
++
+ #ifdef HAVE_LINUX_INPUT_H
+ #include linux/input.h
+ #include xlat/evdev_abs.h
+--- a/ioctl.c
 b/ioctl.c
+@@ -29,7 +29,7 @@
+  */
+ 
+ #include defs.h
+-#include asm/ioctl.h
++#include linux/ioctl.h
+ #include xlat/ioctl_dirs.h
+ 
+ #ifdef HAVE_LINUX_INPUT_H
+--- a/ioctlsort.c
 b/ioctlsort.c
+@@ -33,7 +33,7 @@
+ #include stdio.h
+ #include stdlib.h
+ #include string.h
+-#include asm/ioctl.h
++#include linux/ioctl.h
+ 
+ struct ioctlent {
+   const char *info;
+--- a/mknod.c
 b/mknod.c
+@@ -1,6 +1,7 @@
+ #include defs.h
+ 
+ #include fcntl.h
++#include sys/stat.h
+ 
+ #ifdef MAJOR_IN_SYSMACROS
+ # include sys/sysmacros.h
+--- a/printmode.c
 b/printmode.c
+@@ -1,6 +1,7 @@
+ #include defs.h
+ 
+ #include fcntl.h
++#include sys/stat.h
+ 
+ #include xlat/modetypes.h
+ 
diff --git a/package/devel/strace/patches/100-musl_fix.patch 
b/package/devel/strace/patches/100-musl_fix.patch
deleted file mode 100644
index e4105bc..000
--- a/package/devel/strace/patches/100-musl_fix.patch
+++ /dev/null
@@ -1,165 +0,0 @@
 a/net.c
-+++ b/net.c
-@@ -50,11 +50,7 @@
- #include arpa/inet.h
- #include net/if.h
- #include asm/types.h
--#if defined(__GLIBC__)
--# include netipx/ipx.h
--#else
--# include linux/ipx.h
--#endif
-+#include linux/ipx.h
- 
- #if defined(__GLIBC__)  defined(HAVE_SIN6_SCOPE_ID_LINUX)
- # if defined(HAVE_LINUX_IN6_H)
-@@ -94,14 +90,6 @@
- # define PF_UNSPEC AF_UNSPEC
- #endif
- 
--/* Under Linux these are enums so we can't test for them with ifdef. */
--#define IPPROTO_EGP IPPROTO_EGP
--#define IPPROTO_PUP IPPROTO_PUP
--#define IPPROTO_IDP IPPROTO_IDP
--#define IPPROTO_IGMP IPPROTO_IGMP
--#define IPPROTO_RAW IPPROTO_RAW
--#define IPPROTO_MAX IPPROTO_MAX
--
- static const struct xlat domains[] = {
- #ifdef PF_UNSPEC
-   { PF_UNSPEC,PF_UNSPEC },
-@@ -493,24 +481,16 @@ static const struct xlat protocols[] = {
-   { IPPROTO_ICMP, IPPROTO_ICMP  },
-   { IPPROTO_TCP,  IPPROTO_TCP   },
-   { IPPROTO_UDP,  IPPROTO_UDP   },
--#ifdef IPPROTO_IGMP
-   { IPPROTO_IGMP, IPPROTO_IGMP  },
--#endif
- #ifdef IPPROTO_GGP
-   { IPPROTO_GGP,  IPPROTO_GGP   },
- #endif
- #ifdef IPPROTO_IPIP
-   { IPPROTO_IPIP, IPPROTO_IPIP  },
- #endif
--#ifdef IPPROTO_EGP
-   { IPPROTO_EGP,  IPPROTO_EGP   },
--#endif
--#ifdef IPPROTO_PUP
-   { IPPROTO_PUP,  IPPROTO_PUP   },
--#endif
--#ifdef IPPROTO_IDP
-   { IPPROTO_IDP,  IPPROTO_IDP   },
--#endif
- #ifdef IPPROTO_TP
-   { IPPROTO_TP,   IPPROTO_TP},
- #endif
-@@ -571,12 +551,8 @@ static const struct xlat protocols[] = {
- #ifdef IPPROTO_UDPLITE
-   { IPPROTO_UDPLITE, IPPROTO_UDPLITE },
- #endif
--#ifdef IPPROTO_RAW
-   { IPPROTO_RAW,  IPPROTO_RAW   },
--#endif
--#ifdef IPPROTO_MAX
-   { IPPROTO_MAX,  IPPROTO_MAX   },
--#endif
-   { 0,NULL},
- };
- static const struct xlat msg_flags[] = {
 a/process.c
-+++ b/process.c
-@@ -55,19 +55,6 @@
- # endif
- #endif
- 
--#ifdef HAVE_LINUX_PTRACE_H
--# undef PTRACE_SYSCALL
--# ifdef HAVE_STRUCT_IA64_FPREG
--#  define ia64_fpreg XXX_ia64_fpreg
--# endif
--# ifdef HAVE_STRUCT_PT_ALL_USER_REGS
--#  define pt_all_user_regs XXX_pt_all_user_regs
--# endif
--# include linux/ptrace.h
--# undef ia64_fpreg
--# undef pt_all_user_regs
--#endif
--
- #if defined(SPARC64)
- # define r_pc r_tpc
- # undef PTRACE_GETREGS
-@@ -94,6 +81,7 @@
- 
- #include sched.h
- #include asm/posix_types.h
-+#include asm/ptrace.h
- #undef GETGROUPS_T
- #define GETGROUPS_T __kernel_gid_t
- #undef GETGROUPS32_T
-@@ -2857,7 +2845,7 @@ sys_sched_setscheduler(struct tcb *tcp)
-   if (umove(tcp, tcp-u_arg[2], p)  0)
-   tprintf(, %#lx, tcp-u_arg[2]);
-   else
--  tprintf(, { %d }, p.__sched_priority

[OpenWrt-Devel] [PATCH] [package] grub2: fix musl build

2015-06-25 Thread Dirk Neukirchen

fixes compile error:
grub-core/osdep/unix/hostdisk.c: In function 'grub_util_fd_seek':
grub-core/osdep/unix/hostdisk.c:89:14: error: invalid storage class for 
function '_llseek'
   static int _llseek (uint filedes, ulong hi, ulong lo,

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/boot/grub2/patches/001-grub-musl.patch | 47 ++
 1 file changed, 47 insertions(+)
 create mode 100644 package/boot/grub2/patches/001-grub-musl.patch

diff --git a/package/boot/grub2/patches/001-grub-musl.patch 
b/package/boot/grub2/patches/001-grub-musl.patch
new file mode 100644
index 000..daba87f
--- /dev/null
+++ b/package/boot/grub2/patches/001-grub-musl.patch
@@ -0,0 +1,47 @@
+--- a/grub-core/osdep/unix/hostdisk.c
 b/grub-core/osdep/unix/hostdisk.c
+@@ -48,11 +48,6 @@
+ #ifdef __linux__
+ # include sys/ioctl.h /* ioctl */
+ # include sys/mount.h
+-# if !defined(__GLIBC__) || \
+-((__GLIBC__  2) || ((__GLIBC__ == 2)  (__GLIBC_MINOR__  1)))
+-/* Maybe libc doesn't have large file support.  */
+-#  include linux/unistd.h /* _llseek */
+-# endif /* (GLIBC  2) || ((__GLIBC__ == 2)  (__GLIBC_MINOR  1)) */
+ #endif /* __linux__ */
+ 
+ grub_uint64_t
+@@ -79,24 +74,6 @@ grub_util_get_fd_size (grub_util_fd_t fd
+   return st.st_size;
+ }
+ 
+-#if defined(__linux__)  (!defined(__GLIBC__) || \
+-((__GLIBC__  2) || ((__GLIBC__ == 2)  (__GLIBC_MINOR__  1
+-  /* Maybe libc doesn't have large file support.  */
+-int
+-grub_util_fd_seek (grub_util_fd_t fd, grub_uint64_t off)
+-{
+-  loff_t offset, result;
+-  static int _llseek (uint filedes, ulong hi, ulong lo,
+-loff_t *res, uint wh);
+-  _syscall5 (int, _llseek, uint, filedes, ulong, hi, ulong, lo,
+-   loff_t *, res, uint, wh);
+-
+-  offset = (loff_t) off;
+-  if (_llseek (fd, offset  32, offset  0x, result, SEEK_SET))
+-return -1;
+-  return GRUB_ERR_NONE;
+-}
+-#else
+ int
+ grub_util_fd_seek (grub_util_fd_t fd, grub_uint64_t off)
+ {
+@@ -107,7 +84,6 @@ grub_util_fd_seek (grub_util_fd_t fd, gr
+ 
+   return 0;
+ }
+-#endif
+ 
+ 
+ /* Read LEN bytes from FD in BUF. Return less than or equal to zero if an
-- 
2.4.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] mac80211: remove wlcore patch

2015-06-25 Thread Dirk Neukirchen
- reported by buildbot, replicated
- same patch was removed from kernel tree already
- patch fails with 3.18
- newer version should be included in Kernel 4.x

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de

diff --git 
a/package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch
 
b/package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch
deleted file mode 100644
index 856dea8..000
--- 
a/package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-When running with DT, we no longer have a board file that can set up the
-platform data for wlcore. Allow this data to be passed from DT.
-
-Since some platforms use a gpio-irq, add support for passing either the
-irq number or the gpio number. For the latter case, the driver will
-request the gpio and convert it to the irq number. If an irq is
-specified, it'll be used as is.
-
-[Arik - the pdev_data pointer does not belong to us and is freed when
-the device is released. Dereference to our private data first.]
-
-Signed-off-by: Ido Yariv i...@wizery.com
-Signed-off-by: Arik Nemtsov a...@wizery.com

- drivers/net/wireless/ti/wlcore/sdio.c | 71 ---
- include/linux/wl12xx.h|  3 +-
- 2 files changed, 67 insertions(+), 7 deletions(-)
-
 a/drivers/net/wireless/ti/wlcore/sdio.c
-+++ b/drivers/net/wireless/ti/wlcore/sdio.c
-@@ -34,6 +34,7 @@
- #include linux/wl12xx.h
- #include linux/pm_runtime.h
- #include linux/printk.h
-+#include linux/of.h
- 
- #include wlcore.h
- #include wl12xx_80211.h
-@@ -214,6 +215,61 @@ static struct wl1271_if_operations sdio_
-   .set_block_size = wl1271_sdio_set_block_size,
- };
- 
-+static const struct of_device_id wlcore_of_match[] = {
-+  {
-+  .compatible = wlcore,
-+  },
-+  {}
-+};
-+MODULE_DEVICE_TABLE(of, wlcore_of_match);
-+
-+static struct wl12xx_platform_data *get_platform_data(struct device *dev)
-+{
-+  struct wl12xx_platform_data *pdata;
-+  struct device_node *np;
-+  u32 gpio;
-+
-+  pdata = wl12xx_get_platform_data();
-+  if (!IS_ERR(pdata))
-+  return kmemdup(pdata, sizeof(*pdata), GFP_KERNEL);
-+
-+  np = of_find_matching_node(NULL, wlcore_of_match);
-+  if (!np) {
-+  dev_err(dev, No platform data set\n);
-+  return NULL;
-+  }
-+
-+  pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
-+  if (!pdata) {
-+  dev_err(dev, Can't allocate platform data\n);
-+  return NULL;
-+  }
-+
-+  if (of_property_read_u32(np, irq, pdata-irq)) {
-+  if (!of_property_read_u32(np, gpio, gpio) 
-+  !gpio_request_one(gpio, GPIOF_IN, wlcore_irq)) {
-+  pdata-gpio = gpio;
-+  pdata-irq = gpio_to_irq(gpio);
-+  }
-+  }
-+
-+  /* Optional fields */
-+  pdata-use_eeprom = of_property_read_bool(np, use-eeprom);
-+  of_property_read_u32(np, board-ref-clock, pdata-board_ref_clock);
-+  of_property_read_u32(np, board-tcxo-clock, pdata-board_tcxo_clock);
-+  of_property_read_u32(np, platform-quirks, pdata-platform_quirks);
-+
-+  return pdata;
-+}
-+
-+static void del_platform_data(struct wl12xx_platform_data *pdata)
-+{
-+  if (pdata-gpio)
-+  gpio_free(pdata-gpio);
-+
-+  kfree(pdata);
-+}
-+
- static int wl1271_probe(struct sdio_func *func,
- const struct sdio_device_id *id)
- {
-@@ -245,10 +301,10 @@ static int wl1271_probe(struct sdio_func
-   /* Use block mode for transferring over one block size of data */
-   func-card-quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE;
- 
--  pdev_data.pdata = wl12xx_get_platform_data();
--  if (IS_ERR(pdev_data.pdata)) {
--  ret = PTR_ERR(pdev_data.pdata);
--  dev_err(glue-dev, missing wlan platform data: %d\n, ret);
-+  pdev_data.pdata = get_platform_data(func-dev);
-+  if (!pdev_data.pdata) {
-+  ret = -EINVAL;
-+  dev_err(glue-dev, missing wlan platform data\n);
-   goto out_free_glue;
-   }
- 
-@@ -279,7 +335,7 @@ static int wl1271_probe(struct sdio_func
-   if (!glue-core) {
-   dev_err(glue-dev, can't allocate platform_device);
-   ret = -ENOMEM;
--  goto out_free_glue;
-+  goto out_free_pdata;
-   }
- 
-   glue-core-dev.parent = func-dev;
-@@ -313,6 +369,9 @@ static int wl1271_probe(struct sdio_func
- out_dev_put:
-   platform_device_put(glue-core);
- 
-+out_free_pdata:
-+  del_platform_data(pdev_data-pdata);
-+
- out_free_glue:
-   kfree(glue);
- 
-@@ -323,11 +382,14 @@ out:
- static void wl1271_remove(struct sdio_func *func)
- {
-   struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func);
-+  struct wlcore_platdev_data *pdev_data = glue-core-dev.platform_data;
-+  struct wl12xx_platform_data

[OpenWrt-Devel] [PATCH v2] [package] grub2: disable stack-protector

2015-06-25 Thread Dirk Neukirchen
- enabling -fstack-protector results in build errors
- Upstream explicitly tests  disables it

v2:
- use override

reference: upstream commit baa2a121e004a95a12e2bb7f2419de6625a30c2d

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/boot/grub2/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/boot/grub2/Makefile b/package/boot/grub2/Makefile
index 203e426..3601dd8 100644
--- a/package/boot/grub2/Makefile
+++ b/package/boot/grub2/Makefile
@@ -22,6 +22,8 @@ PKG_MD5SUM:=be62932eade308a364ea4bbc91295930
 HOST_BUILD_PARALLEL:=1
 PKG_BUILD_DEPENDS:=grub2/host
 
+PKG_SSP:=0
+
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 
-- 
2.4.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] OpenWrt Specific Linux Test Project Required

2015-06-11 Thread Dirk Neukirchen
On 11.06.2015 14:16, Anindya Sundar Gayen wrote:
 Linux Test Project

I never heard of that before. Can you clarify ?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: add Realtek USB to Ethernet modules

2015-06-09 Thread Dirk Neukirchen
https://forum.openwrt.org/viewtopic.php?pid=279394

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/linux/modules/usb.mk | 30 ++
 1 file changed, 30 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index 68f22cc..dcc6287 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1259,6 +1259,36 @@ endef
 $(eval $(call KernelPackage,usb-net-qmi-wwan))
 
 
+define KernelPackage/usb-net-rtl8150
+  TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
+  KCONFIG:=CONFIG_USB_RTL8150
+  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko
+  AUTOLOAD:=$(call AutoProbe,rtl8150)
+  $(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-net-rtl8150/description
+ Kernel module for USB-to-Ethernet Realtek 8150 convertors
+endef
+
+$(eval $(call KernelPackage,usb-net-rtl8150))
+
+
+define KernelPackage/usb-net-rtl8152
+  TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
+  KCONFIG:=CONFIG_USB_RTL8152
+  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
+  AUTOLOAD:=$(call AutoProbe,r8152)
+  $(call AddDepends/usb-net)
+endef
+
+define KernelPackage/usb-net-rtl8152/description
+ Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors
+endef
+
+$(eval $(call KernelPackage,usb-net-rtl8152))
+
+
 define KernelPackage/usb-net-rndis
   TITLE:=Support for RNDIS connections
   KCONFIG:=CONFIG_USB_NET_RNDIS_HOST
-- 
2.4.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] samba36: remove host build paths

2015-06-09 Thread Dirk Neukirchen
- fix iconv detection because it adds host paths
- disable python detection (host python-config is found)

iconv issue is reported by buildbot config.log + replicated locally
see config.log in logs.tar.gz
python issue observed locally on Arch Linux

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/network/services/samba36/Makefile | 9 ++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/package/network/services/samba36/Makefile 
b/package/network/services/samba36/Makefile
index b39f484..d8b930c 100644
--- a/package/network/services/samba36/Makefile
+++ b/package/network/services/samba36/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=samba
 PKG_VERSION:=3.6.25
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
http://ftp.samba.org/pub/samba/stable
@@ -35,7 +35,7 @@ define Package/samba36-server
   CATEGORY:=Network
   TITLE:=Samba 3.6 SMB/CIFS server
   URL:=http://www.samba.org/
-  DEPENDS:=+USE_GLIBC:librt
+  DEPENDS:=+USE_GLIBC:librt $(ICONV_DEPENDS)
 endef
 
 define Package/samba36-client
@@ -83,7 +83,9 @@ CONFIGURE_VARS += \
samba_cv_have_setreuid=yes \
samba_cv_have_setresuid=yes \
ac_cv_header_zlib_h=no \
-   samba_cv_zlib_1_2_3=no
+   samba_cv_zlib_1_2_3=no \
+   ac_cv_path_PYTHON= \
+   ac_cv_path_PYTHON_CONFIG=
 
 CONFIGURE_ARGS += \
--exec-prefix=/usr \
@@ -95,6 +97,7 @@ CONFIGURE_ARGS += \
--disable-static \
--disable-swat \
--disable-shared-libs \
+   --with-libiconv=$(ICONV_PREFIX) \
--with-codepagedir=/etc/samba \
--with-configdir=/etc/samba \
--with-included-iniparser \
-- 
2.4.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-06 Thread Dirk Neukirchen
On 05.06.2015 16:00, Baptiste Clenet wrote:
 Hi OpenWRT developers,
 
 Is there any plan to port OPENWRT on Linux 4.x? (Or is it already done?)
 
 

There is a patch available for Kernel 4.1-rc1 [1]
it does not apply cleanly anymore, have a look at my refreshed version [2]
There might be some compile issues depending your target, see the other folders 
at [2]

4.x commits are a little bit on hold since CC which has 3.18 
is not branched yet and probably needs some more testing

Some testing results for 4.0/4.1:
- afaik omap was running but produces an oops in bootup
(afair Arch Linux produced an oops too during bootup)

- ar71xx: ar8216/ar8316/ar8xxx driver is broken
on 8337N and some unknown router (reported yesterday on IRC)
look at [3] if anybody is interested


References:
[1]: http://patchwork.ozlabs.org/patch/465774/
[2]: https://github.com/plntyk/openwrt-patches/tree/master/kernel_4_1
[3]: ar71xx with 4.1-rc1 switch driver error: paste.debian.net/205511

 
 Wpan-tools works mainly on bluetooth-next kernel which is base on
 Linux 4.x so it doesn't currently work with OpenWRT.
 
 Cheers,
 
 Baptiste
 ___
 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] [PATCH] ncurses: Fix building with gcc 5.1

2015-05-25 Thread Dirk Neukirchen
On 24.05.2015 18:32, Martin Blumenstingl wrote:
 This patch is taken from the gentoo guys who extracted this from a large
 upstream commit (with many unrelated changes).
 

What about switching to the invisible islands version ?

- It is directly used by Fedora, Debian (Jessie) [1],[2]
- changelog (leaks,bugs or behaviour fixes + ABI changes) with terminal 
variants:
see announces at [3] (example seem to be C++ bindings fixes not in original 5.9)
- last release 2011, next official 5.x/6.x seems unclear [4]
- collecting patches from various sources places more burden on OpenWrt project
(Example: that rxvt-unicode patch is outdated in OpenWrt and Fedora)


References:
[1] http://pkgs.fedoraproject.org/cgit/ncurses.git
[2] http://anonscm.debian.org/cgit/collab-maint/ncurses.git/
[3] http://lists.gnu.org/archive/html/bug-ncurses
[4] http://lists.gnu.org/archive/html/bug-ncurses/2015-04/msg00035.html
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] x86: add missing symbol

2015-05-24 Thread Dirk Neukirchen

X86_DECODER_SELFTEST is missing when KPROBES is enabled

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/x86/config-3.18 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/x86/config-3.18 b/target/linux/x86/config-3.18
index d7a2d61..82a8211 100644
--- a/target/linux/x86/config-3.18
+++ b/target/linux/x86/config-3.18
@@ -384,6 +384,7 @@ CONFIG_X86_ALIGNMENT_16=y
 # CONFIG_X86_CHECK_BIOS_CORRUPTION is not set
 # CONFIG_X86_CPUFREQ_NFORCE2 is not set
 # CONFIG_X86_CPUID is not set
+# CONFIG_X86_DECODER_SELFTEST is not set
 # CONFIG_X86_EXTENDED_PLATFORM is not set
 CONFIG_X86_F00F_BUG=y
 CONFIG_X86_FEATURE_NAMES=y
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: remove and unify symbols

2015-05-24 Thread Dirk Neukirchen

CONFIG_NET_NS is enabled by default in config/Config-kernel.in
and only some arch are setting/disabling it for
unknown reasons

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/malta/config-3.18 | 1 -
 target/linux/sunxi/config-3.18 | 1 -
 target/linux/uml/config/i386   | 1 -
 target/linux/uml/config/x86_64 | 1 -
 target/linux/x86/config-3.18   | 1 -
 5 files changed, 5 deletions(-)

diff --git a/target/linux/malta/config-3.18 b/target/linux/malta/config-3.18
index d9757de..4e6357d 100644
--- a/target/linux/malta/config-3.18
+++ b/target/linux/malta/config-3.18
@@ -169,7 +169,6 @@ CONFIG_MUTEX_SPIN_ON_OWNER=y
 CONFIG_NAMESPACES=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NET_FLOW_LIMIT=y
-# CONFIG_NET_NS is not set
 CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
 CONFIG_NO_HZ=y
 CONFIG_NO_HZ_COMMON=y
diff --git a/target/linux/sunxi/config-3.18 b/target/linux/sunxi/config-3.18
index 5e191cf..a5e3533 100644
--- a/target/linux/sunxi/config-3.18
+++ b/target/linux/sunxi/config-3.18
@@ -302,7 +302,6 @@ CONFIG_NEED_DMA_MAP_STATE=y
 # CONFIG_NEON is not set
 # CONFIG_NET_CLS_CGROUP is not set
 CONFIG_NET_FLOW_LIMIT=y
-CONFIG_NET_NS=y
 CONFIG_NET_PTP_CLASSIFY=y
 CONFIG_NET_VENDOR_ALLWINNER=y
 CONFIG_NLS=y
diff --git a/target/linux/uml/config/i386 b/target/linux/uml/config/i386
index 67081a5..611c7ae 100644
--- a/target/linux/uml/config/i386
+++ b/target/linux/uml/config/i386
@@ -89,7 +89,6 @@ CONFIG_MPENTIUMII=y
 # CONFIG_MWINCHIPC6 is not set
 CONFIG_NAMESPACES=y
 CONFIG_NEED_PER_CPU_KM=y
-# CONFIG_NET_NS is not set
 CONFIG_NLS=y
 # CONFIG_NOCONFIG_CHAN is not set
 CONFIG_NO_DMA=y
diff --git a/target/linux/uml/config/x86_64 b/target/linux/uml/config/x86_64
index d23612e..e9d9c5e 100644
--- a/target/linux/uml/config/x86_64
+++ b/target/linux/uml/config/x86_64
@@ -77,7 +77,6 @@ CONFIG_MODULES_USE_ELF_RELA=y
 # CONFIG_MPSC is not set
 CONFIG_NAMESPACES=y
 CONFIG_NEED_PER_CPU_KM=y
-# CONFIG_NET_NS is not set
 CONFIG_NLS=y
 # CONFIG_NOCONFIG_CHAN is not set
 CONFIG_NO_DMA=y
diff --git a/target/linux/x86/config-3.18 b/target/linux/x86/config-3.18
index 82a8211..8420ff9 100644
--- a/target/linux/x86/config-3.18
+++ b/target/linux/x86/config-3.18
@@ -280,7 +280,6 @@ CONFIG_NEED_PER_CPU_KM=y
 CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
 CONFIG_NEED_SG_DMA_LENGTH=y
 # CONFIG_NET5501 is not set
-# CONFIG_NET_NS is not set
 CONFIG_NOHIGHMEM=y
 CONFIG_NO_BOOTMEM=y
 CONFIG_NR_CPUS=1
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] sunxi: remove kernel symbol

2015-05-24 Thread Dirk Neukirchen

unify config across platforms
CPUSETS is deactive on all platforms
according to description enabling does not make sense on embedded targets

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/sunxi/config-3.18 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/sunxi/config-3.18 b/target/linux/sunxi/config-3.18
index fde6a78..2112816 100644
--- a/target/linux/sunxi/config-3.18
+++ b/target/linux/sunxi/config-3.18
@@ -92,7 +92,6 @@ CONFIG_CONNECTOR=y
 CONFIG_CONSOLE_TRANSLATIONS=y
 CONFIG_COREDUMP=y
 CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
-CONFIG_CPUSETS=y
 CONFIG_CPU_32v6K=y
 CONFIG_CPU_32v7=y
 CONFIG_CPU_ABRT_EV7=y
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] sunxi: remove kernel symbol

2015-05-24 Thread Dirk Neukirchen

unify config across platforms
RESOURCE_COUNTERS is deactive on all platforms

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/sunxi/config-3.18 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/sunxi/config-3.18 b/target/linux/sunxi/config-3.18
index ddc3f7a..fde6a78 100644
--- a/target/linux/sunxi/config-3.18
+++ b/target/linux/sunxi/config-3.18
@@ -386,7 +386,6 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
 # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
 CONFIG_RELAY=y
 CONFIG_RESET_CONTROLLER=y
-CONFIG_RESOURCE_COUNTERS=y
 # CONFIG_RFKILL_REGULATOR is not set
 CONFIG_RFS_ACCEL=y
 CONFIG_RPS=y
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211: remove wlcore patch

2015-05-24 Thread Dirk Neukirchen

- does not compile (omap target)
- 4.1 suppose to carry changes according to:
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/333547.html

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 ...0-wlcore-Add-support-for-DT-platform-data.patch | 139 -
 1 file changed, 139 deletions(-)
 delete mode 100644 
package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch

diff --git 
a/package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch
 
b/package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch
deleted file mode 100644
index 856dea8..000
--- 
a/package/kernel/mac80211/patches/900-wlcore-Add-support-for-DT-platform-data.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-When running with DT, we no longer have a board file that can set up the
-platform data for wlcore. Allow this data to be passed from DT.
-
-Since some platforms use a gpio-irq, add support for passing either the
-irq number or the gpio number. For the latter case, the driver will
-request the gpio and convert it to the irq number. If an irq is
-specified, it'll be used as is.
-
-[Arik - the pdev_data pointer does not belong to us and is freed when
-the device is released. Dereference to our private data first.]
-
-Signed-off-by: Ido Yariv i...@wizery.com
-Signed-off-by: Arik Nemtsov a...@wizery.com

- drivers/net/wireless/ti/wlcore/sdio.c | 71 ---
- include/linux/wl12xx.h|  3 +-
- 2 files changed, 67 insertions(+), 7 deletions(-)
-
 a/drivers/net/wireless/ti/wlcore/sdio.c
-+++ b/drivers/net/wireless/ti/wlcore/sdio.c
-@@ -34,6 +34,7 @@
- #include linux/wl12xx.h
- #include linux/pm_runtime.h
- #include linux/printk.h
-+#include linux/of.h
- 
- #include wlcore.h
- #include wl12xx_80211.h
-@@ -214,6 +215,61 @@ static struct wl1271_if_operations sdio_
-   .set_block_size = wl1271_sdio_set_block_size,
- };
- 
-+static const struct of_device_id wlcore_of_match[] = {
-+  {
-+  .compatible = wlcore,
-+  },
-+  {}
-+};
-+MODULE_DEVICE_TABLE(of, wlcore_of_match);
-+
-+static struct wl12xx_platform_data *get_platform_data(struct device *dev)
-+{
-+  struct wl12xx_platform_data *pdata;
-+  struct device_node *np;
-+  u32 gpio;
-+
-+  pdata = wl12xx_get_platform_data();
-+  if (!IS_ERR(pdata))
-+  return kmemdup(pdata, sizeof(*pdata), GFP_KERNEL);
-+
-+  np = of_find_matching_node(NULL, wlcore_of_match);
-+  if (!np) {
-+  dev_err(dev, No platform data set\n);
-+  return NULL;
-+  }
-+
-+  pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
-+  if (!pdata) {
-+  dev_err(dev, Can't allocate platform data\n);
-+  return NULL;
-+  }
-+
-+  if (of_property_read_u32(np, irq, pdata-irq)) {
-+  if (!of_property_read_u32(np, gpio, gpio) 
-+  !gpio_request_one(gpio, GPIOF_IN, wlcore_irq)) {
-+  pdata-gpio = gpio;
-+  pdata-irq = gpio_to_irq(gpio);
-+  }
-+  }
-+
-+  /* Optional fields */
-+  pdata-use_eeprom = of_property_read_bool(np, use-eeprom);
-+  of_property_read_u32(np, board-ref-clock, pdata-board_ref_clock);
-+  of_property_read_u32(np, board-tcxo-clock, pdata-board_tcxo_clock);
-+  of_property_read_u32(np, platform-quirks, pdata-platform_quirks);
-+
-+  return pdata;
-+}
-+
-+static void del_platform_data(struct wl12xx_platform_data *pdata)
-+{
-+  if (pdata-gpio)
-+  gpio_free(pdata-gpio);
-+
-+  kfree(pdata);
-+}
-+
- static int wl1271_probe(struct sdio_func *func,
- const struct sdio_device_id *id)
- {
-@@ -245,10 +301,10 @@ static int wl1271_probe(struct sdio_func
-   /* Use block mode for transferring over one block size of data */
-   func-card-quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE;
- 
--  pdev_data.pdata = wl12xx_get_platform_data();
--  if (IS_ERR(pdev_data.pdata)) {
--  ret = PTR_ERR(pdev_data.pdata);
--  dev_err(glue-dev, missing wlan platform data: %d\n, ret);
-+  pdev_data.pdata = get_platform_data(func-dev);
-+  if (!pdev_data.pdata) {
-+  ret = -EINVAL;
-+  dev_err(glue-dev, missing wlan platform data\n);
-   goto out_free_glue;
-   }
- 
-@@ -279,7 +335,7 @@ static int wl1271_probe(struct sdio_func
-   if (!glue-core) {
-   dev_err(glue-dev, can't allocate platform_device);
-   ret = -ENOMEM;
--  goto out_free_glue;
-+  goto out_free_pdata;
-   }
- 
-   glue-core-dev.parent = func-dev;
-@@ -313,6 +369,9 @@ static int wl1271_probe(struct sdio_func
- out_dev_put:
-   platform_device_put(glue-core);
- 
-+out_free_pdata:
-+  del_platform_data(pdev_data-pdata);
-+
- out_free_glue:
-   kfree(glue);
- 
-@@ -323,11 +382,14 @@ out:
- static void

[OpenWrt-Devel] [PATCH] kernel: arm64: psci: move psci firmware calls out of line

2015-05-24 Thread Dirk Neukirchen

- fixes build error on arm64 with FTRACE enabled
- upstream ticket says gcc5 but both linaro gcc variants
OpenWrt is using seem to be affected

backport upstream change f5e0a12ca2d939e47995f73428d9bf1ad372b289
for Kernel 3.18

only compile tested

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 ...psci_move_psci_firmware_calls_out_of_line.patch | 124 +
 1 file changed, 124 insertions(+)
 create mode 100644 
target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch

diff --git 
a/target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch
 
b/target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch
new file mode 100644
index 000..1db9d5f
--- /dev/null
+++ 
b/target/linux/generic/patches-3.18/090-from_4.0_arm64_psci_move_psci_firmware_calls_out_of_line.patch
@@ -0,0 +1,124 @@
+From f5e0a12ca2d939e47995f73428d9bf1ad372b289 Mon Sep 17 00:00:00 2001
+From: Will Deacon will.dea...@arm.com
+Date: Wed, 25 Feb 2015 12:10:35 +
+Subject: arm64: psci: move psci firmware calls out of line
+
+An arm64 allmodconfig fails to build with GCC 5 due to __asmeq
+assertions in the PSCI firmware calling code firing due to mcount
+preambles breaking our assumptions about register allocation of function
+arguments:
+
+  /tmp/ccDqJsJ6.s: Assembler messages:
+  /tmp/ccDqJsJ6.s:60: Error: .err encountered
+  /tmp/ccDqJsJ6.s:61: Error: .err encountered
+  /tmp/ccDqJsJ6.s:62: Error: .err encountered
+  /tmp/ccDqJsJ6.s:99: Error: .err encountered
+  /tmp/ccDqJsJ6.s:100: Error: .err encountered
+  /tmp/ccDqJsJ6.s:101: Error: .err encountered
+
+This patch fixes the issue by moving the PSCI calls out-of-line into
+their own assembly files, which are safe from the compiler's meddling
+fingers.
+
+Reported-by: Andy Whitcroft a...@canonical.com
+Signed-off-by: Will Deacon will.dea...@arm.com
+Signed-off-by: Catalin Marinas catalin.mari...@arm.com
+
+--- /dev/null
 b/arch/arm64/kernel/psci-call.S
+@@ -0,0 +1,28 @@
++/*
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * Copyright (C) 2015 ARM Limited
++ *
++ * Author: Will Deacon will.dea...@arm.com
++ */
++
++#include linux/linkage.h
++
++/* int __invoke_psci_fn_hvc(u64 function_id, u64 arg0, u64 arg1, u64 arg2) */
++ENTRY(__invoke_psci_fn_hvc)
++  hvc #0
++  ret
++ENDPROC(__invoke_psci_fn_hvc)
++
++/* int __invoke_psci_fn_smc(u64 function_id, u64 arg0, u64 arg1, u64 arg2) */
++ENTRY(__invoke_psci_fn_smc)
++  smc #0
++  ret
++ENDPROC(__invoke_psci_fn_smc)
+--- a/arch/arm64/kernel/psci.c
 b/arch/arm64/kernel/psci.c
+@@ -57,6 +57,9 @@ static struct psci_operations psci_ops;
+ static int (*invoke_psci_fn)(u64, u64, u64, u64);
+ typedef int (*psci_initcall_t)(const struct device_node *);
+ 
++asmlinkage int __invoke_psci_fn_hvc(u64, u64, u64, u64);
++asmlinkage int __invoke_psci_fn_smc(u64, u64, u64, u64);
++
+ enum psci_function {
+   PSCI_FN_CPU_SUSPEND,
+   PSCI_FN_CPU_ON,
+@@ -109,40 +112,6 @@ static void psci_power_state_unpack(u32
+   PSCI_0_2_POWER_STATE_AFFL_SHIFT;
+ }
+ 
+-/*
+- * The following two functions are invoked via the invoke_psci_fn pointer
+- * and will not be inlined, allowing us to piggyback on the AAPCS.
+- */
+-static noinline int __invoke_psci_fn_hvc(u64 function_id, u64 arg0, u64 arg1,
+-   u64 arg2)
+-{
+-  asm volatile(
+-  __asmeq(%0, x0)
+-  __asmeq(%1, x1)
+-  __asmeq(%2, x2)
+-  __asmeq(%3, x3)
+-  hvc#0\n
+-  : +r (function_id)
+-  : r (arg0), r (arg1), r (arg2));
+-
+-  return function_id;
+-}
+-
+-static noinline int __invoke_psci_fn_smc(u64 function_id, u64 arg0, u64 arg1,
+-   u64 arg2)
+-{
+-  asm volatile(
+-  __asmeq(%0, x0)
+-  __asmeq(%1, x1)
+-  __asmeq(%2, x2)
+-  __asmeq(%3, x3)
+-  smc#0\n
+-  : +r (function_id)
+-  : r (arg0), r (arg1), r (arg2));
+-
+-  return function_id;
+-}
+-
+ static int psci_get_version(void)
+ {
+   int err;
+--- a/arch/arm64/kernel/Makefile
 b/arch/arm64/kernel/Makefile
+@@ -14,8 +14,9 @@ CFLAGS_REMOVE_return_address.o = -pg
+ arm64-obj-y   := cputable.o debug-monitors.o entry.o irq.o fpsimd.o   
\
+  entry-fpsimd.o

[OpenWrt-Devel] [PATCH] sunxi: enable CONFIG_EXPERT

2015-05-24 Thread Dirk Neukirchen

- only sunxi has this disabled
- unify kernel configuration across platforms

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/sunxi/config-3.18 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/sunxi/config-3.18 b/target/linux/sunxi/config-3.18
index 2112816..5e191cf 100644
--- a/target/linux/sunxi/config-3.18
+++ b/target/linux/sunxi/config-3.18
@@ -153,7 +153,6 @@ CONFIG_ELF_CORE=y
 # CONFIG_EMBEDDED is not set
 CONFIG_ENABLE_MUST_CHECK=y
 # CONFIG_ENABLE_WARN_DEPRECATED is not set
-# CONFIG_EXPERT is not set
 CONFIG_EXT4_FS=y
 CONFIG_FRAME_POINTER=y
 CONFIG_FRAME_WARN=2048
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: add missing symbol

2015-05-24 Thread Dirk Neukirchen
NET_SCTPPROBE is missing when enabling KPROBES

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/generic/config-3.18 | 1 +
 target/linux/generic/config-4.0  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/target/linux/generic/config-3.18 b/target/linux/generic/config-3.18
index 7a38dee..17a6303 100644
--- a/target/linux/generic/config-3.18
+++ b/target/linux/generic/config-3.18
@@ -2483,6 +2483,7 @@ CONFIG_NET_SCH_FQ_CODEL=y
 # CONFIG_NET_SCH_SFQ is not set
 # CONFIG_NET_SCH_TBF is not set
 # CONFIG_NET_SCH_TEQL is not set
+# CONFIG_NET_SCTPPROBE is not set
 # CONFIG_NET_TCPPROBE is not set
 # CONFIG_NET_TEAM is not set
 # CONFIG_NET_TULIP is not set
diff --git a/target/linux/generic/config-4.0 b/target/linux/generic/config-4.0
index c3bb7fc..48f0281 100644
--- a/target/linux/generic/config-4.0
+++ b/target/linux/generic/config-4.0
@@ -2523,6 +2523,7 @@ CONFIG_NET_SCH_FQ_CODEL=y
 # CONFIG_NET_SCH_SFQ is not set
 # CONFIG_NET_SCH_TBF is not set
 # CONFIG_NET_SCH_TEQL is not set
+# CONFIG_NET_SCTPPROBE is not set
 # CONFIG_NET_SWITCHDEV is not set
 # CONFIG_NET_TCPPROBE is not set
 # CONFIG_NET_TEAM is not set
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: remove duplicate symbols

2015-05-24 Thread Dirk Neukirchen

are already included in general kernel config

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 target/linux/imx6/config-3.18  | 2 --
 target/linux/omap/config-3.18  | 2 --
 target/linux/oxnas/config-3.18 | 2 --
 target/linux/oxnas/config-4.0  | 2 --
 4 files changed, 8 deletions(-)

diff --git a/target/linux/imx6/config-3.18 b/target/linux/imx6/config-3.18
index 83bfd0d..8c5b5c0 100644
--- a/target/linux/imx6/config-3.18
+++ b/target/linux/imx6/config-3.18
@@ -142,7 +142,6 @@ CONFIG_GPIOLIB=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_GENERIC=y
 CONFIG_GPIO_MXC=y
-# CONFIG_GPIO_SYSCON is not set
 CONFIG_GPIO_SYSFS=y
 CONFIG_HANDLE_DOMAIN_IRQ=y
 CONFIG_HARDIRQS_SW_RESEND=y
@@ -217,7 +216,6 @@ CONFIG_IRQ_WORK=y
 CONFIG_JBD=y
 CONFIG_JBD2=y
 # CONFIG_LEDS_REGULATOR is not set
-# CONFIG_LEDS_SYSCON is not set
 CONFIG_LIBFDT=y
 CONFIG_LZO_COMPRESS=y
 CONFIG_LZO_DECOMPRESS=y
diff --git a/target/linux/omap/config-3.18 b/target/linux/omap/config-3.18
index a06a350..7a96057 100644
--- a/target/linux/omap/config-3.18
+++ b/target/linux/omap/config-3.18
@@ -196,7 +196,6 @@ CONFIG_GPIOLIB=y
 CONFIG_GPIOLIB_IRQCHIP=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_OMAP=y
-# CONFIG_GPIO_SYSCON is not set
 CONFIG_GPIO_TPS65910=y
 CONFIG_GPIO_TWL4030=y
 # CONFIG_GPIO_TWL6040 is not set
@@ -291,7 +290,6 @@ CONFIG_LCD_CLASS_DEVICE=y
 # CONFIG_LCD_VGG2432A4 is not set
 CONFIG_LEDS_GPIO=y
 # CONFIG_LEDS_REGULATOR is not set
-# CONFIG_LEDS_SYSCON is not set
 CONFIG_LIBFDT=y
 CONFIG_LOGO=y
 CONFIG_LOGO_LINUX_CLUT224=y
diff --git a/target/linux/oxnas/config-3.18 b/target/linux/oxnas/config-3.18
index 379b2b0..7486503 100644
--- a/target/linux/oxnas/config-3.18
+++ b/target/linux/oxnas/config-3.18
@@ -111,7 +111,6 @@ CONFIG_GPIOLIB=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_GENERIC=y
 CONFIG_GPIO_GENERIC_PLATFORM=y
-# CONFIG_GPIO_SYSCON is not set
 CONFIG_GPIO_SYSFS=y
 CONFIG_HANDLE_DOMAIN_IRQ=y
 CONFIG_HARDIRQS_SW_RESEND=y
@@ -200,7 +199,6 @@ CONFIG_KGDB_SERIAL_CONSOLE=y
 # CONFIG_KGDB_TESTS is not set
 # CONFIG_LDM_DEBUG is not set
 CONFIG_LDM_PARTITION=y
-# CONFIG_LEDS_SYSCON is not set
 # CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
 # CONFIG_LEDS_TRIGGER_NETDEV is not set
 # CONFIG_LEDS_TRIGGER_TIMER is not set
diff --git a/target/linux/oxnas/config-4.0 b/target/linux/oxnas/config-4.0
index b0bb7ea..50e7664 100644
--- a/target/linux/oxnas/config-4.0
+++ b/target/linux/oxnas/config-4.0
@@ -117,7 +117,6 @@ CONFIG_GPIOLIB=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_GENERIC=y
 CONFIG_GPIO_GENERIC_PLATFORM=y
-# CONFIG_GPIO_SYSCON is not set
 CONFIG_GPIO_SYSFS=y
 CONFIG_HANDLE_DOMAIN_IRQ=y
 CONFIG_HARDIRQS_SW_RESEND=y
@@ -212,7 +211,6 @@ CONFIG_KGDB_SERIAL_CONSOLE=y
 # CONFIG_KGDB_TESTS is not set
 # CONFIG_LDM_DEBUG is not set
 CONFIG_LDM_PARTITION=y
-# CONFIG_LEDS_SYSCON is not set
 # CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
 # CONFIG_LEDS_TRIGGER_NETDEV is not set
 # CONFIG_LEDS_TRIGGER_TIMER is not set
-- 
2.4.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] DVB tuners

2015-05-14 Thread Dirk Neukirchen
On 14.05.2015 16:22, Charlie Smurthwaite wrote:
 Hi,
 
 I am looking into set-top-box applications and wondered if you guys were 
 aware of any devices with DVB functionality. I'm particularly interested in 
 whether there are any Linux SoC devices with interfaces capable of handling 
 multiple DVB tuners.
 
 I would guess this could be handles using USB interfaces, but hoped there 
 might be exampled of better ways to achieve it.
 
 Thanks in advance,
 
 Charlie
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 

There are a ton of DVB capable SoC devices - ARM, MIPS or x86 that could 
potentially run OpenWrt or that
might be capable of running vanilla/upstream Kernel so porting to *almost* 
upstream OpenWrt is less painful.
(if you want tu run OpenWrt - you might run normal Linux or you have to stick 
with ancient vendor Linux)

Afaik black box DVB-IPTV boxes are also available targetting private (Inverto 
SatIP LNB, Cable IP from AVM)
users (up to normal broadcast use-case/multi-residential use-case). just to 
keep in mind as alternative

However dealing or developing in that area can get really painful because many 
hardware vendors willingly break their products to disable normal consumer 
features.
(Hollywood Studio guidelines or consumer features)

This is from some research + experiments running Linux DVB receivers.

classic Linux DVB SoC solutions from
- MIPS platform: VU+ (VU Plus), Dreambox Hardware having up to 4x integrated 
tuners
- ARM platform: Coolstream  up to 4 integrated tuners
- SH4 platform  (dont know)
have at least some Open Source projects  developers attached (Neutrino, 
Enigma, tuxbox projects)
but sometimes horribly old vendor Kernels.

DVB Set-Top boxes became outdated for some ppl in place of integrated TV 
(silently removing features due to DRM) OR new
streaming / Set-Top Box + USB solutions like:

- (SigmaDesign) Popcornhour boxes (some SDK were available
because there were some community packages but I remember this as very closed
from vendor barely providing any useful info on public sites)
Maker hardware like:
- (broadcom) Raspberry PI with kodi,OpenElec or OpenEmbedded/Yocto
- (Amlogic) S805 (Odroid-C1) S812 (several chinese vendors) (4x USB 2.0)
Experimenting/Flashing might be easier and faster because SD-Card boots.
Some modern distros like Archlinux for aarch64 can run on these too.

Main potential problems are:
- poor Network/IO performance (USB attached Ethernet, 10/100Mbit only) of 
classic DVB SoC
- reason for poor IO is hardware acceleration  default bit rate limits 
(CDROM,DVD speed, BluRay bitrate) 
or common broadcast practise (3Mbit/s SD, 10Mbit/s HD for example)

- slow general purpose CPU (Hardware codecs on most devices) (classic DVB)
- USB attached tuners have issues like potential dropouts and electrical bus / 
ESD problems
- design compromise: RF frequency chip design affects sound I/O (different but 
similar problem
is the 2.4GHz and USB3 interference)

Notice that DigitialDevices offers miniPCIe DVB with multiple tuners
and there were IEEE1394 DVB tuners (FireDTV) that were chainable on market.
APU 1D4 or next gen Soekris 68xx Atom SoC might be interesting.


PS: Most facts are from public info / reviews / Prosumer perspective only 
Since testing gets really expensive when looking at multi tuner/DVB solutions 
or embedded boards that might be capable or good solutions for embedded / 
small HTPC.
http://www.cnx-software.com/ seems to list/post about every obscure embedded 
china hardware
and often does multimedia hardware too.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] usb: cleanup remove old module names

2015-05-12 Thread Dirk Neukirchen

.ko for symbol CONFIG_NOP_USB_XCEIV:
delete cases for Kernel 3.10 (nop-usb-xceiv), 3.12 (phy-nop)

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/linux/modules/usb.mk | 10 --
 1 file changed, 10 deletions(-)

diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index 589894b..f3c84e6 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -103,18 +103,8 @@ define KernelPackage/usb-phy-nop
   TITLE:=Support for USB NOP transceiver
   KCONFIG:=CONFIG_NOP_USB_XCEIV
   HIDDEN:=1
-ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-generic.ko),)
   FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko
   AUTOLOAD:=$(call AutoLoad,43,phy-generic)
-else
-ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-nop.ko),)
-  FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-nop.ko
-  AUTOLOAD:=$(call AutoLoad,43,phy-nop)
-else
-  FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko
-  AUTOLOAD:=$(call AutoLoad,43,nop-usb-xceiv)
-endif
-endif
   $(call AddDepends/usb)
 endef
 
-- 
2.4.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] usb: another cleanup: remove ancient module names

2015-05-12 Thread Dirk Neukirchen

modules relating to CONFIG_USB_AUDIO
Kernel 2.6.35 is not supported in trunk

Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de
---
 package/kernel/linux/modules/usb.mk | 8 
 1 file changed, 8 deletions(-)

diff --git a/package/kernel/linux/modules/usb.mk 
b/package/kernel/linux/modules/usb.mk
index f3c84e6..5219da9 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -551,18 +551,10 @@ define KernelPackage/usb-audio
CONFIG_SND_USB_AUDIO
   $(call AddDepends/usb)
   $(call AddDepends/sound)
-# For Linux 2.6.35+
-ifneq ($(wildcard $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko),)
   FILES:= \
$(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
$(LINUX_DIR)/sound/usb/snd-usb-audio.ko
   AUTOLOAD:=$(call AutoProbe,snd-usbmidi-lib snd-usb-audio)
-else
-  FILES:= \
-   $(LINUX_DIR)/sound/usb/snd-usb-lib.ko \
-   $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
-  AUTOLOAD:=$(call AutoProbe,snd-usb-lib snd-usb-audio)
-endif
 endef
 
 define KernelPackage/usb-audio/description
-- 
2.4.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


  1   2   3   >