u-boot-brain/board/st
Patrick Delaunay 60a2dd6aa2 board: st: stm32mp1: update load address for FIT examples
Update kernel load address for FIT examples to avoid relocation:
- Kernel example uses Image.gz with U-Boot gzip decompression
  at final kernel location 0x0xC0008000.
- Copro example loads zImage at a correct location (0xC4000000),
  to avoid zImage relocation before decompression by kernel code.

An other solution to avoid zImage relocation is to align
the kernel load and entry address with the real location in FIT
(the relocation of zImage is skipped in U-Boot bootm command for
identical address) but it is less flexible because this offset
depends on FIT content:

For example:

## Loading kernel from FIT Image at c2000000 ...
   Using 'ev1' configuration
   Trying 'kernel' kernel subimage
     Description:  Linux kernel
     Created:      2020-10-22   9:08:32 UTC
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0xc20000cc

The kernel offset in FIT is 0xCC in FIT and zImage is decompressed at
0xC0008000 by kernel code:

kernel {
	description = "Linux kernel";
	data = /incbin/("zImage");
	type = "kernel";
	arch = "arm";
	os = "linux";
	compression = "none";
	load = <0xC20000cc>;
	entry = <0xC20000cc>;
	hash-1 {
		algo = "sha1";
	};
};

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
2020-11-25 14:27:19 +01:00
..
common board: stm32mp1: use IS_ENABLED to prevent ifdef in set_dfu_alt_inf 2020-08-13 09:52:49 +02:00
stih410-b2260 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
stm32f429-discovery common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32f429-evaluation common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32f469-discovery common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32f746-disco common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
stm32h743-disco common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32h743-eval common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32mp1 board: st: stm32mp1: update load address for FIT examples 2020-11-25 14:27:19 +01:00
stv0991 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00