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=-7.8 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 autolearn=no 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 D2698C07E99 for ; Mon, 12 Jul 2021 06:55:04 +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 038C3611C2 for ; Mon, 12 Jul 2021 06:55:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 038C3611C2 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 D80B082C6B; Mon, 12 Jul 2021 08:55:00 +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="IRl7xgoC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 27A5182C6C; Mon, 12 Jul 2021 08:54:59 +0200 (CEST) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 35C0982C3C for ; Mon, 12 Jul 2021 08:54:56 +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=pbrobinson@gmail.com Received: by mail-ej1-x62d.google.com with SMTP id gb6so32522138ejc.5 for ; Sun, 11 Jul 2021 23:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sttz9n4Xf1CjRkz4PJIirNuyxOkOV52i76JlHHswSAw=; b=IRl7xgoC4MMQeXQQbL0sJhrA23VnyY37zB43mAkG5vp6YUoCRa9ayhhbSv/7qABFPn t7hfuNno370Ud4jbgv+INbhz33C8vH2G6v/pQPijkBEbe4yPv7KjvrgltJHCjAiDHz2a CFpIMejJ9SIaabJG5rMH+r2V0ZE9Ba6gNd+slu8AhBKeOVejiTf0dUrLPJSdD0sUA6GM ugihOWQSbRRZ+MLvp4JimM9yam9d73NQuKv789rgqiCxA5+aqA0+18jO94AoCngvxZRX ZBcyv6eEtcdb1H9UDOQ8zAlLJg6K+S9wD5QrER6u/MUruYo3fexNRr/wMoG/ydsY3DGa ct1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sttz9n4Xf1CjRkz4PJIirNuyxOkOV52i76JlHHswSAw=; b=nuEPo6GnHTiuLC/UugKLRnSucWzDUcKPIhGvtOiGN2OM2xxCMZtQa0Nno2YU59SljO f+zI5+3Fk/+G+fhnHMTbcDzFly/j17+UpUmV4MguZE9hFUjRBvPJK0fte+tiiP7AuzAi aEuLv7xVhis6AVI7b3/ZmgNvI5hPRvKZnyXXD3V3TCGc8i0EbPN1EjMualOdrwOfrUZT r5l8l95EU2JnWaLgtH3JyUPZob4w00nyX6IX3iEzmq6LjrKygIr34lQzjE9rjguAI0ba /kWe1Sr4Z0UJVCuBzn68t051REfXhk5VSwxOMHQ+0Hqt1vjg/GhNvvLEGV2B4NX7j0dz ZOvg== X-Gm-Message-State: AOAM530OhTCAf5lcYtgiWSoYHvvsT8IUWlcrTDVYPOKzCSLsGWIxSaNI iiZoXyMZWUjOR8utYWhMYtDFWLSlLIH9z+hLfKo= X-Google-Smtp-Source: ABdhPJwKAmjh8D1C2U7h8LkD77hzQP2QQh4XXpjJ6CU0sN8gFX2z1oFxcj3Bofg55mLl+ESyIftfO9nXqtdaBXThDwE= X-Received: by 2002:a17:906:58c7:: with SMTP id e7mr47460598ejs.197.1626072895835; Sun, 11 Jul 2021 23:54:55 -0700 (PDT) MIME-Version: 1.0 References: <20210706070354.GA36203@localhost> In-Reply-To: <20210706070354.GA36203@localhost> From: Peter Robinson Date: Mon, 12 Jul 2021 07:54:44 +0100 Message-ID: Subject: Re: rock960c To: Trevor Woerner Cc: u-boot@lists.denx.de, philipp.tomsich@vrull.eu, Simon Glass , Kever Yang Content-Type: text/plain; charset="UTF-8" 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 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. > 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. > (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. > 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.