Skip to content

Commit 55765d7

Browse files
committed
readme: improve ordering
Add note about uris list
1 parent 2f41395 commit 55765d7

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

README.adoc

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,23 @@ cd linux-kernel-module-cheat
8181

8282
The first configure will take a while (30 minutes to 2 hours) to clone and build, see <<benchmark-builds>> for more details.
8383

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-
9784
If you don't want to wait, you could also try the following faster but much more limited methods:
9885

9986
* <<prebuilt>>
10087
* <<host>>
10188

10289
but you will soon find that they are simply not enough if you anywhere near serious about systems programming.
10390

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+
104101
After QEMU opens up, you can start playing with the kernel modules:
105102

106103
....
@@ -136,6 +133,17 @@ See also: <<quit-qemu-from-text-mode>>.
136133

137134
All available modules can be found in the link:packages/kernel_modules/[`kernel_modules` directory].
138135

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+
139147
I now urge you to read the following sections which contain widely applicable information:
140148

141149
* <<run-command-after-boot>>

0 commit comments

Comments
 (0)