How to download the Torvalds Linux Kernel master, (re)compile it, and boot it with QEMU?

后端 未结 2 1786
囚心锁ツ
囚心锁ツ 2020-12-06 15:37

Since few days, I am working on a little project in order to discover the kernel programming. However, I read a lot on the internet and asked a question before about kernel

2条回答
  •  醉梦人生
    2020-12-06 15:54

    Good work please document the work and post it on git / blog lot of tweaking required to get linux kernel compile on mac OS X.

    Now to answer your question.

    1. Easiest way to run vmware/virtualbox. as they are straight forward. then scp image and test.
    2. QEMU is best way to test your kernel. but not widely used by general population. Also needs bit of efforts to get it working. Also need to compile Root FS to boot as you want to test syscall.(you can write c code using your syscall and define it as init process)

    I hope I have answered you.

提交回复
热议问题