mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2025-12-23 22:47:55 -05:00
scripts: create /tmp
Create /tmp and modify the kernel command line to mount tmpfs on /tmp.
This commit is contained in:
committed by
Ashwin Naren
parent
5511e28b72
commit
0a32eeaaa0
@@ -11,6 +11,7 @@ mkfs.vfat -F 32 "$img"
|
||||
|
||||
mmd -i "$img" ::/bin
|
||||
mmd -i "$img" ::/dev
|
||||
mmd -i "$img" ::/tmp
|
||||
|
||||
mcopy -i "$img" "$base/build/bin"/* "::/bin"
|
||||
|
||||
|
||||
@@ -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" -append "--init=/bin/bash --rootfs=fat32fs --automount=/dev,devfs"
|
||||
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 --automount=/tmp,tmpfs"
|
||||
|
||||
Reference in New Issue
Block a user