Treiberenwicklung in C HW 1 Flashcards

1
Q

Wie kann man sich die Architektur eines Linux Systems anschauen?

A

mit dem Befehl umame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you instruct gcc to produce statically linked binaries?

A

gcc -c sysinfo.c
gcc -Wall sysinfo.o -o sysinfo -static
|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the relation between the menuconfig and the .config file in the kernel source directory?

A

The .config file stores all configurations from the menuconfig setup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which is the binary that represents bootable kernel image?

A

arch/x86_64/boot/bzImage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which TTY-device do you need to pass to the kernel for console input/output?

A

Device 8250

qemu-system-x86_64 -m 64 -nographic -kernel vmlinux -append console=8250

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the complete qemu command line to run your sysinfo application as the init process?

A

qemu-system-x86_64 -m 64 -nographic -kernel arch/x86_64/boot/bzImage -append “init=sysinfo console=8250” -initrd “bin/initrd.cpio”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly