Treiberenwicklung in C HW 3 Flashcards
Welche environment variables müssen gesetzt werden um makemenuconfig für ARM zu verwenden?
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
Was muss verändert werden um einen Console Output unter ARM zu erhalten im Vgl mit HW2
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.
Welche parameter müssen für Dropbear verändert werden damit es auf ARM läuft?
–host=aarch64-linux-gnu
Run Linux in a Virtual Machine (with qemu)
Please explain your choice for the machine and CPU types.
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
Qemu Befehl in HW3
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
}