Skip to content

Releases

v0.1.2

Choose a tag to compare

@ferlzc ferlzc released this 13 Oct 19:48

v0.1.1 failed on a fresh build: board BSPs could start before the
initramfs existed, images before the genimage host tools were built, and
the x86 U-Boot before PTXdist's host Python had setuptools. Verified from
a fresh clone with clean build trees: orangepi5b, rpi4 and qemu-x86_64
build; the QEMU disks boot.

Images

Device Image BSP Also
Orange Pi 5B pv-orangepi5b.img.xz pantavisor-bsp-orangepi5b.pvrexport.tgz
QEMU x86_64 pv-qemu-x86_64.img.xz pantavisor-bsp-qemu-x86_64.pvrexport.tgz u-boot-qemu-x86_64.rom
Raspberry Pi 4 pv-rpi4.img.xz pantavisor-bsp-rpi4.pvrexport.tgz

Checksums: SHA256SUMS

Write a board image to an SD card or eMMC:

xz -dc pv-orangepi5b.img.xz | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress

The BSP (.pvrexport.tgz) is the signed kernel, initramfs, modules and
firmware the image was built from, for updating a device with pvr.

Run in QEMU

U-Boot boots the image the same way as on hardware. The image file is the
device's disk and keeps its state between runs; decompress it again for
a fresh device.

QEMU x86_64

xz -dc pv-qemu-x86_64.img.xz > pv-qemu-x86_64.img
truncate -s 4G pv-qemu-x86_64.img    # room for the storage partition to grow
qemu-system-x86_64 -M pc -smp 2 -m 1024 -nographic \
    -bios u-boot-qemu-x86_64.rom \
    -drive if=none,file=pv-qemu-x86_64.img,format=raw,id=hd0 \
    -device virtio-blk-pci,drive=hd0 \
    -netdev user,id=net0,hostfwd=tcp:127.0.0.1:8222-:8222 \
    -device virtio-net-pci,netdev=net0
  • Press Enter at Press [ENTER] for debug ash shell... for a debug
    shell. Ctrl-A X quits QEMU.
  • The device's SSH port 8222 is forwarded to 127.0.0.1:8222.
  • U-Boot tries a FIT image and several boot commands before the one
    that works, so Failed to load fit and an ERROR or two before
    Starting kernel ... are expected.

Known issue

The Orange Pi 5B and Raspberry Pi 4 initramfs also carries the kernel and its
modules (about 19.5 MB instead of 8.1 MB), which the BSP already ships. They
boot, but load more than they need to. Fixed on main in 432756a ("Keep the
kernel out of every board's initramfs").