davidlt has joined #fedora-riscv
davidlt has quit [Remote host closed the connection]
davidlt has joined #fedora-riscv
jednorozec has quit [Ping timeout: 260 seconds]
jednorozec has joined #fedora-riscv
* rwmjones_
is trying to work out why this doesn't work ...
<
rwmjones_>
$ ./qemu-system-riscv64 -machine virt,accel=tcg -m 2048 -kernel /boot/vmlinuz-6.5.4-300.0.riscv64.fc39.riscv64 -serial stdio
<
rwmjones_>
locally built qemu from git
<
rwmjones_>
it hangs somewhere between opensbi & the kernel, no kernel messages get printed
<
rwmjones_>
(on VF2 hardware, but I don't think that should matter as it should be using TCG)
<
davidlt>
I guess you are debugging it?
<
rwmjones_>
I'm certainly looking at it blankly
<
rwmjones_>
program counter is stuck at
<
rwmjones_>
pc 0000000080200002
<
rwmjones_>
so I guess it's not doing any work
<
rwmjones_>
& the other registers aren't changing, so it does seem to have hung, got stuck in a loop, or halted
<
rwmjones_>
oh wait
<
rwmjones_>
sbi prints:
<
rwmjones_>
Domain0 Next Address : 0x0000000080200000
<
rwmjones_>
so it's probably jumped to $random after sbi
<
rwmjones_>
oh this is probably the EFI compression thing
<
rwmjones_>
maybe not
<
rwmjones_>
$ file /boot/vmlinuz-6.5.4-300.0.riscv64.fc39.riscv64
<
rwmjones_>
/boot/vmlinuz-6.5.4-300.0.riscv64.fc39.riscv64: PE32+ executable (EFI application) RISC-V 64-bit (stripped to external PDB), for MS Windows, 2 sections
<
rwmjones_>
grrr booting VMs is so unnecessarily complicated
<
javierm>
rwmjones_: there's an unzboot tool in Fedora (it's for aarch64 but maybe also works for riscv?)
<
javierm>
to extract the vmlinuz image from a PE binary
<
rwmjones_>
interesting ..
<
davidlt>
rwmjones_, golang hanged pioneer
<
davidlt>
rebooting, and see what happens again
<
rwmjones_>
that's bad ..
<
rwmjones_>
having said that golang is pretty broken for me on vf2 at the moment too (although it's not
*hanging* it!)
<
rwmjones_>
I actually disabled golang bindings on riscv in all my projects until I have time to look at it properly
<
davidlt>
rwmjones_, what happened?
<
davidlt>
I wouldn't be surprised if golang would go massive parallel
<
davidlt>
before it hanged the loads went 70+
<
rwmjones_>
the bindings were crashing with strange pointer errors, I didn't investigate properly yet
<
rwmjones_>
it didn't cause any problems at the machine level
zsun has joined #fedora-riscv
davidlt has quit [Ping timeout: 268 seconds]
davidlt has joined #fedora-riscv
davidlt has quit [Remote host closed the connection]
davidlt has joined #fedora-riscv
<
davidlt>
rwmjones_, restarted task worked
<
davidlt>
rwmjones_, I am doing final modifications for GCC 14
zsun has quit [Quit: Leaving.]
pbsds has quit [Ping timeout: 276 seconds]
pbsds has joined #fedora-riscv
davidlt has quit [Ping timeout: 240 seconds]