From owner-freebsd-arm@FreeBSD.ORG Sat Mar 16 17:26:27 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 2CF06A55 for ; Sat, 16 Mar 2013 17:26:27 +0000 (UTC) (envelope-from loic.blot@unix-experience.fr) Received: from smtp.smtpout.orange.fr (smtp11.smtpout.orange.fr [80.12.242.133]) by mx1.freebsd.org (Postfix) with ESMTP id 99BDEA00 for ; Sat, 16 Mar 2013 17:26:25 +0000 (UTC) Received: from [10.42.69.150] ([82.124.160.236]) by mwinf5d21 with ME id CHSQ1l00656KMG203HSQyV; Sat, 16 Mar 2013 18:26:24 +0100 Message-ID: <1363455053.2403.9.camel@Nerz-PC.home> Subject: Re: Custom kernel under RPI From: =?ISO-8859-1?Q?Lo=EFc?= BLOT To: Tim Kientzle Date: Sat, 16 Mar 2013 18:30:53 +0100 In-Reply-To: References: <1363433673.5871.2.camel@Nerz-PC.home> <20130316173850.68e8cc1e.ray@freebsd.org> <1363448928.2403.4.camel@Nerz-PC.home> <20130316180556.a12c6927.ray@freebsd.org> <1363453851.2403.5.camel@Nerz-PC.home> Organization: UNIX Experience Fr Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-jTAzvOYaWte2G+6l/kD4" X-Mailer: Evolution 3.6.4 Mime-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Aleksandr Rybalko , freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: loic.blot@unix-experience.fr 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 17:26:27 -0000 --=-jTAzvOYaWte2G+6l/kD4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 --=20 Best regards, Lo=C3=AFc BLOT,=20 UNIX systems, security and network expert http://www.unix-experience.fr Le samedi 16 mars 2013 =C3=A0 10:20 -0700, Tim Kientzle a =C3=A9crit : > On Mar 16, 2013, at 10:10 AM, Lo=C3=AFc BLOT wrote: >=20 > > Hmm > > now when i run make buildkernel TARGET_ARCH=3Darmv6 KERNCONF=3DRPI-B > > WITH_FDT=3Dyes i got this error: >=20 > Without seeing more information, the error you shared is not helpful. >=20 > Are you doing this on the RPi or are you cross-building? >=20 > To build a kernel on the RPi, you just need to >=20 > cd /usr/src > make KERNCONF=3DRPI-B buildkernel >=20 > (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 c= ross-build tools as well: >=20 > cd /usr/src > make TARGET_ARCH=3Darmv6 kernel-toolchain > make TARGET_ARCH=3Darmv6 KERNCONF=3DRPI-B buildkernel >=20 > 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 dir= ectly on the RPi: >=20 > cd /usr/src/sys/modules/runfw > make > make load >=20 >=20 > Cheers, >=20 > Tim >=20 --=-jTAzvOYaWte2G+6l/kD4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iF4EABEIAAYFAlFErE0ACgkQh290DZyz8ub99AD/RvTWFaEcy3WANh8uh1AulL0f ArlVE6x4vXBWopwT/H8BAME0a9zjFFlFflSnWaT/De2gs4bOJhnl/B7OF7trwp+Y =5+wa -----END PGP SIGNATURE----- --=-jTAzvOYaWte2G+6l/kD4--