Re: Improving NPM recipe build speed
Alessandro Tagliapietra
Hi Nicolas, Thank you for the advice, that would work for files outside the npm packages! Hopefully there's a way to improve npm install speed too, I was hoping there was a way to just run npm install instead of going through the yocto npm process (which takes 30 mins vs < 1 min that npm takesi -- Alessandro Tagliapietra
On Mon, May 10, 2021 at 2:18 AM Nicolas Jeker <n.jeker@...> wrote: On Mon, 2021-04-26 at 16:29 -0700, Alessandro Tagliapietra wrote:
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH] trusted-firmware-a: Fix rk3399 build with gcc11
Signed-off-by: Khem Raj <raj.khem@...>
Cc: Ross Burton <ross.burton@...> --- .../files/0001-Fix-build-with-gcc-11.patch | 34 ++++++++++++++++++ .../0001-dram-Fix-build-with-gcc-11.patch | 34 ++++++++++++++++++ ...-Use-compatible-.asciz-asm-directive.patch | 31 ++++++++++++++++ ...rk-already-defined-functions-as-weak.patch | 35 +++++++++++++++++++ .../trusted-firmware-a_%.bbappend | 4 +++ 5 files changed, 138 insertions(+) create mode 100644 recipes-bsp/trusted-firmware-a/files/0001-Fix-build-with-gcc-11.patch create mode 100644 recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch create mode 100644 recipes-bsp/trusted-firmware-a/files/0001-plat_macros.S-Use-compatible-.asciz-asm-directive.patch create mode 100644 recipes-bsp/trusted-firmware-a/files/0001-pmu-Do-not-mark-already-defined-functions-as-weak.patch diff --git a/recipes-bsp/trusted-firmware-a/files/0001-Fix-build-with-gcc-11.patch b/recipes-bsp/trusted-firmware-a/files/0001-Fix-build-with-gcc-11.patch new file mode 100644 index 0000000..7956717 --- /dev/null +++ b/recipes-bsp/trusted-firmware-a/files/0001-Fix-build-with-gcc-11.patch @@ -0,0 +1,34 @@ +From d4c60a312271e000e8339f0b47a302c325313758 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@...> +Date: Tue, 11 May 2021 11:46:30 -0700 +Subject: [PATCH] Fix build with gcc 11 + +Fixes +plat/rockchip/rk3399/drivers/dram/dram.c:13:22: error: ignoring attribute 'section (".pmusram.data")' because it conflicts with previous 'section (".sram.data")' [-Werror=attributes] + +See [1] + +[1] https://developer.trustedfirmware.org/T925 + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@...> +--- + plat/rockchip/rk3399/drivers/dram/dram.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plat/rockchip/rk3399/drivers/dram/dram.h b/plat/rockchip/rk3399/drivers/dram/dram.h +index 0eb12cf29..5572b1612 100644 +--- a/plat/rockchip/rk3399/drivers/dram/dram.h ++++ b/plat/rockchip/rk3399/drivers/dram/dram.h +@@ -149,7 +149,7 @@ struct rk3399_sdram_params { + uint32_t rx_cal_dqs[2][4]; + }; + +-extern __sramdata struct rk3399_sdram_params sdram_config; ++extern struct rk3399_sdram_params sdram_config; + + void dram_init(void); + +-- +2.31.1 + diff --git a/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch b/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch new file mode 100644 index 0000000..14defed --- /dev/null +++ b/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch @@ -0,0 +1,34 @@ +From a09a1de53aba422249a8376b0d95024200021317 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@...> +Date: Tue, 11 May 2021 11:55:31 -0700 +Subject: [PATCH] dram: Fix build with gcc 11 + +This is a redundant assignment which GCC warns about. + +Fixes + +plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c:781:11: error: explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself [-Werror,-Wself-assign] + twr_tmp = twr_tmp; + ~~~~~~~ ^ ~~~~~~~ + +Signed-off-by: Khem Raj <raj.khem@...> +--- + plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c b/plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c +index 3cdb7a296..76bc5ee96 100644 +--- a/plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c ++++ b/plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c +@@ -778,7 +778,7 @@ static void lpddr3_get_parameter(struct timing_related_config *timing_config, + else if (twr_tmp <= 8) + twr_tmp = 8; + else if (twr_tmp <= 12) +- twr_tmp = twr_tmp; ++ ; /* do nothing */ + else if (twr_tmp <= 14) + twr_tmp = 14; + else +-- +2.31.1 + diff --git a/recipes-bsp/trusted-firmware-a/files/0001-plat_macros.S-Use-compatible-.asciz-asm-directive.patch b/recipes-bsp/trusted-firmware-a/files/0001-plat_macros.S-Use-compatible-.asciz-asm-directive.patch new file mode 100644 index 0000000..8807fca --- /dev/null +++ b/recipes-bsp/trusted-firmware-a/files/0001-plat_macros.S-Use-compatible-.asciz-asm-directive.patch @@ -0,0 +1,31 @@ +From 5f78ce7eb9ab6bf5af682a715a9264d2a5ee7666 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@...> +Date: Tue, 11 May 2021 12:06:34 -0700 +Subject: [PATCH] plat_macros.S: Use compatible .asciz asm directive + +clang asm does not like two strings to .asciz therefore make it single +string which works on clang too. + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@...> +--- + plat/rockchip/common/include/plat_macros.S | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/plat/rockchip/common/include/plat_macros.S b/plat/rockchip/common/include/plat_macros.S +index 691beeb44..c07be9ca9 100644 +--- a/plat/rockchip/common/include/plat_macros.S ++++ b/plat/rockchip/common/include/plat_macros.S +@@ -23,8 +23,7 @@ icc_regs: + + /* Registers common to both GICv2 and GICv3 */ + gicd_pend_reg: +- .asciz "gicd_ispendr regs (Offsets 0x200 - 0x278)\n" \ +- " Offset:\t\t\tvalue\n" ++ .asciz "gicd_ispendr regs (Offsets 0x200 - 0x278)\n Offset:\t\t\tvalue\n" + newline: + .asciz "\n" + spacer: +-- +2.31.1 + diff --git a/recipes-bsp/trusted-firmware-a/files/0001-pmu-Do-not-mark-already-defined-functions-as-weak.patch b/recipes-bsp/trusted-firmware-a/files/0001-pmu-Do-not-mark-already-defined-functions-as-weak.patch new file mode 100644 index 0000000..bd4d2b5 --- /dev/null +++ b/recipes-bsp/trusted-firmware-a/files/0001-pmu-Do-not-mark-already-defined-functions-as-weak.patch @@ -0,0 +1,35 @@ +From 9d963cd69faf94bdcb80624132fd10392f57875b Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@...> +Date: Tue, 11 May 2021 12:11:51 -0700 +Subject: [PATCH] pmu: Do not mark already defined functions as weak + +These functions are already defined as static functions in same header +Fixes + +| plat/rockchip/common/drivers/pmu/pmu_com.h:35:14: error: weak identifier 'pmu_power_domain_ctr' never declared [-Werror] | #pragma weak pmu_power_domain_ctr | ^ +| plat/rockchip/common/drivers/pmu/pmu_com.h:36:14: error: weak identifier 'check_cpu_wfie' never declared [-Werror] +| #pragma weak check_cpu_wfie +| ^ + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@...> +--- + plat/rockchip/common/drivers/pmu/pmu_com.h | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/plat/rockchip/common/drivers/pmu/pmu_com.h b/plat/rockchip/common/drivers/pmu/pmu_com.h +index 5359f73b4..3f9ce7df9 100644 +--- a/plat/rockchip/common/drivers/pmu/pmu_com.h ++++ b/plat/rockchip/common/drivers/pmu/pmu_com.h +@@ -32,8 +32,6 @@ enum pmu_pd_state { + }; + + #pragma weak plat_ic_get_pending_interrupt_id +-#pragma weak pmu_power_domain_ctr +-#pragma weak check_cpu_wfie + + static inline uint32_t pmu_power_domain_st(uint32_t pd) + { +-- +2.31.1 + diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend index 1942c17..c90673e 100644 --- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend @@ -8,4 +8,8 @@ COMPATIBLE_MACHINE_append_rk3328 = "|rk3328" FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "\ file://serial-console-baudrate.patch \ + file://0001-Fix-build-with-gcc-11.patch \ + file://0001-dram-Fix-build-with-gcc-11.patch \ + file://0001-plat_macros.S-Use-compatible-.asciz-asm-directive.patch \ + file://0001-pmu-Do-not-mark-already-defined-functions-as-weak.patch \ " -- 2.31.1
|
||||||||||||
|
||||||||||||
Konrad Weihmann <kweihmann@...>
On 11.05.21 18:14, Bel Hadj Salem Talel wrote:
Hi All,According to [1] yes - you might want to consider back porting one of the more recent versions of numpy from [2], as you are using a pretty outdated one [1] https://stackoverflow.com/questions/54665842/when-importing-tensorflow-i-get-the-following-error-no-module-named-numpy-cor [2] http://layers.openembedded.org/layerindex/recipe/51338/ Also the github issue tracker of numpy contains at least one issue of the same sort Thanks,
|
||||||||||||
|
||||||||||||
Bel Hadj Salem Talel <bhstalel@...>
Hi All,
I integrated python3-numpy in my image and when trying to import it I get this error: (python3 version: 3.7.7) ------ >>> import cv2
OpenCV bindings requires "numpy" package.
Install it via command:
pip install numpy
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py", line 17, in <module>
from . import multiarray
File "/usr/lib/python3.7/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/usr/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/cv2/__init__.py", line 8, in <module>
import numpy
File "/usr/lib/python3.7/site-packages/numpy/__init__.py", line 142, in <module>
root@menzu-media:~# python3
Python 3.7.7 (default, Apr 22 2021, 09:42:29)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
OpenCV bindings requires "numpy" package.
Install it via command:
pip install numpy
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py", line 17, in <module>
from . import multiarray
File "/usr/lib/python3.7/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/usr/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/cv2/__init__.py", line 8, in <module>
import numpy
File "/usr/lib/python3.7/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/usr/lib/python3.7/site-packages/numpy/core/__init__.py", line 47, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.7 from "/usr/bin/python3",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.17.0" you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.
Original error was: No module named 'numpy.core._multiarray_umath' ---------- Did any one encounter this issue? Thanks, Talel
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 6/6] WIP NanoPi-M4: activate BT support
Yann Dirson
From: Yann Dirson <yann@...>
Take the firmware from rbwifibt, as a compatible one does not seem to be available in broadcom-bt-firmware. Disclaimer: I have only been able to scan/pair with devices, I could not establish a connection. However, with the same board I've had the same results with the board vendor's own FriendlyCore image. --- conf/machine/include/nanopi-m4.inc | 6 +++++- recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/machine/include/nanopi-m4.inc b/conf/machine/include/na= nopi-m4.inc index cb27928..3bd5c97 100644 --- a/conf/machine/include/nanopi-m4.inc +++ b/conf/machine/include/nanopi-m4.inc @@ -3,7 +3,7 @@ =20 require rk3399.inc =20 -MACHINE_FEATURES +=3D "usbhost serial wifi" +MACHINE_FEATURES +=3D "usbhost serial wifi bluetooth" =20 KMACHINE =3D "nanopi-m4" KERNEL_DEVICETREE =3D "rockchip/rk3399-nanopi-m4.dtb" @@ -26,3 +26,7 @@ SERIAL_CONSOLES =3D "1500000;ttyS2" =20 # wifi firmware MACHINE_EXTRA_RRECOMMENDS +=3D "linux-firmware-bcm4356" + +# bluetooth firmware +#MACHINE_EXTRA_RRECOMMENDS +=3D "broadcom-bt-firmware-bcm4356a2" +MACHINE_EXTRA_RRECOMMENDS +=3D "rkwifibt-firmware-ap6356-bt" diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg b/reci= pes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg index d42b744..d45e879 100644 --- a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg +++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg @@ -14,3 +14,9 @@ CONFIG_REALTEK_PHY=3Dm CONFIG_WLAN_VENDOR_BROADCOM=3Dy CONFIG_BRCMFMAC=3Dm CONFIG_BRCMFMAC_SDIO=3Dy + +# AP6356S BT +CONFIG_BT_HCIUART=3Dm +CONFIG_SERIAL_DEV_BUS=3Dy +CONFIG_SERIAL_DEV_CTRL_TTYPORT=3Dy +CONFIG_BT_HCIUART_BCM=3Dy --=20 2.30.2
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 5/6] WIP Import rkwifibt-firmware from vendor's meta-rockchip
Yann Dirson
From: Yann Dirson <yann@...>
As far as the AP6356S in NanoPi-m4 is concerned, the included wifi firmwa= re is for Rockchip's kernel tree, but for Bluetooth firmware this seems to b= e the proper "upstream" package. Changes from Rockchip's version: - use /lib/firmware/brcm/, not /system/etc/firmware/ - include LICENSE.rockchip in package tree The chip powers on: [ 4.695193] Bluetooth: hci0: BCM: chip id 101 [ 4.696142] Bluetooth: hci0: BCM: features 0x2f [ 4.697882] Bluetooth: hci0: BCM4354A2 [ 4.698345] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0000 [ 4.701994] Bluetooth: hci0: BCM4356A2 'brcm/BCM4356A2.hcd' Patch [ 5.464146] Bluetooth: hci0: BCM4356 37.4MHz AMPAK AP6356-0055 [ 5.464813] Bluetooth: hci0: BCM4356A2 (001.003.015) build 0266 It is able to pair with devices, but connect fails. --- .../rkwifibt-firmware/files/LICENSE.rockchip | 41 +++++++ .../rkwifibt-firmware/rkwifibt-firmware.bb | 110 ++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 recipes-kernel/rkwifibt-firmware/files/LICENSE.rockch= ip create mode 100644 recipes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb diff --git a/recipes-kernel/rkwifibt-firmware/files/LICENSE.rockchip b/re= cipes-kernel/rkwifibt-firmware/files/LICENSE.rockchip new file mode 100644 index 0000000..69b445b --- /dev/null +++ b/recipes-kernel/rkwifibt-firmware/files/LICENSE.rockchip @@ -0,0 +1,41 @@ +Copyright (c) 2020, Rockchip Electronics Co.Ltd +All rights reserved. + +Redistribution. Redistribution and use in binary form, without +modification, are permitted provided that the following conditions are +met: + +* Redistributions must reproduce the above copyright notice and the + following disclaimer in the documentation and/or other materials + provided with the distribution. + +* Neither the name of Rockchip Electronics Co.Ltd, its products + nor the names of its suppliers may be used to endorse or promote produ= cts + derived from this Software without specific prior written permission. + +* No reverse engineering, decompilation, or disassembly of this software + is permitted. + +Limited patent license. Rockchip Electronics Co.Ltd grants a world-wide, +royalty-free, non-exclusive license under patents it now or hereafter +owns or controls to make, have made, use, import, offer to sell and +sell ("Utilize") this software, but solely to the extent that any +such patent is necessary to Utilize the software alone, or in +combination with an operating system licensed under an approved Open +Source license as listed by the Open Source Initiative at +http://opensource.org/licenses. The patent license shall not apply to +any other combinations which include this software. No hardware per +se is licensed hereunder. + +DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/recipes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb b/reci= pes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb new file mode 100644 index 0000000..870177b --- /dev/null +++ b/recipes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb @@ -0,0 +1,110 @@ +# Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY =3D "Rockchip WIFI/BT firmware files" +SECTION =3D "kernel" + +LICENSE =3D "LICENSE.rockchip" +LIC_FILES_CHKSUM =3D "file://LICENSE.rockchip;md5=3Dd63890e209bf038f44e7= 08bbb13e4ed9" + +PV_append =3D "+git${SRCPV}" + +SRCREV =3D "af2cf8772078b0246ac805e7ed78a62cf8f21993" +SRC_URI =3D " \ + git://github.com/rockchip-linux/rkwifibt.git \ + file://LICENSE.rockchip;subdir=3Dgit \ +" +#SRC_URI =3D "git://github.com/JeffyCN/mirrors.git;branch=3Drkwifibt;" + +S =3D "${WORKDIR}/git" + +inherit allarch deploy + +do_install() { + install -d ${D}/lib/firmware/brcm/ + install -m 0644 ${S}/firmware/broadcom/all/*/* \ + -t ${D}/lib/firmware/brcm/ + install -d ${D}/lib/firmware/rtlbt/ + install -m 0644 ${S}/realtek/RTL*/* -t ${D}/lib/firmware/rtlbt/ +} + +PACKAGES =3D+ " \ + ${PN}-ap6181-wifi \ + ${PN}-ap6212a1-wifi \ + ${PN}-ap6212a1-bt \ + ${PN}-ap6236-wifi \ + ${PN}-ap6236-bt \ + ${PN}-ap6255-wifi \ + ${PN}-ap6255-bt \ + ${PN}-ap6354-wifi \ + ${PN}-ap6354-bt \ + ${PN}-ap6356-wifi \ + ${PN}-ap6356-bt \ + ${PN}-rtl8723ds-bt \ +" + +FILES_${PN}-ap6181-wifi =3D " \ + lib/firmware/brcm/fw_bcm40181a2_apsta.bin \ + lib/firmware/brcm/fw_bcm40181a2.bin \ + lib/firmware/brcm/nvram_ap6181.txt \ +" + +FILES_${PN}-ap6212a1-wifi =3D " \ + lib/firmware/brcm/fw_bcm43438a1_apsta.bin \ + lib/firmware/brcm/fw_bcm43438a1.bin \ + lib/firmware/brcm/nvram_ap6212a.txt \ +" +FILES_${PN}-ap6212a1-bt =3D " \ + lib/firmware/brcm/bcm43438a1.hcd \ +" + +FILES_${PN}-ap6236-wifi =3D " \ + lib/firmware/brcm/fw_bcm43436b0_apsta.bin \ + lib/firmware/brcm/fw_bcm43436b0.bin \ + lib/firmware/brcm/nvram_ap6236.txt \ +" +FILES_${PN}-ap6236-bt =3D " \ + lib/firmware/brcm/BCM4343B0.hcd \ +" + +FILES_${PN}-ap6255-wifi =3D " \ + lib/firmware/brcm/fw_bcm43455c0_ag.bin \ + lib/firmware/brcm/nvram_ap6255.txt \ +" +FILES_${PN}-ap6255-bt =3D " \ + lib/firmware/brcm/BCM4345C0_ap.hcd \ + lib/firmware/brcm/BCM4345C0.hcd \ +" + +FILES_${PN}-ap6354-wifi =3D " \ + lib/firmware/brcm/fw_bcm4354a1_ag.bin \ + lib/firmware/brcm/nvram_ap6354.txt \ +" +FILES_${PN}-ap6354-bt =3D " \ + lib/firmware/brcm/bcm4354a1.hcd \ +" + +FILES_${PN}-ap6356-wifi =3D " \ + lib/firmware/brcm/fw_bcm4356a2_ag.bin \ + lib/firmware/brcm/nvram_ap6356.txt \ + lib/firmware/brcm/nvram_ap6356s.txt \ +" +FILES_${PN}-ap6356-bt =3D " \ + lib/firmware/brcm/BCM4356A2.hcd \ +" + +FILES_${PN}-rtl8723ds-bt =3D " \ + lib/firmware/rtlbt/rtl8723d_config \ + lib/firmware/rtlbt/rtl8723d_fw \ +" + +FILES_${PN} =3D "*" + +# Make it depend on all of the split-out packages. +python () { + pn =3D d.getVar('PN') + firmware_pkgs =3D oe.utils.packages_filter_out_system(d) + d.appendVar('RDEPENDS_' + pn, ' ' + ' '.join(firmware_pkgs)) +} + +INSANE_SKIP_${PN} +=3D "arch" --=20 2.30.2
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 4/6] NanoPi-M4: activate Wifi support
Yann Dirson
From: Yann Dirson <yann@...>
--- conf/machine/include/nanopi-m4.inc | 5 ++++- recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/conf/machine/include/nanopi-m4.inc b/conf/machine/include/na= nopi-m4.inc index a14b705..cb27928 100644 --- a/conf/machine/include/nanopi-m4.inc +++ b/conf/machine/include/nanopi-m4.inc @@ -3,7 +3,7 @@ =20 require rk3399.inc =20 -MACHINE_FEATURES +=3D "usbhost serial" +MACHINE_FEATURES +=3D "usbhost serial wifi" =20 KMACHINE =3D "nanopi-m4" KERNEL_DEVICETREE =3D "rockchip/rk3399-nanopi-m4.dtb" @@ -23,3 +23,6 @@ IMAGE_BOOT_FILES ?=3D "\ " =20 SERIAL_CONSOLES =3D "1500000;ttyS2" + +# wifi firmware +MACHINE_EXTRA_RRECOMMENDS +=3D "linux-firmware-bcm4356" diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg b/reci= pes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg index f3a2abf..d42b744 100644 --- a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg +++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg @@ -9,3 +9,8 @@ CONFIG_PWRSEQ_SIMPLE=3Dy =20 # RTL8211E CONFIG_REALTEK_PHY=3Dm + +# AP6356S Wifi +CONFIG_WLAN_VENDOR_BROADCOM=3Dy +CONFIG_BRCMFMAC=3Dm +CONFIG_BRCMFMAC_SDIO=3Dy --=20 2.30.2
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 3/6] linux-firmware: import variables file for ap4356s firmware from armbian
Yann Dirson
From: Yann Dirson <yann@...>
This is required for wifi support on nanopi-m4 with kernel 5.10. This is dependant on poky commit commit 698fd81c551b52ff7f4a26e42d9acf9ad= 4ce5639, "linux-firmware: include all relevant files in -bcm4356". This file was fetched from https://github.com/armbian/firmware/commit/9c800d7e16616dd30cfd854f26e563= fb675e3f8a Signed-off-by: Yann Dirson <yann@...> --- .../files/brcmfmac4356-sdio.txt | 126 ++++++++++++++++++ .../linux-firmware/linux-firmware_%.bbappend | 13 ++ 2 files changed, 139 insertions(+) create mode 100644 recipes-kernel/linux-firmware/files/brcmfmac4356-sdio= .txt create mode 100644 recipes-kernel/linux-firmware/linux-firmware_%.bbappe= nd diff --git a/recipes-kernel/linux-firmware/files/brcmfmac4356-sdio.txt b/= recipes-kernel/linux-firmware/files/brcmfmac4356-sdio.txt new file mode 100644 index 0000000..a8c1ff8 --- /dev/null +++ b/recipes-kernel/linux-firmware/files/brcmfmac4356-sdio.txt @@ -0,0 +1,126 @@ +# Sample variables file for BCM94356Z NGFF 22x30mm iPA, iLNA board with = PCIe for production package +NVRAMRev=3D$Rev: 492104 $ +#4356 chip =3D 4354 A2 chip +sromrev=3D11 +boardrev=3D0x1102 +boardtype=3D0x073e +boardflags=3D0x02400201 +#0x2000 enable 2G spur WAR +boardflags2=3D0x00802000 +boardflags3=3D0x0000000a +#boardflags3 0x00000100 /* to read swctrlmap from nvram*/ +#define BFL3_5G_SPUR_WAR 0x00080000 /* enable spur WAR in 5G band */ +#define BFL3_AvVim 0x40000000 /* load AvVim from nvram */ +macaddr=3D00:90:4c:1a:10:01 +ccode=3DX2 +regrev=3D205 +antswitch=3D0 +pdgain5g=3D4 +pdgain2g=3D4 +tworangetssi2g=3D0 +tworangetssi5g=3D0 +paprdis=3D0 +femctrl=3D10 +vendid=3D0x14e4 +devid=3D0x43ec +manfid=3D0x2d0 +#prodid=3D0x052e +nocrc=3D1 +otpimagesize=3D502 +xtalfreq=3D37400 +rxgains2gelnagaina0=3D0 +rxgains2gtrisoa0=3D7 +rxgains2gtrelnabypa0=3D0 +rxgains5gelnagaina0=3D0 +rxgains5gtrisoa0=3D11 +rxgains5gtrelnabypa0=3D0 +rxgains5gmelnagaina0=3D0 +rxgains5gmtrisoa0=3D13 +rxgains5gmtrelnabypa0=3D0 +rxgains5ghelnagaina0=3D0 +rxgains5ghtrisoa0=3D12 +rxgains5ghtrelnabypa0=3D0 +rxgains2gelnagaina1=3D0 +rxgains2gtrisoa1=3D7 +rxgains2gtrelnabypa1=3D0 +rxgains5gelnagaina1=3D0 +rxgains5gtrisoa1=3D10 +rxgains5gtrelnabypa1=3D0 +rxgains5gmelnagaina1=3D0 +rxgains5gmtrisoa1=3D11 +rxgains5gmtrelnabypa1=3D0 +rxgains5ghelnagaina1=3D0 +rxgains5ghtrisoa1=3D11 +rxgains5ghtrelnabypa1=3D0 +rxchain=3D3 +txchain=3D3 +aa2g=3D3 +aa5g=3D3 +agbg0=3D2 +agbg1=3D2 +aga0=3D2 +aga1=3D2 +tssipos2g=3D1 +extpagain2g=3D2 +tssipos5g=3D1 +extpagain5g=3D2 +tempthresh=3D255 +tempoffset=3D255 +rawtempsense=3D0x1ff +pa2ga0=3D-147,6192,-705 +pa2ga1=3D-161,6041,-701 +pa5ga0=3D-194,6069,-739,-188,6137,-743,-185,5931,-725,-171,5898,-715 +pa5ga1=3D-190,6248,-757,-190,6275,-759,-190,6225,-757,-184,6131,-746 +subband5gver=3D0x4 +pdoffsetcckma0=3D0x4 +pdoffsetcckma1=3D0x4 +pdoffset40ma0=3D0x0000 +pdoffset80ma0=3D0x0000 +pdoffset40ma1=3D0x0000 +pdoffset80ma1=3D0x0000 +maxp2ga0=3D76 +maxp5ga0=3D74,74,74,74 +maxp2ga1=3D76 +maxp5ga1=3D74,74,74,74 +cckbw202gpo=3D0x0000 +cckbw20ul2gpo=3D0x0000 +mcsbw202gpo=3D0x99644422 +mcsbw402gpo=3D0x99644422 +dot11agofdmhrbw202gpo=3D0x6666 +ofdmlrbw202gpo=3D0x0022 +mcsbw205glpo=3D0x88766663 +mcsbw405glpo=3D0x88666663 +mcsbw805glpo=3D0xbb666665 +mcsbw205gmpo=3D0xd8666663 +mcsbw405gmpo=3D0x88666663 +mcsbw805gmpo=3D0xcc666665 +mcsbw205ghpo=3D0xdc666663 +mcsbw405ghpo=3D0xaa666663 +mcsbw805ghpo=3D0xdd666665 +mcslr5glpo=3D0x0000 +mcslr5gmpo=3D0x0000 +mcslr5ghpo=3D0x0000 +sb20in40hrpo=3D0x0 +sb20in80and160hr5glpo=3D0x0 +sb40and80hr5glpo=3D0x0 +sb20in80and160hr5gmpo=3D0x0 +sb40and80hr5gmpo=3D0x0 +sb20in80and160hr5ghpo=3D0x0 +sb40and80hr5ghpo=3D0x0 +sb20in40lrpo=3D0x0 +sb20in80and160lr5glpo=3D0x0 +sb40and80lr5glpo=3D0x0 +sb20in80and160lr5gmpo=3D0x0 +sb40and80lr5gmpo=3D0x0 +sb20in80and160lr5ghpo=3D0x0 +sb40and80lr5ghpo=3D0x0 +dot11agduphrpo=3D0x0 +dot11agduplrpo=3D0x0 +phycal_tempdelta=3D255 +temps_period=3D15 +temps_hysteresis=3D15 +rssicorrnorm_c0=3D4,4 +rssicorrnorm_c1=3D4,4 +rssicorrnorm5g_c0=3D1,2,3,1,2,3,6,6,8,6,6,8 +rssicorrnorm5g_c1=3D1,2,3,2,2,2,7,7,8,7,7,8 + diff --git a/recipes-kernel/linux-firmware/linux-firmware_%.bbappend b/re= cipes-kernel/linux-firmware/linux-firmware_%.bbappend new file mode 100644 index 0000000..45ab311 --- /dev/null +++ b/recipes-kernel/linux-firmware/linux-firmware_%.bbappend @@ -0,0 +1,13 @@ +FILESEXTRAPATHS_prepend :=3D "${THISDIR}/files:" + +SRC_URI +=3D "\ + file://brcmfmac4356-sdio.txt \ +" + +BRCMDIR =3D "${nonarch_base_libdir}/firmware/brcm" + +do_install_append() { + install -m644 ${WORKDIR}/brcmfmac4356-sdio.txt ${D}${BRCMDIR}/ +} + +FILES_${PN}-bcm4356 +=3D "${BRCMDIR}/brcmfmac4356-sdio.*" --=20 2.30.2
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 0/6] kmeta BSP for nanopi-m4
Yann Dirson
From: Yann Dirson <yann@...>
With this version the Wifi works (requires recent poky master for a linux-firmware fix). I'm not especially happy with the BT support: - it uses the rkwifibt repo because I don't have any other BT firmware for this chip - I was not able to get it to work on the board I have (even with vendor image with legacy kernel), so I may have a problem with this particular piece of hardware. At least it can do discover and pairing, maybe wide= r testing will be useful. Changes in v6: - support for Wifi and BT Changes in v5: - removed AP6356S-related config options, will come later with proper wifi/bt support - removed CONFIG_SND_SOC_RK3288_HDMI_ANALOG which turns out not to be needed for HDMI audio - new patch to get HDMI to work Changes in v4: - install our bsp files in bsp/rockchip/ rather than directly in bsp/ - also add "serial" to MACHINE_FEATURES Changes in v3: - relocate the bsp files into files/ so we don't have to add linux-yocto/ to FILESEXTRAPATHS for all other kernels - removed the "don't force KCONFIG_MODE to alldefconfig" (not needed fina= lly, and causing interferences in default setup) - add "usbhost" to MACHINE_FEATURES to enable lsusb and friends - better hardware coverage (though still no wifi/bt/audio, and buggy hdmi= ) Yann Dirson (6): linux-yocto: add an initial NanoPi-M4 BSP WIP linux-yocto: add workaround to disable VOPL usage on HDMI linux-firmware: import variables file for ap4356s firmware from armbian NanoPi-M4: activate Wifi support WIP Import rkwifibt-firmware from vendor's meta-rockchip WIP NanoPi-M4: activate BT support conf/machine/include/nanopi-m4.inc | 9 +- .../files/brcmfmac4356-sdio.txt | 126 ++++++++++++++++++ .../linux-firmware/linux-firmware_%.bbappend | 13 ++ .../files/bsp/rockchip/hdmi-no-vopl.patch | 65 +++++++++ .../files/bsp/rockchip/nanopi-m4-standard.scc | 7 + .../files/bsp/rockchip/nanopi-m4-tiny.scc | 7 + .../linux/files/bsp/rockchip/nanopi-m4.cfg | 22 +++ .../linux/files/bsp/rockchip/nanopi-m4.scc | 5 + .../linux/files/bsp/rockchip/rk3399.cfg | 70 ++++++++++ .../linux/files/bsp/rockchip/rk3399.scc | 5 + .../linux/files/bsp/rockchip/rockchip.cfg | 50 +++++++ .../linux/files/bsp/rockchip/rockchip.scc | 8 ++ recipes-kernel/linux/linux-yocto%.bbappend | 6 + .../rkwifibt-firmware/files/LICENSE.rockchip | 41 ++++++ .../rkwifibt-firmware/rkwifibt-firmware.bb | 110 +++++++++++++++ 15 files changed, 543 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux-firmware/files/brcmfmac4356-sdio= .txt create mode 100644 recipes-kernel/linux-firmware/linux-firmware_%.bbappe= nd create mode 100644 recipes-kernel/linux/files/bsp/rockchip/hdmi-no-vopl.= patch create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-sta= ndard.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-tin= y.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rk3399.cfg create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rk3399.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rockchip.cfg create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rockchip.scc create mode 100644 recipes-kernel/rkwifibt-firmware/files/LICENSE.rockch= ip create mode 100644 recipes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb --=20 2.30.2
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 1/6] linux-yocto: add an initial NanoPi-M4 BSP
Yann Dirson
From: Yann Dirson <yann@...>
This patch provides "standard" and "tiny" BSP. There is still much work to be done in dispatching feature to individual scc files - the more boards we can support the better it will get. Not all SoC/board features are covered yet either (esp. Wifi/Bluetooth an= d audio jack), and properly-woking HDMI still needs patches. Tiny is not fully testable by itself, it can be minimally booted with serial console (though still missing CONFIG_MULTIUSER for serial getty, and CONFIG_INOTIFY_USER for proper udev operation) using: PREFERRED_PROVIDER_virtual/kernel =3D "linux-yocto-tiny" KERNEL_FEATURES_append =3D "\ ktypes/base/base.scc \ features/debug/printk.scc \ cfg/fs/ext4.scc \ cfg/8250.scc \ " Such a tiny build is still using mainline defconfig with lots of hardware features, and the kernel can be slimmed down even more by using: KBUILD_DEFCONFIG =3D "" Kernel weight using default configurations: - standard 11MB - tiny 5MB - tiny with no defconfig 2.5MB Signed-off-by: Yann Dirson <yann@...> --- .../files/bsp/rockchip/nanopi-m4-standard.scc | 7 ++ .../files/bsp/rockchip/nanopi-m4-tiny.scc | 7 ++ .../linux/files/bsp/rockchip/nanopi-m4.cfg | 11 +++ .../linux/files/bsp/rockchip/nanopi-m4.scc | 5 ++ .../linux/files/bsp/rockchip/rk3399.cfg | 70 +++++++++++++++++++ .../linux/files/bsp/rockchip/rk3399.scc | 5 ++ .../linux/files/bsp/rockchip/rockchip.cfg | 50 +++++++++++++ .../linux/files/bsp/rockchip/rockchip.scc | 6 ++ recipes-kernel/linux/linux-yocto%.bbappend | 6 ++ 9 files changed, 167 insertions(+) create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-sta= ndard.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-tin= y.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg create mode 100644 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rk3399.cfg create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rk3399.scc create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rockchip.cfg create mode 100644 recipes-kernel/linux/files/bsp/rockchip/rockchip.scc diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-standard.s= cc b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-standard.scc new file mode 100644 index 0000000..5c74d6b --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-standard.scc @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nanopi-m4 +define KTYPE standard +define KARCH arm + +include ktypes/standard/standard.scc +include nanopi-m4.scc diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-tiny.scc b= /recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-tiny.scc new file mode 100644 index 0000000..6e94d6a --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4-tiny.scc @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nanopi-m4 +define KTYPE tiny +define KARCH arm + +include ktypes/tiny/tiny.scc +include nanopi-m4.scc diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg b/reci= pes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg new file mode 100644 index 0000000..f3a2abf --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg @@ -0,0 +1,11 @@ +CONFIG_MFD_RK808=3Dy +CONFIG_COMMON_CLK_RK808=3Dy + +CONFIG_REGULATOR_RK808=3Dy +CONFIG_REGULATOR_FAN53555=3Dy + +CONFIG_MMC_BLOCK=3Dy +CONFIG_PWRSEQ_SIMPLE=3Dy + +# RTL8211E +CONFIG_REALTEK_PHY=3Dm diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.scc b/reci= pes-kernel/linux/files/bsp/rockchip/nanopi-m4.scc new file mode 100644 index 0000000..f4267aa --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.scc @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: MIT + +kconf hardware nanopi-m4.cfg + +include rk3399.scc diff --git a/recipes-kernel/linux/files/bsp/rockchip/rk3399.cfg b/recipes= -kernel/linux/files/bsp/rockchip/rk3399.cfg new file mode 100644 index 0000000..42adfd1 --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/rk3399.cfg @@ -0,0 +1,70 @@ +# A72 errata, all past revisions +CONFIG_ARM64_ERRATUM_1319367=3Dy +# A53 errata, all patched on boot when needed +CONFIG_ARM64_ERRATUM_826319=3Dy +CONFIG_ARM64_ERRATUM_827319=3Dy +CONFIG_ARM64_ERRATUM_824069=3Dy +CONFIG_ARM64_ERRATUM_819472=3Dy + +# cru +CONFIG_CLK_RK3399=3Dy + +CONFIG_PL330_DMA=3Dy +CONFIG_I2C_RK3X=3Dy +CONFIG_SERIAL_8250_DW=3Dy + +# usb +CONFIG_PHY_ROCKCHIP_INNO_USB2=3Dy +CONFIG_PHY_ROCKCHIP_TYPEC=3Dy + +# ethernet +CONFIG_NET_VENDOR_STMICRO=3Dy +CONFIG_STMMAC_ETH=3Dm +CONFIG_STMMAC_PLATFORM=3Dm +CONFIG_DWMAC_ROCKCHIP=3Dm +CONFIG_PHYLIB=3Dm + +# display +CONFIG_ROCKCHIP_DW_HDMI=3Dy +CONFIG_ROCKCHIP_DW_MIPI_DSI=3Dy +CONFIG_ROCKCHIP_ANALOGIX_DP=3Dy +CONFIG_ROCKCHIP_CDN_DP=3Dy +CONFIG_PHY_ROCKCHIP_DP=3Dy +CONFIG_DRM_DW_HDMI=3Dm +CONFIG_DRM_DW_HDMI_I2S_AUDIO=3Dm +CONFIG_DRM_DW_HDMI_CEC=3Dm +CONFIG_DRM_DW_MIPI_DSI=3Dm +CONFIG_DRM_PANFROST=3Dm + +# HDMI audio +CONFIG_DRM_DW_HDMI_AHB_AUDIO=3Dm + +CONFIG_VIDEO_DEV=3Dm +CONFIG_V4L_MEM2MEM_DRIVERS=3Dy +CONFIG_VIDEO_ROCKCHIP_RGA=3Dm + +CONFIG_V4L2_H264=3Dm +CONFIG_MEDIA_CONTROLLER_REQUEST_API=3Dy +CONFIG_VIDEO_HANTRO=3Dm +CONFIG_VIDEO_HANTRO_ROCKCHIP=3Dy +CONFIG_VIDEO_ROCKCHIP_VDEC=3Dm + +# usb +CONFIG_USB_DWC2=3Dy +CONFIG_USB_DWC3=3Dy +CONFIG_USB_DWC3_DUAL_ROLE=3Dy + +# sd/mmc +CONFIG_MMC=3Dy +CONFIG_MMC_SDHCI=3Dy +CONFIG_MMC_SDHCI_PLTFM=3Dy +CONFIG_MMC_DW=3Dy +CONFIG_MMC_DW_ROCKCHIP=3Dy +CONFIG_MMC_SDHCI_OF_ARASAN=3Dy + +# temperature sensors +CONFIG_THERMAL=3Dy +CONFIG_THERMAL_OF=3Dy +CONFIG_ROCKCHIP_THERMAL=3Dm +CONFIG_IIO=3Dy +CONFIG_ROCKCHIP_SARADC=3Dm diff --git a/recipes-kernel/linux/files/bsp/rockchip/rk3399.scc b/recipes= -kernel/linux/files/bsp/rockchip/rk3399.scc new file mode 100644 index 0000000..9b1a88e --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/rk3399.scc @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: MIT + +kconf hardware rk3399.cfg + +include rockchip.scc diff --git a/recipes-kernel/linux/files/bsp/rockchip/rockchip.cfg b/recip= es-kernel/linux/files/bsp/rockchip/rockchip.cfg new file mode 100644 index 0000000..05a397d --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/rockchip.cfg @@ -0,0 +1,50 @@ +CONFIG_CPU_ISOLATION=3Dy +CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=3Dy +CONFIG_HZ_250=3Dy +CONFIG_CPU_IDLE=3Dy +CONFIG_ARM_CPUIDLE=3Dy + +CONFIG_ARCH_ROCKCHIP=3Dy +CONFIG_COMMON_CLK_ROCKCHIP=3Dy +CONFIG_REGULATOR=3Dy +CONFIG_REGULATOR_FIXED_VOLTAGE=3Dy +CONFIG_REGULATOR_PWM=3Dy +CONFIG_I2C=3Dy +CONFIG_FW_LOADER=3Dy +CONFIG_PHY_ROCKCHIP_EMMC=3Dy +CONFIG_PINCTRL=3Dy +CONFIG_PINCTRL_ROCKCHIP=3Dy +CONFIG_ROCKCHIP_IODOMAIN=3Dy +CONFIG_ROCKCHIP_PM_DOMAINS=3Dy + +CONFIG_SPI=3Dy +CONFIG_SPI_ROCKCHIP=3Dm + +CONFIG_PWM=3Dy +CONFIG_PWM_ROCKCHIP=3Dy + +CONFIG_DRM_KMS_HELPER=3Dm +CONFIG_DRM_FBDEV_EMULATION=3Dy +CONFIG_ROCKCHIP_IOMMU=3Dy +CONFIG_DRM_ROCKCHIP=3Dm +CONFIG_DRM_BRIDGE=3Dy + +CONFIG_SND=3Dy +CONFIG_SND_SOC=3Dy +CONFIG_SND_HDA_CODEC_HDMI=3Dm +CONFIG_SND_SOC_ROCKCHIP=3Dm +CONFIG_SND_SOC_ROCKCHIP_I2S=3Dm +CONFIG_SND_SOC_ROCKCHIP_SPDIF=3Dm + +CONFIG_NVMEM=3Dy +CONFIG_ROCKCHIP_EFUSE=3Dm + +CONFIG_CPU_FREQ=3Dy +CONFIG_CPU_FREQ_THERMAL=3Dy +CONFIG_HWMON=3Dy +CONFIG_THERMAL_HWMON=3Dy + +CONFIG_CRYPTO_HW=3Dy +CONFIG_CRYPTO_DEV_ROCKCHIP=3Dm + +CONFIG_MMC_BLOCK_MINORS=3D32 diff --git a/recipes-kernel/linux/files/bsp/rockchip/rockchip.scc b/recip= es-kernel/linux/files/bsp/rockchip/rockchip.scc new file mode 100644 index 0000000..800f105 --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/rockchip.scc @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: MIT + +kconf hardware rockchip.cfg + +include cfg/dmaengine.scc +include features/mmc/mmc-block.cfg diff --git a/recipes-kernel/linux/linux-yocto%.bbappend b/recipes-kernel/= linux/linux-yocto%.bbappend index 7702e3f..9658681 100644 --- a/recipes-kernel/linux/linux-yocto%.bbappend +++ b/recipes-kernel/linux/linux-yocto%.bbappend @@ -1,3 +1,9 @@ +FILESEXTRAPATHS_prepend :=3D "${THISDIR}/files:" + +SRC_URI_append =3D "\ + file://bsp;type=3Dkmeta;subdir=3Dkernel-meta \ +" + COMPATIBLE_MACHINE_marsboard-rk3066 =3D "marsboard-rk3066" COMPATIBLE_MACHINE_rock2-square =3D "rock2-square" COMPATIBLE_MACHINE_radxarock =3D "radxarock" --=20 2.30.2
|
||||||||||||
|
||||||||||||
[meta-rockchip][PATCH v6 2/6] WIP linux-yocto: add workaround to disable VOPL usage on HDMI
Yann Dirson
From: Yann Dirson <yann@...>
There is a known issue in mainline kernel making the machine unusable once a HDMI screen is plugged. This patch lets VOPB be alone to use the HDMI port and avoids the issue while providing wupport for the larges= t set of video modes, at the expense of double-screen support. FIXME: patch does not get applied, unless the scc is also added to KERNEL_FEATURES ? --- .../files/bsp/rockchip/hdmi-no-vopl.patch | 65 +++++++++++++++++++ .../linux/files/bsp/rockchip/rockchip.scc | 2 + 2 files changed, 67 insertions(+) create mode 100644 recipes-kernel/linux/files/bsp/rockchip/hdmi-no-vopl.= patch diff --git a/recipes-kernel/linux/files/bsp/rockchip/hdmi-no-vopl.patch b= /recipes-kernel/linux/files/bsp/rockchip/hdmi-no-vopl.patch new file mode 100644 index 0000000..72ed753 --- /dev/null +++ b/recipes-kernel/linux/files/bsp/rockchip/hdmi-no-vopl.patch @@ -0,0 +1,65 @@ +From 92d9cf4e6c2767c8c5aa8d97e684f2f77d950e7d Mon Sep 17 00:00:00 2001 +From: Jonas Karlman <jonas@...> +Date: Sun, 19 Jul 2020 16:35:11 +0000 +Subject: [PATCH] HACK: dts: rockchip: do not use vopl for hdmi +Upstream-Status: Inappropriate [other] + +--- + arch/arm/boot/dts/rk3288.dtsi | 9 --------- + arch/arm64/boot/dts/rockchip/rk3399.dtsi | 9 --------- + 2 files changed, 18 deletions(-) + +diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dt= si +index 03e86d012edd..746acfac1e92 100644 +--- a/arch/arm/boot/dts/rk3288.dtsi ++++ b/arch/arm/boot/dts/rk3288.dtsi +@@ -1104,11 +1104,6 @@ vopl_out: port { + #address-cells =3D <1>; + #size-cells =3D <0>; +=20 +- vopl_out_hdmi: endpoint@0 { +- reg =3D <0>; +- remote-endpoint =3D <&hdmi_in_vopl>; +- }; +- + vopl_out_edp: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&edp_in_vopl>; +@@ -1249,10 +1244,6 @@ hdmi_in_vopb: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&vopb_out_hdmi>; + }; +- hdmi_in_vopl: endpoint@1 { +- reg =3D <1>; +- remote-endpoint =3D <&vopl_out_hdmi>; +- }; + }; + }; + }; +diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/= dts/rockchip/rk3399.dtsi +index a855805649ef..418d16b0b648 100644 +--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi ++++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi +@@ -1640,11 +1640,6 @@ vopl_out_edp: endpoint@1 { + remote-endpoint =3D <&edp_in_vopl>; + }; +=20 +- vopl_out_hdmi: endpoint@2 { +- reg =3D <2>; +- remote-endpoint =3D <&hdmi_in_vopl>; +- }; +- + vopl_out_mipi1: endpoint@3 { + reg =3D <3>; + remote-endpoint =3D <&mipi1_in_vopl>; +@@ -1816,10 +1811,6 @@ hdmi_in_vopb: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&vopb_out_hdmi>; + }; +- hdmi_in_vopl: endpoint@1 { +- reg =3D <1>; +- remote-endpoint =3D <&vopl_out_hdmi>; +- }; + }; + }; + }; diff --git a/recipes-kernel/linux/files/bsp/rockchip/rockchip.scc b/recip= es-kernel/linux/files/bsp/rockchip/rockchip.scc index 800f105..4d61509 100644 --- a/recipes-kernel/linux/files/bsp/rockchip/rockchip.scc +++ b/recipes-kernel/linux/files/bsp/rockchip/rockchip.scc @@ -4,3 +4,5 @@ kconf hardware rockchip.cfg =20 include cfg/dmaengine.scc include features/mmc/mmc-block.cfg + +patch hdmi-no-vopl.patch --=20 2.30.2
|
||||||||||||
|
||||||||||||
Yocto Project Status WW19`21
Stephen Jolley
Current Dev Position: YP 3.4 M1 Next Deadline: 7th June 2021 YP 3.4 M1 build
Next Team Meetings:
Key Status/Updates:
We are working to identify the load pattern on the infrastructure that seems to trigger these.
Ways to contribute:
YP 3.4 Milestone Dates:
Planned upcoming dot releases:
Tracking Metrics:
The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at: https://wiki.yoctoproject.org/wiki/TSC
The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status
[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]
Thanks,
Stephen K. Jolley Yocto Project Program Manager ( Cell: (208) 244-4460 * Email: sjolley.yp.pm@...
|
||||||||||||
|
||||||||||||
Kernel/application signing and verification
Mohammed Billoo
Hi,
I'm not sure if this is the appropriate mailing list to ask this question. I am working on customizing a BSP for an Nvidia Jetson Nano based board (using the meta-tegra layer as the basis for most of the development). One of the requirements for the project is to get secure-boot working, which Nvidia supports only up to u-boot (i.e. the custom Nvidia bootloader ensures that u-boot is signed using the public portion of the key that is burned onto the fuses). Yet, we need to go a bit further and use u-boot to confirm that the kernel is also signed with the same key. Likewise with all executables on the rootfs. Does yocto provide functionality akin to this that I can leverage? Thanks -- Mohammed Billoo
|
||||||||||||
|
||||||||||||
Re: esdk issue using hardknott sources
#yocto
Richard Purdie
On Mon, 2021-05-10 at 21:13 -0700, sateesh m wrote:
Hi Guys,It looks like you're using OE-Core and nodistro and we generally test the eSDK with poky. It also looks like you're using rm_work and we do not test that with eSDK on the autobuilder. For some reason the generated task hashes in the eSDK are not matching the hashes generated by the previous build. I mention the above as those are two differences I can see between what you're doing and what we test. I don't know what is causing those differences though. We are aware this part of the build is rather hard to debug unfortunately. We've not managed to find a way to make this easier as yet. Cheers, Richard
|
||||||||||||
|
||||||||||||
How to use xtensa/gcc
Peter Balazovic <balazovic.peter@...>
Hello All, I wonder if there is a chance to use xtensa compiler within Yocto to run the code at DSP/IP? I would like to ask you if there are some examples to compile and run such example code or recommendation to do so? Thank you.
|
||||||||||||
|
||||||||||||
Re: KeyError: 'getpwuid(): uid not found: 1000' in do_package phase
Thomas Hill
Hi Martin!
On Mon, 10 May 2021, 12:25, Martin Jansa <martin.jansa@...> wrote: On Mon, May 10, 2021 at 12:08:22PM +0300, Thomas Hill via lists.yoctoproject.org wrote:On Fri, 7 May 2021, 15:28, Richard Purdie <richard.purdie@...>On Fri, 2021-05-07 at 10:10 +0300, Thomas Hill via lists.yoctoproject.org wrote:On Thu, 6 May 2021, 13:44 Martin Jansa <Martin.Jansa@...> wrote:On Thu, May 6, 2021 at 10:57 AM Thomas Hill via lists.yoctoproject.org <tom.hill=inbox.lv@...> wrote:> I have here a similar problem with one of my own packages. It happens that my bitbake user uses UID 1001. Do you have more information why this is a problem? Should it be enough to change the UID to 1002 to get everything running?On Mon, Nov 16, 2020 at 02:28 PM, Martin Jansa wrote: 0002_libcryptopp_8.2.0_use-install-instead-of-cp.patch from your recipeNothing fancy is going on. I only replace "cp" with "install" - see appended file. Thanks for your time! Tom
|
||||||||||||
|
||||||||||||
Split deploy result in multiple partitions
Michael Nazzareno Trimarchi
Hi all
I have a simple question. Is possible to generate as artifacts the single partition results as IMG type for each partition and a total result as wic image? Michael
|
||||||||||||
|
||||||||||||
[meta-gplv2][PATCH] conf/distro: Restore btrfs-tools since it was relicensed
Robert Joslyn
libbtrfsutil was relicensed from LGPL-3.0+ to LGPL-2.1+, so it is no
longer necessary to remove btrfs-tools. Signed-off-by: Robert Joslyn <robert.joslyn@...> --- conf/distro/include/disable-gplv3.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/conf/distro/include/disable-gplv3.inc b/conf/distro/include/disable-gplv3.inc index 3285543..bded378 100644 --- a/conf/distro/include/disable-gplv3.inc +++ b/conf/distro/include/disable-gplv3.inc @@ -1,4 +1,3 @@ INCOMPATIBLE_LICENSE = '*GPLv3*' WARN_QA_remove = 'incompatible-license' RDEPENDS_${PN}-ptest_remove_pn-glib-2.0 = "python3-dbusmock" -RDEPENDS_${PN}-ptest_remove_pn-util-linux = "btrfs-tools" -- 2.26.3
|
||||||||||||
|
||||||||||||
esdk issue using hardknott sources
#yocto
sateesh m
Hi Guys,
I have successfully built core-image-base image using hardknott sources. I am trying to build sdk & populate_sdk_ext. I have built successfully.but when I running ./oecore-x86_64-riscv64-toolchain-ext-nodistro.0.sh I am facing issue xorgproto write config failed. Can anybody known this issue please help me to solve. -- Thanks & Regards, Sateesh
|
||||||||||||
|
||||||||||||
Enhancements/Bugs closed WW19!
Stephen Jolley
All,
The below were the owners of enhancements or bugs closed during the last week!
Thanks,
Stephen K. Jolley Yocto Project Program Manager ( Cell: (208) 244-4460 * Email: sjolley.yp.pm@...
|
||||||||||||
|