All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] 9c11135 breaks bootz
@ 2016-02-02 14:49 Matthias Weißer
  2016-02-04 17:41 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Matthias Weißer @ 2016-02-02 14:49 UTC (permalink / raw)
  To: u-boot

Hi

9c11135 image: fix getenv_bootm_size() function breaks the bootz
command for me on a custom hardware (very similar to mx6sxsabresd but
with only 256MB RAM). I don't have bootm_size or bootm_low defined.

After reading zImage and dtb from serial flash I run

=> bootz 0x80800000 - 0x83000000
Kernel image @ 0x80800000 [ 0x000000 - 0x1e5f48 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
ERROR: Failed to allocate 0xb28a bytes below 0x10000000.
device tree - allocation error
FDT creation failed! hanging...### ERROR ### Please RESET the board ###

I am totally unsure what the commit intents but subtracting the ram
start address from its size doesn't make much sense to me.

+       return gd->bd->bi_dram[0].size - (tmp - gd->bd->bi_dram[0].start);

Maybe someone can shed some light on this issue for me.

Matthias

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

* [U-Boot] 9c11135 breaks bootz
  2016-02-02 14:49 [U-Boot] 9c11135 breaks bootz Matthias Weißer
@ 2016-02-04 17:41 ` Tom Rini
  2016-02-05  7:13   ` Masahiro Yamada
  2016-02-05 11:58   ` Adam Ford
  0 siblings, 2 replies; 6+ messages in thread
From: Tom Rini @ 2016-02-04 17:41 UTC (permalink / raw)
  To: u-boot

On Tue, Feb 02, 2016 at 03:49:07PM +0100, Matthias Wei?er wrote:

> Hi
> 
> 9c11135 image: fix getenv_bootm_size() function breaks the bootz
> command for me on a custom hardware (very similar to mx6sxsabresd but
> with only 256MB RAM). I don't have bootm_size or bootm_low defined.
> 
> After reading zImage and dtb from serial flash I run
> 
> => bootz 0x80800000 - 0x83000000
> Kernel image @ 0x80800000 [ 0x000000 - 0x1e5f48 ]
> ## Flattened Device Tree blob at 83000000
>    Booting using the fdt blob at 0x83000000
> ERROR: Failed to allocate 0xb28a bytes below 0x10000000.
> device tree - allocation error
> FDT creation failed! hanging...### ERROR ### Please RESET the board ###
> 
> I am totally unsure what the commit intents but subtracting the ram
> start address from its size doesn't make much sense to me.
> 
> +       return gd->bd->bi_dram[0].size - (tmp - gd->bd->bi_dram[0].start);
> 
> Maybe someone can shed some light on this issue for me.

Masahiro?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160204/9e5aca69/attachment.sig>

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

* [U-Boot] 9c11135 breaks bootz
  2016-02-04 17:41 ` Tom Rini
@ 2016-02-05  7:13   ` Masahiro Yamada
  2016-02-05 11:58   ` Adam Ford
  1 sibling, 0 replies; 6+ messages in thread
From: Masahiro Yamada @ 2016-02-05  7:13 UTC (permalink / raw)
  To: u-boot

Hi Matthias,


2016-02-05 2:41 GMT+09:00 Tom Rini <trini@konsulko.com>:
> On Tue, Feb 02, 2016 at 03:49:07PM +0100, Matthias Wei?er wrote:
>
>> Hi
>>
>> 9c11135 image: fix getenv_bootm_size() function breaks the bootz
>> command for me on a custom hardware (very similar to mx6sxsabresd but
>> with only 256MB RAM). I don't have bootm_size or bootm_low defined.
>>
>> After reading zImage and dtb from serial flash I run
>>
>> => bootz 0x80800000 - 0x83000000
>> Kernel image @ 0x80800000 [ 0x000000 - 0x1e5f48 ]
>> ## Flattened Device Tree blob at 83000000
>>    Booting using the fdt blob at 0x83000000
>> ERROR: Failed to allocate 0xb28a bytes below 0x10000000.
>> device tree - allocation error
>> FDT creation failed! hanging...### ERROR ### Please RESET the board ###
>>
>> I am totally unsure what the commit intents but subtracting the ram
>> start address from its size doesn't make much sense to me.
>>
>> +       return gd->bd->bi_dram[0].size - (tmp - gd->bd->bi_dram[0].start);
>>
>> Maybe someone can shed some light on this issue for me.
>
> Masahiro?


Please try this patch:
http://patchwork.ozlabs.org/patch/579391/




-- 
Best Regards
Masahiro Yamada

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

* [U-Boot] 9c11135 breaks bootz
  2016-02-04 17:41 ` Tom Rini
  2016-02-05  7:13   ` Masahiro Yamada
@ 2016-02-05 11:58   ` Adam Ford
  2016-02-05 12:51     ` Masahiro Yamada
  1 sibling, 1 reply; 6+ messages in thread
From: Adam Ford @ 2016-02-05 11:58 UTC (permalink / raw)
  To: u-boot

I have the same problem on a TI DM3730

On Thu, Feb 4, 2016 at 11:41 AM, Tom Rini <trini@konsulko.com> wrote:
> On Tue, Feb 02, 2016 at 03:49:07PM +0100, Matthias Wei?er wrote:
>
>> Hi
>>
>> 9c11135 image: fix getenv_bootm_size() function breaks the bootz
>> command for me on a custom hardware (very similar to mx6sxsabresd but
>> with only 256MB RAM). I don't have bootm_size or bootm_low defined.
>>
>> After reading zImage and dtb from serial flash I run
>>
>> => bootz 0x80800000 - 0x83000000
>> Kernel image @ 0x80800000 [ 0x000000 - 0x1e5f48 ]
>> ## Flattened Device Tree blob at 83000000
>>    Booting using the fdt blob at 0x83000000
>> ERROR: Failed to allocate 0xb28a bytes below 0x10000000.
>> device tree - allocation error
>> FDT creation failed! hanging...### ERROR ### Please RESET the board ###
>>
>> I am totally unsure what the commit intents but subtracting the ram
>> start address from its size doesn't make much sense to me.
>>
>> +       return gd->bd->bi_dram[0].size - (tmp - gd->bd->bi_dram[0].start);
>>
>> Maybe someone can shed some light on this issue for me.
>
> Masahiro?
>
> --
> Tom
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

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

* [U-Boot] 9c11135 breaks bootz
  2016-02-05 11:58   ` Adam Ford
@ 2016-02-05 12:51     ` Masahiro Yamada
  2016-02-06 14:15       ` Adam Ford
  0 siblings, 1 reply; 6+ messages in thread
From: Masahiro Yamada @ 2016-02-05 12:51 UTC (permalink / raw)
  To: u-boot

Hi Adam,


2016-02-05 20:58 GMT+09:00 Adam Ford <aford173@gmail.com>:
> I have the same problem on a TI DM3730


Did you see this?

http://lists.denx.de/pipermail/u-boot/2016-February/244788.html


-- 
Best Regards
Masahiro Yamada

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

* [U-Boot] 9c11135 breaks bootz
  2016-02-05 12:51     ` Masahiro Yamada
@ 2016-02-06 14:15       ` Adam Ford
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Ford @ 2016-02-06 14:15 UTC (permalink / raw)
  To: u-boot

That fixed it!  Thank you

adam

On Fri, Feb 5, 2016 at 6:51 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> Hi Adam,
>
>
> 2016-02-05 20:58 GMT+09:00 Adam Ford <aford173@gmail.com>:
>> I have the same problem on a TI DM3730
>
>
> Did you see this?
>
> http://lists.denx.de/pipermail/u-boot/2016-February/244788.html
>
>
> --
> Best Regards
> Masahiro Yamada

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

end of thread, other threads:[~2016-02-06 14:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 14:49 [U-Boot] 9c11135 breaks bootz Matthias Weißer
2016-02-04 17:41 ` Tom Rini
2016-02-05  7:13   ` Masahiro Yamada
2016-02-05 11:58   ` Adam Ford
2016-02-05 12:51     ` Masahiro Yamada
2016-02-06 14:15       ` Adam Ford

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.