https://github.com/bcsabaengine/qemurpirunner
Running ARM8 Rpi 3b+ instance in qemu
https://github.com/bcsabaengine/qemurpirunner
docker qemu-arm raspberry-pi
Last synced: 2 months ago
JSON representation
Running ARM8 Rpi 3b+ instance in qemu
- Host: GitHub
- URL: https://github.com/bcsabaengine/qemurpirunner
- Owner: BCsabaEngine
- Created: 2021-09-29T12:54:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-30T09:34:12.000Z (over 3 years ago)
- Last Synced: 2025-03-17T09:11:27.551Z (2 months ago)
- Topics: docker, qemu-arm, raspberry-pi
- Language: Shell
- Homepage:
- Size: 58.6 KB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Qemu Rpi Runner
Running ARM8 Rpi 3b+ instance in qemuFollow these steps
# 1.build.sh - run only once
Creates a docker image from Ubuntu 20.04
- download raspios **bullseye** (earlier buster) arm64
- download RPI kernel source (5.10.y)
- compile kernel
- adapt fstab, cmdline, ssh
- convert to qcow2
- export kernel, pi3.dtb and distro.qcow2 (Rpi 3b+)
- It can take up to 45 minutes# 2.export.sh - run only once
Run the container and export kernel, pi3.dtb and distro.qcow2 files to dist folder# 3.build-qemu.sh - run only once
It downloads and compiles newest qemu (with aarch64) locally# 4.run.sh
You can run locally compiled qemu with necessary files to run Rpi 3b+ in command line# Usage
The distro.qcow2 file defaults to approx. It is 1.5GB, but may increase in size during use. You can take up to 4GB. To back up, just save the distro.qcow2 file.Attention! Running export.sh, if it existed before, overwrites the distro.qcow2 file. This will reset its contents so you get a newly installed system.
After run you can ssh to rpi with ```ssh pi@localhost -p 2222```. You can safely run ```apt update``` and ```apt dist-upgrade```.
When you go home, use ```sudo shutdown now``` to close Rpi with safe