buildroot: Add initial upstreamd buildroot support (sim with hypervisor)#5
buildroot: Add initial upstreamd buildroot support (sim with hypervisor)#5inochisa wants to merge 5 commits into
Conversation
|
Hi, @Dolu1990. Can you have a simple try. Now I only bumped the opensbi version. At least I can run the OpenSBI with the TestBench. But there is a small problem for it: This should be generated along with ISA_STR. But I have no idea about how it was produced. |
7c4cd82 to
515f940
Compare
|
Hi, @Dolu1990. I have two problem for updating the buildroot:
|
1d2bb4d to
2204243
Compare
Hi @inochisa (i'm using as reference https://github.com/litex-hub/linux-on-litex-vexriscv/blob/1535a97970830072a8ea1cbdb81e03eb2fb25d77/buildroot/board/litex_vexriscv/linux.config#L5) |
Great.
Although I think the portable build could be OK, it is fine for me to add the this option. I have updated the branch and add these necessary things. |
|
Emmm, I have updated the build script and replace QEMU with kvmtool. The qemu is too big to use. With Qemu, the size of rootfs is more than 300MiB. XD. |
af26502 to
a25a1a4
Compare
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
|
@Dolu1990, At least the lasted build can boot now. (I have forgot to set CONFIG_VIRTUALIZATION=y in this build, but this is fixed in the commit.) Edit: Add full poweroff log Command: mill Test[].runMain vexiiriscv.tester.TestBench \
--with-isa=g,c,h,zihpm,zicntr --xlen=64 \
--pmp-size=4 \
--fetch-l1 --fetch-l1-ways=2 --fetch-l1-ways=4 --fetch-l1-mem-data-width-min=64 \
--lsu-l1 --lsu-l1-ways=2 --with-lsu-bypass --lsu-l1-ways=4 --lsu-l1-mem-data-width-min=64 --lsu-l1-coherency \
--relaxed-branch --allow-bypass-from=0 \
--print-stats \
--fetch-l1-hardware-prefetch=nl --fetch-l1-refill-count=3 \
--lsu-l1-store-buffer-slots=4 --lsu-l1-store-buffer-ops=32 \
--fail-symbol=_start_hang --pass-symbol=spinal_do_poweroff_pass \
--load-elf /mnt/chroots/buildroot-nax/images/fw_payload.elf \
--load-bin 0x81000000,/mnt/chroots/buildroot-nax/images/rootfs.cpioRunning log: |
| ranges; | ||
|
|
||
| serial0: serial@10000000 { | ||
| compatible = "spinal,vexiiriscv-uart"; |
There was a problem hiding this comment.
Why not relying on the opensbi terminal instead (hvc0) ?
I mean that, as a way to reduce dependencies on custom drivers ^^
There was a problem hiding this comment.
The kernel does rely on the HVC, this node is for OpenSBI. As OpenSBI take this node so it can go with generic platform.
There was a problem hiding this comment.
And if you check my log in detail, you can just find even the kernel is produced by buildroot, almost everything is upstream thing (except OpenSBI) ^^
Initial support for upstreamd buildroot for the NaxSim
Require PR (SpinalHDL/VexiiRiscv#120). Especially for commit project-inochi/VexiiRiscv@4d563ef (Which adding new method for GETC check).