Cross-compiling CURRENT to Raspberry 4

From: Alexis Praga <alexis.praga_at_gmail.com>
Date: Fri, 16 Apr 2021 12:08:16 +0200
Hi,

I've been running 14.0-CURRENT with the default raspberry image
(main-n245255-483c6da3a20) on my Raspberry 4.

I would like to follow CURRENT but there is not enough space with just
the SD card to compile on the pi.

I tried to compile the kernel, using the same git version but without
debug on my other computer (amd64, running 13.0-RELEASE) and install it
with SSHFS. But the new kernel failed to boot with an error 19. Here is how I
compiled the kernel  :

> git clone -o freebsd -b main https://git.freebsd.org/src.git src
> git checkout -b 483c6da3a20
> mkdir obj
> setenv MAKEOBJDIRPREFIX ~/softwares/raspberry-update/obj/
> time make -j 4 TARGET=arm64 TARGET_ARCH=aarch64 buildkernel KERNCONF=GENERIC-NODEBUG

> sshfs -o idmap=user root_at_raspberry:/ /raspberry
> make TARGET_ARCH=aarch64 DESTDIR=/raspberry/ KERNCONF=GENERIC-NODEBUG  installkernel

Any ideas ?
Thanks !
Received on Fri Apr 16 2021 - 08:08:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:28 UTC