public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] rockchip breakage with "spl: Remove overwrite of relocated malloc limit"
@ 2017-03-07  0:42 Heiko Stübner
  2017-03-07  6:56 ` Kever Yang
  0 siblings, 1 reply; 5+ messages in thread
From: Heiko Stübner @ 2017-03-07  0:42 UTC (permalink / raw)
  To: u-boot

Hi,

I just realized patch b3d2861eb20a ("spl: Remove overwrite of relocated malloc 
limit") introduces breakage in my rk3188 uboot code (and should most likely 
also affect the very similar other rockchip spl boards).

The boards call spl_init in their board_init_f functions because they need the 
spl infrastructure to find and bringup the devicetree stuff and things like 
pinctrl and ram.

With the recent change mentioned above, spl_init fails with
	spl_init() failed: -12
because
	dm_init_and_scan() returned error -12
because
	dm_init() failed: -12
...
because
	Missing uclass for driver root_driver
because
	uclass_add calls calloc, which fails with the -ENOMEM (-12)

I still lack uboot experience to see the correct way forward. Reverting that 
patch of course makes my board start uboot again [and most likely the other 
Rockchip SPLs as well], but there is possibly some better solution
[Or there is simply something very wrong with my rk3188 stuff :-) ].


Heiko

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

end of thread, other threads:[~2017-03-07 18:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07  0:42 [U-Boot] rockchip breakage with "spl: Remove overwrite of relocated malloc limit" Heiko Stübner
2017-03-07  6:56 ` Kever Yang
2017-03-07 17:01   ` Simon Glass
2017-03-07 18:39     ` Heiko Stübner
2017-03-07 18:45       ` Simon Glass

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