Skip to content

Commit 0bd53a4

Browse files
committed
getting started: some small fixes
1 parent 1fda635 commit 0bd53a4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.adoc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ All available modules can be found in the link:kernel_modules[] directory.
8787
It is super easy to build for different CPU architectures, just use the `--arch` option:
8888

8989
....
90-
./build --arch aarch64
90+
./build --arch aarch64 --download-dependencies qemu-buildroot
9191
./run --arch aarch64
9292
....
9393

94-
To avoid typing `--arch aarch64` so many times, set the default arch as explained at: <<default-command-line-arguments>>
94+
To avoid typing `--arch aarch64` many times, you set the default arch as explained at: <<default-command-line-arguments>>
9595

9696
See also: <<cpu-architecture,CPU architectures>>.
9797

@@ -221,11 +221,11 @@ and the new `pr_info` message should now show on the terminal at the end of the
221221

222222
This works because we have a <<9p>> mount there setup by default, which makes a host directory available on the guest.
223223

224-
The fast is slightly risky because your kernel module might have corrupted the kernel memory, which could affect future runs.
224+
The fast method is slightly risky because your kernel module might have corrupted the kernel memory, which could affect future runs.
225225

226226
Such failures are however unlikely, and you should be fine if you don't see anything weird happening.
227227

228-
The safe way, is to fist quit QEMU, then rebuild the modules, put them in the root filesystem, and then reboot:
228+
The safe way, is to fist quit QEMU, rebuild the modules, put them in the root filesystem, and then reboot:
229229

230230
....
231231
./build-modules
@@ -310,7 +310,11 @@ Read the following sections for further introductory material:
310310

311311
This setup is like the <<qemu-buildroot-setup>>, but it uses link:http://gem5.org/[gem5] instead of QEMU as a system simulator.
312312

313-
QEMU tries to run as fast as possible and give correct results at the end, but it does not tell us how many CPU cycles it takes to do something, just the number of instructions it ran, and this cannot be used to estimate system performance. This is known as a functional simulation.
313+
QEMU tries to run as fast as possible and give correct results at the end, but it does not tell us how many CPU cycles it takes to do something, just the number of instructions it ran.
314+
315+
The number of instructions executed is a very poor estimator of performance because in modern computers, a lot of time is spent waiting for memory requests rather than the instructions themselves.
316+
317+
This kind of simulation is known as functional simulation.
314318

315319
gem5 on the other hand, can simulate the system in more detail than QEMU, including:
316320

@@ -351,13 +355,13 @@ You can quit the shell without killing gem5 by typing tilde followed by a period
351355
~.
352356
....
353357

354-
If you are inside <<tmux>>, which I highly recommend, just run gem5 with:
358+
If you are inside <<tmux>>, which I highly recommend, you can both run gem5 stdout and open the guest terminal on a split window with:
355359

356360
....
357361
./run --gem5 --tmux
358362
....
359363

360-
This will open up a split terminal by default so that you can see both the gem5 stdout and the terminal. See also: <<tmux-gem5>>.
364+
See also: <<tmux-gem5>>.
361365

362366
At the end of boot, it might not be very clear that you have the shell since some <<printk>> messages may appear in front of the prompt like this:
363367

0 commit comments

Comments
 (0)