Posts
4831
Following
321
Followers
491
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Edited 1 year ago

OK, something probably pretty basic with #QEMU I need to ask.

I have this command-line, which is generated by #Keystone #RISCV #TEE build:

/home/jarkkojs/work/keystone/qemu/build/riscv64-softmmu/qemu-system-riscv64 \
   $DEBUG \
   -m 2G \
   -nographic \
   -machine virt,rom=/home/jarkkojs/work/keystone/build/bootrom.build/bootrom.bin \
   -bios /home/jarkkojs/work/keystone/build/sm.build/platform/generic/firmware/fw_payload.bin \
    \
   -netdev user,id=net0,net=192.168.100.1/24,dhcpstart=192.168.100.128,hostfwd=tcp::${HOST_PORT}-:22 \
   -device virtio-net-device,netdev=net0 \
   -device virtio-rng-pci \
   -smp $SMP

QEMU has support for #Spike, which is #CVA6 emulation.

So when I do to the above command-line simply s/virt,/spike,/g, I get this error:

$ build/scripts/run-qemu.sh
**** Running QEMU SSH on port 3617 ****
qemu-system-riscv64: Property 'spike-machine.rom' not found

How do I end up to this error message? Why does it seek a filename like that? Without rom= I can run Spike emulation but I need that bootrom for the application.

1
1
0

Jarkko Sakkinen

Edited 1 year ago
@bsdphk @mjg59 One innovation in this area that might be cool or even useful, would be to translate AML to eBPF and use unified interpreter for both inside kernel (perhaps). It would be useful for e.g. ACPI debugging when you could try ACPI table fixup with eBPF program... Not sure how feasible would be but if it was feasible I could see applications...
0
0
0

Jarkko Sakkinen

Edited 1 year ago
@bsdphk @mjg59 And stack machines are best for the task because they work for any ISA created by us (humans).
1
0
0
@bsdphk @mjg59 WebAssembly because it is sort of stack machine, which sort of fits for tasks that ACPI is good for... could be any Forth alike. But since AML does its job pretty well, and we know it pretty well, I'd hate it to be switched more than I hate AML (which I don't like but I *know* it).
1
0
0
@bsdphk @mjg59 It is pretty hard to see how these would map for task that AML does TBH. I'd get someone proposing eBPF based BIOS/firmware (perhaps), or even WebAssembly would make more sense in this context :-)
1
0
0

Jarkko Sakkinen

#Aalto managementin vaalitentissä paistaa ehkä eniten #demokratian:n vastaisuus, koska käsittääkseni näitä sisältöjä voi katsoa vain #X-tunnuksella. Seuraavaksi luennot instaan tai tiktokiin?
0
0
1

Jarkko Sakkinen

#Debian carries old 0.7.2 version of #neovim (even trixie), and neovim does not provide #arm64 (aka #aarch64) builds. This worked well for getting up-to-date nvim binary: https://github.com/matsuu/neovim-aarch64-appimage. I used #podman aliased as #docker.
0
0
0

Jarkko Sakkinen

I've used the one for #Linux #kernel for years but apparently there is also #LXR hosting from #Bootlin for #QEMU: https://elixir.bootlin.com/qemu/latest/source
0
1
1

Jarkko Sakkinen

aihetta sen kummemmin tuntematta niin tajunnunvirtahorinasta syyttely twitterissä on jotenkin metatasolla ironisuuden huipentuma, kuten myös "en ole lukenut väitöskirjaa, mutta...". https://www.iltalehti.fi/kotimaa/a/a5edc628-90e1-45fc-a7b0-0c7d763995b3
0
0
0
Also need a new one for my old Raspberry Pi 3B+ which I use to test kernel patches that use TrustZone.
0
0
0

Jarkko Sakkinen

ordered a pile of #UART TTL #USB converters. out of stash, and they tend to break down :-) i need one to get serial console to #VisionFive2 RISC-V board. #riscv
1
0
0

Jarkko Sakkinen

en #politiikka'a hirveästi seuraile, mutta onhan tämä täysin todellisuudesta iralllaan olevaa paskaa, kun pikemminkin tänne pitäisi houkutella ihmisiä töihin. enpä taida seurailla jatkossakaan, koska masennus iski heti. https://www.hs.fi/paakirjoitukset/art-2000009944529.html
0
1
2

Jarkko Sakkinen

Edited 1 year ago

If I had to guess it is #CSR configuration in a way or another (equivalent to #MSR’s in #x86). You actually learn #CPU architectures only through painful experiences like this, at least according to my past experience :-) Fingers crossed…

0
0
0

Jarkko Sakkinen

Edited 1 year ago
I got my Genesys 2 FPGA alive with an old version, and can now conclude that either OpenSBI or SM is causing the misbehavior. It is super stressing when you don't even know whether you can get something theoretically to work, and I was in that limbo for few weeks. What a relief although work is not done yet! Was not sure whether the flashed CVA6 had something wrong.
1
0
1

Jarkko Sakkinen

Edited 1 year ago
@billyjoebowers I actually tend to put these ShaperBox as the only mixing plugin when I first construct track in order not to be overwhelmed by choices. It has pretty much those features except AI :-) ShaperBox is more like AL plugin for me, i.e. Artificial Limitation, i.e. if I don't get something to the ballpark what it has then the sound must be wrong...
0
0
0

Jarkko Sakkinen

Edited 1 year ago
I'm trying to get #Keystone #SM ongoing with #CVA6 but stuck with SM's trap handler giving me illegal instruction. I wonder how interpret these values for #mideleg and #medeleg: https://github.com/keystone-enclave/keystone/issues/374#issuecomment-1777032123 #riscv #opensbi
1
0
0

Jarkko Sakkinen

I wish I had one of those #UDOO #BOLT boards so I could test #TPM and trusted keys better with #AMD #hardware. #linux #kernel
0
0
0

Jarkko Sakkinen

#pikvm is great :-)
0
0
1
@conor @gregkh Thanks for the clarification. I'm pretty early stages on learning how whole RISC-V ecosystem works :-)
0
0
1
Show older