Nguyen Vo Thuan Thien (B2005893) : Part 1: Build The Linux Kernel (2.0 Points)
Nguyen Vo Thuan Thien (B2005893) : Part 1: Build The Linux Kernel (2.0 Points)
Nguyen Vo Thuan Thien (B2005893) : Part 1: Build The Linux Kernel (2.0 Points)
Submission:
- A folder consists of all programs (in both kernel-level codes and user-level codes for testing) with
comments
- A report describes clearly how did you solve problems
*** Note: At the first step, it will be better if you install an old version of the OS kernel. Then, the
process of building a new Linux kernel will be clear
In Ubuntu:
$sudo apt-get install -y gcc libncurses5-dev make wget
$sudo apt-get install -y gcc libssl-dev
$sudo apt-get install bison
$sudo apt-get install flex
3. Visit http://kernel.org and download the source code of your current running kernel. Then, download a
new kernel from https://www.kernel.org/ (e.g., 4.16.3) and extract the source:
Do not change anything. Press ESC to save and exit the configuration menu. The configuration file will be
generated
This error means that I have to install the libelf-dev in order to continue compressing the kernel image. So I
used the command: apt-get install libelf-dev
CT104H – Operating System
This is after I finish creating a compressed kernel image
This is my error. All I need to do is to disable 2 specific options in the kernel configuration. So I use the
commands: scripts/config –disable SYSTEM_TRUSTED_KEYS and scripts/config –disble
SYSTEM_REVOCATION_KEYS
Before install kernel modules, I will use # make bzImage to prevent unpredictable error
CT104H – Operating System
F. REBOOT VM
1. Reboot to the new kernel
# reboot
PART 2: ADD A NEW SYSTEM CALL INTO THE LINUX KERNEL (2.0 points)
We add a simple system call helloworld to the Linux kernel. The system call prints out a “Hello! My name
is XXX” message to the syslog (XXX is your student name and your student ID). You need to implement the
system call in the kernel and write a program at the user-level to test your created system call.
CT104H – Operating System