Skip to contentSkip to conversation

Issues Integrating meta-marvell with Yocto Scarthgap Branch

DISCUSSION [email protected] 3 participants 4 messages Sep 5, 2024 – Jan 29, 2025

lore
Share & tools
lore
#0 lore raw

*Dear Yocto Community,*

I am experiencing challenges in integrating the meta-marvell layer with the Yocto Scarthgap branch. Here are the specific issues I'm encountering:

*

*Python Version Compatibility* : The meta-marvell layer was last updated for the Krogoth branch, which uses Python 2.x. However, the Scarthgap branch requires Python 3.8 or later, leading to incompatibility issues.

*

*Syntax Errors* : There are numerous syntax-related errors arising from the differences between the Krogoth and Scarthgap releases, which are creating significant hurdles in the build process.

Given these challenges, I am seeking guidance on how to address these compatibility issues. Specifically, I would appreciate advice on:

* *Updating the meta-marvell Layer* : Steps to update the meta-marvell layer to be compatible with Python 3.x and the Scarthgap branch.
* *Resolving Syntax Issues* : Strategies for resolving the syntax errors introduced by the gap between the Krogoth and Scarthgap releases.

#1 lore raw

I would suggest that you don't seek 'generic' guidance, but rather show the specific errors that you're not sure how to resolve, and then we can try to help.

An alternative option is to investigate whether your board can be directly supported by the standard linux-yocto kernel and bootloader, and then make your own tiny BSP layer that sets those appropriately.

What's the board you're using, exactly? Did you try to approach Marvell for guidance first?

Alex

Quoted 23 lines · On Thu, 5 Sept 2024 at 13:39, sushma.siri1705 via lists.yoctoproject.org…

Dear Yocto Community,

I am experiencing challenges in integrating the meta-marvell layer with the Yocto Scarthgap branch. Here are the specific issues I'm encountering:

Python Version Compatibility: The meta-marvell layer was last updated for the Krogoth branch, which uses Python 2.x. However, the Scarthgap branch requires Python 3.8 or later, leading to incompatibility issues.

Syntax Errors: There are numerous syntax-related errors arising from the differences between the Krogoth and Scarthgap releases, which are creating significant hurdles in the build process.

Given these challenges, I am seeking guidance on how to address these compatibility issues. Specifically, I would appreciate advice on:

Updating the meta-marvell Layer: Steps to update the meta-marvell layer to be compatible with Python 3.x and the Scarthgap branch. Resolving Syntax Issues: Strategies for resolving the syntax errors introduced by the gap between the Krogoth and Scarthgap releases.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63786): https://lists.yoctoproject.org/g/yocto/message/63786
Mute This Topic: https://lists.yoctoproject.org/mt/108283149/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Hi Alex,

Thank you for your response.

I’m working with the Marvell Armada 7040 board and haven't reached out to Marvell for support yet.

While integrating the meta-marvell layer from the krogoth branch into the scarthgap Yocto workspace, I encountered several syntax errors, which I’ve since resolved.

However, I've now run into a new build error related to SPDX.

Below is the error snippet:
====================================
Build Output
====================================

sushma@sushma:~/poky/build$ bitbake core-image-full-cmdline
WARNING: Layer marvell-layer should set LAYERSERIES_COMPAT_marvell-layer in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |########################################################################################################################################################################| Time: 0:01:08
Loaded 5181 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = "2.8.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "db-88f7040-pcac"
DISTRO               = "poky"
DISTRO_VERSION       = "5.0.3"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "scarthgap:8637aa34f0009421eb6c51a93588fe879950e1f4"
meta-oe
meta-python
meta-networking
meta-perl
meta-webserver
meta-gnome
meta-multimedia
meta-xfce
meta-initramfs
meta-filesystems     = "scarthgap:1235dd4ed4a57e67683c045ad76b6a0f9e896b45"
meta-marvell         = "krogoth:49746295faf8de5c732c72f38301742e4954e501"
Sstate summary: Wanted 1468 Local 777 Mirrors 0 Missed 691 Current 1130 (52% match, 73% complete)###########################################################################                 | ETA:  0:00:22
Removing 6 stale sstate objects for arch db_88f7040_pcac: 100% |#############################################################################################################################| Time: 0:00:00
Removing 272 stale sstate objects for arch aarch64: 100% |###################################################################################################################################| Time: 0:00:08
Removing 6 stale sstate objects for arch allarch: 100% |#####################################################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: run-postinsts-1.0-r0 do_create_spdx: Cannot find any SPDX file for recipe initscripts, False sstate:initscripts:cortexa57-poky-linux:1.0:r0:cortexa57:12: sstate:initscripts::1.0:r0::12:
ERROR: Logfile of failure stored in: /home/sushma/poky/build/tmp/work/all-poky-linux/run-postinsts/1.0/temp/log.do_create_spdx.249820
ERROR: Task (/home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb:do_create_spdx) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4059 tasks of which 4054 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb:do_create_spdx
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.

================================================
Last few lines from file: /home/...../log.do_create_spdx.249820
================================================
/home/sushma/poky/meta/recipes-devtools/run-postinsts/files/aarch64 /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts-1.0/armada70xx /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts/armada70xx /home/sushma/poky/meta/recipes-devtools/run-postinsts/files/armada70xx /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts-1.0/allarch /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts/allarch /home/sushma/poky/meta/recipes-devtools/run-postinsts/files/allarch /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts-1.0/ /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts/
/home/sushma/poky/meta/recipes-devtools/run-postinsts/files/
DEBUG: Using /home/sushma/poky/meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service for run-postinsts.service
DEBUG: Scanning 0 patches for CVEs
ERROR: Cannot find any SPDX file for recipe initscripts, False sstate:initscripts:cortexa57-poky-linux:1.0:r0:cortexa57:12: sstate:initscripts::1.0:r0::12:
DEBUG: Python function do_create_spdx finished

#3 lore raw

Do you find any solution for this issue? I am also facing the same issue with the scarthgap version.