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

riscv32 toolchain is already included in the buildroot? #5

Open
w32zhong opened this issue Mar 28, 2023 · 3 comments
Open

riscv32 toolchain is already included in the buildroot? #5

w32zhong opened this issue Mar 28, 2023 · 3 comments

Comments

@w32zhong
Copy link

I have tried to set PATH to linux_for_riscv_em/output_mmu_rv32/buildroot/output/host/bin/, I built the Linux kernel and it runs successfully in your emulator.

I think buildroot has built the toolchain already, so there is no need to download your pre-built binaries from https://github.com/franzflasch/gcc-build-tools. Should we mention this in the README?

@franzflasch
Copy link
Owner

franzflasch commented Mar 29, 2023

I remember that I did this for a reason, but I forgot for what reason exactly...

Did you test this with both RV32 and RV64? If it works with both, then please feel free to send a PR and I will merge it :)

@w32zhong
Copy link
Author

@franzflasch I tested it with RV32 for mmu support and can only confirm that.

But it seems the specified cross compiler is riscv64-none-elf-* in your RV32 script:

make ARCH=riscv CROSS_COMPILE=riscv64-none-elf- -j16 loader

which is different from the riscv32-linux-gnu-* in the RV64 script. Not sure if this is critical to be different, if so, my guess it is incompatible to the cross compilers provided by buildroot?

I will need more time to try RV64. But if you need the RV32 script changes, I have it now.

@franzflasch
Copy link
Owner

Please send a PR if it also works for RV64. Thanks!

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

2 participants