From owner-freebsd-arm@FreeBSD.ORG Sat Mar 1 15:48:38 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 26D2AB85 for ; Sat, 1 Mar 2014 15:48:38 +0000 (UTC) Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ED69B15AD for ; Sat, 1 Mar 2014 15:48:37 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id kq14so2043503pab.38 for ; Sat, 01 Mar 2014 07:48:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=C+iCZT0hCWjiuZ1+tXnEFPT2NN+vW4mNisXk4gugERw=; b=gv/TseUXhNLzVqSKw4cquxL7aj+ndSt4tQT7oYueuRuX1yYU2Pyk3L3UIwcRFyrME7 FASWpiPDvjmUBq46iDYzg9rYUbIXEg+GOUeW/QOcTKZMN/e/x87yqPRNL1Nl7nyISWYF 8gXD1d6J8+5rueSIW7u3rh1X7yLLAZGE1uJB/v3/cGiWEgfXBARqNlgtlUQG+FzurylK evKGj2YqAgVrID1AHeKIwQ5JEbWgilIyiQ0S/weMkd2UdTry6rQbIfUNMrDpdpUoqQeK oH64avGCHyQSNpkDwgibSepDaf8y3E7oEHQJL3SgQi9SeXXcofxo+ZmDdlxFSJo2a3mc +Dfw== X-Gm-Message-State: ALoCoQlWFPO5vBrEfY2dRTycq197pW6oL1QD5GY5El9xjhF5OXaKCvcMGe4V6mA+/ZRnyFAkOw12 X-Received: by 10.68.129.5 with SMTP id ns5mr1004109pbb.147.1393688464354; Sat, 01 Mar 2014 07:41:04 -0800 (PST) Received: from [192.168.2.123] (99-74-169-43.lightspeed.sntcca.sbcglobal.net. [99.74.169.43]) by mx.google.com with ESMTPSA id vx10sm40638837pac.17.2014.03.01.07.41.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Mar 2014 07:41:03 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: A unified imx6 kernel config, old WANDBOARD-* configs going away From: Tim Kientzle In-Reply-To: <1393594966.1149.161.camel@revolution.hippie.lan> Date: Sat, 1 Mar 2014 07:41:01 -0800 Content-Transfer-Encoding: 7bit Message-Id: References: <1393594966.1149.161.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1827) Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 15:48:38 -0000 On Feb 28, 2014, at 5:42 AM, Ian Lepore wrote: > I've added a new imx6 unified kernel config named IMX6. It has no > compiled-in fdt, and can boot all three flavors of Wandboard when u-boot > and ubldr load a dtb file. Folks should start using it and eventually > the WANDBOARD* configs will go away when nobody needs them anymore. Nice! Another step towards GENERIC ARM. > the .dtb file in your /boot/kernel or /boot/modules directory, and ubldr > will load it from there, using the filename set in the u-boot env var > fdt_file. Using a U-Boot env var to specify the FDT is a nice idea. > Unfortunately we can't do a single image that boots any wandboard, > because u-boot itself has to be different for each board. This is what > my u-boot env looks like on each wandboard: > > => printenv > baudrate=115200 > bootcmd=run ubnet > bootdelay=1 > console=ttymxc0 > fdt_file=wandboard-dual.dtb > loadaddr=11000000 > loaderdev=net > ubmmc=fatload mmc 0 ${loadaddr} ubldr; bootelf > ubnet=dhcp ${loadaddr} /wand/boot/ubldr;bootelf > > Environment size: 265/8188 bytes > > The only thing that differs per-board is the fdt_file setting, and the > u-boot binary itself. If you could get to a single U-Boot binary, you might be able to do what BeagleBone does: The U-boot.env script detects the board variation and conditionally loads the correct DTB blob. Tim