yiivon / mkeykernel

a kernel that can read from keyboard and print them on screen

Home Page:http://arjunsreedharan.org/post/99370248137/kernel-201-lets-write-a-kernel-with-keyboard-and

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mkeykernel

This is a kernel that can read the characters a-z and 0-9 from the keyboard and print them on screen.

See the repo mkernel which is a minimal kernel that prints a string on the screen. mkeykernel just extends this to include keyboard support.

####Blog post####

Kernel 201 - Let’s write a Kernel with keyboard and screen support

(http://arjunsreedharan.org/post/99370248137/kernel-201-lets-write-a-kernel-with-keyboard-and)

####Build commands####

nasm -f elf32 kernel.asm -o kasm.o
gcc -m32 -c kernel.c -o kc.o
ld -m elf_i386 -T link.ld -o kernel kasm.o kc.o

####Test on emulator####

qemu-system-i386 -kernel kernel

####Get to boot#### GRUB requires your kernel executable to be of the pattern kernel-<version>.

So, rename the kernel:

mv kernel kernel-701

Copy, it to your boot partition (assuming you are superuser):

cp kernel-701 /boot/kernel-701

Configure your grub/grub2 similar to what is given in _grub_grub2_config folder of mkernel repo.

Reboot.

Voila !!

kernel screenshot

About

a kernel that can read from keyboard and print them on screen

http://arjunsreedharan.org/post/99370248137/kernel-201-lets-write-a-kernel-with-keyboard-and

License:GNU General Public License v2.0


Languages

Language:C 83.2%Language:Assembly 16.8%