This shows you the differences between two versions of the page.
sparky_armhf_qemu [2017/11/27 19:45] pavroo |
sparky_armhf_qemu [2021/05/04 15:24] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Sparky ARMHF emulated in QEMU ===== | ||
- | |||
- | Sparky ARM edition can be tested inside the QEMU emulator. | ||
- | |||
- | ==== Linux host ==== | ||
- | |||
- | === Requirements === | ||
- | |||
- | sparky-armhf image | ||
- | kernel | ||
- | unzip | ||
- | git | ||
- | qemu | ||
- | qemu-system-arm | ||
- | sudo | ||
- | |||
- | == Sparky ARMHF image == | ||
- | |||
- | Download zipped Sparky ARMHF image from our official page. | ||
- | |||
- | Unzip it: | ||
- | |||
- | unzip sparkylinux-VER-armhf.zip | ||
- | |||
- | or (Lite version): | ||
- | |||
- | unzip sparkylinux-VER-armhf-lite.zip | ||
- | |||
- | == Kernel == | ||
- | |||
- | Download an ARM kernel to run the image in QEMU, using git: | ||
- | |||
- | git clone https:// | ||
- | |||
- | Place on of the kernels in the same directory where unzipped Sparky image is already placed. | ||
- | |||
- | == Run == | ||
- | |||
- | sudo qemu-system-arm \ | ||
- | -kernel ./ | ||
- | -append " | ||
- | -hda sparkylinux-VER-armhf.img \ | ||
- | -cpu arm1176 -m 256 \ | ||
- | -M versatilepb \ | ||
- | -no-reboot \ | ||
- | -serial stdio \ | ||
- | -net nic -net user \ | ||
- | -net tap, | ||
- | |||
- | or the Lite version: | ||
- | |||
- | sudo qemu-system-arm \ | ||
- | -kernel ./ | ||
- | -append " | ||
- | -hda sparkylinux-VER-armhf-lite.img \ | ||
- | -cpu arm1176 -m 256 \ | ||
- | -M versatilepb \ | ||
- | -no-reboot \ | ||
- | -serial stdio \ | ||
- | -net nic -net user \ | ||
- | -net tap, | ||
- | |||
- | A more efficient option is to convert this to a qcow2 image first. Use the qemu-img command to do this (optional): | ||
- | |||
- | qemu-img convert -f raw -O qcow2 sparkylinux-VER-armhf.img sparkylinux-VER-armhf.qcow | ||
- | |||
- | Now you can also easily expand the image (optional): | ||
- | |||
- | qemu-img resize sparkylinux-VER-armhf.qcow +6G | ||
- | |||
- | {{: | ||
Cookies Settings