https://github.com/embeddedos/arm64_linux_build_system
Build a complete bootable Linux image (bootloader, rootfs, kernel, etc.) for Aarch64.
https://github.com/embeddedos/arm64_linux_build_system
aarch64 linux qemu-system-aarch64 rootfs uboot
Last synced: 10 months ago
JSON representation
Build a complete bootable Linux image (bootloader, rootfs, kernel, etc.) for Aarch64.
- Host: GitHub
- URL: https://github.com/embeddedos/arm64_linux_build_system
- Owner: EmbeddedOS
- Created: 2025-02-13T07:46:09.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-18T09:54:25.000Z (10 months ago)
- Last Synced: 2025-03-18T10:39:07.788Z (10 months ago)
- Topics: aarch64, linux, qemu-system-aarch64, rootfs, uboot
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build full Linux system for Aarch64
Build a complete bootable Linux image (bootloader, rootfs, kernel, etc.) for Aarch64. The rootfs is made minimum with busybox.
```bash
./build_image.sh
```
To emulate bootloader:
```bash
qemu-system-aarch64 -machine virt -cpu cortex-a57 -bios u-boot.bin
```
To emulate kernel and rootfs:
```bash
qemu-system-aarch64 -kernel linux/arch/arm64/boot/Image -initrd rootfs.cpio.gz -machine virt -cpu cortex-a53 -m 1G -nographic -append "root=/dev/mem"
```
To emulate kernel and rootf with 2 network interfaces:
```bash
qemu-system-aarch64 -kernel linux/arch/arm64/boot/Image -initrd rootfs.cpio.gz -machine virt -cpu cortex-a53 -m 1G -nographic -append "root=/dev/mem" -netdev user,id=mynet0,hostfwd=tcp::8080-:80 -device e1000,netdev=mynet0 -net nic,macaddr=52:54:aa:12:35:02,model=virtio
```
TODO: combine anything to final firmware image and emulating on that.