public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Recent commit to env_nand.c causing saveenv to hang
@ 2012-09-07 12:17 Prabhakar Lad
  2012-09-07 16:05 ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Prabhakar Lad @ 2012-09-07 12:17 UTC (permalink / raw)
  To: u-boot

Hi Stephen,

I checked out the latest code and try flashing on DM355 for NAND boot mode,
I saw that saveenv was causing a hang. A little debugging pointed me to
this patch http://patchwork.ozlabs.org/patch/174069/ reverting this
patch saveenv
works fine.
Has this patch being tested ? Or is that I am missing out some where.

Thx,
--Prabhakar Lad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Recent commit to env_nand.c causing saveenv to hang
  2012-09-07 12:17 [U-Boot] Recent commit to env_nand.c causing saveenv to hang Prabhakar Lad
@ 2012-09-07 16:05 ` Stephen Warren
  2012-09-07 16:44   ` Prabhakar Lad
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2012-09-07 16:05 UTC (permalink / raw)
  To: u-boot

On 09/07/2012 06:17 AM, Prabhakar Lad wrote:
> Hi Stephen,
> 
> I checked out the latest code and try flashing on DM355 for NAND boot mode,
> I saw that saveenv was causing a hang. A little debugging pointed me to
> this patch http://patchwork.ozlabs.org/patch/174069/ reverting this
> patch saveenv
> works fine.
> Has this patch being tested ? Or is that I am missing out some where.

Yes, I've definitely used this on the NVIDIA Tegra Harmony board.

I tested the patch on top of repo u-boot-tegra.git branch master, but
the patch ended up getting applied directly by Wolfgang to u-boot.git. I
don't think that should cause any issues though; the patch shouldn't be
dependant on anything Tegra-specific.

I just re-tested to make sure. The exact code I tested is at:
git at github.com:swarren/u-boot.git mainline_dev

Do you have any clue why it's hanging or crashing? Perhaps you can add
some debug statements to see exactly where it's happening?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Recent commit to env_nand.c causing saveenv to hang
  2012-09-07 16:05 ` Stephen Warren
@ 2012-09-07 16:44   ` Prabhakar Lad
  2012-09-07 19:18     ` Stephen Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Prabhakar Lad @ 2012-09-07 16:44 UTC (permalink / raw)
  To: u-boot

On Fri, Sep 7, 2012 at 9:35 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 09/07/2012 06:17 AM, Prabhakar Lad wrote:
>> Hi Stephen,
>>
>> I checked out the latest code and try flashing on DM355 for NAND boot mode,
>> I saw that saveenv was causing a hang. A little debugging pointed me to
>> this patch http://patchwork.ozlabs.org/patch/174069/ reverting this
>> patch saveenv
>> works fine.
>> Has this patch being tested ? Or is that I am missing out some where.
>
> Yes, I've definitely used this on the NVIDIA Tegra Harmony board.
>
> I tested the patch on top of repo u-boot-tegra.git branch master, but
> the patch ended up getting applied directly by Wolfgang to u-boot.git. I
> don't think that should cause any issues though; the patch shouldn't be
> dependant on anything Tegra-specific.
>
> I just re-tested to make sure. The exact code I tested is at:
> git at github.com:swarren/u-boot.git mainline_dev
>
> Do you have any clue why it's hanging or crashing? Perhaps you can add
> some debug statements to see exactly where it's happening?
I added some debug statements and saw that in hexport_r() function
where  memset(res, '\0', size); is done this where it hangs :(.
hope this might help.

Thanks and Regards,
--Prabhakar Lad

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Recent commit to env_nand.c causing saveenv to hang
  2012-09-07 16:44   ` Prabhakar Lad
@ 2012-09-07 19:18     ` Stephen Warren
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Warren @ 2012-09-07 19:18 UTC (permalink / raw)
  To: u-boot

On 09/07/2012 10:44 AM, Prabhakar Lad wrote:
> On Fri, Sep 7, 2012 at 9:35 PM, Stephen Warren <swarren@wwwdotorg.org> wrote:
>> On 09/07/2012 06:17 AM, Prabhakar Lad wrote:
>>> Hi Stephen,
>>>
>>> I checked out the latest code and try flashing on DM355 for NAND boot mode,
>>> I saw that saveenv was causing a hang. A little debugging pointed me to
>>> this patch http://patchwork.ozlabs.org/patch/174069/ reverting this
>>> patch saveenv
>>> works fine.
>>> Has this patch being tested ? Or is that I am missing out some where.
>>
>> Yes, I've definitely used this on the NVIDIA Tegra Harmony board.
>>
>> I tested the patch on top of repo u-boot-tegra.git branch master, but
>> the patch ended up getting applied directly by Wolfgang to u-boot.git. I
>> don't think that should cause any issues though; the patch shouldn't be
>> dependant on anything Tegra-specific.
>>
>> I just re-tested to make sure. The exact code I tested is at:
>> git at github.com:swarren/u-boot.git mainline_dev
>>
>> Do you have any clue why it's hanging or crashing? Perhaps you can add
>> some debug statements to see exactly where it's happening?
>
> I added some debug statements and saw that in hexport_r() function
> where  memset(res, '\0', size); is done this where it hangs :(.
> hope this might help.

For the list archives: I believe the following patch should fix this:

http://lists.denx.de/pipermail/u-boot/2012-September/133476.html

Sorry for the breakage.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-07 19:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07 12:17 [U-Boot] Recent commit to env_nand.c causing saveenv to hang Prabhakar Lad
2012-09-07 16:05 ` Stephen Warren
2012-09-07 16:44   ` Prabhakar Lad
2012-09-07 19:18     ` Stephen Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox