Forum Discussion

james57's avatar
james57
Icon for Occasional Contributor rankOccasional Contributor
1 year ago
Solved

Updating Yocto from Nanbield to Scarthgap Error

Hi there,

I am currently looking to update the version of linux I am building for from the previous nanbield-4.3.4 on GSRD to the new lts scarthgap-5.0.2.

I have run the commands from the GSRD to do so a few times and contiune to run into the same error continuously. After starting the bitbake core-minimal-image command the bitbake process starts to parse recipes, when it fails due to an error.

I will post a screenshot of the error it encounters.

The issue is due to the following .bb file, openssh_9.6p1.bb located in gsrd_socfpga/poky/meta/recipes-connectivity/openssh
The .bb file calls for fix-potential-signed-overflow-in-pointer-arithmatic.patch, but this file does not exist in the current version of scarthgap-5.0.2, or in the master branch.

scarthgap:
https://github.com/openembedded/openembedded-core/tree/scarthgap/meta/recipes-connectivity/openssh/openssh/fix-potential-signed-overflow-in-pointer-arithmatic.patch

nanbield:
https://github.com/openembedded/openembedded-core/blob/nanbield/meta/recipes-connectivity/openssh/openssh/fix-potential-signed-overflow-in-pointer-arithmatic.patch

I attempted to modify the .bb file to not call the SRC_URI of the needed .patch file but was unable to find the correct location of the call.

The file still exists in the older nanbield version, and yocto builds when I insert the file into the correct location however this is a lazy fix as I am still counting on outdated versions and would like to change to the new lts.

Am I missing something or was this overlooked?

Cheers,
James