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
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,26 +81,23 @@ cd linux-kernel-module-cheat
81
81
82
82
The first configure will take a while (30 minutes to 2 hours) to clone and build, see <<benchmark-builds>> for more details.
83
83
84
-
It does not work if you just download the `.zip` from GitHub because we use link:.gitmodules[Git submodules], you must clone this repo. `./configure` then fetches only the required submodules for you.
85
-
86
-
It is super easy to build for different CPU architectures, just use the `--arch` option:
87
-
88
-
....
89
-
./build-qemu --arch arm && \
90
-
./build-buildroot --arch arm && \
91
-
./run --arch arm && \
92
-
:;
93
-
....
94
-
95
-
See also: <<cpu-architecture,CPU architectures>>.
96
-
97
84
If you don't want to wait, you could also try the following faster but much more limited methods:
98
85
99
86
* <<prebuilt>>
100
87
* <<host>>
101
88
102
89
but you will soon find that they are simply not enough if you anywhere near serious about systems programming.
103
90
91
+
If `./configure` fails with:
92
+
93
+
....
94
+
E: You must put some 'source' URIs in your sources.list
95
+
....
96
+
97
+
see this: https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list/857433#857433 I don't know how to automate this step. Why, Ubuntu, why.
98
+
99
+
It does not work if you just download the `.zip` from GitHub because we use link:.gitmodules[Git submodules], you must clone this repo. `./configure` then fetches only the required submodules for you.
100
+
104
101
After QEMU opens up, you can start playing with the kernel modules:
105
102
106
103
....
@@ -136,6 +133,17 @@ See also: <<quit-qemu-from-text-mode>>.
136
133
137
134
All available modules can be found in the link:packages/kernel_modules/[`kernel_modules` directory].
138
135
136
+
It is super easy to build for different CPU architectures, just use the `--arch` option:
137
+
138
+
....
139
+
./build-qemu --arch arm && \
140
+
./build-buildroot --arch arm && \
141
+
./run --arch arm && \
142
+
:;
143
+
....
144
+
145
+
See also: <<cpu-architecture,CPU architectures>>.
146
+
139
147
I now urge you to read the following sections which contain widely applicable information:
0 commit comments