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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B8E5C433EF for ; Fri, 24 Sep 2021 14:36: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 7A1216124D for ; Fri, 24 Sep 2021 14:36:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7A1216124D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 31CC682C45; Fri, 24 Sep 2021 16:36:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Du8PTG7d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9BFD782DF7; Fri, 24 Sep 2021 16:36:15 +0200 (CEST) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (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 4E42580C83 for ; Fri, 24 Sep 2021 16:36:10 +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=dsankouski@gmail.com Received: by mail-yb1-xb30.google.com with SMTP id r4so6189571ybp.4 for ; Fri, 24 Sep 2021 07:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uhgvqqzkTv+ddahQBMCKoXb4Ciyoxyhi1Z+8U6TYggs=; b=Du8PTG7dTeKXVDMy6JRNKIQPINGcNi4BaVQGhFKczjm62jTyskBo1Wlzr3Huc3NzcZ XwPehPf69WV9JWcxBf0GqALxesFiew7oRnYvGPDQvEqtKb9BWL7h48NAu0w0GSA8hx08 EbO0B6B+pKPcNxHAfHRSmuK+1Q98YwKLdcdIxsdRzD5R7a0iVaPc4fjYrybFKCarVhkb ts4GayyGkfCzipMThvUNuYhtaUOwDxzbXSui18wNZvD30aY0LOdIOkk/aoDVwUlPwZf7 K58pnXJcfF+AR5bQI7ioxcwIc5RY8Tv9dz0GLFLsHwjHXsUjrwf7WR4CldjzrhdsqGYJ ZMXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uhgvqqzkTv+ddahQBMCKoXb4Ciyoxyhi1Z+8U6TYggs=; b=tgygl07z0l22FCuSV0iBpaBi9N8+UVRd0aa5JSq/HkR1mNL3AqYRplFAQJep3Mz7v6 LWJ7+6Y9y4y/CQ9Aq6kG3DvOwjWprFu7so7+ORZheX5AjDz+BMJCwzxdCqvJTRpAnubQ ahy3P0EimI2gd2NDvfRU7Y5CMkpEufTO33lpwwPdfgk96AgeK8KsNf39accVVrU6P/1+ Jo8gqtGvNBoxD8OC96KCDaOxw95r29zC6UFYR51Of4BVdWxeWsNI3pnpcmpXfPci7N+N NlkksnWeesRL9p2nDNxY3SWiswM8Zd6tmsDeTysnxUkYSCmzVdj98VLzgFvaV7Ppi5y9 lhcA== X-Gm-Message-State: AOAM5319F1mEedpBtQi0M5GrNz8POb0CZfUkmRramP6tlW686y3wMkb5 m6+EU1MAch13sOR6TCnVNUrAQ/dfG+Hs9Nbdq2c= X-Google-Smtp-Source: ABdhPJwaxJ0aIexe3Pd8+AucS0wP2FVdKlPaTxTK+QXrSQJGc0RsUPdDVphMEmvqIB1Thd1832fMBcC/URP2mWF4NaQ= X-Received: by 2002:a05:6902:72d:: with SMTP id l13mr14060819ybt.168.1632494168970; Fri, 24 Sep 2021 07:36:08 -0700 (PDT) MIME-Version: 1.0 References: <20210923185732.7679-1-dsankouski@gmail.com> <20210923185732.7679-7-dsankouski@gmail.com> In-Reply-To: From: Dzmitry Sankouski Date: Fri, 24 Sep 2021 17:35:57 +0300 Message-ID: Subject: Re: [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board To: Stephan Gerhold Cc: u-boot@lists.denx.de, Ramon Fried , Tom Rini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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 haven't tried to install u-boot on the phone with Android boot image yet(though another guy in the community project I contribute, reported it works). I can only test u-boot with kexec, it's the only way to get debug uart for me, without disassembling the phone. Also I have to track down the issues with booting linux. So, once I'll got linux booted by u-boot, I will be able to pack and install it in Android boot partition, and write more detailed instructions. =D0=BF=D1=82, 24 =D1=81=D0=B5=D0=BD=D1=82. 2021 =D0=B3. =D0=B2 14:02, Steph= an Gerhold : > 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 > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > + > > +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 you= r > board:: > > + > > + $ export CROSS_COMPILE=3D > > + $ 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/dragonb= oard820c/readme.txt#L32-61 > > This would be helpful if someone wants to install U-Boot on that phone > I think :) > > Thanks! > Stephan >