./run -g almost fully ported in theory, not extensively tested

This commit is contained in:
Ciro Santilli
2018-08-27 00:26:43 +01:00
parent 561c08a286
commit 17c38b0c81
3 changed files with 184 additions and 216 deletions

View File

@@ -9,7 +9,7 @@
:toclevels: 6
:toc-title:
Run one command, get a QEMU or gem5 Buildroot BusyBox virtual machine built from source with several minimal Linux kernel 4.18 module development example tutorials with GDB and KGDB step debugging and minimal educational hardware device models. "Tested" in x86, ARM and MIPS guests, Ubuntu 18.04 host.
Run one command, get a QEMU or gem5 Buildroot BusyBox virtual machine built from source with several minimal Linux kernel 4.18 module development example tutorials with GDB and KGDB step debugging and minimal educational hardware device models. "Tested" in x86, ARM, Ubuntu 18.04 host.
toc::[]
@@ -2392,8 +2392,6 @@ We also have one letter shorthand names for the architectures:
./run -a A
# arm
./run -a a
# mips64
./run -a m
# x86_64
./run -a x
....
@@ -2470,27 +2468,11 @@ but it fails with:
a.out: line 1: syntax error: unexpected word (expecting ")")
....
=== mips64
=== MIPS
Keep in mind that MIPS has the worst support compared to our other architectures due to the smaller community. Patches welcome as usual.
We used to "support" it until f8c0502bb2680f2dbe7c1f3d7958f60265347005 (it booted) but dropped since one was testing it often.
TODOs:
* networking is not working. See also:
** https://stackoverflow.com/questions/21496449/networking-is-not-working-on-qemu-guest-malta-mips
** https://unix.stackexchange.com/questions/208266/setting-up-qemu-and-mipsel-networking-trouble
** https://unix.stackexchange.com/questions/354127/qemu-mips-and-debian
* <<gdb>> does not work properly, does not find `start_kernel`
==== mips64 X11
Haven't tried it, doubt it will work out of the box! :-)
Maybe: https://stackoverflow.com/questions/47857023/booting-a-graphical-mips-qemu-machine
==== mips64 gem5
Haven't tried.
If you want to revive and maintain it, send a pull request.
== init
@@ -6462,8 +6444,6 @@ Source: link:rootfs_overlay/gpio.sh[]
Buildroot's Linux tools package provides some GPIO CLI tools: `lsgpio`, `gpio-event-mon`, `gpio-hammer`, TODO document them here.
Those broke MIPS build in 2017-02: https://bugs.busybox.net/show_bug.cgi?id=10276 and so we force disable them in our MIPS build currently.
==== LEDs
TODO: broken when `arm` moved to `-M virt`, same as <<gpio>>.