![]() ![]() Prints a line showing a string "Hello, world!".Ģ. You are required to implement a system call called `sys_hello`, which does the following:ġ. One `sys_hello` and the other one `sys_revstr`. In this part, you are required to implement two system calls on top of the kernel you built. Here are some useful sites you may want to follow:Īn example of a successful kernel compilation by showing the results of `uname -a` and `cat /etc/os-release` commands: Hint □: you may want to see `CONFIG_LOCALVERSION` config. We will not go through the kernel compilation steps here and **also NOT be open to any questions you meet on building Linux kernel,** since there are tons of documents online.īefore compiling the kernel, you need to change your Linux kernel version suffix to `-os-` as an envidence that the kernel is built by you. You can directly download the source tarball from. The required kernel source version is **5.19.12**. We also recommend the number of CPU cores should be at least 4, or you may spend lots of time compiling the kernel. Tips: The minimal disk size should be at least **50GB**, or you may encounter the error like "No space left on the device" when building your kernel. ![]() If you have no experience on installing linux before, you may want to check () to see how to run Ubuntu on a VM using VirtualBox. In this assignment, you will need to compile the linux kernel on **Ubuntu 22.04 AMD64**. Summary: This assignment requires you to compile the linux kernel from source and define custom system calls. # Assignment 1: Compiling Linux Kernel and Adding Custom System Calls ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |