Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbake core-image-minimal gives me an error on 5.8 #217

Open
jjvazha opened this issue Dec 19, 2020 · 6 comments
Open

bitbake core-image-minimal gives me an error on 5.8 #217

jjvazha opened this issue Dec 19, 2020 · 6 comments

Comments

@jjvazha
Copy link

jjvazha commented Dec 19, 2020

I was following the https://rocketboards.org/foswiki/Documentation/BuildingYoctoOrAngstromForSoCFPGA
I pulled the 5.8

bitbake core-image-minimal gives me an error

DEBUG: Executing shell function do_shared_workdir
cp: cannot stat ‘Module.symvers’: No such file or directory
WARNING: /home/jojan.vazhaeparampil/workspace/distro/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera/5.8+gitAUTOINC+eb446787ab-r0/temp/run.do_shared_workdir.21040:1 exit 1 from 'cp Module.symvers $kerneldir/'
ERROR: Function failed: do_shared_workdir (log file is located at /home/jojan.vazhaeparampil/workspace/distro/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera/5.8+gitAUTOINC+eb446787ab-r0/temp/log.do_shared_workdir.21040)

@kraj
Copy link
Owner

kraj commented Dec 19, 2020

from your logs it seems that its building 5.8 kernel not 5.4 so you might have to set PREFERRED_VERSION

@jjvazha
Copy link
Author

jjvazha commented Dec 19, 2020 via email

@jjvazha
Copy link
Author

jjvazha commented Dec 19, 2020 via email

@jjvazha jjvazha changed the title bitbake core-image-minimal gives me an error on 5.4.64 bitbake core-image-minimal gives me an error on 5.8 Dec 19, 2020
@FabianoGK
Copy link

I do have the same problem:

ERROR: linux-altera-5.8+gitAUTOINC+eb446787ab-r0 do_shared_workdir: Execution of '/media/Data/Project/build/tmp/work/arria10-poky-linux-gnueabi/linux-altera/5.8+gitAUTOINC+eb446787ab-r0/temp/run.do_shared_workdir.1477800' failed with exit code 1:
cp: cannot stat 'Module.symvers': No such file or directory

This is my build configuration on Ubuntu 20.04.2 LTS:

BB_VERSION           = "1.44.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "arria10"
DISTRO               = "poky"
DISTRO_VERSION       = "3.0.2"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "HEAD:74f229160c7f4037107c1dad8f0d02128c080a7e"
meta-oe              = "HEAD:9e60d30669a2ad0598e9abf0cd15ee06b523986b"
meta-altera          = "master:5bb81b77d7bf81a726daec8819fa01c188863f5a"

I had to update the linux-altera recipe to linux-altera_5.8 since the previous Linux branches from linux-socfpga have been deleted (deprecated).

For now, I'm using linux-altera-lts version 5.4.104, which compiles successfully. You can add the following to your layer.conf:

KERNEL_PROVIDER = "linux-altera-lts"

@kraj
Copy link
Owner

kraj commented Jun 11, 2021

Can you cook a patch and propose here?

@FabianoGK
Copy link

FabianoGK commented Jun 11, 2021

Hi @kraj, actually I was able to successfully compile linux-altera_5.8 after upgrading poky and open-embedded layers to dunfell. It must be something incompatible with zeus that caused the issue.

This is my upgraded build configuration on Ubuntu 20.04.2 LTS:

BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "arria10"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1.8"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "dunfell:0abf6820292b8a6ac566db254ff8c9f76bf678b9"
meta-oe              = "dunfell:11eae114522a6befa06c7f4021a83bc016133543"
meta-altera          = "master:5bb81b77d7bf81a726daec8819fa01c188863f5a"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants