public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
To: Peter Robinson <pbrobinson@gmail.com>, Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de, Tim Harvey <tharvey@gateworks.com>,
	Jagan Teki <jagan@amarulasolutions.com>,
	"Marty E . Plummer" <hanetzer@startmail.com>,
	Heiko Schocher <hs@denx.de>,
	Alexandre Vicenzi <alexandre.vicenzi@suse.com>,
	Artem Lapkin <email2tema@gmail.com>,
	Christian Hewitt <christianshewitt@gmail.com>,
	Fabio Estevam <festevam@denx.de>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>,
	Andre Przywara <andre.przywara@arm.com>,
	Neil Armstrong <narmstrong@baylibre.com>,
	Johan Jonker <jbx6244@gmail.com>,
	Kever Yang <kever.yang@rock-chips.com>,
	Priyanka Jain <priyanka.jain@nxp.com>
Subject: Re: [PATCH 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin
Date: Tue, 14 Dec 2021 00:55:34 +0300	[thread overview]
Message-ID: <5398a862-27c5-e158-503a-8ba4fa95be23@gmail.com> (raw)
In-Reply-To: <CALeDE9MGK1jbN962Vwpid5gOsu0EtmTpHUiQXg2fhFpXJbMffA@mail.gmail.com>

On 08/12/2021 12:31, Peter Robinson wrote:
> I thought there was a different process for the chtomebooks than the
> usual rockchip route. Do the rockchip chomebooks support writing to a
> space in SPI and chainloading like some of the other arm chtomebooks
> did (I think tegra/samsung but my memory fades there)? I think it
> would be useful to document the rockchip chromebook options somewhere
> so that people that are interested in using the U-Boot option have
> some resources, we've had a few queries over the time around that.

What I usually do is exactly that, chainloading from an SPI region
called RW_LEGACY. This is the predecessor of the 'altfw' feature
mentioned in doc/chromium/overview.rst, there's a link there that leads
to some information about this as well. In short it goes like this:

- Build U-Boot with CONFIG_OF_EMBED=y
  (or do some objcopy/elfedit magic to merge dtb into u-boot ELF)
- cbfstool "u-boot.cbfs" create -s "$((2 * 1024 * 1024))" -m arm64
- cbfstool "u-boot.cbfs" add-payload -f "u-boot" -n payload -c lzma
- dd if="u-boot.cbfs" of="u-boot.cbfs.rom" bs=2M seek=3 count=1
- sudo flashrom -p linux_mtd --fmap -i RW_LEGACY -w "u-boot.cbfs.rom"
- Reboot and press CTRL+L on Chrome OS developer mode screen

There's also the doc/chromium/chainload.rst process which packs U-Boot
as if it's the Chrome OS kernel on a disk. I couldn't manage to boot
U-Boot that way, but I somewhat automated that process with binman. I
think I can automate the RW_LEGACY image as well but haven't tried it.

I could document what I know as is, but wanted to do it after I get
those files automated during upstream build, as things should be quite
simple after that.

  reply	other threads:[~2021-12-13 21:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-25 17:39 [PATCH 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin Alper Nebi Yasak
2021-11-25 17:39 ` [PATCH 1/4] rockchip: gru: Set up SoC IO domain registers Alper Nebi Yasak
2021-12-03  3:31   ` Simon Glass
2021-12-07 20:31     ` Alper Nebi Yasak
2021-12-09  2:32       ` Simon Glass
2021-12-09 20:56         ` Alper Nebi Yasak
2021-11-25 17:39 ` [PATCH 2/4] rockchip: gru: Add more devicetree settings Alper Nebi Yasak
2021-11-25 17:39 ` [PATCH 3/4] rockchip: bob: Enable more configs Alper Nebi Yasak
2021-11-25 17:39 ` [PATCH 4/4] rockchip: rk3399: Add support for chromebook_kevin Alper Nebi Yasak
2021-12-03  3:31   ` Simon Glass
2021-12-07 20:53     ` Alper Nebi Yasak
2021-12-15  3:27       ` Simon Glass
2021-12-01 14:23 ` [PATCH 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin Peter Robinson
2021-12-03  3:31   ` Simon Glass
2021-12-03 12:19     ` Peter Robinson
2021-12-03 20:13       ` Simon Glass
2021-12-07 22:21         ` Alper Nebi Yasak
2021-12-08  9:31         ` Peter Robinson
2021-12-13 21:55           ` Alper Nebi Yasak [this message]
2021-12-03  3:31 ` Simon Glass
2021-12-07 20:49   ` Alper Nebi Yasak

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=5398a862-27c5-e158-503a-8ba4fa95be23@gmail.com \
    --to=alpernebiyasak@gmail.com \
    --cc=alexandre.vicenzi@suse.com \
    --cc=andre.przywara@arm.com \
    --cc=christianshewitt@gmail.com \
    --cc=email2tema@gmail.com \
    --cc=festevam@denx.de \
    --cc=hanetzer@startmail.com \
    --cc=hs@denx.de \
    --cc=jagan@amarulasolutions.com \
    --cc=jbx6244@gmail.com \
    --cc=kever.yang@rock-chips.com \
    --cc=narmstrong@baylibre.com \
    --cc=pbrobinson@gmail.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=priyanka.jain@nxp.com \
    --cc=sjg@chromium.org \
    --cc=tharvey@gateworks.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox