mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2025-12-23 22:47:55 -05:00
arch: arm64: parse cmdline from chosen node
The kernel command line is passed via the FDT's chosen node. Use that, rather than hard-coding it into the kernel. Fixes: #20
This commit is contained in:
committed by
Matthew Leach
parent
abd5ef39c2
commit
511a0db41e
@@ -8,4 +8,4 @@ bin="${elf%.elf}.bin"
|
||||
|
||||
# Convert to binary format
|
||||
aarch64-none-elf-objcopy -O binary "$elf" "$bin"
|
||||
qemu-system-aarch64 -M virt,gic-version=3 -initrd moss.img -cpu cortex-a72 -m 2G -smp 4 -nographic -s -kernel "$bin"
|
||||
qemu-system-aarch64 -M virt,gic-version=3 -initrd moss.img -cpu cortex-a72 -m 2G -smp 4 -nographic -s -kernel "$bin" -append "--init=/bin/bash --rootfs=fat32fs --automount=/dev,devfs"
|
||||
|
||||
Reference in New Issue
Block a user