Re: [OpenWrt-Devel] [PATCH] generic: add linux 4.1-rc1 support
On 05/02/2015 10:49 AM, Dirk Neukirchen wrote: On 01.05.2015 11:21, Hauke Mehrtens wrote: On 05/01/2015 10:59 AM, Dirk Neukirchen wrote: On 28.04.2015 23:08, Álvaro Fernández Rojas wrote: Boot tested: http://pastebin.com/L6aAb9xj Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com Great work ! 2. any(?) mac80211 does not built Error: include/net/cfg80211.h:3249:25: error: 'struct wiphy' has no member named '_net' return read_pnet(wiphy-_net); I did try to use the v4.1-rc1 Backports package as drop-in (only some OpenWrt specific driver series patches were not applied) since it should deal with that error, ( but I get compile errors with that too: include/net/cfg80211.h:3253:2: error: implicit declaration of function 'possible_write_pnet' include/net/cfg80211.h:3248:2: error: implicit declaration of function 'possible_read_pnet' (introduced by https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/patches/collateral-evolutions/network/0053-possible_net_t.patch ) Hi, This looks like a bug in backports, I haven't tested this image against kernel 4.1. Please try the attached patch. Hauke Still errors :/ steps to replicate: - Kernel 4.1 patch - symbol fixup and mac80211 change to use backports package that is 4.1-rc1 versioned (so Kernel 4.1 with backports 4.1-rc1) - backports: remove non applying patches - your patch a patch series that contains all the changes/steps can be found at: https://github.com/plntyk/openwrt-patches/tree/master/kernel_4_1_backports results in compile error: linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/main.c In file included from ./linux-x86_64/backports-4.1-rc1-1/include/net/mac80211.h:22:0, from ./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/ath.h:24, from ./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/main.c:22: ./linux-x86_64/backports-4.1-rc1-1/include/net/cfg80211.h: In function 'wiphy_net': ./linux-x86_64/backports-4.1-rc1-1/include/net/cfg80211.h:3248:2: error: too few arguments to function 'write_pnet' return possible_read_pnet(wiphy-_net); ^ In file included from ./linux-x86_64/backports-4.1-rc1-1/backport-include/net/net_namespace.h:4:0, from include/linux/netdevice.h:44, from ./linux-x86_64/backports-4.1-rc1-1/backport-include/linux/netdevice.h:3, from include/linux/etherdevice.h:26, from ./linux-x86_64/backports-4.1-rc1-1/backport-include/linux/etherdevice.h:3, from ./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/ath.h:20, from ./linux-x86_64/backports-4.1-rc1-1/drivers/net/wireless/ath/main.c:22: include/net/net_namespace.h:240:20: note: declared here static inline void write_pnet(possible_net_t *pnet, struct net *net) I didn't compile tested the patch before, there was still an error in it, attached is a fixed version. Hauke From ac06e72e9a98177524c8708d260c4be724b0668c Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens ha...@hauke-m.de Date: Fri, 1 May 2015 11:17:24 +0200 Subject: [PATCH] header: add possible_{write,read}_pnet() on kernel = 4.1 backports only adds the possible_{write,read}_pnet() functions for kernel 4.1. This results in a compile error on kernel 4.1. This patch make it use the original functions on these kernel versions. This fixes a problem introduced in 3d418885971. Signed-off-by: Hauke Mehrtens ha...@hauke-m.de --- backport/backport-include/net/net_namespace.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backport/backport-include/net/net_namespace.h b/backport/backport-include/net/net_namespace.h index 90c044f..4d0b721 100644 --- a/backport/backport-include/net/net_namespace.h +++ b/backport/backport-include/net/net_namespace.h @@ -57,6 +57,9 @@ static inline struct net *possible_read_pnet(const possible_net_t *pnet) return init_net; #endif } +#else +#define possible_write_pnet(pnet, net) write_pnet(pnet, net) +#define possible_read_pnet(pnet) read_pnet(pnet) #endif /* LINUX_VERSION_CODE KERNEL_VERSION(4,1,0) */ #endif /* _COMPAT_NET_NET_NAMESPACE_H */ -- 2.1.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [package] trace-cmd: update to 2.4.2
fixes compile error: (observed w. target arm64, all kernel build opts enabled) error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments Signed-off-by: Dirk Neukirchen dirkneukirc...@web.de --- package/devel/trace-cmd/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/devel/trace-cmd/Makefile b/package/devel/trace-cmd/Makefile index 49b5f10..6ed6673 100644 --- a/package/devel/trace-cmd/Makefile +++ b/package/devel/trace-cmd/Makefile @@ -1,13 +1,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=trace-cmd -PKG_VERSION:=v2.4 +PKG_VERSION:=v2.4.2 PKG_RELEASE=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=0517388225e776a865fa07fa2ce105e97bd19212 +PKG_SOURCE_VERSION:=01f8e669cb035aa911f1ee0e3f94d535cbcca78f PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz # PKG_MIRROR_MD5SUM:=6a08dfa2519a969d184e7bb5bb390620 PKG_INSTALL:=1 -- 2.3.7 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Trac down
Hey, I just noticed that https://dev.openwrt.org is returning a 502 error. I don't know if the web folks know that but I just thought I'd notify people here just in case. Eric -- Eric Schultz, Community Manager, prpl Foundation http://www.prplfoundation.org eschu...@prplfoundation.org cell: 920-539-0404 skype: ericschultzwi @EricPrpl ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Device tree issues with TL-WDR4900 (mpc85xx) and kernel 4.0.1
Am 05.05.2015 um 22:17 schrieb Heiner Kallweit: Am 05.05.2015 um 08:29 schrieb Wojciech Dubowik: On 04/05/15 22:45, Heiner Kallweit wrote: I tried to make the TL-WDR4900 work under kernel 4.0. Adjusting the platform-specific patches was quickly done and the system boots. However I get the following error messages. [2.959975] /leds/system: could not get #gpio-cells for /soc@ffe0/gpio-controller@f000 [2.968276] leds-gpio: probe of leds failed with error -22 [ 34.622909] /buttons/reset: could not get #gpio-cells for /soc@ffe0/gpio-controller@f000 [ 34.631383] gpio-keys buttons: Failed to get gpio flags, error: -22 [ 34.637657] gpio-keys: probe of buttons failed with error -22 I'm not a device tree expert, what I checked so far: The gpio-related section in tl-wdr4900-v1.dts is empty gpio0: gpio-controller@f000 { }; Gpio controller is now at fc00. See latest commit for arch/powerpc/boot/dts/fsl/pq3-gpio-0.dtsi. Regards, Wojtek PS. I have been also trying 4.0 but I have ran into so many problems with gianfar that I have given it up. For now... Thanks. I face issues with the network as well and had to attach a serial console + tftpboot to make it work again. Back to 3.19.0 now .. Heiner I gave it one more try and replaced the gianfar driver from 4.0.1 with the one from 3.19.0. Results: - When rebooting first time after flashing the system (4.0.1) came up properly and was reachable via network. - After next reboot: system hangs Booting the failing system with a serial console attached shows that after procd -init- nothing happens. I can log in via serial console. ps -ef showed that /etc/rc.d/S00sysfixtime was hanging. Checking the commands in this script manually I figured out that each access to /etc/uci-default blocks the console. Seems like the first start after flashing the system does something bad with /etc/uci-defaults. Or for whatever reason something can't deal properly with the empty /etc/uci-defaults after the second boot. No clue whom to blame .. Heiner ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump
Signed-off-by: wengbj fl.serv...@t-firefly.com --- .../patches-3.18/305-mips_module_reloc.patch |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch index 41cf806..fd31f9f 100644 --- a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch +++ b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch @@ -1,6 +1,6 @@ --- a/arch/mips/Makefile +++ b/arch/mips/Makefile -@@ -90,8 +90,13 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin +@@ -90,8 +90,18 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely cflags-y += -msoft-float LDFLAGS_vmlinux += -G 0 -static -n -nostdlib --gc-sections @@ -8,9 +8,14 @@ KBUILD_AFLAGS_MODULE += -mlong-calls KBUILD_CFLAGS_MODULE += -mlong-calls +else ++ifdef CONFIG_HIGHMEM ++KBUILD_AFLAGS_MODULE += -mlong-calls ++KBUILD_CFLAGS_MODULE += -mlong-calls ++else +KBUILD_AFLAGS_MODULE += -mno-long-calls +KBUILD_CFLAGS_MODULE += -mno-long-calls +endif ++endif ifndef CONFIG_FUNCTION_TRACER KBUILD_CFLAGS_KERNEL += -ffunction-sections -fdata-sections -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 3/4] ralink: add mt7621 support automatic recognition memory size(32M-512M)
From: daixj fl.serv...@t-firefly.com Signed-off-by: daixj fl.serv...@t-firefly.com --- ...support-automatic-recognition-memory-size.patch | 50 1 file changed, 50 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch diff --git a/target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch b/target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch new file mode 100644 index 000..f3906b8 --- /dev/null +++ b/target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch @@ -0,0 +1,50 @@ +Index: linux-3.18.11/arch/mips/include/asm/mach-ralink/mt7621.h +=== +--- linux-3.18.11.orig/arch/mips/include/asm/mach-ralink/mt7621.h 2015-05-06 17:46:36.606144740 +0800 linux-3.18.11/arch/mips/include/asm/mach-ralink/mt7621.h 2015-05-06 17:50:16.362151259 +0800 +@@ -29,7 +29,7 @@ + + #define MT7621_DRAM_BASE0x0 + #define MT7621_DDR2_SIZE_MIN 32 +-#define MT7621_DDR2_SIZE_MAX 256 ++#define MT7621_DDR2_SIZE_MAX 512 + + #define MT7621_CHIP_NAME0 0x3637544D + #define MT7621_CHIP_NAME1 0x20203132 +Index: linux-3.18.11/arch/mips/kernel/setup.c +=== +--- linux-3.18.11.orig/arch/mips/kernel/setup.c2015-04-04 10:46:37.0 +0800 linux-3.18.11/arch/mips/kernel/setup.c 2015-05-07 09:30:27.138152614 +0800 +@@ -131,8 +131,12 @@ + { + void *dm = detect_magic; + phys_t size; +- +- for (size = sz_min; size sz_max; size = 1) { ++#if defined(CONFIG_SOC_MT7621) ++ phys_t low_mem_size = 0x1c00; ++ phys_t high_mem_start = 0x2000; ++ phys_t high_mem_size = 0; ++#endif ++ for (size = sz_min; size sz_max; size = 1) { + if (!memcmp(dm, dm + size, sizeof(detect_magic))) + break; + } +@@ -142,8 +146,15 @@ + (unsigned long long) start, + ((unsigned long long) sz_min) / SZ_1M, + ((unsigned long long) sz_max) / SZ_1M); +- +- add_memory_region(start, size, BOOT_MEM_RAM); ++#if defined(CONFIG_SOC_MT7621) ++ low_mem_size = (size low_mem_size)?low_mem_size:size; ++ high_mem_size = size - low_mem_size; ++ add_memory_region(start,low_mem_size, BOOT_MEM_RAM); ++ if(high_mem_size 0) ++ add_memory_region(high_mem_start,high_mem_size, BOOT_MEM_RAM); ++#else ++ add_memory_region(start, size, BOOT_MEM_RAM); ++#endif + } + + static void __init print_memory_map(void) -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ralink: add mt7621 support automatic recognition memory size(32M-512M)
Signed-off-by: wengbj fl.serv...@t-firefly.com --- ...support-automatic-recognition-memory-size.patch | 50 1 file changed, 50 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch diff --git a/target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch b/target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch new file mode 100644 index 000..802d682 --- /dev/null +++ b/target/linux/ramips/patches-3.18/0113-add-mt7621-support-automatic-recognition-memory-size.patch @@ -0,0 +1,50 @@ +Index: linux-3.18.11/arch/mips/include/asm/mach-ralink/mt7621.h +=== +--- linux-3.18.11.orig/arch/mips/include/asm/mach-ralink/mt7621.h 2015-05-06 17:46:36.606144740 +0800 linux-3.18.11/arch/mips/include/asm/mach-ralink/mt7621.h 2015-05-06 17:50:16.362151259 +0800 +@@ -29,7 +29,7 @@ + + #define MT7621_DRAM_BASE0x0 + #define MT7621_DDR2_SIZE_MIN 32 +-#define MT7621_DDR2_SIZE_MAX 256 ++#define MT7621_DDR2_SIZE_MAX 512 + + #define MT7621_CHIP_NAME0 0x3637544D + #define MT7621_CHIP_NAME1 0x20203132 +Index: linux-3.18.11/arch/mips/kernel/setup.c +=== +--- linux-3.18.11.orig/arch/mips/kernel/setup.c2015-04-04 10:46:37.0 +0800 linux-3.18.11/arch/mips/kernel/setup.c 2015-05-07 09:30:27.138152614 +0800 +@@ -131,8 +131,12 @@ + { + void *dm = detect_magic; + phys_t size; +- +- for (size = sz_min; size sz_max; size = 1) { ++#if defined(CONFIG_SOC_MT7621) ++ phys_t low_mem_size = 0x1c00; ++ phys_t high_mem_start = 0x2000; ++ phys_t high_mem_size = 0; ++#endif ++ for (size = sz_min; size sz_max; size = 1) { + if (!memcmp(dm, dm + size, sizeof(detect_magic))) + break; + } +@@ -142,8 +146,15 @@ + (unsigned long long) start, + ((unsigned long long) sz_min) / SZ_1M, + ((unsigned long long) sz_max) / SZ_1M); +- +- add_memory_region(start, size, BOOT_MEM_RAM); ++#if defined(CONFIG_SOC_MT7621) ++ low_mem_size = (size low_mem_size)?low_mem_size:size; ++ high_mem_size = size - low_mem_size; ++ add_memory_region(start,low_mem_size, BOOT_MEM_RAM); ++ if(high_mem_size 0) ++ add_memory_region(high_mem_start,high_mem_size, BOOT_MEM_RAM); ++#else ++ add_memory_region(start, size, BOOT_MEM_RAM); ++#endif + } + + static void __init print_memory_map(void) -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 4/4] ralink: firewrt support memory detect
Signed-off-by: wengbj fl.serv...@t-firefly.com --- target/linux/ramips/dts/FIREWRT.dts |5 - 1 file changed, 5 deletions(-) diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index 2b018e6..d0decd5 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -6,11 +6,6 @@ compatible = mediatek,mt7621-eval-board, mediatek,mt7621-soc; model = Firefly FireWRT; - memory@0 { - device_type = memory; - reg = 0x0 0x1000; - }; - chosen { bootargs = console=ttyS0,57600; }; -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/4] ralink: add HIGHMEM support for mt7621
Signed-off-by: wengbj fl.serv...@t-firefly.com --- target/linux/ramips/mt7621/config-3.18 |1 + .../0112-add-mt7621-support-high-memory.patch | 13 + 2 files changed, 14 insertions(+) create mode 100644 target/linux/ramips/patches-3.18/0112-add-mt7621-support-high-memory.patch diff --git a/target/linux/ramips/mt7621/config-3.18 b/target/linux/ramips/mt7621/config-3.18 index 11d372b..dcc7b5a 100644 --- a/target/linux/ramips/mt7621/config-3.18 +++ b/target/linux/ramips/mt7621/config-3.18 @@ -217,3 +217,4 @@ CONFIG_WATCHDOG_CORE=y CONFIG_WEAK_ORDERING=y CONFIG_XPS=y CONFIG_ZONE_DMA_FLAG=0 +CONFIG_BOUNCE=y diff --git a/target/linux/ramips/patches-3.18/0112-add-mt7621-support-high-memory.patch b/target/linux/ramips/patches-3.18/0112-add-mt7621-support-high-memory.patch new file mode 100644 index 000..b3df1c5 --- /dev/null +++ b/target/linux/ramips/patches-3.18/0112-add-mt7621-support-high-memory.patch @@ -0,0 +1,13 @@ +Index: linux-3.18.11/arch/mips/ralink/Kconfig +=== +--- linux-3.18.11.orig/arch/mips/ralink/Kconfig2015-04-28 17:30:50.631568808 +0800 linux-3.18.11/arch/mips/ralink/Kconfig 2015-04-28 17:32:10.167567161 +0800 +@@ -46,6 +46,8 @@ + select SYS_SUPPORTS_MULTITHREADING + select SYS_SUPPORTS_SMP + select SYS_SUPPORTS_MIPS_CMP ++ select SYS_SUPPORTS_HIGHMEM ++ select HIGHMEM + select IRQ_GIC + select HW_HAS_PCI + -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump
Hi, what is the difference between this and the previous version ? Johnn On 07/05/2015 04:25, wengbj wrote: Signed-off-by: wengbj fl.serv...@t-firefly.com --- .../patches-3.18/305-mips_module_reloc.patch |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch index 41cf806..fd31f9f 100644 --- a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch +++ b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch @@ -1,6 +1,6 @@ --- a/arch/mips/Makefile +++ b/arch/mips/Makefile -@@ -90,8 +90,13 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin +@@ -90,8 +90,18 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin cflags-y+= -G 0 -mno-abicalls -fno-pic -pipe -mno-branch-likely cflags-y+= -msoft-float LDFLAGS_vmlinux += -G 0 -static -n -nostdlib --gc-sections @@ -8,9 +8,14 @@ KBUILD_AFLAGS_MODULE+= -mlong-calls KBUILD_CFLAGS_MODULE+= -mlong-calls +else ++ifdef CONFIG_HIGHMEM ++KBUILD_AFLAGS_MODULE+= -mlong-calls ++KBUILD_CFLAGS_MODULE+= -mlong-calls ++else +KBUILD_AFLAGS_MODULE+= -mno-long-calls +KBUILD_CFLAGS_MODULE+= -mno-long-calls +endif ++endif ifndef CONFIG_FUNCTION_TRACER KBUILD_CFLAGS_KERNEL+= -ffunction-sections -fdata-sections ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel