-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00bd0da
commit 29c43dc
Showing
3 changed files
with
364,250 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Linux artifacts for eVisor's tests | ||
|
||
## How to build Linux image | ||
|
||
See also https://zenn.dev/hidenori3/articles/5db71181a33d56 (Japanese) | ||
|
||
### Sync source tree | ||
|
||
```shell | ||
git clone --depth=1 -b v6.8 https://github.com/torvalds/linux.git | ||
cd linux | ||
``` | ||
|
||
### Build | ||
|
||
Create `arch/arm64/configs/qemu-busybox-min.config`: | ||
|
||
``` | ||
CONFIG_SERIAL_AMBA_PL011=y | ||
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y | ||
CONFIG_GPIOLIB=y | ||
CONFIG_GPIO_PL061=y | ||
CONFIG_KEYBOARD_GPIO=y | ||
CONFIG_CMDLINE="console=ttyAMA0 nokaslr rdinit=/sbin/init" | ||
``` | ||
|
||
```shell | ||
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make allnoconfig | ||
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make qemu-busybox-min.config | ||
``` | ||
|
||
```shell | ||
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j$(nproc) | ||
``` | ||
|
||
### Generate ROM file from the Image | ||
|
||
```shell | ||
xxd -i arch/arm64/boot/Image > qemu_rom.c | ||
``` |
Oops, something went wrong.