From owner-freebsd-arm@freebsd.org Wed Aug 10 11:06:54 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04332BB445A for ; Wed, 10 Aug 2016 11:06:54 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8721919FA for ; Wed, 10 Aug 2016 11:06:53 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: by mail-wm0-x242.google.com with SMTP id o80so8830904wme.0 for ; Wed, 10 Aug 2016 04:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=reply-to:subject:references:to:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=Vo9WEeh0x7hl/CUeipPZuPPDyTHDtCGxDCe2WlIDYJA=; b=NXgSCFjkHNA8TTsckzz5+6xVHhNVE0KoZo39ZF6fEhTpHPwTLuVCEUNnA85ff9wvRG mDXFmjFZKgBxpn8ySUxX+56qC4wCPyWRleHhTNffPBP9/2C/CeCthv+si+J4J77apWod +FUfE7GJykym5Hqtmj68M/D6lIs6iMRok+tpkNbFBQl1X23JcfPeFYM6W9t9F+hPaC4V bPo9T0ETT23xwFyrlUvmzS7fN0EcZSGLGQjkRRguPtXHUcO6Y9qJ9HGMhkv+Fj3Oe8ef mgCmvMpDaAXDpX7qOlYZ5R0zoTZMVxVL6YVLVrf9X3UfxEHVYIpTBrc3bPzQw9IZ03x0 6mWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:reply-to:subject:references:to:cc:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=Vo9WEeh0x7hl/CUeipPZuPPDyTHDtCGxDCe2WlIDYJA=; b=NZJH+GUUCSmAUXvmNaoRcQi0j0wPSkzBrmpQGBMq77ReL5Znix6v9GELzBQtcINO1L ckmfBKsM3evVXml/I0URjuT0YxXH54sL8svB2+RWX2J80MUbCUVKn8PKFv3IpjpCdgE3 tBXk29GDIQOg7KvsGWplKf1e2z98lY5Nm8guKsc1KmlzIgkLvRaSCuhkRH2ITvzm4WAb Yo+EoYTDVfXg9EOKspfA3yH+a4ttwXbkh6V8pV7xPpJGt72iUcOfRsL2LEbBMA9Ztvao M8d8T1nuM4wX9XCDOAFh1U8A37RdeFlQ85CI1xMvjqLvYAENg5ioTaKFR6uEUY2vH4GT 3AAQ== X-Gm-Message-State: AEkoouuWh4fl/K8diWt6b9s45BktBPleQDi39uXqvxlzGcXFaUTa+Cj1Vl4SO1gCuzuJjQ== X-Received: by 10.28.169.203 with SMTP id s194mr2693632wme.95.1470827211093; Wed, 10 Aug 2016 04:06:51 -0700 (PDT) Received: from ?IPv6:2001:1620:ff0:c51:95b2:935e:144:fb36? ([2001:1620:ff0:c51:95b2:935e:144:fb36]) by smtp.gmail.com with ESMTPSA id u72sm7845313wmf.5.2016.08.10.04.06.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Aug 2016 04:06:50 -0700 (PDT) Reply-To: mattia.rossi.mailinglists@gmail.com Subject: Re: Allwinner H3 - OrangePi Plus Status References: <64ad8272-a97f-e51f-19f1-d37e12c4e4bf@gmail.com> <868ae805-bf93-50f9-e22c-1d2ea13f8555@gmail.com> <8FDE95E3-C66E-40D5-8133-67FD987BE729@cs.huji.ac.il> <3454388a-02bc-8dbe-4f8f-c33a726e406c@gmail.com> <20160810103501.0aef31d4c27cf08b6e54d20f@bidouilliste.com> <141a4b87-1914-a9f5-c15a-3173f6d4659a@gmail.com> <20160810115617.aa7ad5c9ae538660dc5cc0d8@bidouilliste.com> To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org From: Mattia Rossi Message-ID: Date: Wed, 10 Aug 2016 13:06:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160810115617.aa7ad5c9ae538660dc5cc0d8@bidouilliste.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 11:06:54 -0000 Am 10.08.2016 um 11:56 schrieb Emmanuel Vadot: > On Wed, 10 Aug 2016 11:07:04 +0200 > Mattia Rossi wrote: > >>> ubldr will load the file described by the "fdtfile" u-boot variable (ubldr import the needed uboot variables). >>> The uboot variable is hardcoded in the uboot port patch (https://svnweb.freebsd.org/ports/head/sysutils/u-boot-olimex-a20-som-evb/files/patch-include_configs_sunxi-common.h?revision=418446&view=markup#l44). >>> Alternativelly you can do from ubldr prompt : >>> load -t dtb filename >>> It will search for the file in /boot/dtb (or you can use the fullpath if it's elsewhere) >>> >> It's weird that such a thing is hardcoded.. Although it seems that it's >> set through CONFIG_DEFAULT_DEVICE_TREE, so I guess it can be controlled >> through a config file (Makefile?) > Not weird at all since uboot is always compiled for one particular board. > The CONFIG_DEFAULT_DEVICE_TREE is set in the uboot config file (configs/boardname) but it is currently not used as we override the environ in the board include file. > Okay, so just to get the whole picture: If I want everything set up for an OrangePi Plus 2 I need the following puzzle pieces A u-boot port which points to an orangepi plus 2 dtb An orangepi plus 2 dts/dtb (which might differ from the plus dtb, I don't know yet, there are no real specs available) An orangepi plus 2 kernel config (which like the .dts might differ from the standard allwinner config) And of course kernel support for all the (as of yet unknown) devices of the board. I'm going to work towards that, depending on how much information I can gather about the board and depending on how much it differs from the plus version. For now I'll see if the plus version of everything works :-) - wish me luck ;-) Cheers, Mat