小さなLinux互換カーネルのTilckというものを知ったので少し触ってみました.
対応アーキテクチャはx86 32bitで以下のようにしてbuild, Qemu での実行が可能です.
build & run
$ git clone https://github.com/vvaltchev/tilck $ cd tilck $ ./scripts/build_toolchain (1) $ make (2) $ ls -l build/tilck.img (3) -rw-r--r-- 1 matoken matoken 37748736 1月 8 23:25 build/tilck.img $ sg kvm -c ./build/run_qemu (4)
- ツールチェインの導入
- build
- イメージの確認
- Qemuで起動
Tilckブートローダー,<b> で起動
一瞬で起動
たまにKernel Panick><
Tilck を Qemu で起動(動画)
wikiを見るといくつかのプリケーションを追加して遊んだりもできるようです.
Note | fbDOOMの例 $ ./scripts/build_toolchain -s build_fbdoom $ ./scripts/cmake_run -DEXTRA_FBDOOM=1 $ make rem |
Tilck は学習向けとなっていますが,用途によっては実用にも使えそうです.
FrameBufferも動いているので日本語表示,入力できるようにすると便利かもしれません.
環境
[ 0.111] Hello from Tilck 0.1.4, commit: 5835b80f
[ 0.111] Build type: Debug, compiler: gcc 8.4.0
[ 0.115] timer_hz: 250; time_slice: 40 ms; in_hypervisor: yes
▒▒▒▒▒▒▒▒┐ ▒▒┐ ▒▒┐ ▒▒▒▒▒▒┐ ▒▒┐ ▒▒┐
└──▒▒┌──┘ ▒▒│ ▒▒│ ▒▒┌────┘ ▒▒│ ▒▒┌┘
▒▒│ ▒▒│ ▒▒│ ▒▒│ ▒▒▒▒▒┌┘
▒▒│ ▒▒│ ▒▒│ ▒▒│ ▒▒┌─▒▒┐
▒▒│ ▒▒│ ▒▒▒▒▒▒▒┐ └▒▒▒▒▒▒┐ ▒▒│ ▒▒┐
└─┘ └─┘ └──────┘ └─────┘ └─┘ └─┘
$ dpkg-query -W qemu-system-x86
qemu-system-x86 1:7.2+dfsg-1+b2
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: n/a
Codename: bookworm
$ arch
x86_64
One thought to “小さなLinux互換カーネルのTilckを少し試す”