Commit 104358b0 authored by Alexander Potashev's avatar Alexander Potashev

RT74765. twr-k60n512: expand RAM_BUF to put u-boot.bin images there

Self-upgrade is possible now:
	tftp 0x1fff5800 aspotashev/k60/u-boot.bin
	cptf 0 ${fileaddr} ${filesize} 1

Since there is no external RAM on the TWR-K60N512 board, we put
the new U-Boot image into SRAM. The address of the RAM_BUF region
(0x1fff5800 in the above example) can be checked in the `u-boot.map`
file.

The RAM_BUF region is currently 84 Kbytes in size. U-Boot images larger
than this size cannot be safely loaded.
parent 4e324723
......@@ -133,9 +133,9 @@
* SRAM_U: 0x20000000 - 0x2000FFFF (64 kB)
*/
#define CONFIG_MEM_RAM_BASE 0x1FFF0000
#define CONFIG_MEM_RAM_LEN (32 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (16 * 1024)
#define CONFIG_MEM_MALLOC_LEN (76 * 1024)
#define CONFIG_MEM_RAM_LEN (22 * 1024)
#define CONFIG_MEM_RAM_BUF_LEN (84 * 1024)
#define CONFIG_MEM_MALLOC_LEN (18 * 1024)
#define CONFIG_MEM_STACK_LEN (4 * 1024)
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment