
Am 06.07.2016 um 16:37 schrieb Stephen Warren:
On 07/06/2016 04:44 AM, Daniel Schwierzeck wrote:
Some archs like MIPS or PPC have a different 'bdinfo' output than ARM regarding the memory configuration. Also support 'memstart = 0x*' in u_boot_utils.find_ram_base() to make all tests requiring the RAM base working on those archs.
Acked-by: Stephen Warren swarren@nvidia.com
... although wouldn't it be better to fix the bdinfo command so that it printed the same thing on all architectures?
yes, but bdinfo isn't the only one affected. Currently we have two variants in "struct bd_info" of how to store the memory configuration:
- bi_memstart and bi_memsize - struct bi_dram[CONFIG_NR_DRAM_BANKS] if a board or arch defines CONFIG_NR_DRAM_BANKS
Maybe we could unify this one day. But this requires changes to other commands and generic board init. Until then test/py should support both variants.