Commit b0be469
[nrf noup] loader: Fix reading reset addr to support ext flash
When mcuboot_secondary is on external flash, the image header cannot
dircetly be accessed via secondary_fa->fa_off. Instead the provided
function boot_img_hdr() is used now.
Additionally a similar issue is present when trying to read the address
of the reset handler. For this flash_area_read() is used now.
With this patch is possible to have the update partiton
mcuboot_secondary on external flash and update a updatable
bootloader (mcuboot) in s0 and/or s1.
Signed-off-by: Christian Taedcke <[email protected]>
Signed-off-by: Ole Sæther <[email protected]>1 parent 74b34fe commit b0be469
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
921 | | - | |
922 | | - | |
| 920 | + | |
923 | 921 | | |
| 922 | + | |
924 | 923 | | |
925 | 924 | | |
926 | 925 | | |
| |||
930 | 929 | | |
931 | 930 | | |
932 | 931 | | |
933 | | - | |
934 | | - | |
935 | | - | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
936 | 938 | | |
937 | 939 | | |
938 | 940 | | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
942 | | - | |
| 944 | + | |
943 | 945 | | |
944 | 946 | | |
945 | 947 | | |
| |||
981 | 983 | | |
982 | 984 | | |
983 | 985 | | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
984 | 989 | | |
985 | | - | |
986 | 990 | | |
987 | | - | |
| 991 | + | |
988 | 992 | | |
989 | 993 | | |
990 | 994 | | |
| |||
0 commit comments