Treiberenwicklung in C HW 1 Flashcards
Wie kann man sich die Architektur eines Linux Systems anschauen?
mit dem Befehl umame
How can you instruct gcc to produce statically linked binaries?
gcc -c sysinfo.c
gcc -Wall sysinfo.o -o sysinfo -static
|
What is the relation between the menuconfig and the .config file in the kernel source directory?
The .config file stores all configurations from the menuconfig setup
Which is the binary that represents bootable kernel image?
arch/x86_64/boot/bzImage
Which TTY-device do you need to pass to the kernel for console input/output?
Device 8250
qemu-system-x86_64 -m 64 -nographic -kernel vmlinux -append console=8250
What is the complete qemu command line to run your sysinfo application as the init process?
qemu-system-x86_64 -m 64 -nographic -kernel arch/x86_64/boot/bzImage -append “init=sysinfo console=8250” -initrd “bin/initrd.cpio”