mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: afaerber@suse.de (Andreas Färber)
To: linus-amlogic@lists.infradead.org
Subject: ZoomTak UPlus flashing (was: odroid c2 owner here)
Date: Mon, 1 May 2017 13:52:50 +0200	[thread overview]
Message-ID: <7ce87c03-17eb-7ad0-9c0f-2541dca2b5f9@suse.de> (raw)
In-Reply-To: <851f5607-17c3-a811-6f52-80e1eac111b1@gmail.com>

Hi David,

Am 27.04.2017 um 03:49 schrieb David Marceau:
> I recently bought a ZoomTak Uplus(amlogic S912), but documentation to
> flash it in a manner similar to the odroid c2 is sparse/scattered.  It
> has the stock android 6.0 kernel on it.  If there are any diagnostics
> tools or tests you would like to make from within the existing android,
> I would volunteer myself to those also.

Your help in making meson-tools [1] work with S912 would be appreciated!

IIRC S905X and S912 were lacking the initial @AML header at offset 16
that my tools currently expect.

You should backup (via dd from Android) the first ~4 MB of your eMMC for
non-destructive offline analysis.

First steps would then be to tweak unamlbootsig code to deal with
aml_encrypt_gxl [2] format input, then modify amlbootsig code to
correctly generate the @AML headers, matching your original input.
README.md has some hints on how to use hexdump and diff tools for this.

Next step would then be to split off fip.bin at the appropriate offset
of unamlbootsig output (via dd), modify fip.bin via fip_create or
(patched) fiptool, write it back into unamlbootsig's output (using dd)
and run amlbootsig on it. If you're really lucky, writing that onto an
SD card and powering up the box with it would give you serial output you
can distinguish from the eMMC's (to make sure you're actually booting
from SD). If you're unlucky, eMMC comes first in the boot order, so that
shorting eMMC pins or zero'ing/overwriting the eMMC would be the only
ways to test new bootloaders, which might brick your board, and at least
meson-tools v0.1 doesn't include any recovery tools.


Note that currently there is no mainline U-Boot for S912. If you wanted
to hack on that based on existing S905 code, you could instead try to
chain-load your U-Boot from your box's U-Boot by loading it from a FAT
partition on SD/USB to some memory location (at least on my R-Box Pro
tftp boot wasn't working) and then running it via "go" command.

But then again you should just start with enabling the mainline kernel
for your box and loading it from a FAT partition on SD/USB or via TFTP.
Once Linux has a .dts, it is much easier to import that into U-Boot.

Cheers,
Andreas

[1] https://github.com/afaerber/meson-tools
[2] https://github.com/khadas/u-boot/tree/ubuntu/fip

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)

  reply	other threads:[~2017-05-01 11:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27  1:49 odroid c2 owner here David Marceau
2017-05-01 11:52 ` Andreas Färber [this message]
2017-05-03  1:39   ` ZoomTak UPlus flashing David Marceau
2017-05-03 11:02     ` Andreas Färber
2017-05-04  1:51       ` David Marceau

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=7ce87c03-17eb-7ad0-9c0f-2541dca2b5f9@suse.de \
    --to=afaerber@suse.de \
    --cc=linus-amlogic@lists.infradead.org \
    /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

all inboxes | Powered by JetHome®