Custom kernel under RPI
Tim Kientzle
tim at kientzle.com
Sat Mar 16 17:20:37 UTC 2013
On Mar 16, 2013, at 10:10 AM, Loïc BLOT wrote:
> Hmm
> now when i run make buildkernel TARGET_ARCH=armv6 KERNCONF=RPI-B
> WITH_FDT=yes i got this error:
Without seeing more information, the error you shared is not helpful.
Are you doing this on the RPi or are you cross-building?
To build a kernel on the RPi, you just need to
cd /usr/src
make KERNCONF=RPI-B buildkernel
(The TARGET_ARCH options are only used when cross-compiling.)
If you are cross-compiling, you should make sure you have an up-to-date cross-build tools as well:
cd /usr/src
make TARGET_ARCH=armv6 kernel-toolchain
make TARGET_ARCH=armv6 KERNCONF=RPI-B buildkernel
If you just want one extra module, you don't have to recompile the kernel at all. All FreeBSD kernels are modular; but not all configurations build extra modules. You can just build and load the single module you need directly on the RPi:
cd /usr/src/sys/modules/runfw
make
make load
Cheers,
Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130316/aa16f19f/attachment.sig>
More information about the freebsd-arm
mailing list