From owner-freebsd-arm@FreeBSD.ORG Sat Mar 16 16:05:58 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BC1F462A for ; Sat, 16 Mar 2013 16:05:58 +0000 (UTC) (envelope-from ray@freebsd.org) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 7A669351 for ; Sat, 16 Mar 2013 16:05:58 +0000 (UTC) Received: from rnote.ddteam.net (163-130-135-95.pool.ukrtel.net [95.135.130.163]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 7C942C492D; Sat, 16 Mar 2013 18:05:57 +0200 (EET) Date: Sat, 16 Mar 2013 18:05:56 +0200 From: Aleksandr Rybalko To: loic.blot@unix-experience.fr Subject: Re: Custom kernel under RPI Message-Id: <20130316180556.a12c6927.ray@freebsd.org> In-Reply-To: <1363448928.2403.4.camel@Nerz-PC.home> References: <1363433673.5871.2.camel@Nerz-PC.home> <20130316173850.68e8cc1e.ray@freebsd.org> <1363448928.2403.4.camel@Nerz-PC.home> Organization: FreeBSD.ORG X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2013 16:05:58 -0000 On Sat, 16 Mar 2013 16:48:48 +0100 Loïc BLOT 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 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