Skip to content

Integrate u-boot-seco-rk/seco_2017.09_next_memory_fix

Commit: clea-os/bsp/rockchip/u-boot-seco-rk@cbdff173

[RK3588] Move fdt_loadaddr to increase available space for kernel devicetree

Kernel devicetree is loaded at the end of the first RAM bank. If we exceed the bank boundaries we get a "Synchronous Abort". This bank ends at 0x08400000 (start+size): => bdinfo ... DRAM bank = 0x00000000 -> start = 0x00200000 -> size = 0x08200000 ... The devicetree file usually occupies less than 1MB, but we also need to account for the extrasize added in the fdt resize command, which is 768K (fdt_resize=0xc000)

  • padding. We move fdt_loadaddr from 0x08300000 to 0x08200000, adding 1MB of available space (total 2MB) for devicetree file and resizing

--

Commit: clea-os/bsp/rockchip/u-boot-seco-rk@f0d00615

[RK3588] Increase pre-relocation stack size

Pre-relocation stack is supposed to start @CONFIG_SYS_INIT_SP_ADDR (default 4MB), but it's pushed back by CONFIG_SYS_MALLOC_F_LEN (512K) to accommodate space for early malloc. @CONFIG_SYS_TEXT_BASE we have U-Boot code. The actual stack size is 4MB - 2M - 512KB - . If is grater than 1.5MB (it is because the devicetree blob is embedded by CONFIG_OF_EMBED) we don't have enough space for the stack! Move CONFIG_SYS_LOAD_ADDR and CONFIG_SYS_INIT_SP_ADDR to 8MB to increase the actual stack space. (https://github.com/rockchip-linux/u-boot/commit/77ed6a2beb658dd40badba98b7b512d570d39e4d)

--

Commit: clea-os/bsp/rockchip/u-boot-seco-rk@1a3baa7a

[MANAGER][NONFUNCTIONAL] Convert all line endings to UNIX-style

The line endings were inconsistent. Since this is a Linux/UNIX tool, all line endings have been converted to UNIX-style (LF).

Merge request reports

Loading