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 387B1C07E96 for ; Tue, 6 Jul 2021 07:04:07 +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 577E96196A for ; Tue, 6 Jul 2021 07:04:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 577E96196A 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 2849282BD6; Tue, 6 Jul 2021 09:04:04 +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="osj2FGo4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6936A82BF5; Tue, 6 Jul 2021 09:04:02 +0200 (CEST) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (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 175E382A29 for ; Tue, 6 Jul 2021 09:03:59 +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-qv1-xf2f.google.com with SMTP id g15so6903612qvi.13 for ; Tue, 06 Jul 2021 00:03:59 -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:mime-version:content-disposition :user-agent; bh=H06K3LFsHifZaT1idrJe75w5xhzE/p5OmflGAIMKcNo=; b=osj2FGo4Y6l3JL68EHhgD4DxyR/yp1SC9HTnnUPe5YvqPxxfu/5LPTokktLo9FN332 X+hNOV4MiDXZoeVOa3m4BCHxuNi91SJwqAQk/9KQvv1IQ3B2QZlfoSdPzKO4grXgQUNP AywZLv41i5nJqYqnd1tN7TXWl5t57qKkSj90hQPuFXzLUs1EmuFvgTQ/ZX0Uh0AB7kgQ /Vb3jbE7Tzd67XGuOjoYv6re8x1Tf6tmFpXiLgi4uX3qWd38grTPBAkb09XrJ2UJjJgU GnMWIGBkCe+K/jD75pxSLiy1Z98gZUUJyMCRTF/uXhkjXiHkD1Eny0M8mKQs+719vlgG hi2g== 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:mime-version :content-disposition:user-agent; bh=H06K3LFsHifZaT1idrJe75w5xhzE/p5OmflGAIMKcNo=; b=iM0WJ2IZyaDebIVzUddv/DCLrERplLgtuz3ouPvDNAuKloZ4BwGa6WLWmkfs6J4P4I puq7wk3m9qexY562PapcfsiVZTIg2FTX3FrJwWXqCy0LmVKWzj+CxQha9CcsaOpNH7ZY sIV2STW5uNZSuK31sa0lBTidB17Bpvqrk3cw1W0MFOMC8Z0PgkcjfzhNTlIZ7fRKMSrV oibWmD+CQAvt4FUm2868mLBnPNvLI2DIHvqF9l1n6bfWGv5j1vQzD/yAn3F9zdKVBtLj e/5ANBARq5iLkygttLMd2YrWRamBkdAXrwrs/DIwrR71yfJpXpL4un6JO5ZVEGR8cPh7 QREg== X-Gm-Message-State: AOAM533hlO8gh852Zsnp7v8u1ZC6CDjysz0RyfhiQ5DPo/MvVTG/w6Cw CRSrdsmoUm2bzVJdZkt68AjgDN5Ot8kUEQ== X-Google-Smtp-Source: ABdhPJzbz/A8vEpTRwOTzO5QWO13Ek/fZWPK7niOGxQUxjOyqWpg+FDQfRPzWEyJLojrerKuFvcmsw== X-Received: by 2002:a0c:f341:: with SMTP id e1mr16656002qvm.49.1625555037593; Tue, 06 Jul 2021 00:03:57 -0700 (PDT) Received: from localhost (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id z68sm6444600qke.86.2021.07.06.00.03.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jul 2021 00:03:57 -0700 (PDT) Date: Tue, 6 Jul 2021 03:03:55 -0400 From: Trevor Woerner To: u-boot@lists.denx.de Cc: pbrobinson@gmail.com, philipp.tomsich@vrull.eu, sjg@chromium.org, kever.yang@rock-chips.com Subject: rock960c Message-ID: <20210706070354.GA36203@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 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?). 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" (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). In any case, if anyone has any any tips etc I'd appreciate it :-) Best regards, Trevor