All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory...
@ 2020-11-12 15:27 Bernhard Kirchen
  0 siblings, 0 replies; 11+ messages in thread
From: Bernhard Kirchen @ 2020-11-12 15:27 UTC (permalink / raw)
  To: u-boot

Hello Christopher, hello SImon,

today I debugged this problem, as tftp was not working in my u-boot SPL
(AM335x based custom board) for the reasons described in this thread.

It turns out that lmb_init_and_reserve() could not set proper values
as bd->bi_dram[0].size = 00000000. The reason IMHO is that
dram_init_banksize() is NOT called in SPL unless CONFIG_SPL_OS_BOOT or
CONFIG_HANDOFF or CONFIG_SPL_ATF is defined (see
common/spl/spl.c:board_init_r(). As I have no use to set any of those,
dram_init_banksize() is never called in my case. Subsequently, tftp fails
when checking available memory.

By calling dram_init_banksize() from my board's am33xx_spl_board_init() I
can work around the issue.

However, I think that dram_init_banksize() should be called in
common/spl/spl.c:board_init_r() also if CONFIG_LBM is defined.

Best,
Bernhard

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

end of thread, other threads:[~2020-11-12 15:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <b4480088deb34022b5f2e6e8f7c42015@in.bosch.com>
2019-09-05 14:14 ` [U-Boot] Issue in u-boot; TFTP error: trying to overwrite reserved memory Moses Christopher
2019-09-06  6:13   ` Simon Goldschmidt
2019-09-09  9:28     ` Moses Christopher
2019-09-11  8:32       ` Simon Goldschmidt
2019-09-11  9:44         ` Moses Christopher
2019-09-11 14:43           ` Simon Goldschmidt
2019-09-11 18:59             ` Moses Christopher
2019-09-11 19:12               ` Simon Goldschmidt
2019-09-11 19:33                 ` Moses Christopher
2019-09-11 20:24                   ` Simon Goldschmidt
2020-11-12 15:27 Bernhard Kirchen

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.