- u-boot text region + pgtable requires
800KB. Hence adjusted text base address
to 0x4A92000, so that the text region + pgtable
fits at the last 800KB of 2MB memory space, leaving
200KB above them for other regions
- Size of Heap region is reduced to 1MB from 1.5MB
- Maple uses gmac controller for Ethernet DMA process,
which does not require non-cached memory, hence we
can avoid reserving 1MB for noncached memory and the
same can used for other components.
- Right now, 256KB of memory was used from stack
for env reloc/save functionalities which makes the
SP extend beyond 2MB. Hence, modified them to
allocate memory from Heap.
- With this patchset, the u-boot fits into 2MB space
and the rest 2MB can be used for other components
Change-Id: I962d86d81b1c52cbef575f974924d16ec6e3db89
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
The variable "buf" in this function is a char array, and the
function ubi_volume_read is expecting a char *. In the call, the
address of the pointer is being taken, incorrectly passing a
char **. The compiler warning was being silenced by the cast.
Remove the address operator and the cast.
Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Now that we have a new header file for cache-aligned allocation, we should
move the stack-based allocation macro there also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Implement env_export() wrapper, so that all implementers of saveenv() don't
have to call hexport_r(), crc32() etc. sequence . This trims down a bit of
code duplication.
Signed-off-by: Marek Vasut <marex@denx.de>
UBI is a better place for the environment on NAND devices because it
handles wear-leveling and bad blocks.
Gluebi is needed in Linux to access the env as an MTD partition.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>