[yocto] binman support in u-boot
Hi, I was having a bbappend for uboot v2021.04 that calls binman command from u-boot source tree but it doesn't seems to work with bitbake with an error of unknown location of libfdt. I have added dependency to dtc-native or did I missed anything? Is there any plan to enable binman support within u-boot-tools recipe? | running build | running build_py | package init file '__init__.py' not found (or not a regular file) | package init file 'etype/__init__.py' not found (or not a regular file) | package init file '__init__.py' not found (or not a regular file) | package init file 'etype/__init__.py' not found (or not a regular file) | running build_scripts | binman: cannot import name 'QUIET_NOTFOUND' from 'libfdt' (unknown location) | WARNING: /build/yocto-stable/agilex-gsrd-rootfs/tmp/work/agilex-poky-linux/u-boot-socfpga/1_v2021.04+gitAUTOINC+396ee271f2-r0/temp/run.do_compile.8579:158 exit 1 from './tools/binman/binman build -u -d /build/yocto-stable/agilex-gsrd-rootfs/tmp/work/agilex-poky-linux/u-boot-socfpga/1_v2021.04+gitAUTOINC+396ee271f2-r0/build/${config}/u-boot.dtb -O . -i u-boot' | WARNING: Backtrace (BB generated script): | #1: do_compile, /build/yocto-stable/agilex-gsrd-rootfs/tmp/work/agilex-poky-linux/u-boot-socfpga/1_v2021.04+gitAUTOINC+396ee271f2-r0/temp/run.do_compile.8579, line 158 | #2: main, /build/yocto-stable/agilex-gsrd-rootfs/tmp/work/agilex-poky-linux/u-boot-socfpga/1_v2021.04+gitAUTOINC+396ee271f2-r0/temp/run.do_compile.8579, line 184 | | Backtrace (metadata-relative locations): | #1: do_compile, autogenerated, line 7 ERROR: Task (/build/yocto-stable/agilex-gsrd-rootfs/../meta-intel-fpga/recipes-bsp/u-boot/u-boot-socfpga_v2021.04.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 2114 tasks of which 2111 didn't need to be rerun and 1 failed. bbappend: DEPENDS += "bc-native dtc-native python3-setuptools-native swig-native" # This is require so that tools/binman/setup.py is discoverable during the build DISTUTILS_SETUP_PATH = "${S}/tools/binman" distutils3_do_compile() { cd ${DISTUTILS_SETUP_PATH} NO_FETCH_BUILD=1 \ STAGING_INCDIR=${STAGING_INCDIR} \ STAGING_LIBDIR=${STAGING_LIBDIR} \ ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py \ build --build-base=${B} ${DISTUTILS_BUILD_ARGS} || \ bbfatal_log "'${PYTHON_PN} setup.py build ${DISTUTILS_BUILD_ARGS}' execution failed." } do_compile_append() { cp ${DEPLOY_DIR_IMAGE}/bl31.bin ${B}/${config}/bl31.bin cd ${S} ./tools/binman/binman build -u -d ${B}/${config}/u-boot.dtb -O . -i u-boot } -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54072): https://lists.yoctoproject.org/g/yocto/message/54072 Mute This Topic: https://lists.yoctoproject.org/mt/84061363/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto]: [kernel v5.10/standard/cn-sdkv5.4/octeon]: marvell-octeon: kernel patches update
> -Original Message- > From: Bruce Ashfield > Sent: Thursday, July 8, 2021 3:37 AM > To: Li, Meng > Cc: linux-yocto@lists.yoctoproject.org > Subject: Re: [linux-yocto]: [kernel v5.10/standard/cn-sdkv5.4/octeon]: > marvell-octeon: kernel patches update > > [Please note: This e-mail is from an EXTERNAL e-mail address] > > In message: [linux-yocto]: [kernel v5.10/standard/cn-sdkv5.4/octeon]: > marvell-octeon: kernel patches update on 06/07/2021 > meng...@windriver.com wrote: > > > From: Limeng > > > > Hi Bruce, > > > > I am working on BSP marvell-cn106xx based on SDK simulator, and intend > to upgrade BSP branch to latest SDK release version. > > > > I got latest sdk patches from sdk kernel repo, and want to merge them into > linux-yocto-v5.10. > > There are 45 patches. > > > > So, could you please help to merge these patches into linux-ycoto kernel > repo, standard and preempt-rt branches? > > v5.10/standard/cn-sdkv5.4/octeon > > v5.10/standard/preempt-rt/cn-sdkv5.4/octeon > > > > The 45 patches are in my public repo > > https://github.com/limeng-linux/linux-yocto-5.10.git, branch > > v5.10/standard/cn-sdkv5.4/octeon > > I'm getting a conflict during the merge. Can you double check that branch > against the latest linux-yocto ? > > branch: v5.10/standard/cn-sdkv5.4/octeon > > Auto-merging drivers/soc/marvell/octeontx_info.c > Removing drivers/mmc/core/mmc_oops.c > Removing drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c > Auto-merging drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h > CONFLICT (content): Merge conflict in > drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h > Removing drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.h > Auto-merging drivers/crypto/marvell/octeontx2/Makefile > CONFLICT (content): Merge conflict in > drivers/crypto/marvell/octeontx2/Makefile > Automatic merge failed; fix conflicts and then commit the result. > Hi Bruce, Sorry for causing conflict. Because Marvell cn96xx and cn106xx BSP share the same branch, maybe my patches conflict with the ones submitted by Ruiqiang, Hao. We will pay attention to this case in the future. I apply the 45 patches to latest kernel tree. Could you please help to merge these patches into linux-ycoto kernel repo, standard and preempt-rt branches? v5.10/standard/cn-sdkv5.4/octeon v5.10/standard/preempt-rt/cn-sdkv5.4/octeon pull request info as below: The following changes since commit 35f3757f1280732bee31a6cbd1e68182f90a1e72: crypto: octeontx2: Fix compile error about kzfree() (2021-07-05 23:06:37 -0400) are available in the Git repository at: https://github.com/limeng-linux/linux-yocto-5.10.git v5.10/standard/cn-sdkv5.4/octeon for you to fetch changes up to 9dc448520bbc03d8f95c4798434ca17c62d2148a: octeontx2-af: cn10k: Fix APR LMT cache flush (2021-07-07 22:15:12 -0400) Alex Leibovich (1): net: mvpp2: Add NETIF_F_HW_VLAN_CTAG_FILTER to dev->features Baowen Zheng (1): net/sched: act_police: add support for packet-per-second policing Ben Peled (1): dts: cp110: eip197: add cell index property Bhaskara Budiredla (4): drivers: mmc: cleanup mmc_oops driver drivers: mmc: Support kmsg dumper based on pstore/blk mmc: cavium: Add MMC polling method to support kmsg panic/oops write mmc: sdhci: Add sdhci polling method to support kmsg panic/oops write Damian Eppel (1): drivers: soc: marvell: phy diagnostics page access support Geetha sowjanya (3): octeontx2-af: Fix PKIND overlap between LBK and LMAC interfaces octeontx2-af: Fix max pkinds supported by hardware octeontx2-af: cn10k: Fix APR LMT cache flush Hariprasad Kelam (3): octeontx2-pf: Dont enable backpressure on lbk links octeontx2-af: Read mac address from correct offset octeontx2-pf: Dont mask out supported link modes Jayanthi Annadurai (5): drivers: soc: marvell: Add driver for managing rpram drivers: sdhci-cadence: Fix timing update drivers: marvell: rpram: Add rpram debugfs interface drivers: marvell: rpram: Change rpram driver name drivers: marvell: rpram: Check for cn10k platform Naveen Mamindlapalli (3): octeontx2-bphy-netdev: Add rfoe rx vlan forwarding configuration octeontx2-bphy-netdev: cpri: fix compilation warnings octeontx2-pf: send correct vlan priority mask to npc_install_flow_req Pavan Nikhilesh (1): octeontx2-af: invalidate GWC before accessing workslot Radha Mohan Chintakuntla (1): octeontx2-af: Fix ending channel number calculation for SDP VF Srujana Challa (5): crypto: octeontx2: sync with upstream driver crypto: cn10k: enable random number request. octeontx2-af: update inline ipsec mbox to support 98xx crypto: octeontx2: update inline ipsec mbox to support 98xx crypto: octeontx2: fix CPT block address for getting engine capabilities Stefan Chulski (1): marvell:
[linux-yocto] [PATCH v5.10-rt] xfrm: fix up warning introduced by pseudo revert
To fix: net/xfrm/xfrm_state.c:47:42: warning: 'xfrm_state_hash_generation' defined but not used The line was removed in the 5.10-stable backport of commit e88add19f681 ("net: xfrm: Localize sequence counter per network namespace") but then was incorrectly reintroduced in the commit referenced below. Fixes: 71b740f9373d ('Revert "net/xfrm: fixup 5.10.30 -stable merge"') Cc: Yanfei Xu Signed-off-by: Paul Gortmaker diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index e0152019db6f..4c7cae69ea29 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -44,7 +44,6 @@ static void xfrm_state_gc_task(struct work_struct *work); */ static unsigned int xfrm_state_hashmax __read_mostly = 1 * 1024 * 1024; -static __read_mostly seqcount_spinlock_t xfrm_state_hash_generation; static struct kmem_cache *xfrm_state_cache __ro_after_init; static DECLARE_WORK(xfrm_state_gc_work, xfrm_state_gc_task); -- 2.32.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10078): https://lists.yoctoproject.org/g/linux-yocto/message/10078 Mute This Topic: https://lists.yoctoproject.org/mt/84058913/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] [yocto-autobuilder-helper][dunfell 0/1] Pull request (cover letter only)
The following changes since commit 1e5c23dea6d989f0e5c30ebac2c95a17e78ffdf9: config.json: Add check-layer-nightly with only meta-intel at this point (2021-06-02 12:33:34 +0100) are available in the Git repository at: git://git.yoctoproject.org/yocto-autobuilder-helper contrib/sakoman http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper/log/?h=contrib/sakoman Richard Purdie (1): config.json: Switch to newer buildtools-extended-tarball config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54071): https://lists.yoctoproject.org/g/yocto/message/54071 Mute This Topic: https://lists.yoctoproject.org/mt/84058541/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [yocto-kernel-cache][master only] [PATCH] xilinx-zynqmp: add CONFIG_GPIO_ZYNQMP_MODEPIN for zynqmp
merged to master. Bruce In message: [linux-yocto] [yocto-kernel-cache][master only] [PATCH] xilinx-zynqmp: add CONFIG_GPIO_ZYNQMP_MODEPIN for zynqmp on 07/07/2021 quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > Add this kernel option to enable zynqmp gpio-modepin driver. > > Signed-off-by: Quanyang Wang > --- > bsp/xilinx-zynqmp/xilinx-zynqmp.cfg | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg > b/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg > index 737cc3952..6ad45d639 100644 > --- a/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg > +++ b/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg > @@ -77,6 +77,7 @@ CONFIG_GPIO_XILINX=y > CONFIG_GPIO_PCA953X=y > CONFIG_GPIO_PCA953X_IRQ=y > CONFIG_GPIO_ZYNQ=y > +CONFIG_GPIO_ZYNQMP_MODEPIN=y > > CONFIG_POWER_RESET=y > CONFIG_SENSORS_INA2XX=y > -- > 2.25.1 > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10077): https://lists.yoctoproject.org/g/linux-yocto/message/10077 Mute This Topic: https://lists.yoctoproject.org/mt/84038712/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [yocto-kernel-cache]: marvell-cn106xx: enable CONFIG_SPI_CADENCE_XSPI_PCI config
In message: [yocto-kernel-cache]: marvell-cn106xx: enable CONFIG_SPI_CADENCE_XSPI_PCI config on 06/07/2021 meng...@windriver.com wrote: > From: Limeng > > Hi Bruce, > > Refer to latest Marvell sdk, this kernel config is an essential > one to spi driver. > > Could you please help to merge this patch into yocto-kernel-cache, branch is > yocto-5.10? merged. Bruce > > diffstat info ad below: > > marvell-cn106xx.cfg |1 + > 1 file changed, 1 insertion(+) > > > thanks, > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10076): https://lists.yoctoproject.org/g/linux-yocto/message/10076 Mute This Topic: https://lists.yoctoproject.org/mt/84016147/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto]: [kernel v5.10/standard/cn-sdkv5.4/octeon]: marvell-octeon: kernel patches update
In message: [linux-yocto]: [kernel v5.10/standard/cn-sdkv5.4/octeon]: marvell-octeon: kernel patches update on 06/07/2021 meng...@windriver.com wrote: > From: Limeng > > Hi Bruce, > > I am working on BSP marvell-cn106xx based on SDK simulator, and intend to > upgrade BSP branch to latest SDK release version. > > I got latest sdk patches from sdk kernel repo, and want to merge them into > linux-yocto-v5.10. > There are 45 patches. > > So, could you please help to merge these patches into linux-ycoto kernel > repo, standard and preempt-rt branches? > v5.10/standard/cn-sdkv5.4/octeon > v5.10/standard/preempt-rt/cn-sdkv5.4/octeon > > The 45 patches are in my public repo > https://github.com/limeng-linux/linux-yocto-5.10.git, branch > v5.10/standard/cn-sdkv5.4/octeon I'm getting a conflict during the merge. Can you double check that branch against the latest linux-yocto ? branch: v5.10/standard/cn-sdkv5.4/octeon Auto-merging drivers/soc/marvell/octeontx_info.c Removing drivers/mmc/core/mmc_oops.c Removing drivers/crypto/marvell/octeontx2/otx2_cptlf_main.c Auto-merging drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h CONFLICT (content): Merge conflict in drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h Removing drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.h Auto-merging drivers/crypto/marvell/octeontx2/Makefile CONFLICT (content): Merge conflict in drivers/crypto/marvell/octeontx2/Makefile Automatic merge failed; fix conflicts and then commit the result. Bruce > > > diffstat info as below: > > b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi |2 > b/drivers/crypto/marvell/cn10k/cn10k_cptpf_ucode.c |5 > b/drivers/crypto/marvell/octeontx2/Makefile | 18 > b/drivers/crypto/marvell/octeontx2/otx2_cpt_common.h | 125 > b/drivers/crypto/marvell/octeontx2/otx2_cpt_hw_types.h | 405 -- > b/drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c| 301 - > b/drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h | 86 > b/drivers/crypto/marvell/octeontx2/otx2_cptlf.c | 429 ++ > b/drivers/crypto/marvell/octeontx2/otx2_cptlf.h | 198 - > b/drivers/crypto/marvell/octeontx2/otx2_cptpf.h | 48 > b/drivers/crypto/marvell/octeontx2/otx2_cptpf_main.c | 633 ++-- > b/drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c | 809 ++--- > b/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c| 1694 > +++ > b/drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h| 46 > b/drivers/crypto/marvell/octeontx2/otx2_cptvf.h | 14 > b/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c | 500 +-- > b/drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h | 55 > b/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c | 392 +- > b/drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c | 222 - > b/drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 231 - > b/drivers/mailbox/mvl_mhu.c | 215 - > b/drivers/mmc/core/Kconfig | 22 > b/drivers/mmc/core/Makefile |2 > b/drivers/mmc/core/block.c | 44 > b/drivers/mmc/core/block.h | 13 > b/drivers/mmc/core/core.c| 67 > b/drivers/mmc/core/mmcpstore.c | 232 + > b/drivers/mmc/host/cavium-thunderx.c | 24 > b/drivers/mmc/host/cavium.c | 150 > b/drivers/mmc/host/cavium.h |6 > b/drivers/mmc/host/sdhci-cadence.c | 21 > b/drivers/mmc/host/sdhci.c | 57 > b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c|5 > b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 42 > b/drivers/net/ethernet/marvell/octeontx2/af/cgx.h|1 > b/drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h|3 > b/drivers/net/ethernet/marvell/octeontx2/af/mbox.h |9 > b/drivers/net/ethernet/marvell/octeontx2/af/npc.h|3 > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c |5 > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c| 13 > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c| 90 > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c| 11 > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 16 > b/drivers/net/ethernet/marvell/octeontx2/af/rvu_sso.c| 18 > b/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_bphy_hw.h | 10 > b/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_cpri.c|7 > b/drivers/net/ethernet/marvell/octeontx2/bphy/otx2_rfoe.c| 73 >
Re: [linux-yocto] [linux-yocto v5.10/standard/nxp-sdk-5.10/nxp-s32g2xx]: nxp-s32g2xx: update kernel with 6 new patches from NXP pre-released SDK bsp30
In message: [linux-yocto] [linux-yocto v5.10/standard/nxp-sdk-5.10/nxp-s32g2xx]: nxp-s32g2xx: update kernel with 6 new patches from NXP pre-released SDK bsp30 on 06/07/2021 Zhantao Tang wrote: > > Hi Bruce, > > > There are 6 new patches from NXP pre-released SDK bsp30 v5.10 kernel tree. > Would you please help to merge the patches into linux-yocto, v5.10, branch > v5.10/standard/nxp-sdk-5.10/nxp-s32g2xx? Thanks for the update, these are now merged Bruce > > Thanks, > Zhantao > > > The patches info as following: > > The following changes since commit > 4c7e068410164425fc262dc97646767a9487212a: > > doc: s32gen1: mc_rgm: Add fsl,s32gen1-mc_rgm.yaml documentation file > (2021-06-29 14:01:40 +0800) > > are available in the Git repository at: > > https://github.com/zhantaotang/linux-yocto-std > v5.10/standard/nxp-sdk-5.10/nxp-s32g2xx > > for you to fetch changes up to b8f5010a29cb35e5e15624d0ddf03defd2aaee4e: > > dts: s32gen1: Add recovery pinmuxing for i2c (2021-07-06 11:27:07 > +0800) > > > Ciprian Marian Costea (1): > s32: fsl_fccu: Fix allocation of 'ncf_fault_arr' array. > > Ghennadi Procopciuc (2): > sram: Add LLCE sram awareness > dts: Rename fsl,s32g274a-usb* to fsl,s32g-usb* > > Larisa Grigore (3): > spi: fsl-dspi: Fix pinctrl slave setup > include: s32gen1: Add recovery pinmuxing for i2c > dts: s32gen1: Add recovery pinmuxing for i2c > > arch/arm64/boot/dts/freescale/fsl-s32g.dtsi| 4 +- > .../boot/dts/freescale/fsl-s32g274a-bluebox3.dts | 78 > -- > arch/arm64/boot/dts/freescale/fsl-s32g274a-evb.dts | 78 > +++--- > .../arm64/boot/dts/freescale/fsl-s32g274a-rdb.dtsi | 75 ++--- > arch/arm64/boot/dts/freescale/fsl-s32r45-evb.dts | 46 + > drivers/misc/fccu/fsl_fccu.c | 2 +- > drivers/misc/sram.c| 9 +-- > drivers/spi/spi-fsl-dspi.c | 27 > include/dt-bindings/pinctrl/s32g-pinctrl.h | 29 > include/dt-bindings/pinctrl/s32r45-pinctrl.h | 13 > 10 files changed, 301 insertions(+), 60 deletions(-) > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10074): https://lists.yoctoproject.org/g/linux-yocto/message/10074 Mute This Topic: https://lists.yoctoproject.org/mt/84014524/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [yocto-kernel-cache]: marvell-cn106xx: update kernel cache for marvell-cn106xx BSP
In message: [yocto-kernel-cache]: marvell-cn106xx: update kernel cache for marvell-cn106xx BSP on 06/07/2021 meng...@windriver.com wrote: > From: Limeng > > Hi Bruce, > > There are 2 patches to update kernel cache for marvell-cn106xx BSP. > > Could you please help to merge them into yocto-kernel-cache, branch is > yocto-5.10? merged. Bruce > > diffstat info ad below: > > marvell-cn106xx-preempt-rt.scc |4 ++-- > marvell-cn106xx.cfg|2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > thanks, > Limeng -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10073): https://lists.yoctoproject.org/g/linux-yocto/message/10073 Mute This Topic: https://lists.yoctoproject.org/mt/84013493/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [yocto] Question regarding custom device tree update
> From: yocto@lists.yoctoproject.org on behalf > of Sohil Shah > Sent: Wednesday, June 30, 2021 09:46 > To: yocto@lists.yoctoproject.org > Subject: [yocto] Question regarding custom device tree update > > (...) > I want to build the image using my custom dts file where I enable certain > peripherals and disable the ones not required. (A test to update dtb's in > future). > > I tried different methods found here > https://stackoverflow.com/questions/38917745/quick-rebuild-of-device-tree-only-with-yocto-bitbake > > But, I seem to run into some errors when I try to build the image. > > Please help and let me know if I missed any required information from my side. > >Thank you and Regards, > Sohil Hi Sohil, First make a custom layer for you modifications and add it to bblayers.conf. Then modify your machine definition of KERNEL_DEVICETREE (in meta-yourlayer/conf/machine/machinname.conf) to specify multiple device trees, e.g. KERNEL_DEVICETREE = "at91-sama5d27_wlsom1_ek.dtb at91-sama5d27_wlsom1_ek_custom.dtb" Note this should specify the "dtb" (compiled device tree name), not the "dts" (source.) Next, make a .bbappend for your linux recipe that will provide the .dts source, something like: FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += " \ file://at91-sama5d27_wlsom1_ek_custom.dts;subdir=git/arch/arm/boot/dts \ " Make a subdirectory with package name (e.g. linux-yocto) and put your dts in there. The "subdir" directive tells bitbake to drop the dts into the appropriate directory for the linux build process to find it. The device tree(s) will be built along with linux and put in the image's /boot directory. You can select which device tree you want to boot with via u-boot, or by manipulating the symbolic links in the /boot directory. Best wishes, Rob Calhoun -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54070): https://lists.yoctoproject.org/g/yocto/message/54070 Mute This Topic: https://lists.yoctoproject.org/mt/83892570/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel: install .efi image if available
EFI images are being generated for x86 platforms. Signed-off-by: Naveen Saini --- recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 1 + recipes-kernel/zephyr-kernel/zephyr-sample.inc| 6 ++ 2 files changed, 7 insertions(+) diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc index 46f19e2..7d44b97 100644 --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc @@ -13,6 +13,7 @@ ZEPHYR_SYSROOT="${STAGING_DIR_TARGET}" ZEPHYR_MAKE_OUTPUT = "zephyr.elf" ZEPHYR_MAKE_BIN_OUTPUT = "zephyr.bin" +ZEPHYR_MAKE_EFI_OUTPUT = "zephyr.efi" EXTRA_OECMAKE = "\ -DZEPHYR_BASE=${S} \ diff --git a/recipes-kernel/zephyr-kernel/zephyr-sample.inc b/recipes-kernel/zephyr-kernel/zephyr-sample.inc index 7b49611..77fa5ad 100644 --- a/recipes-kernel/zephyr-kernel/zephyr-sample.inc +++ b/recipes-kernel/zephyr-kernel/zephyr-sample.inc @@ -9,9 +9,15 @@ do_install[noexec] = "1" do_deploy () { install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf + if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ] then install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${DEPLOYDIR}/${PN}.bin fi + +if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ] +then + install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ${DEPLOYDIR}/${PN}.efi +fi } addtask deploy after do_compile -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54069): https://lists.yoctoproject.org/g/yocto/message/54069 Mute This Topic: https://lists.yoctoproject.org/mt/84040511/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto] [meta-zephyr][PATCH 1/2] zephyr-kernel/2.6.0: update to include latest commits
Switched to v2.6-branch. It included x86 EFI binary fix. It requried rebasing of yocto toolchain patch. Commits included: 837ab4a915 ARC: save/restore accumulator registers on all ARCv2 HS CPUs by default 0943608550 riscv: openisa_rv32m1: Fix booting of rv32m1_vega 3c56e0df0b cmake: ld: Disable manual linking of libgcc components for host b0cb7412b9 cmake: host-gcc: Remove libgcc library path resolution 80e1b785dc cmake: host-gcc: Detect libgcc for all archs e72a327107 cmake: gcc: Remove no_libgcc exclusion for libgcc detection 1cf1d75d3f Bluetooth: Controller: Fix Data Length Update node Rx reservations e43afd10f7 Bluetooth: Controller: Fix free rx buffer MFIFO enqueue 6d9b318dca Bluetooth: Controller: Minor change to use IS_ENABLED d4d362d081 doc: api: fix devicetree modification version d0dca15734 arch/x86/zefi: Fix entry-nop hack for EFI entry 218e438f3e drivers: bluetooth: hci driver for stm32wb includes clock control f66d0cea06 Tracing: TraceRecorder CMake update d5a1a22b1a python-devicetree: tox: fix mypy c77f8fae83 doc/guides/dts: bindings: Fix code snippet for 'signal-gpios' 3ec1caa504 dts/arm: st: g0: closes parenthesis for soc a221f358eb drivers: flash_stm32_v1: fix a potential unaligned access f5a6110b4a tests: cpp: libcxx: Test with full and nano variants of newlib 1d6106fd5e tests: cpp: libcxx: Use full version of newlib for testing 4b87e90167 cpp: Fix C++ exception handling newlib dependency 1d4d16b748 linker: cpp: Fix C++ exception handling info section linking 4a564cdef0 version: add EXTRAVERSION to VERSION file Signed-off-by: Naveen Saini --- .../0001-cmake-add-yocto-toolchain.patch | 24 +++ ...phyr-2.5.0-cmake-add-yocto-toolchain.patch | 63 +++ .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc | 6 +- .../zephyr-kernel/zephyr-kernel-src-2.6.0.inc | 8 ++- .../zephyr-kernel/zephyr-kernel-src.inc | 3 +- 5 files changed, 85 insertions(+), 19 deletions(-) create mode 100644 recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch diff --git a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch b/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch index caab16f..563af7d 100644 --- a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch +++ b/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch @@ -1,6 +1,6 @@ -From 511745625637da0effca13c5489a392e15d32271 Mon Sep 17 00:00:00 2001 +From bfab268c870548e3e7a24ea67ebed2a0513b2307 Mon Sep 17 00:00:00 2001 From: Naveen Saini -Date: Tue, 31 Mar 2020 13:22:17 +0800 +Date: Wed, 7 Jul 2021 13:53:05 +0800 Subject: [PATCH] cmake: add yocto toolchain Upstream status: inappropriate [OE specific] @@ -15,23 +15,23 @@ Signed-off-by: Naveen Saini create mode 100644 cmake/toolchain/yocto/target.cmake diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake -index 401cc28db8..5a026f4559 100644 +index 2b90c5d2ef..b6f28b2f87 100644 --- a/cmake/compiler/gcc/target.cmake +++ b/cmake/compiler/gcc/target.cmake -@@ -66,13 +66,6 @@ if(NOT no_libgcc) - OUTPUT_STRIP_TRAILING_WHITESPACE - ) +@@ -68,13 +68,6 @@ execute_process( + OUTPUT_STRIP_TRAILING_WHITESPACE + ) -- assert_exists(LIBGCC_FILE_NAME) +-assert_exists(LIBGCC_FILE_NAME) - -- get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME} DIRECTORY) +-get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME} DIRECTORY) - -- assert_exists(LIBGCC_DIR) +-assert_exists(LIBGCC_DIR) - -- LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"") - LIST(APPEND TOOLCHAIN_LIBS gcc) - endif() +-LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"") + LIST(APPEND TOOLCHAIN_LIBS gcc) + if(SYSROOT_DIR) diff --git a/cmake/toolchain/yocto/generic.cmake b/cmake/toolchain/yocto/generic.cmake new file mode 100644 index 00..45e5777e2a diff --git a/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch b/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch new file mode 100644 index 000..caab16f --- /dev/null +++ b/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch @@ -0,0 +1,63 @@ +From 511745625637da0effca13c5489a392e15d32271 Mon Sep 17 00:00:00 2001 +From: Naveen Saini +Date: Tue, 31 Mar 2020 13:22:17 +0800 +Subject: [PATCH] cmake: add yocto toolchain + +Upstream status: inappropriate [OE specific] + +Signed-off-by: Naveen Saini +--- + cmake/compiler/gcc/target.cmake | 7 --- + cmake/toolchain/yocto/generic.cmake | 13 + + cmake/toolchain/yocto/target.cmake | 1 + + 3 files changed, 14 insertions(+), 7 deletions(-) + create mode 100644 cmake/toolchain/yocto/generic.cmake + create mode 100644 cmake/toolchain/yocto/target.cmake + +diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake +index 401cc28db8..5a026f4559 100644 +--- a/cmake/compiler/gcc/target.cmake