Building arm64 image for booting in qemu
Gordon Bergling
gbergling at googlemail.com
Wed May 20 16:50:30 UTC 2020
Greetings,
I am currently try to setup a crossbuild for arm64 to test some
local changes. I use the following steps to create the image
after crossbuilding arm64 on amd64. These steps were taken from
the arm64_build.sh found at the FreeBSD wiki.
-------------------
make TARGET=arm64 -DNOROOT DESTDIR=/boiler/nfs/rootfs-arm64 installworld &&
make TARGET=arm64 -DNOROOT DESTDIR=/boiler/nfs/rootfs-arm64 distribution &&
make TARGET=arm64 -DNOROOT DESTDIR=/boiler/nfs/rootfs-arm64 installkernel \
KERNCONF=GENERIC-TCP
echo '/dev/vtbd0s2 / ufs rw,noatime 1 1' > /boiler/nfs/rootfs-arm64/etc/fstab
echo './etc/fstab type=file uname=root gname=wheel mode=644' \ >> /boiler/nfs/rootfs-arm64/METALOG
sed -i '' -E 's/(time=[0-9]*)\.[0-9]*/\1.0/' /boiler/nfs/rootfs-arm64/METALOG
cd /boiler/nfs/rootfs-arm64 &&
/usr/sbin/makefs -f 10000 -s 1073741824 -D rootfs.img METALOG &&
/usr/bin/mkimg -s gpt -p efi:=/boiler/nfs/rootfs-arm64/boot/boot1.efi -p freebsd:=rootfs.img -o disk.img
-------------------
The problem is that if I try to boot the image via qemu I always get the
error message that filesystem type is unrecognized. qemu it self is booted
via u-boot from /usr/local/share/u-boot/u-boot-qemu-arm64/u-boot.bin.
-------------------
Device 0: QEMU VirtIO Block Device
Type: Hard Disk
Capacity: 1024.1 MB = 1.0 GB (2097369 x 512)
... is now current device
** Unrecognized filesystem type **
-------------------
Has somebody a hint for me on solving this problem.
Any help is much appreciated.
Best regards,
Gordon
More information about the freebsd-hackers
mailing list