All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dzmitry Sankouski <dsankouski@gmail.com>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: u-boot@lists.denx.de, Ramon Fried <rfried.dev@gmail.com>,
	 Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board
Date: Fri, 24 Sep 2021 17:35:57 +0300	[thread overview]
Message-ID: <CABTCjFA1N=xocYpDwgpb1LvQfdPik8foHYSyZoeesm4Fhp3P9Q@mail.gmail.com> (raw)
In-Reply-To: <YU2wMN8HZGuDZ4oG@gerhold.net>

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.

пт, 24 сент. 2021 г. в 14:02, Stephan Gerhold <stephan@gerhold.net>:

> Hi,
>
> On Thu, Sep 23, 2021 at 09:57:32PM +0300, dsankouski@gmail.com wrote:
> > From: Dzmitry Sankouski <dsankouski@gmail.com>
> >
> > 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 <dsankouski@gmail.com>
> > Cc: Ramon Fried <rfried.dev@gmail.com>
> > Cc: Tom Rini <trini@konsulko.com>
> > ---
> > 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 <dsankouski@gmail.com>
> > +
> > +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=<aarch64 toolchain prefix>
> > +     $ make <your board name here, see Boards section>_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
>

  reply	other threads:[~2021-09-24 14:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 18:57 [PATCH 0/6] Add support for SDM845 based boards, and SM-G9600 dsankouski
2021-09-23 18:57 ` [PATCH 1/6 v3] serial: qcom: add support for GENI serial driver dsankouski
2021-09-23 18:57 ` [PATCH 2/6 v3] spmi: msm: add arbiter version 5 support dsankouski
2021-10-05 16:53   ` Tom Rini
2021-09-23 18:57 ` [PATCH 3/6] pinctrl: qcom: add pinctrl and gpio drivers for SDM845 SoC dsankouski
2021-09-24 10:48   ` Stephan Gerhold
2021-09-23 18:57 ` [PATCH 4/6] clocks: qcom: add clocks for SDM845 debug uart dsankouski
2021-09-23 18:57 ` [PATCH 5/6] SoC: qcom: add support for SDM845 dsankouski
2021-09-24 10:55   ` Stephan Gerhold
2021-09-23 18:57 ` [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board dsankouski
2021-09-24 11:02   ` Stephan Gerhold
2021-09-24 14:35     ` Dzmitry Sankouski [this message]
2021-09-24 18:50       ` Stephan Gerhold
2021-10-05 16:53   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABTCjFA1N=xocYpDwgpb1LvQfdPik8foHYSyZoeesm4Fhp3P9Q@mail.gmail.com' \
    --to=dsankouski@gmail.com \
    --cc=rfried.dev@gmail.com \
    --cc=stephan@gerhold.net \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.