added x86_64_uclibc platform support
This commit is contained in:
1 parent
a605476c80
commit
f1ad90c8bc
13 files changed
+5485
-12
No files matched your search
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
mkdir -pv qemu
|
||||
cd qemu
|
||||
dd if=/dev/zero of=rootfs.ext4 bs=1M count=100
|
||||
mkfs.ext4 rootfs.ext4
|
||||
cd ../build/rootfs
|
||||
tar -czvf /tmp/rootfs.tar.gz.tmp .
|
||||
cd ../../qemu
|
||||
sudo mount -v rootfs.ext4 /mnt
|
||||
sudo tar -xvf /tmp/rootfs.tar.gz.tmp -C /mnt
|
||||
sudo umount -v rootfs.ext4
|
||||
|
||||
qemu-system-x86_64 \
|
||||
-m 10G \
|
||||
-smp 20 \
|
||||
-enable-kvm \
|
||||
-cpu host \
|
||||
-kernel ../build/kernel/linux-6.1.91/arch/x86_64/boot/bzImage \
|
||||
-append "root=/dev/sda init=/init" \
|
||||
-initrd ../build/initramfs.img \
|
||||
-hda rootfs.ext4 \
|
||||
-device virtio-net-pci,netdev=hn0,id=nic1 \
|
||||
-netdev bridge,id=hn0,br=virbr0
|
||||
Reference in new issue
Block a user