You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ Also imagine: A NuttX Dashboard that lights up in Real-Time, as the various Nutt
20
20
21
21
# Install TinyEMU
22
22
23
-
To install TinyEMU on macOS:
23
+
_How to run TinyEMU in the Command Line?_
24
+
25
+
We begin with TinyEMU in the Command Line, then move to WebAssembly. To install TinyEMU on macOS:
24
26
25
27
```bash
26
28
brew tap fernandotcl/homebrew-fernandotcl
@@ -34,6 +36,8 @@ TODO: Generate the Emscripten JavaScript via [GitHub Actions](https://github.com
34
36
35
37
# RISC-V Addresses for TinyEMU
36
38
39
+
_Where in RAM will NuttX boot?_
40
+
37
41
TinyEMU is hardcoded to run at these RISC-V Addresses (yep it's really barebones): [riscv_machine.c](https://github.com/fernandotcl/TinyEMU/blob/master/riscv_machine.c#L66-L82)
38
42
39
43
```c
@@ -60,7 +64,9 @@ We begin with the NuttX Port for QEMU 64-bit RISC-V...
60
64
61
65
# TinyEMU Config
62
66
63
-
We configure a Virtual Machine for TinyEMU like this: [buildroot-riscv64.cfg](https://bellard.org/jslinux/buildroot-riscv64.cfg)
67
+
_What's inside a TinyEMU Config?_
68
+
69
+
RISC-V Virtual Machines for TinyEMU are configured like this: [buildroot-riscv64.cfg](https://bellard.org/jslinux/buildroot-riscv64.cfg)
64
70
65
71
```text
66
72
/* VM configuration file */
@@ -88,6 +94,8 @@ Thus we put NuttX Kernel into `bios` and leave `kernel` empty.
88
94
89
95
# Build NuttX for TinyEMU
90
96
97
+
_Will NuttX boot on TinyEMU?_
98
+
91
99
NuttX for QEMU RISC-V is already configured to boot at 0x8000_0000: [ld.script](https://github.com/lupyuen2/wip-pinephone-nuttx/blob/tinyemu/boards/risc-v/qemu-rv/rv-virt/scripts/ld.script#L21-L27)
92
100
93
101
```text
@@ -157,7 +165,9 @@ riscv64-unknown-elf-objdump \
157
165
158
166
# Run NuttX on TinyEMU
159
167
160
-
We create a TinyEMU Config for NuttX and run it...
168
+
_How to boot NuttX on TinyEMU?_
169
+
170
+
We create a TinyEMU Config for NuttX and run it: [root-riscv64.cfg](https://github.com/lupyuen/nuttx-tinyemu/blob/main/docs/root-riscv64.cfg)
0 commit comments