linux-variscite: Add linux recipe for variscite
PATCH v3 1/4 linux-variscite: Add linux recipe for variscite
The following patches are from meta-variscite-community and can be found
here: https://github.com/schnitzeltony/meta-variscite-community
- boundarydevices/0002-wlcore-add-initial-device-tree-support-to-the-sdio-m.patch
- boundarydevices/0003-wlcore-add-mac-override-parameter.patch
- upstream-backport/wifi/0001-wlcore-memset-wl-rx_filter_enabled-to-zero-after-rec.patch
- upstream-backport/wifi/0002-wlcore-cancel-Tx-watchdog-on-suspend-and-rearm-on-fi.patch
- upstream-backport/wifi/0003-wlcore-block-read-writes-to-FW-during-ELP.patch
- upstream-backport/wifi/0004-wlcore-AP-don-t-start-mac80211-PS-on-non-peer-HLIDs.patch
- upstream-backport/wifi/0005-wlcore-wl12xx-wl18xx-simplify-fw_status-handling.patch
- upstream-backport/wifi/0006-wlcore-wl12xx-wl18xx-configure-num_links-per-hw.patch
- upstream-backport/wifi/0007-wlcore-wl12xx-wl18xx-configure-max_stations-per-hw.patch
- upstream-backport/wifi/0008-wlcore-wl12xx-wl18xx-configure-iface_combinations-pe.patch
- upstream-backport/wifi/0009-wl18xx-move-to-new-firmware-wl18xx-fw-3.bin.patch
- upstream-backport/wifi/0010-wlcore-send-EAPOL-frames-with-voice-priority.patch
- upstream-backport/wifi/0011-wlcore-don-t-stop-sched_scan-on-interface-removal.patch
- upstream-backport/wifi/0012-wlcore-wl18xx-allow-CCK-rates-for-AP-mode.patch
- upstream-backport/wifi/0013-wlcore-don-t-handle-unsetting-of-default-wep-key.patch
- upstream-backport/wifi/0014-wlcore-consider-multiple-APs-when-checking-active_li.patch
- upstream-backport/wifi/0015-wlcore-decrease-warning-verbosity-during-recovery.patch
- upstream-backport/wifi/0016-wlcore-increase-timeout-to-5000-msecs.patch
- upstream-backport/wifi/0017-wlcore-enable-beacon-filtering-only-after-receiving-.patch
- upstream-backport/wifi/0018-wlcore-add-support-for-STA-CSA-with-chan-contexts.patch
- upstream-backport/wifi/0019-wlcore-use-correct-LAA-bit.patch
- upstream-backport/wifi/0020-wlcore-fix-copy-paste-bug-assign-from-src-struct-not.patch
--- ...LLVMLinux-use-static-inline-in-ARM-ftrace.patch | 49 ++ ...nux-Change-extern-inline-to-static-inline.patch | 58 ++ .../Set-dr_mode-to-otg.patch | 29 + ...flush-management-symbols-when-multi-cache.patch | 32 + ...initial-device-tree-support-to-the-sdio-m.patch | 132 ++++ .../0003-wlcore-add-mac-override-parameter.patch | 92 +++ .../linux/linux-variscite-3.14.28/defconfig | 462 +++++++++++++ ...et-wl-rx_filter_enabled-to-zero-after-rec.patch | 88 +++ ...el-Tx-watchdog-on-suspend-and-rearm-on-fi.patch | 88 +++ ...wlcore-block-read-writes-to-FW-during-ELP.patch | 46 ++ ...don-t-start-mac80211-PS-on-non-peer-HLIDs.patch | 38 + ...wl12xx-wl18xx-simplify-fw_status-handling.patch | 763 +++++++++++++++++++++ ...-wl12xx-wl18xx-configure-num_links-per-hw.patch | 375 ++++++++++ ...12xx-wl18xx-configure-max_stations-per-hw.patch | 132 ++++ ...xx-wl18xx-configure-iface_combinations-pe.patch | 193 ++++++ ...18xx-move-to-new-firmware-wl18xx-fw-3.bin.patch | 226 ++++++ ...ore-send-EAPOL-frames-with-voice-priority.patch | 49 ++ ...on-t-stop-sched_scan-on-interface-removal.patch | 35 + ...wlcore-wl18xx-allow-CCK-rates-for-AP-mode.patch | 61 ++ ...don-t-handle-unsetting-of-default-wep-key.patch | 38 + ...ider-multiple-APs-when-checking-active_li.patch | 64 ++ ...ecrease-warning-verbosity-during-recovery.patch | 54 ++ ...016-wlcore-increase-timeout-to-5000-msecs.patch | 31 + ...le-beacon-filtering-only-after-receiving-.patch | 86 +++ ...dd-support-for-STA-CSA-with-chan-contexts.patch | 32 + .../wifi/0019-wlcore-use-correct-LAA-bit.patch | 30 + ...copy-paste-bug-assign-from-src-struct-not.patch | 28 + recipes-kernel/linux/linux-variscite_3.14.28.bb | 46 ++ 28 files changed, 3357 insertions(+) create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/Set-dr_mode-to-otg.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/arm-Export-cache-flush-management-symbols-when-multi-cache.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/boundarydevices/0002-wlcore-add-initial-device-tree-support-to-the-sdio-m.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/boundarydevices/0003-wlcore-add-mac-override-parameter.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/defconfig create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0001-wlcore-memset-wl-rx_filter_enabled-to-zero-after-rec.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0002-wlcore-cancel-Tx-watchdog-on-suspend-and-rearm-on-fi.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0003-wlcore-block-read-writes-to-FW-during-ELP.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0004-wlcore-AP-don-t-start-mac80211-PS-on-non-peer-HLIDs.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0005-wlcore-wl12xx-wl18xx-simplify-fw_status-handling.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0006-wlcore-wl12xx-wl18xx-configure-num_links-per-hw.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0007-wlcore-wl12xx-wl18xx-configure-max_stations-per-hw.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0008-wlcore-wl12xx-wl18xx-configure-iface_combinations-pe.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0009-wl18xx-move-to-new-firmware-wl18xx-fw-3.bin.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0010-wlcore-send-EAPOL-frames-with-voice-priority.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0011-wlcore-don-t-stop-sched_scan-on-interface-removal.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0012-wlcore-wl18xx-allow-CCK-rates-for-AP-mode.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0013-wlcore-don-t-handle-unsetting-of-default-wep-key.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0014-wlcore-consider-multiple-APs-when-checking-active_li.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0015-wlcore-decrease-warning-verbosity-during-recovery.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0016-wlcore-increase-timeout-to-5000-msecs.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0017-wlcore-enable-beacon-filtering-only-after-receiving-.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0018-wlcore-add-support-for-STA-CSA-with-chan-contexts.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0019-wlcore-use-correct-LAA-bit.patch create mode 100644 recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0020-wlcore-fix-copy-paste-bug-assign-from-src-struct-not.patch create mode 100644 recipes-kernel/linux/linux-variscite_3.14.28.bb
recipes-kernel/linux/linux-variscite-3.14.28/0001-ARM-8158-LLVMLinux-use-static-inline-in-ARM-ftrace.patch new file +49 -0
@@ -0,0 +1,49 @@ +From aeea3592a13bf12861943e44fc48f1f270941f8d Mon Sep 17 00:00:00 2001 +From: Behan Webster <[email protected]> +Date: Wed, 24 Sep 2014 01:06:46 +0100 +Subject: ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h + +With compilers which follow the C99 standard (like modern versions of gcc and +clang), "extern inline" does the wrong thing (emits code for an externally +linkable version of the inline function). In this case using static inline +and removing the NULL version of return_address in return_address.c does +the right thing. + +Signed-off-by: Behan Webster <[email protected]> +Reviewed-by: Mark Charlebois <[email protected]> +Acked-by: Steven Rostedt <[email protected]> +Signed-off-by: Russell King <[email protected]> + +diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h +index 39eb16b..bfe2a2f 100644 +--- a/arch/arm/include/asm/ftrace.h ++++ b/arch/arm/include/asm/ftrace.h +@@ -45,7 +45,7 @@ void *return_address(unsigned int); + + #else + +-extern inline void *return_address(unsigned int level) ++static inline void *return_address(unsigned int level) + { + return NULL; + } +diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c +index fafedd8..f6aa84d 100644 +--- a/arch/arm/kernel/return_address.c ++++ b/arch/arm/kernel/return_address.c +@@ -63,11 +63,6 @@ void *return_address(unsigned int level) + #warning "TODO: return_address should use unwind tables" + #endif + +-void *return_address(unsigned int level) +-{ +- return NULL; +-} +- + #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */ + + EXPORT_SYMBOL_GPL(return_address); +-- +cgit v0.10.2 + +
recipes-kernel/linux/linux-variscite-3.14.28/0001-ARM-LLVMLinux-Change-extern-inline-to-static-inline.patch new file +58 -0
58 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/Set-dr_mode-to-otg.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 94daa3c228195488521c06e9df0ccb6c0399aa4e Mon Sep 17 00:00:00 2001 +From: Fabio Berton <[email protected]> +Date: Mon, 15 Feb 2016 11:31:39 -0200 +Subject: [PATCH] Set dr_mode to otg + +By default the OTG is configured to be "host". We need to switch dr_mode to +"otg", so OTG will work as device. + + +Signed-off-by: Fabio Berton <[email protected]> +--- + arch/arm/boot/dts/imx6qdl-var-som.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/imx6qdl-var-som.dtsi b/arch/arm/boot/dts/imx6qdl-var-som.dtsi +index 6ad3773..8fb1d7e 100755 +--- a/arch/arm/boot/dts/imx6qdl-var-som.dtsi ++++ b/arch/arm/boot/dts/imx6qdl-var-som.dtsi +@@ -971,7 +971,7 @@ + #ifdef VAR_SOM_SOLO_VSC + dr_mode = "otg" ; /* Use "host" if you would like to use the USB0 type A connector (host mode only on VAR-SOM-SOLO) */ + #else +- dr_mode = "host" ; ++ dr_mode = "otg" ; + #endif + status = "okay"; + }; +-- +2.1.4
recipes-kernel/linux/linux-variscite-3.14.28/arm-Export-cache-flush-management-symbols-when-multi-cache.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 07c2f624be197c5e1ee0d62f13327fea44446b90 Mon Sep 17 00:00:00 2001 +From: Pantelis Antoniou <[email protected]> +Date: Fri, 4 Jan 2013 00:32:33 +0200 +Subject: [PATCH] arm: Export cache flush management symbols when !MULTI_CACHE + +When compiling a kernel without CONFIG_MULTI_CACHE enabled the +dma access functions end up not being exported. Fix it. + +Signed-off-by: Pantelis Antoniou <[email protected]> +Signed-off-by: Otavio Salvador <[email protected]> +--- + arch/arm/kernel/setup.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c +index aab70f6..63b310c 100644 +--- a/arch/arm/kernel/setup.c ++++ b/arch/arm/kernel/setup.c +@@ -1089,3 +1089,12 @@ const struct seq_operations cpuinfo_op = { + .stop = c_stop, + .show = c_show + }; ++ ++/* export the cache management functions */ ++#ifndef MULTI_CACHE ++ ++EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area)); ++EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area)); ++EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range)); ++ ++#endif +
recipes-kernel/linux/linux-variscite-3.14.28/boundarydevices/0002-wlcore-add-initial-device-tree-support-to-the-sdio-m.patch new file +132 -0
132 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/boundarydevices/0003-wlcore-add-mac-override-parameter.patch new file +92 -0
92 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/defconfig new file +462 -0
462 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0001-wlcore-memset-wl-rx_filter_enabled-to-zero-after-rec.patch new file +88 -0
88 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0002-wlcore-cancel-Tx-watchdog-on-suspend-and-rearm-on-fi.patch new file +88 -0
88 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0003-wlcore-block-read-writes-to-FW-during-ELP.patch new file +46 -0
46 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0004-wlcore-AP-don-t-start-mac80211-PS-on-non-peer-HLIDs.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 7a536265b0b470893c13dc0f094e3078521818e2 Mon Sep 17 00:00:00 2001 +From: Arik Nemtsov <[email protected]> +Date: Mon, 10 Feb 2014 13:47:20 +0200 +Subject: [PATCH 04/18] wlcore: AP: don't start mac80211 PS on non-peer HLIDs + +It seems the wl18xx FW sometimes sends spurious changes on the PSM state +of the broadcast HLID. This causes us to search for a station on a +non-peer link and fail, causing warnings in our log. + +Prevent the driver from considering PSM changes for any non-peer HLIDs. + +Signed-off-by: Arik Nemtsov <[email protected]> +Signed-off-by: Eliad Peller <[email protected]> +Signed-off-by: John W. Linville <[email protected]> +--- + drivers/net/wireless/ti/wlcore/ps.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c +index 26bfc36..b52516e 100644 +--- a/drivers/net/wireless/ti/wlcore/ps.c ++++ b/drivers/net/wireless/ti/wlcore/ps.c +@@ -280,7 +280,11 @@ void wl12xx_ps_link_start(struct wl1271 *wl, struct wl12xx_vif *wlvif, + struct ieee80211_sta *sta; + struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif); + +- if (test_bit(hlid, &wl->ap_ps_map)) ++ if (WARN_ON_ONCE(wlvif->bss_type != BSS_TYPE_AP_BSS)) ++ return; ++ ++ if (!test_bit(hlid, wlvif->ap.sta_hlid_map) || ++ test_bit(hlid, &wl->ap_ps_map)) + return; + + wl1271_debug(DEBUG_PSM, "start mac80211 PSM on hlid %d pkts %d " +-- +1.9.3 +
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0005-wlcore-wl12xx-wl18xx-simplify-fw_status-handling.patch new file +763 -0
763 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0006-wlcore-wl12xx-wl18xx-configure-num_links-per-hw.patch new file +375 -0
375 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0007-wlcore-wl12xx-wl18xx-configure-max_stations-per-hw.patch new file +132 -0
132 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0008-wlcore-wl12xx-wl18xx-configure-iface_combinations-pe.patch new file +193 -0
193 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0009-wl18xx-move-to-new-firmware-wl18xx-fw-3.bin.patch new file +226 -0
226 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0010-wlcore-send-EAPOL-frames-with-voice-priority.patch new file +49 -0
49 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0011-wlcore-don-t-stop-sched_scan-on-interface-removal.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 5a441f5ff75daf9c3c6657a66e2806a1255f5b84 Mon Sep 17 00:00:00 2001 +From: Barak Bercovitz <[email protected]> +Date: Mon, 10 Feb 2014 13:47:27 +0200 +Subject: [PATCH 11/18] wlcore: don't stop sched_scan on interface removal + +Stopping sched scan on interface removal (during recovery) +is no longer needed, as sched scanning is automatically +restarted by mac80211. + +Signed-off-by: Barak Bercovitz <[email protected]> +Signed-off-by: Eliad Peller <[email protected]> +Signed-off-by: John W. Linville <[email protected]> +--- + drivers/net/wireless/ti/wlcore/main.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c +index 73bf251..bea2938 100644 +--- a/drivers/net/wireless/ti/wlcore/main.c ++++ b/drivers/net/wireless/ti/wlcore/main.c +@@ -2582,10 +2582,8 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl, + ieee80211_scan_completed(wl->hw, true); + } + +- if (wl->sched_vif == wlvif) { +- ieee80211_sched_scan_stopped(wl->hw); ++ if (wl->sched_vif == wlvif) + wl->sched_vif = NULL; +- } + + if (wl->roc_vif == vif) { + wl->roc_vif = NULL; +-- +1.9.3 +
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0012-wlcore-wl18xx-allow-CCK-rates-for-AP-mode.patch new file +61 -0
61 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0013-wlcore-don-t-handle-unsetting-of-default-wep-key.patch new file +38 -0
@@ -0,0 +1,38 @@ +From bf4e5f1ac0e2b277424ec0d035b1fbab46dd66bb Mon Sep 17 00:00:00 2001 +From: Eliad Peller <[email protected]> +Date: Mon, 10 Feb 2014 13:47:29 +0200 +Subject: [PATCH 13/18] wlcore: don't handle unsetting of default wep key + +mac80211 unsets the default wep key on disassoc. +The fw doesn't support this notification, so simply +ignore it. + +The actual flow actually triggers fw recovery in some +cases, as mac80211 unsets the default key only after +disassoc, when wlvif->sta.hlid, resulting in invalid +hlid being passed to the fw. + +Signed-off-by: Eliad Peller <[email protected]> +Signed-off-by: John W. Linville <[email protected]> +--- + drivers/net/wireless/ti/wlcore/main.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c +index bea2938..d80d40c 100644 +--- a/drivers/net/wireless/ti/wlcore/main.c ++++ b/drivers/net/wireless/ti/wlcore/main.c +@@ -3472,6 +3472,10 @@ static void wl1271_op_set_default_key_idx(struct ieee80211_hw *hw, + wl1271_debug(DEBUG_MAC80211, "mac80211 set default key idx %d", + key_idx); + ++ /* we don't handle unsetting of default key */ ++ if (key_idx == -1) ++ return; ++ + mutex_lock(&wl->mutex); + + if (unlikely(wl->state != WLCORE_STATE_ON)) { +-- +1.9.3 +
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0014-wlcore-consider-multiple-APs-when-checking-active_li.patch new file +64 -0
14 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0015-wlcore-decrease-warning-verbosity-during-recovery.patch new file +54 -0
54 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0016-wlcore-increase-timeout-to-5000-msecs.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0017-wlcore-enable-beacon-filtering-only-after-receiving-.patch new file +86 -0
86 lines not on this page · raw message
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0018-wlcore-add-support-for-STA-CSA-with-chan-contexts.patch new file +32 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0019-wlcore-use-correct-LAA-bit.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-variscite-3.14.28/upstream-backport/wifi/0020-wlcore-fix-copy-paste-bug-assign-from-src-struct-not.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes-kernel/linux/linux-variscite_3.14.28.bb new file +46 -0
46 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.1.4
Part of the diff is not shown here. View the raw message.
PATCH v3 2/4 u-boot-variscite: Add u-boot recipe for variscite
--- ...x-compiler-gcc5.h-to-fix-builds-with-gcc5.patch | 94 ++++++++++++++++++++++ .../0002-ARM-asm-io.h-use-static-inline.patch | 74 +++++++++++++++++ .../0003-gcc5-no-unalligned-access.patch | 19 +++++ ...2-gcc5-use_gcc_inline_version_instead_c99.patch | 57 +++++++++++++ recipes-bsp/u-boot/u-boot-variscite_2013.10.bb | 28 +++++++ 5 files changed, 272 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-variscite-2013.10/0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch create mode 100644 recipes-bsp/u-boot/u-boot-variscite-2013.10/0002-ARM-asm-io.h-use-static-inline.patch create mode 100644 recipes-bsp/u-boot/u-boot-variscite-2013.10/0003-gcc5-no-unalligned-access.patch create mode 100644 recipes-bsp/u-boot/u-boot-variscite-2013.10/u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch create mode 100644 recipes-bsp/u-boot/u-boot-variscite_2013.10.bb
recipes-bsp/u-boot/u-boot-variscite-2013.10/0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch new file +94 -0
@@ -0,0 +1,94 @@ +From 9012ad08ed7615cf0afaf8fab631239c0f148889 Mon Sep 17 00:00:00 2001 +From: Hans de Goede <[email protected]> +Date: Sat, 7 Feb 2015 22:52:40 +0100 +Subject: [PATCH 1/2] Add linux/compiler-gcc5.h to fix builds with gcc5 +Organization: O.S. Systems Software LTDA. + +Add linux/compiler-gcc5/h from the kernel sources at: + +commit 5631b8fba640a4ab2f8a954f63a603fa34eda96b +Author: Steven Noonan <[email protected]> +Date: Sat Oct 25 15:09:42 2014 -0700 + + compiler/gcc4+: Remove inaccurate comment about 'asm goto' miscompiles + +Signed-off-by: Hans de Goede <[email protected]> +--- + include/linux/compiler-gcc5.h | 65 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 65 insertions(+) + create mode 100644 include/linux/compiler-gcc5.h + +diff --git a/include/linux/compiler-gcc5.h b/include/linux/compiler-gcc5.h +new file mode 100644 +index 0000000..c8c5659 +--- /dev/null ++++ b/include/linux/compiler-gcc5.h +@@ -0,0 +1,65 @@ ++#ifndef __LINUX_COMPILER_H ++#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead." ++#endif ++ ++#define __used __attribute__((__used__)) ++#define __must_check __attribute__((warn_unused_result)) ++#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) ++ ++/* Mark functions as cold. gcc will assume any path leading to a call ++ to them will be unlikely. This means a lot of manual unlikely()s ++ are unnecessary now for any paths leading to the usual suspects ++ like BUG(), printk(), panic() etc. [but let's keep them for now for ++ older compilers] ++ ++ Early snapshots of gcc 4.3 don't support this and we can't detect this ++ in the preprocessor, but we can live with this because they're unreleased. ++ Maketime probing would be overkill here. ++ ++ gcc also has a __attribute__((__hot__)) to move hot functions into ++ a special section, but I don't see any sense in this right now in ++ the kernel context */ ++#define __cold __attribute__((__cold__)) ++ ++#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) ++ ++#ifndef __CHECKER__ ++# define __compiletime_warning(message) __attribute__((warning(message))) ++# define __compiletime_error(message) __attribute__((error(message))) ++#endif /* __CHECKER__ */ ++ ++/* ++ * Mark a position in code as unreachable. This can be used to ++ * suppress control flow warnings after asm blocks that transfer ++ * control elsewhere. ++ * ++ * Early snapshots of gcc 4.5 don't support this and we can't detect ++ * this in the preprocessor, but we can live with this because they're ++ * unreleased. Really, we need to have autoconf for the kernel. ++ */ ++#define unreachable() __builtin_unreachable() ++ ++/* Mark a function definition as prohibited from being cloned. */ ++#define __noclone __attribute__((__noclone__)) ++ ++/* ++ * Tell the optimizer that something else uses this function or variable. ++ */ ++#define __visible __attribute__((externally_visible)) ++ ++/* ++ * GCC 'asm goto' miscompiles certain code sequences: ++ * ++ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 ++ * ++ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. ++ * ++ * (asm goto is automatically volatile - the naming reflects this.) ++ */ ++#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) ++ ++#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP ++#define __HAVE_BUILTIN_BSWAP32__ ++#define __HAVE_BUILTIN_BSWAP64__ ++#define __HAVE_BUILTIN_BSWAP16__ ++#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ +-- +2.7.0 +
recipes-bsp/u-boot/u-boot-variscite-2013.10/0002-ARM-asm-io.h-use-static-inline.patch new file +74 -0
74 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-variscite-2013.10/0003-gcc5-no-unalligned-access.patch new file +19 -0
@@ -0,0 +1,19 @@ +from https://raw.githubusercontent.com/schnitzeltony/meta-gumstix-community/master/recipes-bsp/u-boot/u-boot-overo/0013-arm-Switch-to-mno-unaligned-access-when-supported-by.patch + +--- a/arch/arm/cpu/armv7/config.mk 2015-11-22 20:44:42.744557427 +0100 ++++ b/arch/arm/cpu/armv7/config.mk 2015-11-22 20:45:26.381024395 +0100 +@@ -18,9 +18,12 @@ PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7 + PF_RELFLAGS_SLB_AT := $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) + PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) + +-# SEE README.arm-unaligned-accesses ++# On supported platforms we set the bit which causes us to trap on unaligned ++# memory access. This is the opposite of what the compiler expects to be ++# the default so we must pass in -mno-unaligned-access so that it is aware ++# of our decision. + PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) +-PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED) ++PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED) + + ifneq ($(CONFIG_IMX_CONFIG),) + ifdef CONFIG_SPL
recipes-bsp/u-boot/u-boot-variscite-2013.10/u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch new file +57 -0
57 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +28 -0
@@ -0,0 +1,28 @@ +require recipes-bsp/u-boot/u-boot.inc + +DESCRIPTION = "bootloader for imx platforms" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +COMPATIBLE_MACHINE = "(mxs|mx6)" + +PROVIDES += "u-boot" + +UBOOT_MAKE_TARGET = "all" +UBOOT_SUFFIX = "img" + +SPL_BINARY = "SPL" + +SRCREV = "a2bb081c08f8e18cee3ffbf577adb9bdb7d5a6f9" +SRCBRANCH = "imx_v2013.10_var4" + +SRC_URI = "\ + git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH} \ + file://u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch \ + file://0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch \ + file://0002-ARM-asm-io.h-use-static-inline.patch \ + file://0003-gcc5-no-unalligned-access.patch \ +" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
2.1.4
Re: [meta-fsl-arm-extra][PATCH v3 2/4] u-boot-variscite: Add u-boot recipe for variscite
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb line 3
Quoted 11 lines · Fabio Berton
Signed-off-by Fabio Berton <[email protected]>recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +3
-0@@ -0,0 +1,28 @@ +require recipes-bsp/u-boot/u-boot.inc + +DESCRIPTION = "bootloader for imx platforms"
Please, change the DESCRIPTION. It's not "bootloader for imx platforms" as its target is only variscite boards.
Take a look in the other u-boot recipes to get some inspirations to write this description.
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb line 10
Quoted 7 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +7
-0+LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" +COMPATIBLE_MACHINE = "(mxs|mx6)" + +PROVIDES += "u-boot" + +UBOOT_MAKE_TARGET = "all"
I'm not sure you need or want to set UBOOT_MAKE_TARGET to all. u-boot-inc already set this with override possibility.
For the other boards we use to define UBOOT_MAKE_TARGET in the machine conf file instead.
Quoted 18 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +18
-0+UBOOT_SUFFIX = "img" + +SPL_BINARY = "SPL" + +SRCREV = "a2bb081c08f8e18cee3ffbf577adb9bdb7d5a6f9" +SRCBRANCH = "imx_v2013.10_var4" + +SRC_URI = "\ + git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH} \ + file://u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch \ + file://0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch \ + file://0002-ARM-asm-io.h-use-static-inline.patch \ + file://0003-gcc5-no-unalligned-access.patch \ +" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}"
Re: [meta-fsl-arm-extra][PATCH v3 2/4] u-boot-variscite: Add u-boot recipe for variscite
Hi Daiane,
I need to set UBOOT_MAKE_TARGET to all, it doesn't call the all target by default.
I'll move UBOOT_MAKE_TARGET to machine conf file and send v4
Quoted 58 lines · Daiane Angolini
Review
Quoted 3 lines · Fabio Berton
Signed-off-by Fabio Berton <[email protected]>(quoted diff) +0
-0b/recipes-bsp/u-boot/u-boot-variscite_2013.10.bb
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb line 3
Quoted 8 lines
new file mode 100644
index 0000000..1c07058recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +3
-0@@ -0,0 +1,28 @@ +require recipes-bsp/u-boot/u-boot.inc + +DESCRIPTION = "bootloader for imx platforms"Please, change the DESCRIPTION. It's not "bootloader for imx platforms" as its target is only variscite boards.
Take a look in the other u-boot recipes to get some inspirations to write this description.
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb line 5
Quoted 2 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +2
-0+LICENSE = "GPLv2+" +LIC_FILES_CHKSUM ="file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb line 10
Quoted 5 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +5
-0+COMPATIBLE_MACHINE = "(mxs|mx6)" + +PROVIDES += "u-boot" + +UBOOT_MAKE_TARGET = "all"I'm not sure you need or want to set
UBOOT_MAKE_TARGETto all. u-boot-inc already set this with override possibility.For the other boards we use to define
UBOOT_MAKE_TARGETin the machine conf file instead.recipes-bsp/u-boot/u-boot-variscite_2013.10.bb
Quoted 9 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +9
-0+UBOOT_SUFFIX = "img" + +SPL_BINARY = "SPL" + +SRCREV = "a2bb081c08f8e18cee3ffbf577adb9bdb7d5a6f9" +SRCBRANCH = "imx_v2013.10_var4" + +SRC_URI = "\ + git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH} \
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb line 21
Quoted 2 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +2
-0+ file://u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch \ + file://0001-Add-linux-compiler-gcc5.h-to-fix-builds-with-gcc5.patch\
Quoted 7 lines
recipes-bsp/u-boot/u-boot-variscite_2013.10.bb new file +7
-0+ file://0002-ARM-asm-io.h-use-static-inline.patch \ + file://0003-gcc5-no-unalligned-access.patch \ +" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}"
PATCH v3 3/4 imx6qdl-variscite-som: Add machine configuration
In reply to Fabio BertonThe VAR-SOM-MX6 board includes the following key features:
- Freescale i.MX6 1.2GHz quad/dual/single core Cortex-A9
- 2GB DDR3 , 1GB SLC NAND Flash
- Full HD 1080p video encoding/decoding capability
- Vivante GPU providing 2D/3D acceleration
- Simultaneous multiple display support
- Gigabit Ethernet
- TI WiLink™ 6.0 single-chip connectivity solution (Wi-Fi, Bluetooth®)
- PCI-Express 2.0, S-ATA 3.0
- Camera interface
- USB 2.0: Host, OTG
- Audio In/Out
- Dual CAN Bus
For more information about this product, please visit:
http://www.variscite.com/products/system-on-module-som/cortex-a9/var-som-mx6-cpu-freescale-imx6
--- conf/machine/imx6qdl-variscite-som.conf | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 conf/machine/imx6qdl-variscite-som.conf
conf/machine/imx6qdl-variscite-som.conf new file +39 -0
@@ -0,0 +1,39 @@ +#@TYPE: Machine +#@NAME: Variscite i.MX6Q/DL VAR-SOM-MX6 +#@SOC: i.MX6Q/DL +#@DESCRIPTION: Machine configuration for Variscite i.MX6Q/DL VAR-SOM-MX6 + +require conf/machine/include/imx-base.inc +require conf/machine/include/tune-cortexa9.inc + +SOC_FAMILY = "mx6:mx6q:mx6dl" + +PREFERRED_PROVIDER_virtual/kernel = "linux-variscite" +KERNEL_DEVICETREE = "imx6q-var-som.dtb imx6dl-var-som.dtb imx6dl-var-som-solo.dtb" +KERNEL_IMAGETYPE = "uImage" + +UBOOT_SUFFIX_SDCARD = "img" +UBOOT_SPL_BUILD = "yes" + +PREFERRED_PROVIDER_virtual/bootloader = "u-boot-variscite" +PREFERRED_PROVIDER_u-boot = "u-boot-variscite" + +UBOOT_CONFIG ??= "nand sd" +UBOOT_CONFIG[sd] = "mx6var_som_sd_config,sdcard" +UBOOT_CONFIG[nand] = "mx6var_som_nand_config,ubifs" + +SPL_BINARY = "SPL" + +## NAND 512MB +UBI_ROOT_FS_NAME = "[rootfs]" +UBI_VOLNAME = "rootfs" +MKUBIFS_ARGS = " -m 2048 -e 124KiB -c 3965 -F " +UBINIZE_ARGS = " -m 2048 -p 128KiB -s 2048 -O 2048 " + +SERIAL_CONSOLE = "115200 ttymxc0" + +USE_VT = "0" + +MACHINE_FIRMWARE_append = " linux-firmware-wl18xx" + +MACHINE_FEATURES += " pci bluetooth touchscreen wifi"
Signature · 1 line
2.1.4
Re: [meta-fsl-arm-extra][PATCH v3 3/4] imx6qdl-variscite-som: Add machine configuration
Quoted 30 lines · Fabio Berton
The VAR-SOM-MX6 board includes the following key features:
- Freescale i.MX6 1.2GHz quad/dual/single core Cortex-A9
- 2GB DDR3 , 1GB SLC NAND Flash
- Full HD 1080p video encoding/decoding capability
- Vivante GPU providing 2D/3D acceleration
- Simultaneous multiple display support
- Gigabit Ethernet
- TI WiLink™ 6.0 single-chip connectivity solution (Wi-Fi, Bluetooth®)
- PCI-Express 2.0, S-ATA 3.0
- Camera interface
- USB 2.0: Host, OTG
- Audio In/Out
- Dual CAN BusFor more information about this product, please visit:
http://www.variscite.com/products/system-on-module-som/cortex-a9/var-som-mx6-cpu-freescale-imx6Signed-off-by Fabio Berton <[email protected]>--- conf/machine/imx6qdl-variscite-som.conf | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 conf/machine/imx6qdl-variscite-som.confconf/machine/imx6qdl-variscite-som.conf new file +0
-0
conf/machine/imx6qdl-variscite-som.conf line 4
Quoted 4 lines
conf/machine/imx6qdl-variscite-som.conf new file +4
-0@@ -0,0 +1,39 @@ +#@TYPE: Machine +#@NAME: Variscite i.MX6Q/DL VAR-SOM-MX6 +#@SOC: i.MX6Q/DL +#@DESCRIPTION: Machine configuration for Variscite i.MX6Q/DL VAR-SOM-MX6
Maintainer is missing
PATCH v3 4/4 linux-firmware: Add TIInit_11.8.32 WiLink8 firmware
In reply to Fabio BertonTIInit_11.8.32 is required for bluetooth support on WiLink8 module from Texas Instruments.
--- recipes-kernel/linux-firmware/linux-firmware_git.bbappend | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 recipes-kernel/linux-firmware/linux-firmware_git.bbappend
recipes-kernel/linux-firmware/linux-firmware_git.bbappend new file +15 -0
@@ -0,0 +1,15 @@ +# Support additional firmware for WiLink8 modules +# TIInit_11.8.32.bts is required for bluetooth support but this particular +# version is not available in the linux-firmware repository. +# +SRC_URI_append_imx6qdl-variscite-som = "\ + https://git.ti.com/ti-bt/service-packs/blobs/raw/5f73abe7c03631bb2596af27e41a94abcc70b009/initscripts/TIInit_11.8.32.bts;name=TIInit_11.8.32 \ +" +SRC_URI[TIInit_11.8.32.md5sum] = "a76788680905c30979038f9e6aa407f3" +SRC_URI[TIInit_11.8.32.sha256sum] = "26ab0608e39fab95a6a55070c2f8364c92aad34442e8349abda71cee4da3277a" + +do_install_append_imx6qdl-variscite-som() { + cp ${WORKDIR}/TIInit_11.8.32.bts ${D}/lib/firmware/ti-connectivity/ +} + +PACKAGE_ARCH_imx6qdl-variscite-som = "${MACHINE_ARCH}"
Signature · 1 line
2.1.4