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=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 C896FC433F5 for ; Fri, 24 Sep 2021 11:02:19 +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 E1685610C7 for ; Fri, 24 Sep 2021 11:02:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E1685610C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 54E8283400; Fri, 24 Sep 2021 13:02:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gerhold.net header.i=@gerhold.net header.b="VnVOpkXb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6EC6A83422; Fri, 24 Sep 2021 13:02:14 +0200 (CEST) Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AB46E8326F for ; Fri, 24 Sep 2021 13:02:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gerhold.net Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=stephan@gerhold.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1632481329; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=KlYXLbLAu8Jlx04qLEG7tuiFeMFkI9JIZEAOHbOfAeA=; b=VnVOpkXbQAhDs99fw6z+wR0pLcpKnNtZhmmlGt9iuRXcWEtsqkSG5rYE+gWxPBIRA2 P7qvzzXsioiWavZXYJAhzj8UyQ0DyzCQDWJAl48ku2F6qIn0FJEL/Bw3VVB/+xViRDsD HbO380qY3FtKkDYZHFU08DJPGjnbfcZ7t/ymlZrGWO9twQo6sMFqJqp7t1Frt2SBtOJx u7uh0GNumhSBjysaIDjNAh7ByxNitdd4hVJ5aoInJFyk/kirorwKTMShkpNGyocnEYsJ 8Jacuu/9InN7seVeg9KHkF7E5ePNk4olgjQGw++c3gKRVilc5dXYj6tbY8eUxD+rDz7O BaoQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u261EJF5OxJD4pWA8p2M1A==" X-RZG-CLASS-ID: mo00 Received: from gerhold.net by smtp.strato.de (RZmta 47.33.8 DYNA|AUTH) with ESMTPSA id 301038x8OB29Sc5 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 24 Sep 2021 13:02:09 +0200 (CEST) Date: Fri, 24 Sep 2021 13:02:08 +0200 From: Stephan Gerhold To: dsankouski@gmail.com Cc: u-boot@lists.denx.de, Ramon Fried , Tom Rini Subject: Re: [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board Message-ID: References: <20210923185732.7679-1-dsankouski@gmail.com> <20210923185732.7679-7-dsankouski@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210923185732.7679-7-dsankouski@gmail.com> 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, On Thu, Sep 23, 2021 at 09:57:32PM +0300, dsankouski@gmail.com wrote: > From: Dzmitry Sankouski > > Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone, > for China \ Hong Kong markets. > Has unlockable bootloader, unlike SM-G960U (American market version), > which allows running u-boot as a chain-loaded bootloader. > > Signed-off-by: Dzmitry Sankouski > Cc: Ramon Fried > Cc: Tom Rini > --- > Changes for v2: > - Create documentation file for SDM845 boards > - Add starqltechn board documentation > Changes for v3: > - fix comment in starqltechn.c > > arch/arm/dts/Makefile | 1 + > arch/arm/dts/starqltechn-uboot.dtsi | 39 ++++++++++++++++++ > arch/arm/dts/starqltechn.dts | 53 +++++++++++++++++++++++++ > arch/arm/mach-snapdragon/Kconfig | 13 ++++++ > board/samsung/starqltechn/Kconfig | 14 +++++++ > board/samsung/starqltechn/MAINTAINERS | 6 +++ > board/samsung/starqltechn/Makefile | 9 +++++ > board/samsung/starqltechn/starqltechn.c | 10 +++++ > configs/starqltechn_defconfig | 33 +++++++++++++++ > doc/board/qualcomm/index.rst | 1 + > doc/board/qualcomm/sdm845.rst | 38 ++++++++++++++++++ > include/configs/starqltechn.h | 16 ++++++++ > 12 files changed, 233 insertions(+) > create mode 100644 arch/arm/dts/starqltechn-uboot.dtsi > create mode 100644 arch/arm/dts/starqltechn.dts > create mode 100644 board/samsung/starqltechn/Kconfig > create mode 100644 board/samsung/starqltechn/MAINTAINERS > create mode 100644 board/samsung/starqltechn/Makefile > create mode 100644 board/samsung/starqltechn/starqltechn.c > create mode 100644 configs/starqltechn_defconfig > create mode 100644 doc/board/qualcomm/sdm845.rst > create mode 100644 include/configs/starqltechn.h > > [...] > diff --git a/doc/board/qualcomm/sdm845.rst b/doc/board/qualcomm/sdm845.rst > new file mode 100644 > index 0000000000..cd46cbe9cf > --- /dev/null > +++ b/doc/board/qualcomm/sdm845.rst > @@ -0,0 +1,38 @@ > +.. SPDX-License-Identifier: GPL-2.0+ > +.. sectionauthor:: Dzmitry Sankouski > + > +Snapdragon 845 > +================ > + > +About this > +---------- > +This document describes the information about Qualcomm Snapdragon 845 > +supported boards and it's usage steps. > + > +SDM845 - hi-end qualcomm chip, introduced in late 2017. > +Mostly used in flagship phones and tablets of 2018. > + > +U-Boot can be used as a replacement for Qualcomm's original ABL (UEFI) bootloader. > +It is loaded as an Android boot image through ABL > + > +Installation > +------------ > +First, setup ``CROSS_COMPILE`` for aarch64. Then, build U-Boot for your board:: > + > + $ export CROSS_COMPILE= > + $ make _defconfig > + $ make > + > +This will build ``u-boot.bin`` in the configured output directory. > + > +Boards > +------------ > +starqlte > +^^^^^^^^^^^^ > + > +The starqltechn is a production board for Samsung S9 (SM-G9600) phone, > +based on the Qualcomm SDM845 SoC. > + > +More information can be found on the `Samsung S9 page`_. > + > +.. _Samsung S9 page: https://en.wikipedia.org/wiki/Samsung_Galaxy_S9 Can you add a short explanation here how you would install the u-boot.bin on the Samsung S9? You say that it is loaded through an Android boot image, but how exactly is it built? For example, do you use an empty ramdisk, does the bootloader expect some dt.img etc? Something similar to the DB820c README: https://source.denx.de/u-boot/u-boot/-/blob/master/board/qualcomm/dragonboard820c/readme.txt#L32-61 This would be helpful if someone wants to install U-Boot on that phone I think :) Thanks! Stephan