From owner-freebsd-arm@FreeBSD.ORG Fri Feb 28 18:25:30 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 CEBD5BCF for ; Fri, 28 Feb 2014 18:25:30 +0000 (UTC) Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 934D917FB for ; Fri, 28 Feb 2014 18:25:30 +0000 (UTC) Received: by mail-ob0-f172.google.com with SMTP id wm4so4285793obc.3 for ; Fri, 28 Feb 2014 10:25:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=XD7eQ2oScPSdVLmFbGjQg0tSgNxOkXzXZdRBN2u9eKo=; b=Fs0cpSIYtBHckEP/218jPw98k9MrdSYtSuT92AdQe+1FgvhwBfsvGqR9WEXC0B0Iw3 gOp37yoQyKqTNecFthzDh9oqv/h2WYl6vGsQUQyRN8Y1YM3eVKnT4lXC65Atfo0f2JhY DiqHKTTXWPJGOsjyaERdd7+8i2JpQR1lRWhhxzFX/9x/FHKzAOCx/lfvB5Jo0BOMoSI5 YmGbhMNfoDMHu+ykPSF3tgdiD0uPkxQvRN4pjTreui0l5iP2ORlZ3S/C1LnPJuYKF4A+ 65W/s9Z9aM8EZPHsb9xzt9em2E8L0rK//IoVsvmEgVQRqmlA/zZVquigQwlvNdeYs4kN GDfw== X-Gm-Message-State: ALoCoQni5G9WFrEzGYM05hs46mHx/ijQCzmbBm4GbQFHZOoH64D9yu1jH/1pyxbAMizCs6vILbYb MIME-Version: 1.0 X-Received: by 10.182.33.6 with SMTP id n6mr14826549obi.48.1393611573044; Fri, 28 Feb 2014 10:19:33 -0800 (PST) Received: by 10.182.104.169 with HTTP; Fri, 28 Feb 2014 10:19:32 -0800 (PST) In-Reply-To: References: <1393594966.1149.161.camel@revolution.hippie.lan> Date: Fri, 28 Feb 2014 11:19:32 -0700 Message-ID: Subject: Re: A unified imx6 kernel config, old WANDBOARD-* configs going away From: Tom Everett To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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:25:31 -0000 I'll give it a try. On Fri, Feb 28, 2014 at 11:18 AM, Warner Losh wrote: > > 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'm working on overhauling the dts stuff we have in the system > right > now and will commit something for that shortly after I finish... I expect > full > Crochet integration to follow after that. > > Warner > > > On Fri, Feb 28, 2014 at 6: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. > >> > >> 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. > >> > >> 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. The "loaderdev=net" 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. > >> > >> -- Ian > >> > >> > >> _______________________________________________ > >> 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" > >> > > > > > > > > -- > > 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" > > -- A better world shall emerge based on faith and understanding - Douglas MacArthur