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.adoc
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -389,12 +389,17 @@ Workaround by checking out kernel 4.17 as explained at <<linux-kernel-build-vari
389
389
More information at: <<gem5>>
390
390
391
391
[[docker]]
392
-
=== QEMU Buildroot setup inside Docker
392
+
=== Docker host setup
393
393
394
-
This is the same as the native <<qemu-buildroot-setup>>, but run from inside a link:https://en.wikipedia.org/wiki/Docker_(software)[Docker] on the host.
394
+
This repository has been tested inside clean link:https://en.wikipedia.org/wiki/Docker_(software)[Docker] containers.
395
395
396
396
This is a good option if you are on a Linux host, but the native setup failed due to your weird host distribution, and you have better things to do with your life than to debug it.
397
397
398
+
Buildroot is the most complex thing we build, and therefore the most likely to break, so running inside Docker is specially relevant to run:
399
+
400
+
* <<qemu-buildroot-setup>>
401
+
* <<gem5-buildroot-setup>>
402
+
398
403
Before anything, you must get rid of any host build files on `out/` if you have any. A simple way to do this it to:
399
404
400
405
....
@@ -439,15 +444,15 @@ Restart the container:
439
444
./rundocker
440
445
....
441
446
442
-
Open a second shell in a running container:
447
+
In order to use functionality such as <<gdb>>, you need a second shell inside the container. You can either do that with:
443
448
444
449
....
445
450
./rundocker sh
446
451
....
447
452
448
-
You will need this for example to use <<gdb>>.
453
+
or even better, by starting a <<tmux>> session inside the container. We install `tmux` by default in the container.
449
454
450
-
Start a second shell, and run a command in it at the same time:
455
+
You can start a second shell and run a command in it at the same time with:
451
456
452
457
....
453
458
./rundocker sh ./rungdb start_kernel
@@ -495,12 +500,14 @@ After this, to start using Docker again will you need another:
495
500
./rundocker setup
496
501
....
497
502
503
+
Tested on: a760cb1196161e913a94684e03cfeaebf71f0cdd
504
+
498
505
[[prebuilt]]
499
506
=== Prebuilt setup
500
507
501
508
==== About the prebuilt setup
502
509
503
-
This setup uses prebuilt binaries of the <<qemu-buildroot-setup>> that we upload to GitHub from time to time.
510
+
This setup uses prebuilt binaries of the <<qemu-buildroot-setup>> that we upload to GitHub from time to time.
504
511
505
512
We don't currently provide a full prebuilt because it would be too big to host freely, notably because of the cross toolchain.
0 commit comments