diff options
author | FreeArtMan <dos21h@gmail.com> | 2023-12-21 12:54:48 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2023-12-21 12:54:48 +0000 |
commit | 860350456aca9cbb5e8728fd71cbb7a4023578db (patch) | |
tree | ba8045273d4b19c4f584cfba7165484f45e70d3f /create_installroot | |
parent | 6db32478d5951f01fd055c61176db0fea84379a7 (diff) | |
download | os201-860350456aca9cbb5e8728fd71cbb7a4023578db.tar.gz os201-860350456aca9cbb5e8728fd71cbb7a4023578db.zip |
Added initrd script. Add bootable example with prebuilt images
Diffstat (limited to 'create_installroot')
-rwxr-xr-x | create_installroot/boot_qemu_arm64.sh | 10 | ||||
-rw-r--r-- | create_installroot/bootfs-arm64/Image.gz | bin | 0 -> 9997538 bytes | |||
-rwxr-xr-x | create_installroot/rootfs-arm64/busybox | bin | 0 -> 1384328 bytes | |||
-rwxr-xr-x | create_installroot/rootfs-arm64/init | 9 |
4 files changed, 13 insertions, 6 deletions
diff --git a/create_installroot/boot_qemu_arm64.sh b/create_installroot/boot_qemu_arm64.sh index 94c9975..fc4ec51 100755 --- a/create_installroot/boot_qemu_arm64.sh +++ b/create_installroot/boot_qemu_arm64.sh @@ -2,12 +2,10 @@ qemu-system-aarch64 \ - -machine virt -m 1024M -cpu cortex-a53 \ - -kernel xos_image_arm64.gz \ - -initrd initramfs.cpio.zst \ - -append "root=/dev/initrd init=init" \ - -netdev user,id=mynet \ - -device virtio-net-pci,netdev=mynet \ + -machine virt -m 1024M -cpu cortex-a53 \ + -kernel bootfs-arm64/Image.gz \ + -initrd initrd-out.gz \ + -append "root=/dev/ram0 console=ttyAMA0 debug " \ -nographic diff --git a/create_installroot/bootfs-arm64/Image.gz b/create_installroot/bootfs-arm64/Image.gz Binary files differnew file mode 100644 index 0000000..7c73fb6 --- /dev/null +++ b/create_installroot/bootfs-arm64/Image.gz diff --git a/create_installroot/rootfs-arm64/busybox b/create_installroot/rootfs-arm64/busybox Binary files differnew file mode 100755 index 0000000..3070325 --- /dev/null +++ b/create_installroot/rootfs-arm64/busybox diff --git a/create_installroot/rootfs-arm64/init b/create_installroot/rootfs-arm64/init new file mode 100755 index 0000000..53ad0cc --- /dev/null +++ b/create_installroot/rootfs-arm64/init @@ -0,0 +1,9 @@ +#!/sh +/busybox echo "Boom" > /dev/kmsg +export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/ +/busybox mount -t proc none /proc +/busybox mount -t sysfs none /sys +/buysbox mount -t devtmpfs -o nosuid,mode=0755 udev /dev +/busybox mount /dev/pts +/busybox mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true +exec /busybox sh |