u-boot-brain/arch/arm/mach-rockchip
Mian Yousaf Kaukab e4011e8daa rockchip: make_fit_atf: use elf entry point
make_fit_atf.py uses physical address of first segment as the
entry point to bl31. It is incorrect and causes following abort
when bl31_entry() is called:

U-Boot SPL board initTrying to boot from MMC1
"Synchronous Abort" handler, esr 0x02000000
elr: 0000000000000000 lr : 00000000ff8c7e8c
x 0: 00000000ff8e0000 x 1: 0000000000000000
x 2: 0000000000000000 x 3: 00000000ff8e0180
x 4: 0000000000000000 x 5: 0000000000000000
x 6: 0000000000000030 x 7: 00000000ff8e0188
x 8: 00000000000001e0 x 9: 0000000000000000
x10: 000000000007fcdc x11: 00000000002881b8
x12: 00000000000001a2 x13: 0000000000000198
x14: 000000000007fdcc x15: 00000000002881b8
x16: 00000000003c0724 x17: 00000000003c0718
x18: 000000000007fe80 x19: 00000000ff8e0000
x20: 0000000000200000 x21: 00000000ff8e0000
x22: 0000000000000000 x23: 000000000007fe30
x24: 00000000ff8d1c3c x25: 00000000ff8d5000
x26: 00000000deadbeef x27: 00000000000004a0
x28: 000000000000009c x29: 000000000007fd90

Fix it by using the entry point from the elf header.

Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@suse.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2018-10-04 21:15:46 +02:00
..
rk322x SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3036 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3128 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3188 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3288 Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
rk3328 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3368 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3399 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rv1108 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
boot_mode.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bootrom.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fit_spl_optee.its rockchip: add fit source file for pack itb with op-tee 2018-10-04 21:15:46 +02:00
Kconfig arm: v7: Kconfig: Rename CPU_V7 as CPU_V7A 2018-05-07 15:53:24 -04:00
make_fit_atf.py rockchip: make_fit_atf: use elf entry point 2018-10-04 21:15:46 +02:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk_timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk322x-board-spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk322x-board.c fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag 2018-05-30 11:59:21 +02:00
rk3036-board-spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3036-board.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3128-board.c fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag 2018-05-30 11:59:21 +02:00
rk3188-board-spl.c dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode() 2018-08-21 16:21:37 +02:00
rk3188-board.c rockchip: rk3188: add rk_board_late_init() hook 2018-07-21 01:55:25 +02:00
rk3288-board-spl.c dm: convert device_get_global_by_of_offset() to device_get_global_by_ofnode() 2018-08-21 16:21:37 +02:00
rk3288-board-tpl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3288-board.c rockchip: veyron: Set vcc33_sd regulator value 2018-07-21 01:55:27 +02:00
rk3368-board-spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3368-board-tpl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3399-board-spl.c rockchip: rk3399: spl: add missing \n to output 2018-07-21 01:55:26 +02:00
rk3399-board.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sdram_common.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl-boot-order.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00