Skip to content

Commit cb013d3

Browse files
committed
Update doc
1 parent 4027edc commit cb013d3

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ Also imagine: A NuttX Dashboard that lights up in Real-Time, as the various Nutt
2020

2121
# Install TinyEMU
2222

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:
2426

2527
```bash
2628
brew tap fernandotcl/homebrew-fernandotcl
@@ -34,6 +36,8 @@ TODO: Generate the Emscripten JavaScript via [GitHub Actions](https://github.com
3436

3537
# RISC-V Addresses for TinyEMU
3638

39+
_Where in RAM will NuttX boot?_
40+
3741
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)
3842

3943
```c
@@ -60,7 +64,9 @@ We begin with the NuttX Port for QEMU 64-bit RISC-V...
6064
6165
# TinyEMU Config
6266
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)
6470
6571
```text
6672
/* VM configuration file */
@@ -88,6 +94,8 @@ Thus we put NuttX Kernel into `bios` and leave `kernel` empty.
8894

8995
# Build NuttX for TinyEMU
9096

97+
_Will NuttX boot on TinyEMU?_
98+
9199
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)
92100

93101
```text
@@ -157,7 +165,9 @@ riscv64-unknown-elf-objdump \
157165

158166
# Run NuttX on TinyEMU
159167

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)
161171

162172
```bash
163173
$ cat nuttx.cfg

0 commit comments

Comments
 (0)