Custom kernel under RPI

Aleksandr Rybalko ray at freebsd.org
Sat Mar 16 16:05:58 UTC 2013


On Sat, 16 Mar 2013 16:48:48 +0100
Loïc BLOT <loic.blot at unix-experience.fr> wrote:

> HI Aleksandr,
> Thanks for your reply. HAs i saw, kernel build with RPI-B make a
> monolitic kernel, whereas in x86 archs it's a modular kernel.
> How can i do for making those drivers as modules ?
> And how can i make a cross compile for my RPI-B ? (because i can't
> boot in ARM and i have lost my backup...) (make buildkernel
> KERNCONF=RPI-B WITH_FDT=yes TARGET_ARCH=arm is good ?)
> 
> -- 
> Best regards,
> Loïc BLOT, 
> UNIX systems, security and network expert
> http://www.unix-experience.fr
> 
> 
> 
> 
> Le samedi 16 mars 2013 à 17:38 +0200, Aleksandr Rybalko a écrit :
> 
> > On Sat, 16 Mar 2013 12:34:33 +0100
> > Loïc BLOT <loic.blot at unix-experience.fr> wrote:
> > 
> > > Hi Ian,
> > > i'm sorry but fdt addr is already on my loader.rc
> > > loader.rc:
> > > 
> > > fdt addr 0x100
> > > set console=comconsole,vidconsole
> > > 
> > > Is there any specific options when i do "make buildkernel
> > > KERNCONF=RPI-B" (from the raspberry) ? (in src.conf for example)
> > > 
> > > Best regards,
> > > Loïc BLOT, 
> > > UNIX systems, security and network expert
> > > http://www.unix-experience.fr
> > > 
> > > 
> > > 
> > 
> > Hello,
> > 
> > I'm don't know why it won't boot, but I can hint you to use if_run
> > and runfw as modules. Not resolved why, but I see it's won't work
> > if it built in kernel. As module, even loaded automatically by
> > devd, it's works fine. 
> > 
> > WBW

Hi Loïc,

same way, but remove:
makeoptions     MODULES_OVERRIDE=""

from kernel config. it will enable modules building with kernel.
If some modules will fail to build, you can disable it with:
makeoptions     WITHOUT_MODULES="modules to disable"

Good luck!

WBW
-- 
Aleksandr Rybalko <ray at freebsd.org>


More information about the freebsd-arm mailing list