Treiberenwicklung in C HW 3 Flashcards

1
Q

Welche environment variables müssen gesetzt werden um makemenuconfig für ARM zu verwenden?

A

ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

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

Was muss verändert werden um einen Console Output unter ARM zu erhalten im Vgl mit HW2

A

The qemu-system-aarch64 uses a different hardware architecture and also has different periphery components as the emulator for x86_64. These peripherals are not automatically enabled by changing the config’s architecture.

One of the important devices that your kernel needs to support is the PrimeCell PL011 UART controller, which you will use for serial console output.

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

Welche parameter müssen für Dropbear verändert werden damit es auf ARM läuft?

A

–host=aarch64-linux-gnu

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

Run Linux in a Virtual Machine (with qemu)

Please explain your choice for the machine and CPU types.

A

We checked the list of compatible cpus for the arm architecture by running. Virt ist the recommended machine for arm by the official documentation. qemu-system-aarch64 -machine virt -cpu help

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

Qemu Befehl in HW3

A

qemu-system-aarch64 -m 64 -M virt -cpu cortex-a72 -nographic -kernel artifacts/Image.gz -netdev user,id=mynet0,hostfwd=tcp::22222-:22 -device virtio-net,netdev=mynet0 -append “console=ttyAMA0 init=init” -initrd artifacts/initrd.cpio
}

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