On Sat, 16 Jun 2018, Martin Husemann wrote:
A .ub file is an u-boot "bootm" image which contains the kernel. We have tools to pack a kernel into such an image, but I don't know about unpacking tools.
Strip off the first 64 bytes (Legacy U-boot image header) and you will be left with netbsd.bin