From: Mikko Perttunen <cyndis-/1wQRMveznE@public.gmane.org>
To: "Andreas Färber" <afaerber-l3A5Bk7waGM@public.gmane.org>
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
U-Boot <u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org>,
Alexander Graf <agraf-l3A5Bk7waGM@public.gmane.org>,
Mian Yousaf Kaukab <yousaf.kaukab-IBi9RG/b67k@public.gmane.org>,
Tom Warren <twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Varun Wadekar <vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: How to test new bootloaders on Jetson TX1?
Date: Thu, 15 Feb 2018 16:22:26 +0200 [thread overview]
Message-ID: <d082127f-8db7-e117-a271-5d57cefa75f7@kapsi.fi> (raw)
In-Reply-To: <8320e1df-774c-65c1-28ae-96e1b90ad178-l3A5Bk7waGM@public.gmane.org>
On 15.02.2018 15:25, Andreas Färber wrote:
> Hi Mikko,
>
> Am 15.02.2018 um 08:56 schrieb Mikko Perttunen:
>> In the cboot + U-Boot combination, cboot loads U-Boot from the usual
>> kernel partition (LNX or kernel depending on system), so flashing U-Boot
>> there should do the trick. I believe this did indeed change in some L4T
>> version, so the wiki page needs to be updated. Tom should know more
>> about this.
>
> Thanks for explaining.
>
> The LNX partition is getting a boot.img - what is the relation to the
> four U-Boot files? flash.sh source is not really helping here.
cboot is only capable of booting Android .img's so the U-Boot binary
(u-boot-dtb.bin according ton Jon) is packaged as one using mkbootimg or
similar - I expect flash.sh to do this automatically.
>
> Might any changes to RP1 and/or DTB partitions be necessary to match my
> newer U-Boot, or does U-Boot use an internal .dtb these days?
My understanding is that it uses an internal .dtb.
>
> Is there any more efficient way to flash just U-Boot? -k LNX possibly?
That might work. Jon should know the details.
>
> I had played with the -L option before (which mentions u-boot-dtb.bin),
> but recall it ran into some form of checksum error on boot when passing
> it my file...
>
>> I expect Varun to know the details about ATF, but I'll check if I can
>> find some answer myself.
>
> Thanks again for your efforts.
I found out that ATF and optionally a secure OS (Trusty usually) are
contained in the file tos.img. The image contains a padded header,
followed by bl31.bin and the secure OS binary concatenated.
The header format should be pretty straightforward to reverse-engineer
(need to change some fields specifying lengths), but I'll ask around if
we can get a script to generate it released.
Cheers,
Mikko
>
> Regards,
> Andreas
>
next prev parent reply other threads:[~2018-02-15 14:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-15 1:51 How to test new bootloaders on Jetson TX1? Andreas Färber
[not found] ` <5ff3ffde-653c-ea50-490c-efcc6dccecc2-l3A5Bk7waGM@public.gmane.org>
2018-02-15 7:56 ` Mikko Perttunen
[not found] ` <2089c895-7992-9741-a471-fae5b410d4b7-/1wQRMveznE@public.gmane.org>
2018-02-15 13:25 ` Andreas Färber
[not found] ` <8320e1df-774c-65c1-28ae-96e1b90ad178-l3A5Bk7waGM@public.gmane.org>
2018-02-15 14:22 ` Mikko Perttunen [this message]
2018-02-15 9:22 ` Jon Hunter
[not found] ` <0247bb39-1f53-5c45-4d37-247813b53b96-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2018-02-15 12:32 ` Andreas Färber
[not found] ` <8d80b0d3-eaed-b1ab-02c9-86f81ac4b7fa-l3A5Bk7waGM@public.gmane.org>
2018-02-15 14:01 ` Jon Hunter
[not found] ` <33de1065-1372-282c-9646-30a63729e08e-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2018-02-15 15:12 ` Andreas Färber
2018-02-15 15:38 ` Jon Hunter
2018-02-15 15:44 ` Tom Warren
[not found] ` <d6a44448867a47028685fb0af0005d59-wO81nVYWzR7wKU+G0hyRhFaTQe2KTcn/@public.gmane.org>
2018-02-15 16:57 ` Varun Wadekar
2018-02-16 3:04 ` How to test new bootloaders on Jetson TX1? - ATF Andreas Färber
2018-02-16 6:18 ` Varun Wadekar
[not found] ` <e9728e54-8c58-4586-8863-0f26eb156deb-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2018-02-17 5:34 ` Andreas Färber
2018-02-17 7:04 ` Varun Wadekar
2018-02-15 23:38 ` How to test new bootloaders on Jetson TX1? Stephen Warren
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=d082127f-8db7-e117-a271-5d57cefa75f7@kapsi.fi \
--to=cyndis-/1wqrmvezne@public.gmane.org \
--cc=afaerber-l3A5Bk7waGM@public.gmane.org \
--cc=agraf-l3A5Bk7waGM@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=twarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=u-boot-0aAXYlwwYIKGBzrmiIFOJg@public.gmane.org \
--cc=vwadekar-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=yousaf.kaukab-IBi9RG/b67k@public.gmane.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