All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mian Yousaf Kaukab <ykaukab@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Jetson TX2 hangs during dhcp boot
Date: Sun, 16 Jun 2019 21:27:12 +0200	[thread overview]
Message-ID: <20190616192712.GA31209@suse.de> (raw)
In-Reply-To: <bb2487ef-11da-1683-c494-cc74a784b9a4@wwwdotorg.org>

On Fri, Jun 14, 2019 at 11:40:49AM -0600, Stephen Warren wrote:
> On 6/14/19 11:09 AM, Andreas Färber wrote:
> > Am 14.06.19 um 18:41 schrieb Stephen Warren:
> > > On 6/14/19 11:09 AM, Mian Yousaf Kaukab wrote:
> > > > Hi,
> > > > I am seeing a hang with dhcp boot on Jetson TX2. Its running firmware
> > > > from
> > > > L4T 32.1 with U-Boot from master branch (c2ea87883e) with [1] applied.
> > > > 
> > > > I use following command sequence at u-boot prompt to boot:
> > > > 
> > > > Tegra186 (P2771-0000-500) # setenv ftdfile tegra186-p2771-0000.dtb
> > > > Tegra186 (P2771-0000-500) # setenv boot_targets dhcp
> > > > Tegra186 (P2771-0000-500) # boot
> > > > 
> > > > Last thing I see is the following error from TF-A and the board hangs:
> > > 
> > > What is TF-A?
> > 
> > The artist formerly known as Arm Trusted Firmware.
> 
> Ah OK. I had only ever heard that called ATF before.
4def07d5 Update Arm TF references to TF-A
> 
> > > > U-Boot 2019.07-rc4-00137-g6fefd9c475 (Jun 14 2019 - 16:27:34 +0200)
> > > ...
> > > > TFTP from server xx.xx.xx.xx; our IP address is xx.xx.xx.xx
> > > > Filename 'aarch64/grub.efi'.
> > > > Load address: 0x80280000
> > > ...
> > > > MMC: no card present
> > > > Scanning disk sdhci at 3400000.blk...
> > > > Disk sdhci at 3400000.blk not ready
> > > > Scanning disk sdhci at 3460000.blk...
> > > > Found 32 disks
> > > > copying carveout for
> > > > /host1x at 13e00000/display-hub at 15200000/display at 15200000...
> > > > copying carveout for
> > > > /host1x at 13e00000/display-hub at 15200000/display at 15210000...
> > > > copying carveout for
> > > > /host1x at 13e00000/display-hub at 15200000/display at 15220000...
> > > > ERROR:   ARI request timed out: req 89 on CPU 4
> > > > ASSERT: plat/nvidia/tegra/soc/t186/drivers/mce/ari.c <127> : retries
> > > > != 0U
> > > 
> > > That file doesn't exist in U-Boot; I guess it's part of grub.efi?
> > 
> > Looks rather like a TF-A path to me, CC'ing Varun.
> 
> Ah yes, I do see that path in our ATF code.
> 
> > As Yousaf says above, it's the TF-A you guys ship with latest R32.1.0.
> > 
> > Maybe the tftpboot operation is overwriting memory used by your TF-A, or
> 
> That's pretty unlikely since ATF code/data is in a protected memory region
> that non-secure software can't access.
> 
> > differing memory usage is uncovering a missing U-Boot EFI reservation?
> 
> Perhaps. I know almost nothing about U-Boot EFI though.
> 
> > (I recently wondered whether TX1 may be missing some, as I needed
> > multiple tries to boot the kernel successfully there - TF-A 2.1 didn't
> > work there, so some more investigations TBD. R28.3.0 still wasn't
> > booting U-Boot ~2019.04, I needed R24.2.2 still as you once suggested.)
> 
> Hmm. Are you building your own copy of ATF (you mentioned 2.1; I can't
> recall what version we ship)?
No, I am using the one shipped with R32.1.
> 
> FWIW, my usptream U-Boot test system uses L4T r28.1 to test Jetson TX1 and
> TX2. It does test DHCP/TFTP, but not EFI or booting a kernel.
> 
> Can you provide complete instructions on how to reproduce this issue (e.g.
> which components in L4T you replaced, how to build those replacements, how
> to get/build/use EFI, any config/script/... files you used from U-Boot/EFI
> to trigger the issue above)?
As shown in the u-boot log, I am using dhcp boot.
setenv boot_targets dhcp
boot

See if the instructions on the following link to setup the server works for you:
https://www.suse.com/documentation/suse-best-practices/singlehtml/sbp-multi-pxe-install/sbp-multi-pxe-install.html
and then populate it with Tumbleweed installation files from following:
http://download.opensuse.org/ports/aarch64/tumbleweed/iso/
Grub EFI binary can be found in EFI/BOOT/.

I am only replacing u-boot with the upstream u-boot using following
command:
./flash.sh -k kernel jetson-tx2 mmcblk0p1

Alternatively, I can do the testing this week if you provide me debug
builds.
> 
> Your best bet is likely to post all this information to the NVIDIA Jetson
> forum so our support people can track the process. I don't expect to have
> much time personally to look at EFI stuff on TX2 right now. Sorry.

  reply	other threads:[~2019-06-16 19:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-14 17:09 [U-Boot] Jetson TX2 hangs during dhcp boot Mian Yousaf Kaukab
2019-06-14 16:41 ` Stephen Warren
2019-06-14 17:09   ` Andreas Färber
2019-06-14 17:26     ` Varun Wadekar
2019-06-14 17:53       ` Andreas Färber
2019-06-16 19:46       ` Mian Yousaf Kaukab
2019-06-17 16:48         ` Stephen Warren
2019-06-14 17:40     ` Stephen Warren
2019-06-16 19:27       ` Mian Yousaf Kaukab [this message]
2019-06-16 17:34         ` Martin Husemann
2019-06-17  9:56           ` Mian Yousaf Kaukab
2019-06-16 17:45         ` Andreas Färber
2019-06-17  0:51       ` [U-Boot] Jetson TX1 boot problems Andreas Färber

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=20190616192712.GA31209@suse.de \
    --to=ykaukab@suse.de \
    --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.