Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2021 12:08:16 +0200
From:      Alexis Praga <alexis.praga@gmail.com>
To:        freebsd-current@freebsd.org 
Subject:   Cross-compiling CURRENT to Raspberry 4
Message-ID:  <86im4mk0dr.fsf@ecchi.i-did-not-set--mail-host-address--so-tickle-me>

next in thread | raw e-mail | index | archive | help
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@raspberry:/ /raspberry
> make TARGET_ARCH=aarch64 DESTDIR=/raspberry/ KERNCONF=GENERIC-NODEBUG  installkernel

Any ideas ?
Thanks !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86im4mk0dr.fsf>