mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-04-22 16:18:03 -04:00
The kernel command line is passed via the FDT's chosen node. Use that, rather than hard-coding it into the kernel. Fixes: #20
12 lines
381 B
Bash
Executable File
12 lines
381 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
base="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
|
|
|
|
elf="$1"
|
|
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" -append "--init=/bin/bash --rootfs=fat32fs --automount=/dev,devfs"
|