Re: [U-Boot] where is malloc()?

2016-02-18 Thread quantumlight
Thanks I see it now. -- View this message in context: http://u-boot.10912.n7.nabble.com/where-is-malloc-tp246389p246393.html Sent from the U-Boot mailing list archive at Nabble.com. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mai

[U-Boot] U-Boot loading kernel from mmc question

2016-02-18 Thread quantumlight
I am trying to figure out how the bootm command in U-Boot works. It seems to be a state machine that goes from start->findos->findother (fdt)->loados etc. However I am having trouble understanding how, since my linux image is stored in some partition on the device (eMMC), does that get loaded into

[U-Boot] where is malloc()?

2016-02-18 Thread quantumlight
I can find malloc.h describing that it uses a specific malloc. But I can't seem to find where the u-boot source keeps the malloc implementation. I see that in include/_exports.h it is defined: EXPORT_FUNC(malloc) Also there seems to be a dlmalloc.c that should define a void* malloc(size) fun

[U-Boot] how does board_init_f() -> board_init_r?

2016-02-14 Thread quantumlight
I am trying to modify the bootloader code for NVIDIA's jetson board. So I am looking at crt0.S. It seems that two builds happen, one with CONFIG_SPL_BUILD and one without. So you end up with two file, u-boot.bin and spl/u-boot-spl.bin. However, I am unable to find the code path that calls board_i