From owner-freebsd-arm@FreeBSD.ORG Sat Mar 16 19:21:29 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 A086F415 for ; Sat, 16 Mar 2013 19:21:29 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 71191F01 for ; Sat, 16 Mar 2013 19:21:28 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r2GJLRRN055581; Sat, 16 Mar 2013 19:21:27 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id t3yzfbrwrwpvbk4hpy5e6s4a36; Sat, 16 Mar 2013 19:21:27 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: Custom kernel under RPI Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=iso-8859-1 From: Tim Kientzle In-Reply-To: <1363456493.1157.67.camel@revolution.hippie.lan> Date: Sat, 16 Mar 2013 12:21:26 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <1363455598.2403.11.camel@Nerz-PC.home> <1363456493.1157.67.camel@revolution.hippie.lan> To: loic.blot@unix-experience.fr X-Mailer: Apple Mail (2.1283) 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 19:21:29 -0000 On Mar 16, 2013, at 10:54 AM, Ian Lepore wrote: > On Sat, 2013-03-16 at 18:39 +0100, Lo=EFc BLOT wrote: >> Ok, cross compile is done, i have a modular kernel, but same error >> appears when i boot. Kernel is blocked at those lines: >>=20 >> Kernel entry at 0x100100 .. >> Kernel args: (null) >>=20 >>=20 >=20 > If it doesn't say anything about what FDT it is using before it says > Kernel Entry, then you aren't using the latest ubldr code. =20 Lo=EFc: How did you set up the MSDOS partition? The details of how we boot FreeBSD have changed some over the last couple of months; if you used some old instructions to set that up, you may not have the right boot loader configuration to correctly boot the current kernel. > If it doesn't have the device tree data, it will lock up exactly as > you're experiencing (without the device data the kernel doesn't have > enough info to even print an error message). >=20 > A quick way to see if that's the problem is to add to the kernel = config: >=20 > options FDT_DTB_STATIC > makeoptions FDT_DTS_FILE=3Dbcm2835-rpi-b.dts Keep in mind that Ian's advice here (to compile the FDT into the kernel) should only be used for debugging. On RPi, the boot loaders edit the FDT before handing it to the kernel. A compiled-in FDT won't properly reflect a few details that the boot loaders know about. If the boot chain is all working properly, a compiled-in FDT is not needed and not recommended. Tim