mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
adoc
Semi automated conversion, in part because Pandoc is kind of buggy for adoc:
Some of the commands were along the lines:
for f in *.md; do pandoc --atx-headers --base-header-level=3 -o ${f%.md}.adoc --wrap=none $f; done
sed -Ei '/\[\[.*\]\]/d' *.adoc
while read -r f; do cat $f; echo; done <f >g
This commit is contained in:
48
other-architectures.adoc
Normal file
48
other-architectures.adoc
Normal file
@@ -0,0 +1,48 @@
|
||||
=== Other architectures
|
||||
|
||||
The portability of the kernel and toolchains is amazing: change an option and most things magically work on completely different hardware.
|
||||
|
||||
==== arm
|
||||
|
||||
First build:
|
||||
|
||||
....
|
||||
./build -a arm
|
||||
./run -a arm
|
||||
....
|
||||
|
||||
Debug:
|
||||
|
||||
....
|
||||
./run -a arm -d
|
||||
# On another terminal.
|
||||
./rungdb -a arm
|
||||
....
|
||||
|
||||
TODOs:
|
||||
|
||||
* only managed to run in the terminal interface (but weirdly a blank QEMU window is still opened)
|
||||
* GDB not connecting to KGDB. Possibly linked to `-serial stdio`. See also: https://stackoverflow.com/questions/14155577/how-to-use-kgdb-on-arm
|
||||
|
||||
==== aarch64
|
||||
|
||||
....
|
||||
./build -a aarch64
|
||||
....
|
||||
|
||||
TODOs:
|
||||
|
||||
* GDB gives a ton of messages:
|
||||
+
|
||||
....
|
||||
no module object found for ''
|
||||
....
|
||||
+
|
||||
when you connect. `Ctrl + C` then `c` works though.
|
||||
* How to add devices to `-M virt` as we did for `-M versatilepb`
|
||||
|
||||
==== mips64
|
||||
|
||||
....
|
||||
./build -a mips64
|
||||
....
|
||||
Reference in New Issue
Block a user