From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 26 07:46:58 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7ECAF5FA; Mon, 26 Nov 2012 07:46:58 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 212648FC13; Mon, 26 Nov 2012 07:46:57 +0000 (UTC) Received: from [207.6.254.8] (helo=[192.168.1.67]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1TctOw-000N1z-1I; Sun, 25 Nov 2012 23:46:51 -0800 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: FreeBSD on RaspberryPi From: Oleksandr Tymoshenko In-Reply-To: Date: Sun, 25 Nov 2012 23:46:27 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <31C904E6-F230-4187-AE32-F9A7B1A7C38E@freebsd.org> <4A5E03E5-3295-4FD4-9A06-7D1C4E9E0C12@freebsd.org> <9E4DA920-BE72-4AA0-8159-43205CDEF5CD@bluezbox.com> To: Tim Kientzle X-Mailer: Apple Mail (2.1499) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 2012-11-25, at 9:32 AM, Tim Kientzle wrote: > > On Nov 24, 2012, at 8:01 PM, Oleksandr Tymoshenko wrote: > >> >> On 2012-11-24, at 4:47 PM, Tim Kientzle wrote: >> >> [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: FreeBSD Hackers , Alexander Yerenkow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2012 07:46:58 -0000 On 2012-11-25, at 9:32 AM, Tim Kientzle wrote: >=20 > On Nov 24, 2012, at 8:01 PM, Oleksandr Tymoshenko wrote: >=20 >>=20 >> On 2012-11-24, at 4:47 PM, Tim Kientzle wrote: >>=20 >>=20 .. skipped .. >> Tim, >>=20 >> I'm almost done with getting kernel working with latest raspberry Pi = firmware. Just need >> to figure out how to make ubldr pass FDT pointer from u-boot to = kernel and handle=20 >> /reserve/ information in ARM machdep code.=20 >=20 > Let me know if you need help with this. I've worked with > the ubldr FDT code recently. >=20 >> Meanwhile I suggest editing .dts file manually. Fill out "display" = node properties with proper >> display resolution and depth. Also add ukbd driver. That should get = you working console. >=20 > I'll try that. >=20 > I'm curious: why is this information coming from the DTS? > That seems pretty complex; I thought that the > console code would query this information via the mailbox > interface. It's either FDT blob or message box interface. Implementation complexity = is about the same. But since we're getting other variables (like MAC address, memory size) = from FDT I decided to be consistent and get all of them from there. The issue I'm facing is = that ubldr gets FDT blob either from file directly or from ELF kernel itself. While on Raspberry = Pi to works as follows: - Firmware loads .dtb file from SD card to specified address - Fixes up values like amount of memory, reserved regions, UART and = clock frequencies,=20 MAC address, display resolution. - Passes control to next link in boot chain (e.g. U-Boot) I'm thinking about adding compile-time constant FDT_BLOB_ADDRESS and = arrange possible FDT sources in following priority: - Check FDT_BLOB_ADDRESS (if defined) - Check dtb file - Check ELF kernel Does it sound sane enough?=20=