From: Alex Courbot <acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Nuno Santos <nuno.m.santos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: NVFlash hangs when flashing U-Boot on Tegra2 board
Date: Mon, 23 Jul 2012 18:54:36 +0900 [thread overview]
Message-ID: <500D1F5C.1060603@nvidia.com> (raw)
In-Reply-To: <loom.20120723T101555-779-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
Hi Nuno,
On Mon 23 Jul 2012 05:45:09 PM JST, Nuno Santos wrote:
> Hi
>
> I have a Tegra2 based board (Harmony) running Linux. It is currently booting
> using the fastboot.bin bootloader shipped with NVIDIA's SDK Developer Kit, but
> I need to replace it for U-Boot, because U-Boot is open source.
>
> So far I've been able to successfully deploy U-Boot on the device using nvflash
> and U-Boot actually runs. However, nvflash hangs waiting for the bootloader to
> finish initializing and therefore flashing won't happen. Apparently nvflash is
> expecting the bootloader to follow some protocol, which U-Boot apparently
> is not aware of.
>
> I'd really appreciate any help on this and I'm sorry in advance if this is not
> the right forum to publish this question. It has been really hard to find
> information on the web about this. Furthermore, I haven't been able to find
> nvflash source code anywhere, which could help tremendously to investigate
> what's going on; if at least someone could point me to where I can download
> I'd be deeply grateful.
>
> So, this is what I'm using to flash the bootloader:
>
> sudo ./nvflash --bct flash.bct --setbct --configfile flash.cfg --create
> --bl u-boot-dtb.bin --go
If I understand correctly, you are giving the wrong parameter to --bl.
--bl is the bootloader that is used to interpret the commands sent by
nvflash and create the layout described in flash.cfg. Therefore you want
to use the bootloader that is provided in your BSP as argument to --bl,
and modify flash.cfg to write u-boot to the right partition of your
flash memory. Then I guess you will have the expected result.
With your current command you are indeed running U-boot from nvflash,
but it is never written to flash memory and cannot understand the
commands that nvflash tries to send it.
Hope this helps,
Alex.
next prev parent reply other threads:[~2012-07-23 9:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-23 8:45 NVFlash hangs when flashing U-Boot on Tegra2 board Nuno Santos
[not found] ` <loom.20120723T101555-779-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2012-07-23 9:54 ` Alex Courbot [this message]
[not found] ` <500D1F5C.1060603-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-07-23 15:11 ` Nuno Santos
[not found] ` <500D698B.3040405-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-07-23 19:07 ` 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=500D1F5C.1060603@nvidia.com \
--to=acourbot-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nuno.m.santos-Re5JQEeQqe8AvxtiuMwx3w@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