From owner-freebsd-arm@FreeBSD.ORG Fri Dec 26 22:34:58 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7152BD30 for ; Fri, 26 Dec 2014 22:34:58 +0000 (UTC) Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F01B02BE6 for ; Fri, 26 Dec 2014 22:34:57 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id y19so15179892wgg.0 for ; Fri, 26 Dec 2014 14:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=DHjJp3fMKfY/O7i2c1Suq08sDEZjTX7eIgZYyEsu5WM=; b=oYmWDdW9sOxlHu3ePHTdu+fvEGImkuyPV8rAmfBUsdrefzGoyfDk7KSwLvUQH46QEs 8V3wBfJ14rqEkTFp6hqPVrtLVppHGfySg4xyeZ3wU4zBsJrg00/S26yvle8ios425ul8 NjneXjHNU3swMDK2f3DoQ9IDlxIQNh5xEO8+lIa6n/VcpUEF28rGnRONH+dfEssSwkEC fj1me9OnvyecsPdirb5FWG2bqp6dlMnu9nFrU7F0SJ55+MFDXLBxZh9BGyaVTTo+qR3c 3HnCfBfv9vBSdJa4gWFfqW829h+AzMUKDxih66HymEpBN2tt89ZCx3BsAoeDNerfVVHZ B3JA== X-Received: by 10.180.83.228 with SMTP id t4mr74043135wiy.28.1419633295558; Fri, 26 Dec 2014 14:34:55 -0800 (PST) Received: from ketas-laptop.mydomain (ketas-laptop6.si.pri.ee. [2001:ad0:91f:0:21a:6bff:fe66:2ad3]) by mx.google.com with ESMTPSA id a14sm29663599wib.22.2014.12.26.14.34.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Dec 2014 14:34:54 -0800 (PST) Sender: Sulev-Madis Silber Message-ID: <549DE289.8050109@hot.ee> Date: Sat, 27 Dec 2014 00:34:49 +0200 From: "Sulev-Madis Silber (ketas)" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: "eros.wade" Subject: Re: uboot and bsd on BeagleBone Black References: <001501d020bd$ac5bceb0$05136c10$@gmail.com> In-Reply-To: <001501d020bd$ac5bceb0$05136c10$@gmail.com> X-TagToolbar-Keys: D20141227003449100 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2014 22:34:58 -0000 Hello :) On 2014-12-26 05:40, eros.wade wrote: > I've succeed complied uboot and freebsd on BeagleBone Black with crochet. > But I don't know how bsd can run on beaglebone black. Well, crochet should create image, which you can use by dd'ing it into SD card. > I know that uboot for BBB contains thouse hardware info (PINS, GPIO, SPI etc). > How can bsd get thouse infos from uboot. > Or uboot just load BSD, but where is the hardware infos on bsd src tree? This method, called Flattened Device Tree (FDT) can be used in multiple different ways. I don't know if FDT can be built statically into U-Boot. We don't use it that way. Previously FDT DTB (Device Tree Blob) was loaded by U-Boot, and it's memory address was given to ubldr (U-Boot loader(8)). Now, uboot just sets fdt_file for loader(8) to load. This file is in UFS filesystem, normally under /boot/dtb. It's also known issue that boot fails when DTB in /boot/dtb and you don't use /boot/loader.rc which disables Forth in loader(8) (which also removes whole 21s from boot time). Crochet has become outdated lately. And people, including me, don't use it to make their images. Especially if you don't like constant image making and like to upgrade device over network. Or maybe even boot over network. Those are all very specific setups and doesn't exactly fit into end-user-image-maker that crochet seems to be. The problem is that it might be too difficult for you. If it's not, I could explain how you could get better system built for your BBB. Or you could browse around under http://ketas.si.pri.ee/bbb/ And correct U-Boot for BBB is now in ports, under sysutils/u-boot-beaglebone I kind of wish I don't need to explain all those things repeatedly to people. Maybe I should fix crochet just because of that. You could also read board/BeagleBone/README inside crochet tree.