openhwgroup / cva6-sdk

CVA6 SDK containing RISC-V tools and Buildroot
59 stars 64 forks source link

Compiling the linux boot image #29

Closed Iripi97 closed 4 years ago

Iripi97 commented 4 years ago

Is it possible to compile the Linux boot image with the "riscv-gnu-toolchain"? I tried to, but received an error when making the 'vmlinux' target that mentioned: incorrect selection of kernel headers 4.13.x expected but got 5.0.x. I have already compiled the image with the "riscv64-unknown-elf" toolchain but we are trying to add additional objects to the file system that are compiled with the "riscv-gnu-toolchain". Should they execute fine if the "riscv64-unknown-elf" toolchain is used for the Linux boot image?

Iripi97 commented 4 years ago

Sorry I'm not sure what went wrong. But after downloading a fresh repo and rebuilding the riscv-gnu-toolchain, I downloaded the ariane-sdk repo, ran 'make all' then 'make vmlinux' and then 'make bbl.bin' and it generated the image successfully.