[OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP
--- package/utils/busybox/Makefile | 3 ++ package/utils/busybox/files/sysntpd | 30 ++-- package/utils/busybox/files/sysntpd.hotplug | 53 + 3 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 package/utils/busybox/files/sysntpd.hotplug diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile index 5ca4363..3066a85 100644 --- a/package/utils/busybox/Makefile +++ b/package/utils/busybox/Makefile @@ -111,6 +111,9 @@ define Package/busybox/install $(CP) $(PKG_INSTALL_DIR)/* $(1)/ $(INSTALL_BIN) ./files/cron $(1)/etc/init.d/cron $(INSTALL_BIN) ./files/sysntpd $(1)/etc/init.d/sysntpd + $(INSTALL_DIR) $(1)/etc/hotplug.d + $(INSTALL_DIR) $(1)/etc/hotplug.d/iface + $(INSTALL_BIN) ./files/sysntpd.hotplug $(1)/etc/hotplug.d/iface/30-sysntpd $(INSTALL_BIN) ./files/ntpd-hotplug $(1)/usr/sbin/ntpd-hotplug -rm -rf $(1)/lib64 endef diff --git a/package/utils/busybox/files/sysntpd b/package/utils/busybox/files/sysntpd index f73bb83..86c1036 100755 --- a/package/utils/busybox/files/sysntpd +++ b/package/utils/busybox/files/sysntpd @@ -1,6 +1,9 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2011 OpenWrt.org +. /lib/functions.sh +. /usr/share/libubox/jshn.sh + START=98 USE_PROCD=1 @@ -13,7 +16,8 @@ validate_ntp_section() { } start_service() { - local server enabled enable_server peer + local server enabled enable_server peer ntpservers + local use_dhcp="$(uci -q get system.ntp.use_dhcp)" validate_ntp_section ntp || { echo "validation failed" @@ -21,13 +25,33 @@ start_service() { } [ $enabled = 0 ] && return - - [ -z "$server" ] && return + [ -z "$server" ] && [ "$use_dhcp" = 0 ] && return procd_open_instance procd_set_param command "$PROG" -n [ "$enable_server" = "1" ] && procd_append_param command -l [ -x "$HOTPLUG_SCRIPT" ] && procd_append_param command -S "$HOTPLUG_SCRIPT" + + local dhcp_ifaces="$(uci -q get system.ntp.dhcp_ifaces)" + [ "$use_dhcp" = 1 ] && { + if [ -z "$dhcp_ifaces" ]; then + local dump="$(ubus call network.interface dump)" + ntpservers=$(jsonfilter -s "$dump" -e '$["interface"][*]["data"]["ntpserver"]') + else + for iface in $dhcp_ifaces; do + local status="$(ubus call network.interface.$iface status)" + local ntpserver=$(jsonfilter -s "$status" -e '$["data"]["ntpserver"]') + [ -n "$ntpserver" ] && \ + ntpservers="$ntpservers $ntpserver" + done + fi + # add this data so we can use it in the sysntpd hotplug script. + procd_set_param data ntp_servers="$ntpservers $server" + for ntpserver in $ntpservers; do + procd_append_param command -p $ntpserver + done + } + for peer in $server; do procd_append_param command -p $peer done diff --git a/package/utils/busybox/files/sysntpd.hotplug b/package/utils/busybox/files/sysntpd.hotplug new file mode 100644 index 000..c690304 --- /dev/null +++ b/package/utils/busybox/files/sysntpd.hotplug @@ -0,0 +1,53 @@ +#!/bin/sh + +. /lib/functions.sh +. /usr/share/libubox/jshn.sh + +is_valid_interface() { + local list="$(uci get system.ntp.dhcp_ifaces)" + [ -z "$list" ] && return 0 + + case " $list " in + *" $INTERFACE "*) + return 0 + ;; + *) + return 1 + ;; + esac +} + +local proto="$(uci get network.$INTERFACE.proto)" +local use_dhcp="$(uci -q get system.ntp.use_dhcp)" +[ "$use_dhcp" = 1 ] && [ "$ACTION" = ifup ] && is_valid_interface && [ "$proto" = dhcp -o "$proto" = dhcp6 ] || exit 0 + +handle_default_ntp_servers() { + local server="$1" + new_ntp_servers="$new_ntp_servers $server" +} + +local dhcp_ifaces="$(uci -q get system.ntp.dhcp_ifaces)" +if [ -z "$dhcp_ifaces" ]; then + local dump="$(ubus call network.interface dump)" + local dhcp_ntp_servers=$(jsonfilter -s "$dump" -e '$["interface"][*]["data"]["ntpserver"]') +else + for iface in $dhcp_ifaces; do + local status="$(ubus call network.interface.$iface status)" + local ntpserver=$(jsonfilter -s "$status" -e '$["data"]["ntpserver"]') + [ -n "$ntpserver" ] && \ + dhcp_ntp_servers="$dhcp_ntp_servers $ntpserver" + done +fi + +new_ntp_servers="$dhcp_ntp_servers" +#get the default list of ntp servers from the config file and append it to the new list +config_load system +config_list_foreach "ntp" "server" handle_default_ntp_servers + +#ge
[OpenWrt-Devel] [CC 15.05] php: Security update (6 CVEs)
The php package has been rebuilt and was uploaded to the Chaos Calmer 15.05 repository due to multiple security issues. VERSION 5.6.8-1 => 5.6.16-1 CHANGELOG [Wed, 23 Dec 2015 16:00:14 -0500 766cfcc] Update to 5.6.16 [Wed, 23 Dec 2015 16:00:04 -0500 41f541b] Update to 5.6.15 [Wed, 23 Dec 2015 15:59:54 -0500 0df349f] Update to 5.6.14 [Wed, 23 Dec 2015 15:59:43 -0500 196b622] Update to 5.6.13 [Wed, 23 Dec 2015 15:59:32 -0500 1cbcdf7] Fix the two different maintainer fields into one (fixes #1688) [Wed, 23 Dec 2015 15:59:21 -0500 9bbdad4] Update to 5.6.12 [Wed, 23 Dec 2015 15:59:10 -0500 6cba0bf] This fixes the following CVEs: - in PCRE: CVE-2015-2325, CVE-2015-2326 - in sqlite3: CVE-2015-3414, CVE-2015-3415, CVE-2015-3416 [Wed, 23 Dec 2015 15:58:46 -0500 559df39] This fixes CVE-2006-7243, a multipart/form-data remote dos vulnerability, a heap buffer overflow in unpack and a integer overflow in ftp_genlist, which also results in a heap overflow. For more details, see http://php.net/ChangeLog-5.php#5.6.9 Also sync the timezone patch with latest version from Debian and adopt this patch for the changes in this php release. Refresh 950-Fix-dl-cross-compiling-issue.patch. [Wed, 23 Dec 2015 15:58:27 -0500 f0a0448] This patch adds build infrastructure for PHP's OPcache extension. Compared with the other extension, this is a Zend module and it need a little workaround during cross-compiling. [Wed, 23 Dec 2015 15:57:57 -0500 f04165e] Pecl: move phpize into prepare stage This allows pecl modules to rely on PKG_FIXUP:=autoreconf. CHANGES lang/php5/Makefile| 22 ++- lang/php5/files/php.ini | 10 ++ ...bian_patches_use_embedded_timezonedb.patch | 136 -- ...xt-opcache-fix-detection-of-shm-mmap.patch | 159 + .../950-Fix-dl-cross-compiling-issue.patch| 23 ++- lang/php5/pecl.mk |7 +- 6 files changed, 276 insertions(+), 81 deletions(-) REFERENCES * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-7243 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2325 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2326 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3414 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3415 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3416 * https://github.com/openwrt/packages/commit/f04165e4e0ddf7f9e62321f808d27aafd7631007 * https://github.com/openwrt/packages/commit/f0a0448857e04884a7ad2ae5534ac2b2cb3948fc * https://github.com/openwrt/packages/commit/559df398ffc86fe386db79a937c61235c4b45ce0 * https://github.com/openwrt/packages/commit/6cba0bf5454034b9ac7e6dcf917ebefc75d9bb8e * https://github.com/openwrt/packages/commit/9bbdad4ed72559aa03ccd024d5a49aae12d6a2c6 * https://github.com/openwrt/packages/commit/1cbcdf7f9e2aad526e0a59247525321aefa25234 * https://github.com/openwrt/packages/commit/196b622bd660384adecfd75959e0111ba34fe5f6 * https://github.com/openwrt/packages/commit/0df349f8df0fbc5272b909fad1320f64de622884 * https://github.com/openwrt/packages/commit/41f541bd267969d7676571be56f8c1a5c71e5257 * https://github.com/openwrt/packages/commit/766cfcc77f3be9152e818dc5703204b607a5a405 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] dnsmasq: Add option --min-port
By default dnsmasq uses random ports for outbound dns queries; when the minport UCI option is specified the ports used will always be larger than the specified value. This is usefull for systems behind firewalls. Signed-off-by: Hans Dedecker --- package/network/services/dnsmasq/Makefile | 2 +- package/network/services/dnsmasq/files/dnsmasq.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index d4a6f1f..de0237b 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsmasq PKG_VERSION:=2.75 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 0cec6d8..efc9627 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -146,6 +146,7 @@ dnsmasq() { append_parm "$cfg" ednspacket_max "--edns-packet-max" append_parm "$cfg" dhcpleasemax "--dhcp-lease-max" append_parm "$cfg" "queryport" "--query-port" + append_parm "$cfg" "minport" "--min-port" append_parm "$cfg" "domain" "--domain" append_parm "$cfg" "local" "--server" config_list_foreach "$cfg" "server" append_server -- 1.9.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP
* amine ahd [14.01.2016 10:29]: thank you, patch applies... > start_service() { > - local server enabled enable_server peer > + local server enabled enable_server peer ntpservers > + local use_dhcp="$(uci -q get system.ntp.use_dhcp)" > > validate_ntp_section ntp || { > echo "validation failed" > @@ -21,13 +25,33 @@ start_service() { > } > > [ $enabled = 0 ] && return > - > - [ -z "$server" ] && return > + [ -z "$server" ] && [ "$use_dhcp" = 0 ] && return i'am ok with this, if you like you can reuse 'config_get_bool()' from /lib/functions.sh > procd_open_instance > procd_set_param command "$PROG" -n > [ "$enable_server" = "1" ] && procd_append_param command -l > [ -x "$HOTPLUG_SCRIPT" ] && procd_append_param command -S > "$HOTPLUG_SCRIPT" > + > + local dhcp_ifaces="$(uci -q get system.ntp.dhcp_ifaces)" > + [ "$use_dhcp" = 1 ] && { this should also be 'bool' > + if [ -z "$dhcp_ifaces" ]; then > + local dump="$(ubus call network.interface dump)" > + ntpservers=$(jsonfilter -s "$dump" -e > '$["interface"][*]["data"]["ntpserver"]') > + else > + for iface in $dhcp_ifaces; do please make var 'iface' local and while you are there, move all the 'local' declaration to the head of the function. the rest looks OK to me. - thank you bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Security-Announce] [CC 15.05] php: Security update (6 CVEs)
On Wed, Jan 13, 2016 at 11:25 PM, wrote: > The php package has been rebuilt and was uploaded to the Chaos Calmer > 15.05 repository due to multiple security issues. > I noticed that you sent this message to the openwrt-security-announce mailing list, but the message doesn't show up in the archives at https://lists.openwrt.org/pipermail/openwrt-security-announce/. I think the archiving part of the mailing list may be broken. Cheers, Brian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] scripts/metadata: Allow to select which profiles to build
On 2016-01-13 18:38, Daniel Dickinson wrote: > Sorry, I wasn clear I guess. I mean I'm not clear on how or if other > targets use the 'Default' profile to select building all images for that > target. That is, my question is whether ar71xx is the only target for > which the Default profile selects building all available images. I think having the Default profile build all images is not ar71xx specific. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] optimizing network performance
On 9 January 2016 at 17:21, Roman Yeryomin wrote: > While trying to optimize ag71xx driver performance I've noticed a > weird thing: NAT performance may vary across reboots. > For example on Archer C7 the difference can be 80Mbps: 440 one boot, > 360 another. On AP152 the numbers differ but the difference across > reboots still present. > That is with iperf3, TCP download, 1m average, confirmed environment, > trunk version. > > Did someone notice this before? Is this driver specific? MIPS > specific? Something else? > > Unfortunately I don't have any other board with gigabit ports I can > test with currently. > Such behavior makes it very hard to test any optimizations. > Really? nobody noticed this? Regards, Roman ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] ar71xx: fix AR8337 switch initialization on dLAN pro 1200+ WiFi ac
unswap ports 0/6 (broken by 17b8dcd63100a6b9e35199882f38bdc2be640777) Signed-off-by: Günther Kelleter --- target/linux/ar71xx/files/arch/mips/ath79/mach-dlan-pro-1200-ac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dlan-pro-1200-ac.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dlan-pro-1200-ac.c index 03b9f19..4dc7b99 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dlan-pro-1200-ac.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dlan-pro-1200-ac.c @@ -109,6 +109,7 @@ static struct ar8327_pad_cfg dlan_pro_1200_ac_ar8327_pad0_cfg = { .rxclk_delay_en = false, .txclk_delay_sel = AR8327_CLK_DELAY_SEL1, .rxclk_delay_sel = AR8327_CLK_DELAY_SEL0, + .mac06_exchange_dis = true, }; static struct ar8327_pad_cfg dlan_pro_1200_ac_ar8327_pad5_cfg = { -- 2.5.4.92.gc15957c ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/2] ar71xx: board.d: fix switch defaults on dLAN pro 1200+ WiFi ac
transparent for vlans as originally committed Signed-off-by: Günther Kelleter --- target/linux/ar71xx/base-files/etc/board.d/02_network | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 190b693..1c0510f 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -309,10 +309,9 @@ dlan-pro-500-wp) dlan-pro-1200-ac) ucidef_set_interface_lan "eth0" - ucidef_add_switch "switch0" - ucidef_add_switch_attr "switch0" "reset" "false" - ucidef_add_switch_ports "switch0" \ + ucidef_add_switch "switch0" \ "0@eth0" "2:lan" "3:lan" "4:lan" + ucidef_add_switch_attr "switch0" "enable" "false" ;; all0305 |\ -- 2.5.4.92.gc15957c ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
From: Daniel Dickinson To my knowledge there are no working images, nor a way to get them, even using maximum stripping and dropping of packages, kmods, and compile options due to the small size of the targets for this architecture. Therefore mark this arch broken and maybe remove unless someone decides to fix it. Signed-off-by: Daniel Dickinson --- target/linux/brcm47xx/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile index e0c44c8..fae1f59 100644 --- a/target/linux/brcm47xx/Makefile +++ b/target/linux/brcm47xx/Makefile @@ -12,6 +12,7 @@ BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) FEATURES:=squashfs usb SUBTARGETS:=generic mips74k legacy MAINTAINER:=Hauke Mehrtens +DEPENDS:=@BROKEN KERNEL_PATCHVER:=4.1 -- 2.4.3 ___ 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 kmod-video-videobuf2's object file in 4.4
CONFIG_VIDEOBUF2_CORE produces two object files in Linux >= 4.4. Conditionally add the new file to FILES of kmod-video-videobuf2. Signed-off-by: Jan Čermák --- package/kernel/linux/modules/video.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index 3b06a14..741aea1 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -129,6 +129,9 @@ define KernelPackage/video-videobuf2 $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-core.ko \ $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-memops.ko \ $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-vmalloc.ko +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,4.4.0)),1) + FILES+=$(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-v4l2.ko +endif AUTOLOAD:=$(call AutoLoad,65,videobuf2-core videobuf2-memops videobuf2-vmalloc) $(call AddDepends/video) endef -- 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] brcm47xx: Mark broken; no working images
On 14 January 2016 at 17:31, wrote: > From: Daniel Dickinson > > To my knowledge there are no working images, nor a way to get them, > even using maximum stripping and dropping of packages, kmods, and > compile options due to the small size of the targets for this > architecture. Therefore mark this arch broken and maybe remove > unless someone decides to fix it. > > Signed-off-by: Daniel Dickinson > --- > target/linux/brcm47xx/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile > index e0c44c8..fae1f59 100644 > --- a/target/linux/brcm47xx/Makefile > +++ b/target/linux/brcm47xx/Makefile > @@ -12,6 +12,7 @@ BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) > FEATURES:=squashfs usb > SUBTARGETS:=generic mips74k legacy > MAINTAINER:=Hauke Mehrtens > +DEPENDS:=@BROKEN > > KERNEL_PATCHVER:=4.1 > m? at least Asus rt-n16 and wl-500gp work fine! Regards, Roman ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
If on trunk, what compile options do use to make the images build successfully? I get failed compiles with warning that the image is too big on any brcm47xx target I tried, so unless wl-500gp is bigger than most of them, I'm thinking you're either doing something special, or are not on trunk. (And I tried cutting *way* back on things that increase image, well below normal OpenWrt). Regards, Daniel On 14/01/16 10:59 AM, Roman Yeryomin wrote: On 14 January 2016 at 17:31, wrote: From: Daniel Dickinson To my knowledge there are no working images, nor a way to get them, even using maximum stripping and dropping of packages, kmods, and compile options due to the small size of the targets for this architecture. Therefore mark this arch broken and maybe remove unless someone decides to fix it. Signed-off-by: Daniel Dickinson --- target/linux/brcm47xx/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile index e0c44c8..fae1f59 100644 --- a/target/linux/brcm47xx/Makefile +++ b/target/linux/brcm47xx/Makefile @@ -12,6 +12,7 @@ BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) FEATURES:=squashfs usb SUBTARGETS:=generic mips74k legacy MAINTAINER:=Hauke Mehrtens +DEPENDS:=@BROKEN KERNEL_PATCHVER:=4.1 m? at least Asus rt-n16 and wl-500gp work fine! Regards, Roman ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
I'm running openwrt on several WRT54GLs upgraded to 8MB Flash and 64MB RAM... Regards, Arnd On 01/14/2016 04:31 PM, open...@daniel.thecshore.com wrote: From: Daniel Dickinson To my knowledge there are no working images, nor a way to get them, even using maximum stripping and dropping of packages, kmods, and compile options due to the small size of the targets for this architecture. Therefore mark this arch broken and maybe remove unless someone decides to fix it. Signed-off-by: Daniel Dickinson --- target/linux/brcm47xx/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile index e0c44c8..fae1f59 100644 --- a/target/linux/brcm47xx/Makefile +++ b/target/linux/brcm47xx/Makefile @@ -12,6 +12,7 @@ BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) FEATURES:=squashfs usb SUBTARGETS:=generic mips74k legacy MAINTAINER:=Hauke Mehrtens +DEPENDS:=@BROKEN KERNEL_PATCHVER:=4.1 -- Arnd Gronenberg Phone: +49-172-7313265 EMail: a...@gronenberg.com HAM: DJ9PZ / AB2QP smime.p7s Description: S/MIME Cryptographic Signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
Ah, ok, so there likley there are are pobablly not any working *stock* devices. That merits the @BROKEN flag - if you're running modified hardware you can surely build with BROKEN enabled. Regards, Daniel On 14/01/16 11:22 AM, Arnd Gronenberg wrote: I'm running openwrt on several WRT54GLs upgraded to 8MB Flash and 64MB RAM... Regards, Arnd On 01/14/2016 04:31 PM, open...@daniel.thecshore.com wrote: From: Daniel Dickinson To my knowledge there are no working images, nor a way to get them, even using maximum stripping and dropping of packages, kmods, and compile options due to the small size of the targets for this architecture. Therefore mark this arch broken and maybe remove unless someone decides to fix it. Signed-off-by: Daniel Dickinson --- target/linux/brcm47xx/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile index e0c44c8..fae1f59 100644 --- a/target/linux/brcm47xx/Makefile +++ b/target/linux/brcm47xx/Makefile @@ -12,6 +12,7 @@ BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) FEATURES:=squashfs usb SUBTARGETS:=generic mips74k legacy MAINTAINER:=Hauke Mehrtens +DEPENDS:=@BROKEN KERNEL_PATCHVER:=4.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
Apparently my tree got trashed and I need to do distclean. Sorry for the noise. Regards, Daniel On 14/01/16 11:25 AM, Daniel Dickinson wrote: Ah, ok, so there likley there are are pobablly not any working *stock* devices. That merits the @BROKEN flag - if you're running modified hardware you can surely build with BROKEN enabled. Regards, Daniel On 14/01/16 11:22 AM, Arnd Gronenberg wrote: I'm running openwrt on several WRT54GLs upgraded to 8MB Flash and 64MB RAM... Regards, Arnd On 01/14/2016 04:31 PM, open...@daniel.thecshore.com wrote: From: Daniel Dickinson To my knowledge there are no working images, nor a way to get them, even using maximum stripping and dropping of packages, kmods, and compile options due to the small size of the targets for this architecture. Therefore mark this arch broken and maybe remove unless someone decides to fix it. Signed-off-by: Daniel Dickinson --- target/linux/brcm47xx/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/brcm47xx/Makefile b/target/linux/brcm47xx/Makefile index e0c44c8..fae1f59 100644 --- a/target/linux/brcm47xx/Makefile +++ b/target/linux/brcm47xx/Makefile @@ -12,6 +12,7 @@ BOARDNAME:=Broadcom BCM47xx/53xx (MIPS) FEATURES:=squashfs usb SUBTARGETS:=generic mips74k legacy MAINTAINER:=Hauke Mehrtens +DEPENDS:=@BROKEN KERNEL_PATCHVER:=4.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
On 14 January 2016 at 18:25, Daniel Dickinson wrote: > Ah, ok, so there likley there are are pobablly not any working *stock* > devices. That merits the @BROKEN flag - if you're running modified hardware > you can surely build with BROKEN enabled. https://downloads.openwrt.org/snapshots/trunk/brcm47xx/ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
* Daniel Dickinson [14.01.2016 17:35]: > If on trunk, what compile options do use to make the images build > successfully? I get failed compiles with warning that the image is > too big on any brcm47xx target I tried, so unless wl-500gp is bigger > than most of them, I'm thinking you're either doing something > special, or are not on trunk. (And I tried cutting *way* back on > things that increase image, well below normal OpenWrt). with r48235 i just built 2 images, one fat: 5.050.368 openwrt-brcm47xx-legacy-asus-wl-500gp-v1-squashfs.trx and one smaller with some thing disabled: 3.346.432 openwrt-brcm47xx-legacy-squashfs.trx both are working... bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images
On 01/14/2016 04:31 PM, open...@daniel.thecshore.com wrote: > From: Daniel Dickinson > > To my knowledge there are no working images, nor a way to get them, > even using maximum stripping and dropping of packages, kmods, and > compile options due to the small size of the targets for this > architecture. Therefore mark this arch broken and maybe remove > unless someone decides to fix it. > > Signed-off-by: Daniel Dickinson NACK: Hauke Mehrtens The devices with 32 MB ram are working normal, they are just old. On devices with 16MB RAM LUCI does not really work, but that is the case for all 16MB ram devices. Hauke ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] kernel: add missing kmod-video-videobuf2's object file in 4.4
On 2016-01-14 16:55, Jan Čermák wrote: > CONFIG_VIDEOBUF2_CORE produces two object files in Linux >= 4.4. > Conditionally add the new file to FILES of kmod-video-videobuf2. > > Signed-off-by: Jan Čermák > --- > package/kernel/linux/modules/video.mk | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/package/kernel/linux/modules/video.mk > b/package/kernel/linux/modules/video.mk > index 3b06a14..741aea1 100644 > --- a/package/kernel/linux/modules/video.mk > +++ b/package/kernel/linux/modules/video.mk > @@ -129,6 +129,9 @@ define KernelPackage/video-videobuf2 > $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-core.ko \ > $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-memops.ko \ > $(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-vmalloc.ko > +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,4.4.0)),1) > + FILES+=$(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-v4l2.ko You could skip the ifeq and add @ge4.4 to the end. > +endif >AUTOLOAD:=$(call AutoLoad,65,videobuf2-core videobuf2-memops > videobuf2-vmalloc) Missing autoload for this module. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 0/2] ARC770 updates
This series introduces quite minor changes for ARC770 SoC: [1] Linux kernel 4.4 is used now [2] Kernel patches are moved to generic 4.4 patches Alexey Brodkin (2): arc770: bump linux kernel from 4.3 to 4.4 arc770: move arc patches to taregt/linux/generic target/linux/arc770/Makefile | 2 +- target/linux/arc770/config-4.3 | 179 - target/linux/arc770/config-4.4 | 169 +++ target/linux/arc770/dts/axc001.dtsi| 2 +- target/linux/arc770/dts/axs101.dts | 2 +- target/linux/arc770/dts/axs10x_mb.dtsi | 1 + target/linux/arc770/dts/skeleton.dtsi | 2 +- ...openwrt-arc-remove-dependency-on-DEVTMPFS.patch | 31 .../0002-openwrt-arc-add-OWRTDTB-section.patch | 82 -- .../331-arc-remove-dependency-on-DEVTMPFS.patch| 36 + .../patches-4.4/332-arc-add-OWRTDTB-section.patch | 91 +++ 11 files changed, 301 insertions(+), 296 deletions(-) delete mode 100644 target/linux/arc770/config-4.3 create mode 100644 target/linux/arc770/config-4.4 delete mode 100644 target/linux/arc770/patches-4.3/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch delete mode 100644 target/linux/arc770/patches-4.3/0002-openwrt-arc-add-OWRTDTB-section.patch create mode 100644 target/linux/generic/patches-4.4/331-arc-remove-dependency-on-DEVTMPFS.patch create mode 100644 target/linux/generic/patches-4.4/332-arc-add-OWRTDTB-section.patch -- 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 1/2] arc770: bump linux kernel from 4.3 to 4.4
This switch involved: [1] Regeneration of config (few options went away) [2] Regeneration of patches so they apply cleanly (different offsets) [3] Update of .dts files because we now explicitly specify memory regions in use as opposed to previously used offset from 0x8000_ Signed-off-by: Alexey Brodkin Cc: Felix Fietkau Cc: Jo-Philipp Wich Cc: Jonas Gorski --- target/linux/arc770/Makefile | 2 +- target/linux/arc770/config-4.3 | 179 - target/linux/arc770/config-4.4 | 169 +++ target/linux/arc770/dts/axc001.dtsi| 2 +- target/linux/arc770/dts/axs101.dts | 2 +- target/linux/arc770/dts/axs10x_mb.dtsi | 1 + target/linux/arc770/dts/skeleton.dtsi | 2 +- ...openwrt-arc-remove-dependency-on-DEVTMPFS.patch | 31 .../0002-openwrt-arc-add-OWRTDTB-section.patch | 82 -- ...openwrt-arc-remove-dependency-on-DEVTMPFS.patch | 36 + .../0002-openwrt-arc-add-OWRTDTB-section.patch | 91 +++ 11 files changed, 301 insertions(+), 296 deletions(-) delete mode 100644 target/linux/arc770/config-4.3 create mode 100644 target/linux/arc770/config-4.4 delete mode 100644 target/linux/arc770/patches-4.3/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch delete mode 100644 target/linux/arc770/patches-4.3/0002-openwrt-arc-add-OWRTDTB-section.patch create mode 100644 target/linux/arc770/patches-4.4/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch create mode 100644 target/linux/arc770/patches-4.4/0002-openwrt-arc-add-OWRTDTB-section.patch diff --git a/target/linux/arc770/Makefile b/target/linux/arc770/Makefile index f62bf0e..52c5e00 100644 --- a/target/linux/arc770/Makefile +++ b/target/linux/arc770/Makefile @@ -13,7 +13,7 @@ CFLAGS:=-Os -pipe -fno-caller-saves -matomic MAINTAINER:=Alexey Brodkin SUBTARGETS:=generic -KERNEL_PATCHVER:=4.3 +KERNEL_PATCHVER:=4.4 DEVICE_TYPE:=developerboard diff --git a/target/linux/arc770/config-4.3 b/target/linux/arc770/config-4.3 deleted file mode 100644 index 7a13480..000 --- a/target/linux/arc770/config-4.3 +++ /dev/null @@ -1,179 +0,0 @@ -# CONFIG_16KSTACKS is not set -CONFIG_ARC=y -CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y -# CONFIG_ARCH_HAS_GCOV_PROFILE_ALL is not set -# CONFIG_ARCH_HAS_SG_CHAIN is not set -CONFIG_ARCH_REQUIRE_GPIOLIB=y -CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y -CONFIG_ARC_BUILTIN_DTB_NAME="" -CONFIG_ARC_CACHE=y -CONFIG_ARC_CACHE_LINE_SHIFT=5 -CONFIG_ARC_CACHE_PAGES=y -# CONFIG_ARC_CACHE_VIPT_ALIASING is not set -# CONFIG_ARC_CANT_LLSC is not set -# CONFIG_ARC_COMPACT_IRQ_LEVELS is not set -# CONFIG_ARC_CPU_750D is not set -CONFIG_ARC_CPU_770=y -CONFIG_ARC_CURR_IN_REG=y -CONFIG_ARC_DBG=y -# CONFIG_ARC_DBG_TLB_MISS_COUNT is not set -# CONFIG_ARC_DBG_TLB_PARANOIA is not set -CONFIG_ARC_DW2_UNWIND=y -# CONFIG_ARC_EMUL_UNALIGNED is not set -# CONFIG_ARC_FPU_SAVE_RESTORE is not set -CONFIG_ARC_HAS_DCACHE=y -# CONFIG_ARC_HAS_DCCM is not set -CONFIG_ARC_HAS_HW_MPY=y -CONFIG_ARC_HAS_ICACHE=y -# CONFIG_ARC_HAS_ICCM is not set -CONFIG_ARC_HAS_LLSC=y -CONFIG_ARC_HAS_SWAPE=y -# CONFIG_ARC_METAWARE_HLINK is not set -# CONFIG_ARC_MMU_V1 is not set -# CONFIG_ARC_MMU_V2 is not set -CONFIG_ARC_MMU_V3=y -# CONFIG_ARC_PAGE_SIZE_16K is not set -# CONFIG_ARC_PAGE_SIZE_4K is not set -CONFIG_ARC_PAGE_SIZE_8K=y -CONFIG_ARC_PLAT_AXS10X=y -CONFIG_ARC_PLAT_SIM=y -# CONFIG_ARC_PLAT_TB10X is not set -# CONFIG_ARC_UBOOT_SUPPORT is not set -CONFIG_AXS101=y -CONFIG_CLKDEV_LOOKUP=y -CONFIG_CLONE_BACKWARDS=y -CONFIG_COMMON_CLK=y -# CONFIG_CPU_BIG_ENDIAN is not set -CONFIG_CRYPTO_RNG2=y -CONFIG_CRYPTO_WORKQUEUE=y -CONFIG_DTC=y -CONFIG_DWMAC_GENERIC=y -# CONFIG_DWMAC_IPQ806X is not set -# CONFIG_DWMAC_LPC18XX is not set -# CONFIG_DWMAC_MESON is not set -# CONFIG_DWMAC_ROCKCHIP is not set -# CONFIG_DWMAC_SOCFPGA is not set -# CONFIG_DWMAC_STI is not set -# CONFIG_DWMAC_SUNXI is not set -CONFIG_DW_APB_ICTL=y -CONFIG_GENERIC_ATOMIC64=y -CONFIG_GENERIC_CLOCKEVENTS=y -CONFIG_GENERIC_CSUM=y -CONFIG_GENERIC_FIND_FIRST_BIT=y -CONFIG_GENERIC_IO=y -CONFIG_GENERIC_IRQ_CHIP=y -CONFIG_GENERIC_IRQ_SHOW=y -CONFIG_GENERIC_SMP_IDLE_THREAD=y -# CONFIG_GEN_RTC is not set -CONFIG_GPIOLIB=y -CONFIG_GPIO_DEVRES=y -CONFIG_GPIO_DWAPB=y -CONFIG_GPIO_GENERIC=y -CONFIG_HAS_DMA=y -CONFIG_HAS_IOMEM=y -# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set -# CONFIG_HAVE_ARCH_BITREVERSE is not set -CONFIG_HAVE_ARCH_KGDB=y -CONFIG_HAVE_ARCH_TRACEHOOK=y -# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set -CONFIG_HAVE_CLK=y -CONFIG_HAVE_CLK_PREPARE=y -CONFIG_HAVE_DEBUG_STACKOVERFLOW=y -CONFIG_HAVE_FUTEX_CMPXCHG=y -# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set -CONFIG_HAVE_IOREMAP_PROT=y -CONFIG_HAVE_LATENCYTOP_SUPPORT=y -CONFIG_HAVE_MEMBLOCK=y -CONFIG_HAVE_MOD_ARCH_SPECIFIC=y -CONFIG_HAVE_NET_DSA=y -CONFIG_HAVE_OPROFILE=y -CONFIG_HAVE_PERF_EVENTS=y -CONFIG_HZ_PERIODIC=y -CONFIG_INITRAMFS_SOURCE="" -CONFIG_IRQCHIP=y -CONF
[OpenWrt-Devel] [PATCH 2/2] arc770: move arc patches to taregt/linux/generic
Given those patches are relevant to any ARC platform and even ISA version it makes perfect sense for patches to exist in one place instead of being duplicated for each new ARC-based ASIC. Note this is a prerequisite for upstreaming of ARC HS38 support in OpenWRT. Signed-off-by: Alexey Brodkin Cc: Felix Fietkau Cc: Jo-Philipp Wich Cc: Jonas Gorski --- ...openwrt-arc-remove-dependency-on-DEVTMPFS.patch | 36 - .../0002-openwrt-arc-add-OWRTDTB-section.patch | 91 -- .../331-arc-remove-dependency-on-DEVTMPFS.patch| 36 + .../patches-4.4/332-arc-add-OWRTDTB-section.patch | 91 ++ 4 files changed, 127 insertions(+), 127 deletions(-) delete mode 100644 target/linux/arc770/patches-4.4/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch delete mode 100644 target/linux/arc770/patches-4.4/0002-openwrt-arc-add-OWRTDTB-section.patch create mode 100644 target/linux/generic/patches-4.4/331-arc-remove-dependency-on-DEVTMPFS.patch create mode 100644 target/linux/generic/patches-4.4/332-arc-add-OWRTDTB-section.patch diff --git a/target/linux/arc770/patches-4.4/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch b/target/linux/arc770/patches-4.4/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch deleted file mode 100644 index 29d9bff..000 --- a/target/linux/arc770/patches-4.4/0001-openwrt-arc-remove-dependency-on-DEVTMPFS.patch +++ /dev/null @@ -1,36 +0,0 @@ -From adfbf9e6cad93281cffceab078e7f6f2a8e094f9 Mon Sep 17 00:00:00 2001 -From: Alexey Brodkin -Date: Thu, 13 Aug 2015 01:56:02 +0300 -Subject: [PATCH 1/2] openwrt: arc - remove dependency on DEVTMPFS - -OpenWRT builds initramfs so that it doesn't require DEVTMPFS so dropping -this dependency. That helps to escape 2 separate kernel rebuilds with -and without initramfs. - -2 builds happen because OpenWRT first builds kernel and later modules. -When building entire kernel with simple "make" INITRAMFS sets to a real -value and so was triggering DEVTMPFS selection. Then when building only -modules with "make modules" command INITRAMFS is zeroed and so kernel -config was changing that lead to full kernel rebuild. - -Signed-off-by: Alexey Brodkin - arch/arc/Kconfig | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig -index 6312f60..a95bab3 100644 a/arch/arc/Kconfig -+++ b/arch/arc/Kconfig -@@ -12,8 +12,6 @@ config ARC - select BUILDTIME_EXTABLE_SORT - select COMMON_CLK - select CLONE_BACKWARDS -- # ARC Busybox based initramfs absolutely relies on DEVTMPFS for /dev -- select DEVTMPFS if !INITRAMFS_SOURCE="" - select GENERIC_ATOMIC64 - select GENERIC_CLOCKEVENTS - select GENERIC_FIND_FIRST_BIT --- -2.4.3 - diff --git a/target/linux/arc770/patches-4.4/0002-openwrt-arc-add-OWRTDTB-section.patch b/target/linux/arc770/patches-4.4/0002-openwrt-arc-add-OWRTDTB-section.patch deleted file mode 100644 index 02e9198..000 --- a/target/linux/arc770/patches-4.4/0002-openwrt-arc-add-OWRTDTB-section.patch +++ /dev/null @@ -1,91 +0,0 @@ -From 690e7f2cad271595ff68cace1c45fb10779bde41 Mon Sep 17 00:00:00 2001 -From: Alexey Brodkin -Date: Fri, 15 Jan 2016 00:34:01 +0300 -Subject: [PATCH 2/2] openwrt: arc - add OWRTDTB section - -This change allows OpenWRT to patch resulting kernel binary with -external .dtb. - -That allows us to re-use exactky the same vmlinux on different boards -given its ARC core configurations match (at least cache line sizes etc). - -""patch-dtb" searches for ASCII "OWRTDTB:" strign and copies external -.dtb right after it, keeping the string in place. - -Signed-off-by: Alexey Brodkin - arch/arc/kernel/head.S| 10 ++ - arch/arc/kernel/setup.c | 4 +++- - arch/arc/kernel/vmlinux.lds.S | 13 + - 3 files changed, 26 insertions(+), 1 deletion(-) - -diff --git a/arch/arc/kernel/head.S b/arch/arc/kernel/head.S -index 689dd86..51154ae 100644 a/arch/arc/kernel/head.S -+++ b/arch/arc/kernel/head.S -@@ -49,6 +49,16 @@ - 1: - .endm - -+; Here "patch-dtb" will embed external .dtb -+; Note "patch-dtb" searches for ASCII "OWRTDTB:" string -+; and pastes .dtb right after it, hense the string precedes -+; __image_dtb symbol. -+ .section .owrt, "aw",@progbits -+ .ascii "OWRTDTB:" -+ENTRY(__image_dtb) -+ .fill 0x4000 -+END(__image_dtb) -+ - .section .init.text, "ax",@progbits - - ; -diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c -index e1b8744..9481c9d 100644 a/arch/arc/kernel/setup.c -+++ b/arch/arc/kernel/setup.c -@@ -370,6 +370,8 @@ static inline int is_kernel(unsigned long addr) - return 0; - } - -+extern struct boot_param_header __image_dtb; -+ - void __init setup_arch(char **cmdline_p) - { - #ifdef CONFIG_ARC_UBOOT_SUPPORT -@@ -383,7 +385,7 @@ void __init setup_arch(char **cmdline_p) - #endif - { - /* No, so try the
[OpenWrt-Devel] [PATCH 0/2] update imx6 kernel to 4.4
Add support for 4.4 LTS kernel for imx6. Notable changes are: * Dropped 045-imx-thermal-use-cpu-temperature-grade-info-for-thresholds as it's now in the 4.4 kernel. * Added 042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch as it's accepted upstream, but not in the 4.4 kernel. * Changed name of patch from 037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch to 037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch to match upstream * Added Micrel PHY (pending commit in patchwork) in kernel config. This PHY is used by many IMX targets anyways. * Added PWM Support in kernel config (pending commit in patchwork) Pushpal Sidhu (2): imx6: add 4.4 support imx6: move to 4.4 kernel target/linux/imx6/Makefile |2 +- target/linux/imx6/config-4.4 | 405 +++ target/linux/imx6/files-4.4/drivers/net/phy/gw16083.c | 1046 +++ target/linux/imx6/files-4.4/drivers/net/phy/gw16083.h | 123 + .../imx6/patches-4.4/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch | 26 + .../imx6/patches-4.4/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch | 33 ++ .../037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch | 70 +++ target/linux/imx6/patches-4.4/040-ARM-dts-imx-ventana-add-pwm-nodes.patch | 264 ++ .../linux/imx6/patches-4.4/041-ARM-dts-imx-ventana-add-spi-support-for-gw52xx.patch | 33 ++ .../patches-4.4/042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch | 61 +++ target/linux/imx6/patches-4.4/100-bootargs.patch | 11 + .../imx6/patches-4.4/202-net-igb-add-i210-i211-support-for-phy-read-write.patch | 129 + .../imx6/patches-4.4/203-net-igb-add-phy-read-write-functions-that-accept-phy.patch | 260 ++ .../imx6/patches-4.4/204-net-igb-register-mii_bus-for-SerDes-w-external-phy.patch | 308 .../imx6/patches-4.4/205-phy-add-driver-for-GW16083-Ethernet-Expansion-Mezzan.patch | 27 + .../linux/imx6/patches-4.4/206-ARM-imx-ventana-added-GW16083-to-device-tree.patch | 56 +++ .../imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch | 22 + target/linux/imx6/patches-4.4/208-sky2-allow-mac-to-come-from-dt.patch | 28 ++ target/linux/imx6/patches-4.4/209-ARM-imx-ventana-add-sky2-alias.patch | 20 + 19 files changed, 2923 insertions(+), 1 deletion(-) - Pushpal ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/2] imx6: add 4.4 support
Build and boot tested on the following hardware: * GW54xx * GW53xx * GW52xx * GW51xx * GW552x * GW551x Signed-off-by: Pushpal Sidhu --- target/linux/imx6/config-4.4 | 405 .../linux/imx6/files-4.4/drivers/net/phy/gw16083.c | 1046 .../linux/imx6/files-4.4/drivers/net/phy/gw16083.h | 123 +++ ...-ventana-set-GW54xx-PMIC-swbst-regulator-.patch | 26 + ...mx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch | 33 + ...llow-HDMI-and-LVDS-to-work-simultaneously.patch | 70 ++ .../040-ARM-dts-imx-ventana-add-pwm-nodes.patch| 264 + ...ts-imx-ventana-add-spi-support-for-gw52xx.patch | 33 + ...ventana-fix-PWM-pinmux-for-Ventana-boards.patch | 61 ++ target/linux/imx6/patches-4.4/100-bootargs.patch | 11 + ...-add-i210-i211-support-for-phy-read-write.patch | 129 +++ ...-phy-read-write-functions-that-accept-phy.patch | 260 + ...egister-mii_bus-for-SerDes-w-external-phy.patch | 308 ++ ...ver-for-GW16083-Ethernet-Expansion-Mezzan.patch | 27 + ...-imx-ventana-added-GW16083-to-device-tree.patch | 56 ++ ...x-add-retries-for-NAK-s-on-ventana-boards.patch | 22 + .../208-sky2-allow-mac-to-come-from-dt.patch | 28 + .../209-ARM-imx-ventana-add-sky2-alias.patch | 20 + 18 files changed, 2922 insertions(+) create mode 100644 target/linux/imx6/config-4.4 create mode 100644 target/linux/imx6/files-4.4/drivers/net/phy/gw16083.c create mode 100644 target/linux/imx6/files-4.4/drivers/net/phy/gw16083.h create mode 100644 target/linux/imx6/patches-4.4/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch create mode 100644 target/linux/imx6/patches-4.4/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch create mode 100644 target/linux/imx6/patches-4.4/037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch create mode 100644 target/linux/imx6/patches-4.4/040-ARM-dts-imx-ventana-add-pwm-nodes.patch create mode 100644 target/linux/imx6/patches-4.4/041-ARM-dts-imx-ventana-add-spi-support-for-gw52xx.patch create mode 100644 target/linux/imx6/patches-4.4/042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch create mode 100644 target/linux/imx6/patches-4.4/100-bootargs.patch create mode 100644 target/linux/imx6/patches-4.4/202-net-igb-add-i210-i211-support-for-phy-read-write.patch create mode 100644 target/linux/imx6/patches-4.4/203-net-igb-add-phy-read-write-functions-that-accept-phy.patch create mode 100644 target/linux/imx6/patches-4.4/204-net-igb-register-mii_bus-for-SerDes-w-external-phy.patch create mode 100644 target/linux/imx6/patches-4.4/205-phy-add-driver-for-GW16083-Ethernet-Expansion-Mezzan.patch create mode 100644 target/linux/imx6/patches-4.4/206-ARM-imx-ventana-added-GW16083-to-device-tree.patch create mode 100644 target/linux/imx6/patches-4.4/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch create mode 100644 target/linux/imx6/patches-4.4/208-sky2-allow-mac-to-come-from-dt.patch create mode 100644 target/linux/imx6/patches-4.4/209-ARM-imx-ventana-add-sky2-alias.patch diff --git a/target/linux/imx6/config-4.4 b/target/linux/imx6/config-4.4 new file mode 100644 index 000..9992139 --- /dev/null +++ b/target/linux/imx6/config-4.4 @@ -0,0 +1,405 @@ +CONFIG_AHCI_IMX=y +CONFIG_ALIGNMENT_TRAP=y +CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y +CONFIG_ARCH_HAS_RESET_CONTROLLER=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_MXC=y +CONFIG_ARCH_NR_GPIO=0 +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_CPU_SUSPEND is not set +CONFIG_ARM_ERRATA_754322=y +CONFIG_ARM_ERRATA_764369=y +CONFIG_ARM_ERRATA_775420=y +CONFIG_ARM_GIC=y +CONFIG_ARM_HAS_SG_CHAIN=y +CONFIG_ARM_HEAVY_MB=y +CONFIG_ARM_IMX6Q_CPUFREQ=y +CONFIG_ARM_L1_CACHE_SHIFT=6 +CONFIG_ARM_L1_CACHE_SHIFT_6=y +# CONFIG_ARM_LPAE is not set +CONFIG_ARM_PATCH_PHYS_VIRT=y +CONFIG_ARM_PMU=y +CONFIG_ARM_THUMB=y +# CONFIG_ARM_THUMBEE is not set +CONFIG_ARM_VIRT_EXT=y +CONFIG_ATA=y +CONFIG_ATAGS=y +# CONFIG_ATA_SFF is not set +CONFIG_AUTO_ZRELADDR=y +CONFIG_CACHE_L2X0=y +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_CLKDEV_LOOKUP=y +CONFIG_CLKSRC_IMX_GPT=y +CONFIG_CLKSRC_MMIO=y +CONFIG_CLKSRC_OF=y +CONFIG_CLKSRC_PROBE=y +CONFIG_CLONE_BACKWARDS=y +CONFIG_COMMON_CLK=y +CONFIG_CPUFREQ_DT=y +CONFIG_CPU_32v6K=y
[OpenWrt-Devel] [PATCH 2/2] imx6: move to 4.4 kernel
Signed-off-by: Pushpal Sidhu --- target/linux/imx6/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/imx6/Makefile b/target/linux/imx6/Makefile index cd938c8..5f7e17b 100644 --- a/target/linux/imx6/Makefile +++ b/target/linux/imx6/Makefile @@ -14,7 +14,7 @@ CPU_TYPE:=cortex-a9 CPU_SUBTYPE:=neon MAINTAINER:=Luka Perkov -KERNEL_PATCHVER:=4.1 +KERNEL_PATCHVER:=4.4 include $(INCLUDE_DIR)/target.mk -- 2.7.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel