Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E843C6FA9E for ; Mon, 6 Mar 2023 03:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjCFDaC (ORCPT ); Sun, 5 Mar 2023 22:30:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjCFD37 (ORCPT ); Sun, 5 Mar 2023 22:29:59 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 237F7EF9C; Sun, 5 Mar 2023 19:29:58 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id ADF7324E194; Mon, 6 Mar 2023 11:29:50 +0800 (CST) Received: from EXMBX172.cuchost.com (172.16.6.92) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 6 Mar 2023 11:29:50 +0800 Received: from [192.168.125.110] (183.27.97.46) by EXMBX172.cuchost.com (172.16.6.92) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 6 Mar 2023 11:29:49 +0800 Message-ID: Date: Mon, 6 Mar 2023 11:29:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v4 00/19] Basic clock, reset & device tree support for StarFive JH7110 RISC-V SoC Content-Language: en-US To: Tommaso Merciai CC: , , , Stephen Boyd , "Michael Turquette" , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Palmer Dabbelt" , Paul Walmsley , Albert Ou , Ben Dooks , "Daniel Lezcano" , Thomas Gleixner , Marc Zyngier , Emil Renner Berthing , References: <20230221024645.127922-1-hal.feng@starfivetech.com> From: Hal Feng In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.97.46] X-ClientProxiedBy: EXCAS063.cuchost.com (172.16.6.23) To EXMBX172.cuchost.com (172.16.6.92) X-YovoleRuleAgent: yovoleflag Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 Mar 2023 20:08:20 +0100, Tommaso Merciai wrote: > Hello Hal, > I start to play with jh7110-starfive-visionfive-2-v1.3b I have collect > your series [3]. Now I'm trying to boot the image with the following > cmds: > > setenv bootfile vmlinuz; > setenv fileaddr a0000000; > setenv fdtcontroladdr 0xffffffffffffffff; > setenv ipaddr 10.0.0.100; > setenv serverip 10.0.0.1; > setenv kernel_comp_addr_r 0xb0000000; > setenv kernel_comp_size 0x10000000; > tftpboot ${fdt_addr_r} jh7110-starfive-visionfive-2-v1.3b.dtb; > tftpboot ${kernel_addr_r} Image.gz; > run chipa_set_linux; > booti ${kernel_addr_r} - ${fdt_addr_r} > > > This the result: > > Bytes transferred = 109443584 (685fa00 hex) > StarFive # run chipa_set_linux; > StarFive # printenv file > fileaddr filesize > StarFive # printenv filesize > filesize=685fa00 > StarFive # booti ${kernel_addr_r} - ${fdt_addr_r} > Uncompressing Kernel Image > ## Flattened Device Tree blob at 46000000 > Booting using the fdt blob at 0x46000000 > Using Device Tree in place at 0000000046000000, end 0000000046005c14 > > Starting kernel ... > > clk u5_dw_i2c_clk_core already disabled > clk u5_dw_i2c_clk_apb already disabled > > --------------------------------------------- > > I'm missing something? Any hints? > Many thanks in advance! :) You can try the instructions at the link [1]. The branch [1] is based on v2 of this series, so you need to change the dtb name to "jh7110-starfive-visionfive-2-v1.3b.dtb" when using tftpboot. I will send v5 and update it to [1] this week. [1] https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_upstream Best regards, Hal