From owner-freebsd-arm@FreeBSD.ORG Fri Feb 28 18:18:35 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 21F9599D; Fri, 28 Feb 2014 18:18:35 +0000 (UTC) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D5F8B1737; Fri, 28 Feb 2014 18:18:34 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id y20so1009514ier.13 for ; Fri, 28 Feb 2014 10:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2UJ2EhYHMbqP8EPu3+5C8a70hRT29IBb/A4KwB3AW7I=; b=G/NuMeAk4V8pl3Ebn+FtvOk4hsd0xh01VAYLNGwp++57wdvtFYZO64qcweDIzG6yLv evkxdmixGX6nT0yQpmVB98QV1UGZT6lDm1zEDgfsYXHgyIh1nNKFl8WWZqNUD5X4v51X uCQ/SrD6xxhj+eMsoDtdpXgshoIKv1mhEkqlws12gSPCeI4At0loQdrjCk1aRUV0eUC6 fPLYzLdTyOpYRYvMdOJA36z8fStI+ewyiBNZ4l19XIjzBTh6w+sVvm1gzE+lYV1ltKrQ EtUHxELVRFfBuctknkdYdcQEtEA+f7esUR7+tR5osjIz2fo/wsGlWlJ4f0GccxC4p0eU TEXg== X-Received: by 10.50.50.241 with SMTP id f17mr5612807igo.23.1393611514377; Fri, 28 Feb 2014 10:18:34 -0800 (PST) Received: from netflix-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id m4sm9430216ige.0.2014.02.28.10.18.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Feb 2014 10:18:33 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: A unified imx6 kernel config, old WANDBOARD-* configs going away From: Warner Losh In-Reply-To: Date: Fri, 28 Feb 2014 11:18:31 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1393594966.1149.161.camel@revolution.hippie.lan> To: Tom Everett X-Mailer: Apple Mail (2.1874) Cc: freebsd-arm , Ian Lepore 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: Fri, 28 Feb 2014 18:18:35 -0000 On Feb 28, 2014, at 11:10 AM, Tom Everett wrote: > I'll give updating Crochet for this a spin. I'm not that familiar = with DTS > however. I presume I need to drop the DTS blobs onto the FAT = partition? Yes. For now, this will be a manual step for the moment, but will be = automated soonish. I=92m working on overhauling the dts stuff we have in the = system right now and will commit something for that shortly after I finish=85 I = expect full Crochet integration to follow after that. Warner > On Fri, Feb 28, 2014 at 6:42 AM, Ian Lepore wrote: >=20 >> 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. >>=20 >> I build ubldr to load at address 11000000 and let it load the kernel = at >> 12000000. (The kernel can load on any 1MB boundary, but ubldr = doesn't >> make use of that feature yet.) ubldr will take a dtb file loaded by >> u-boot and pass it along to the kernel. Another option is to put >> 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. >>=20 >> 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: >>=20 >> =3D> printenv >> baudrate=3D115200 >> bootcmd=3Drun ubnet >> bootdelay=3D1 >> console=3Dttymxc0 >> fdt_file=3Dwandboard-dual.dtb >> loadaddr=3D11000000 >> loaderdev=3Dnet >> ubmmc=3Dfatload mmc 0 ${loadaddr} ubldr; bootelf >> ubnet=3Ddhcp ${loadaddr} /wand/boot/ubldr;bootelf >>=20 >> Environment size: 265/8188 bytes >>=20 >> The only thing that differs per-board is the fdt_file setting, and = the >> u-boot binary itself. The "loaderdev=3Dnet" variable tells ubldr to = load >> the kernel from the network device rather than disk. So now all my >> different model wandboards boot the same kernel and run from the same >> nfs root directory. >>=20 >> -- Ian >>=20 >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >>=20 >=20 >=20 >=20 > --=20 > A better world shall emerge based on faith and understanding - = Douglas > MacArthur > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"