Skip to content

Commit 7ba38ad

Browse files
committed
Success. Format notes.md as a report of what has been done.
Signed-off-by: Artyom Gevorgyan <[email protected]>
1 parent fcfc314 commit 7ba38ad

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

notes.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
We can't build softmmu-* targets with --static flag, here is a
1+
~~We can't build softmmu-* targets with --static flag, here is a
22
[thread](https://lists.gnu.org/archive/html/qemu-devel/2011-11/msg02878.html)
33
from QEMU mailing list that shows why (and I have experienced more or
44
less the same - qemu would just not build and complain about missing
@@ -8,21 +8,21 @@ found this
88
[Debian wiki page](https://wiki.debian.org/RISC-V#Manual_qemu-user_installation)
99
that talks about static qemu-riscv binaries,
1010
and they only mention linux-user target (not softmmu, and we need the
11-
latter). So maybe it is just not possible to build softmmu targets with
12-
static flag :unamused:? But suppose rminnich knows what he is doing.
11+
latter).~~ Turns out it is still possible to do so (why - no idea, but it
12+
works and thank QEMU for that)
1313

14-
- Current build is useless, as it is for running programs in
15-
linux-user mode.
14+
- A *-linux-user target is for running programs in user mode, for
15+
example, it will run an example from test/usermode/data.
1616

1717
The origial PR failed because device loader was not found. However, it
1818
used a flag --without-default-devices, or something like that, which
1919
could just disable that device.
2020

21-
- :x: Try removing that flag.
21+
- [x] Try removing that flag. (Worked)
2222

2323
Also anyway need to update QEMU to version 5.1.0, so all the builds
2424
should be executed with that version.
2525

26-
Also I thought that using softmmut-* target requries that we also copy
26+
I thought that using softmmut-* target requries that we also copy
2727
the qemu-img binary to usr/bin, but now seems like that is not a
2828
requirement with --static flag.

test/example_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
IMAGE=./softmmu/hifive ./qemu-system-riscv64 -m 1g -machine sifive_u,start-in-flash=true -nographic -device loader,addr=0x20000000,file=${IMAGE} -bios none -smp 4
3+
./qemu-system-riscv64 -m 1g -machine sifive_u,start-in-flash=true -nographic -device loader,addr=0x20000000,file=softmmu/hifive -bios none -smp 4

test/notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
run ./example_run.sh

0 commit comments

Comments
 (0)