小さなLinux互換カーネルのTilckを少し試す

小さな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)
  1. ツールチェインの導入
  2. build
  3. イメージの確認
  4. Qemuで起動
Tilckブートローダー,<b> で起動

tilck01

一瞬で起動

tilck02

たまにKernel Panick><

tilck03

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を少し試す”

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)