From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 680C2C07E99 for ; Mon, 12 Jul 2021 16:07:20 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 98C61611C1 for ; Mon, 12 Jul 2021 16:07:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 98C61611C1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 08DF882A81; Mon, 12 Jul 2021 18:07:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RG9ubbPR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 40BEF82E00; Mon, 12 Jul 2021 18:07:16 +0200 (CEST) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0533382A13 for ; Mon, 12 Jul 2021 18:07:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=twoerner@gmail.com Received: by mail-io1-xd2b.google.com with SMTP id z11so1592460iow.0 for ; Mon, 12 Jul 2021 09:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tfXnfA3swpQYAlMv8WvCBIZQlqEzT5aV9xeZ2HmrTxc=; b=RG9ubbPRyXrUi681IK9zUceM1mZZZBFYBN0VyUYgGtHoVBUEhcsrrZ/D3rDz/y7Sg8 jo85HNFG+V3hJHNpjwWnXVRE/hpWRm/FNHS0bjYkNTtSV5ZByGikaDlcyQsRDAPhq7Gz aNYx61b5Pxk6D9GiBumaAzneappOYmiHuMwUxNYWoCkyIY0Rmb7UgKXcQQOPEk12wx1z +7i+PqKShj4s5EpJfXepY18AJ/mt9BOOFASgv9Zhel65xBpJamTA+3yW5U9osn7Zd3IP 6frKRy3MxWQjMikzM/N7Xs2Opjm3vnkh4dQYM8E/MKl+6nJTUoHAK3lkWcvBJ2HlwgQ5 jsuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tfXnfA3swpQYAlMv8WvCBIZQlqEzT5aV9xeZ2HmrTxc=; b=XgLUVAMUskmx41qk0mrguJoagMwg0lHasBn1BXPJAFHjl3dXCeqKpDDG3vDwCVFYgJ /kwmHnd9fYTAUny3tMeGmJ8BKtJoNbPKkEQkzFSN0gaVQGkjc6XKjEpQQuR4bNouxTqB fn3YuY0mum1xQO5OrNxleqAyxGTLsVG6Q8DzbqSHCy5NA9FGRPxyJrO2Rz4LIuPnx763 QutU+gof5s2M59uDdaUPE2+WvrAd40VErWYWO16K27trIwWUwiNIBdUPfzdTCkHmDn98 cgJIMSU6x1zWROmdCldYaYkL25jK5JTjWTssxzg9w/wAHFUqCinu7BpYfGbh1w6I2nGX +A4Q== X-Gm-Message-State: AOAM533jaxDjKtihjdKfl3BnxjWQuSH1PFXMHuon4sQuMHpklBH5aLLB jFHyxGoA8k1tVGkU2dzcXZo= X-Google-Smtp-Source: ABdhPJxSBsbUIpl11v9jc/lax7cVAVvz/AwKLCM7zvxOEyfsQDFJ4ajnolJbfEyBVEfC8VQ4fCrtlw== X-Received: by 2002:a05:6638:3048:: with SMTP id u8mr44577207jak.91.1626106031624; Mon, 12 Jul 2021 09:07:11 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id k7sm3391038ilr.19.2021.07.12.09.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 09:07:11 -0700 (PDT) Date: Mon, 12 Jul 2021 12:07:09 -0400 From: Trevor Woerner To: Peter Robinson Cc: u-boot@lists.denx.de, philipp.tomsich@vrull.eu, Simon Glass , Kever Yang Subject: Re: rock960c Message-ID: <20210712160708.GA24150@localhost> References: <20210706070354.GA36203@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Mon 2021-07-12 @ 07:54:44 AM, Peter Robinson wrote: > On Tue, Jul 6, 2021 at 8:03 AM Trevor Woerner wrote: > > > > Hi, > > > > I was hoping that one day support would be added for the rockchip rock960c > > board (from the 96boards series, https://www.96boards.org/product/rock960c/). > > NOTE: this board is different from the rock960 board (aka rock960 a/b) that is > > currently supported. > > > > Schematics and datasheets aren't easy to come by. A while back someone > > mentioned that the only difference between the rock960 a/b and the rock960c is > > that the rock960c uses different SDRAM (LPDDR4 instead of LPDDR3). Searching > > around on the Internet it would appear that the rock960c uses the same SDRAM > > as the rock-pi-4 devices (maybe?). > > I don't think it has a USB-C port, nor a onboard eMMC, although from > memory it does have a header. It does have a USB-C port (although I'm using the separate 12V plug for power) but you're right about the rest (it doesn't have onboard eMMC, but does have a header if the user wants to populate one). > > The actual SDRAM on the board is H9HCNNN4KUML-HRNMN, but I can't find a > > datasheet for it anywhere, not even on Hynix's website. > > > > I tried creating a rock960c device by copying the rock960 things. The one > > change I made was that my rk3399-rock960c-u-boot.dtsi file has: > > > > #include "rk3399-sdram-lpddr4-100.dtsi" > > > > (which is what the rock-pi-4 is using) instead of: > > > > #include "rk3399-sdram-lpddr3-2GB-1600.dtsi" > > You'll probably need to add/update a DDR line in the config file as well. Okay, I'll take a second look. > > (which is what rk3399-rock960-u-boot.dtsi is using). Unfortunately this > > doesn't succeed. The TPL is invoked, then there's nothing else on the console: > > > > U-Boot TPL 2021.04 (Jun 30 2021 - 18:16:57) > > > > I then tried building and using the vendor-supplied u-boot fork for the > > rock960c which is found here: > > > > git://github.com/96rocks/u-boot.git > > > > but it is quite old (U-Boot 2017.09) and pre-dates the TPL/idbloader things. > > If I understand things correctly, the vendor branch only builds u-boot and the > > spl, I then need to mash in some sort of binary ddr file to the spl to get a > > working first-stage bootloader (?). I'm unclear how to take the build output > > from the vendor branch and create a working bootloader to load on my sdcard > > (the only docs for the rk3399 in that branch are generic and don't refer to > > things that come out of the build for the rock960c). > > I personally wouldn't waste your time with the vendor one, I would > think everything needed is already upstream for the core support. Agreed. The vendor branch is so old I don't think it is useful anymore. Best to just start with U-Boot master and tweak from there. > > In any case, if anyone has any any tips etc I'd appreciate it :-) > > There's not an upstream dts either, which probably isn't a big issue > for the basics. I don't remember whether or not if I have a revC of > these boards somewhere, I can't promise timing wise but if I get a > moment I'll see if I can work out if I have one. Sounds good, thanks! :-)