Custom kernel under RPI

Loïc BLOT loic.blot at unix-experience.fr
Sat Mar 16 17:26:27 UTC 2013


Hi Tim,
thanks for your reply. For the error, i have found an excellent tutorial
which explain how to build a FreeBSD from scratch for RPI.
(http://ogris.de/howtos/freebsd-raspberry.html)
As i said before, my custom kernel doesn't boot, somes said i must use
modules instead of monolitic, then i am building the kernel by cross
compile it into a FreeBSD VM.
Thanks for your help with module building. I didn't know, i will gain
many time :D
-- 
Best regards,
Loïc BLOT, 
UNIX systems, security and network expert
http://www.unix-experience.fr




Le samedi 16 mars 2013 à 10:20 -0700, Tim Kientzle a écrit :

> 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: 230 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20130316/546f3867/attachment.sig>


More information about the freebsd-arm mailing list