From: Thierry Reding <thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
To: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: Adding board support
Date: Thu, 20 Oct 2011 10:08:09 +0200 [thread overview]
Message-ID: <20111020080808.GA5450@avionic-0098.adnet.avionic-design.de> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF173BE1A4C4-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3324 bytes --]
* Stephen Warren wrote:
> Thierry Reding wrote at Monday, October 17, 2011 4:27 AM:
> > * Thierry Reding wrote:
> > > * Stephen Warren wrote:
> > > > ... [U-Boot patch/build instructions]
> > > > Then, run nvflash just like you would normally.
> > >
> > > Okay, I've been able to build U-Boot and setup some scripts that should
> > > automate the nvflash procedure according to your instructions. I'll have to
> > > wait until I get back to work on Monday to see whether it actually works,
> > > though.
> >
> > I'm unable to make this work. I've done as you said, branched from the commit
> > you mentioned and applied the patches you listed. Then ran:
> >
> > $ make CROSS_COMPILE=... O=build/harmony harmony_config
> > $ make CROSS_COMPILE=... O=build/harmony -j8
> >
> > And flashed the resulting u-boot.bin like you described, by replacing the
> > fastboot.bin in the configuration with u-boot.bin. When rebooting the device
> > (I used a Harmony for this testing obviously) there's nothing. No output on
> > the serial line. Flashing fastboot.bin I can at least see some debugging
> > output.
> >
> > I also tried to update the TEXT_BASE, which seems to be 0x00108000 for
> > fastboot, and 0x00E08000 for U-Boot, but that didn't make a difference. Any
> > ideas on what could be the problem?
>
> Ah yes, sorry, I'd forgotten about that.
>
> The default load address for fastboot and U-Boot is different. I don't
> know why, but apparently U-Boot doesn't work when built with a load
> address that matches fastboot. I believe we have a bug filed to investigate
> why, but I don't know any more details.
>
> > I'm not quite sure where these values come from. Are they hard-coded in the
> > boot ROM? And how does it know from which NAND partition to load the
> > bootloader?
>
> These addresses exist in a couple places:
>
> * In the BCT, which tells the boot ROM the SDRAM address where the boot-
> loader should be copied to, and what the entry point is.
>
> * Hard-coded into nvflash, and the fastboot.bin used during the flashing
> process.
>
> Hence, internally, I believe we use nvflash/fastboot.bin that have been
> specifically recompiled to support U-Boot's load address.
>
> Thinking about this some more, I think we have shipped those rebuilt
> versions outside NVIDIA in a publically accessible place. I'll follow
> up internally and see if we have, or what we can do about it. Sorry for
> sending you on a wild goose chase.
I've been working some on getting our boards to boot from a device tree.
Unfortunately, the U-Boot issue seems to be more of a problem than I
anticipated. Since the mainline U-Boot doesn't run properly, I was going to
use the one shipped with Vibrante. As it turns out, that version is rather
old and doesn't have proper DT support for ARM yet. So I tried to switch to
the Chromium tree in the meantime but I cannot get it to work either. Not
standalone and not with quickboot as stage1.
So I'm running a little out of options. I'm reluctant to backport complete DT
support to the Vibrante version and I'm a short on time anyway, so figuring
out why the Chromium tree won't boot is not really an option either.
Are there any news on these rebuilt versions of nvflash that you mentioned?
Thierry
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-10-20 8:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-14 5:49 Adding board support Thierry Reding
[not found] ` <20111014054945.GA32399-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-10-14 16:31 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173BE1A290-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-14 18:58 ` Thierry Reding
[not found] ` <20111014185847.GA916-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-10-14 19:20 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173BE1A33E-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-14 23:24 ` Thierry Reding
[not found] ` <20111014232404.GB916-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-10-17 10:26 ` Thierry Reding
[not found] ` <20111017102658.GA12373-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-10-17 16:15 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173BE1A4C4-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-20 8:08 ` Thierry Reding [this message]
[not found] ` <20111020080808.GA5450-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2011-10-20 16:01 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173D51C14B-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-20 19:08 ` Thierry Reding
[not found] ` <20111020190827.GA31480-RM9K5IK7kjIyiCvfTdI0JKcOhU4Rzj621B7CTYaBSLdn68oJJulU0Q@public.gmane.org>
2011-10-21 20:13 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173D51C577-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-25 5:57 ` Thierry Reding
[not found] ` <20111025055737.GB30358-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2011-10-27 15:47 ` Stephen Warren
2011-10-27 10:29 ` Thierry Reding
2011-11-09 19:41 ` 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=20111020080808.GA5450@avionic-0098.adnet.avionic-design.de \
--to=thierry.reding-rm9k5ik7kjkj5m59nbduvrnah6klmebb@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@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