From owner-freebsd-arm@FreeBSD.ORG Mon Mar 3 01:58:37 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 E8047723 for ; Mon, 3 Mar 2014 01:58:37 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AA04211E9 for ; Mon, 3 Mar 2014 01:58:37 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id wn1so647589obc.11 for ; Sun, 02 Mar 2014 17:58:31 -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=EDtHli6N6Lo1Ty9nGoD7AeE2yle3OnhfEU1I6lbhDkk=; b=Fu/RUk1c/eY9dN0hY4dEVZgSv81ezi8tweHsYHP/zOQWq4O8xAprPswQ2VpolPPIFm jy5U4mfxGQEtfg4DLIBKBeItSVFhe/E9ITaVwN7jLWwm3Ssu6KKpgMCxFJo8hz5X/O45 tZjiH5EGV3JH9I+CG6gbG6kvuyASlfVsLwLTq0aKQWJuDx70t32+QTK+RABi1zpS8aH6 IsyolpxiPU+uhhs83kX2UEUu5kwLxt9j647gQMis8r8mccEJwMi818WM2xcxyjc77D31 OuDa1byBQqcsxKzlpHjnHYLjHGJ3ABxMegyTfVemXK2fuPLlokwDoVnB4SgjXed2SB7X Qj6w== X-Gm-Message-State: ALoCoQmIAbVqskf6Q3wE3szOKr6XpNFTi+LKAwhVPQzuXviltShiKdiJV45OcBjE6G1cToAcIxVT MIME-Version: 1.0 X-Received: by 10.60.62.243 with SMTP id b19mr14147301oes.42.1393811459129; Sun, 02 Mar 2014 17:50:59 -0800 (PST) Received: by 10.182.104.169 with HTTP; Sun, 2 Mar 2014 17:50:59 -0800 (PST) In-Reply-To: <1393778472.1149.242.camel@revolution.hippie.lan> References: <1393594966.1149.161.camel@revolution.hippie.lan> <1393731762.1149.233.camel@revolution.hippie.lan> <9BF14340-2267-473E-B047-E377AA258713@bsdimp.com> <1393778472.1149.242.camel@revolution.hippie.lan> Date: Sun, 2 Mar 2014 18:50:59 -0700 Message-ID: Subject: Re: A unified imx6 kernel config, old WANDBOARD-* configs going away From: Tom Everett To: Ian Lepore Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Tim Kientzle , 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: Mon, 03 Mar 2014 01:58:38 -0000 I've got my wandboard quad booting now, with wandboard-quad.dtb in /boot/kernel/. I've submitted a patch to crochet-freebsd and the latest build is up at my FTP. Ian, your patch to ubldr appears to work perfectly. On Sun, Mar 2, 2014 at 9:41 AM, Ian Lepore wrote: > On Sun, 2014-03-02 at 09:30 -0700, Warner Losh wrote: > > On Mar 1, 2014, at 8:42 PM, Ian Lepore wrote: > > > > > On Sat, 2014-03-01 at 18:01 -0700, Tom Everett wrote: > > >> I'm looking at the crochet code, and I see in freebsd_install_fdt > that both > > >> *.dtb and *.dts are supported. However on the source tree it's > imx6.dtsi. > > >> What's the difference b/t a dts file and a dtsi file? > > > > > > A .dtsi file is an include file used by .dts files. A .dtb is the > > > binary (compiled) form used by the kernel. > > > > > > So there are several wandboard-something.dts files, each of which > > > includes imx6.dtsi where all the common parts live. For a new imx6 > > > device, a new board-named file similar to one of the wandboard files is > > > necessary, and it would also include imx6.dtsi. > > > > As would other boards that use the imx6 SoC. They'd have their own .dts > > file that included the imx6.dsti and customized it for how they are wired > > together. > > > > > We're pushing hard towards just using the standard dtb files from > > > vendors, but we've got a bit of work to do before we're there. > > > > I have some rough changes that allow us to build N different DTBs as part > > of the kernel build, but not glom them into the kernel. Not strictly > required > > for this, but helpful. > > > > I'm planning on having Atmel use 100% vendor supplied files as well. > > It is a very good goal. There's also efforts on the linux side to > separate out > > the device-trees from the linux kernel, which is where I grabbed the > recent > > /vendor/device-tree stuff from. > > > > Warner > > For imx6, the big obstacle to using vendor dtb files is now just the > device instantiation order. The stock dts files list devices basically > in order of their memory-mapped register addresses, but we need the > interrupt controller to be available first regardless of where it's > mapped, and likewise for a few other critical devices. > > I need to do another round of experimentation with the > EARLY_DRIVER_MODULE() stuff and multipass device instantiation. We may > not be all that far from success. > > -- 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