openhwgroup / cva6-sdk

CVA6 SDK containing RISC-V tools and Buildroot
60 stars 65 forks source link

Incorrect selection of kernel headers: expected 4.13.x, got 5.0.x #24

Closed mathmax12 closed 5 years ago

mathmax12 commented 5 years ago

Hi,

It's a little wired. The "make vmlinux" work well before. But today I got a "Incorrect selection of kernel headers: expected 4.13.x, got 5.0.x" issue when run "make vmlinux". I tried to change both of "buildroot -> Toolchain -> Custom kernel headers series " and kernel version to 4.18, which is the latest version in my buidroot.

But I still got the issue "Incorrect selection of kernel headers: expected 4.18.x, got 5.0.x".

Any help is appreciated.

Moschn commented 5 years ago

Did you recently update your host kernel? I think the headers in toolchain->kernel headers are the ones supported by your cross compilation toolchain. Therefore they must be the same as your host kernel.

I would assume that we need to bump the buildroot submodule every once in a while to support the most recent kernel versions.

Moschn commented 5 years ago

Can you try to bumb the buildroot submodule and see if the 5.0.x option becomes available?

mathmax12 commented 5 years ago

@Moschn I didn't update my host kernel. The kernel used in the buildroot is from here , which is 5.0 x.

Maybe I changed some settings...

But it's resolved by using the latest version of Buildroot, which has the 5.0.x.