Commit d6c6170
[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]>
Signed-off-by: Sigvart Hovland <[email protected]>
(cherry picked from commit 68b4648)
Signed-off-by: Dominik Ermel <[email protected]>1 parent 36c37c0 commit d6c6170
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
921 | 921 | | |
922 | 922 | | |
923 | 923 | | |
924 | | - | |
925 | | - | |
926 | | - | |
| 924 | + | |
927 | 925 | | |
| 926 | + | |
928 | 927 | | |
929 | 928 | | |
930 | 929 | | |
| |||
934 | 933 | | |
935 | 934 | | |
936 | 935 | | |
937 | | - | |
938 | | - | |
939 | | - | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
940 | 942 | | |
941 | 943 | | |
942 | 944 | | |
943 | 945 | | |
944 | 946 | | |
945 | 947 | | |
946 | | - | |
| 948 | + | |
947 | 949 | | |
948 | 950 | | |
949 | 951 | | |
| |||
979 | 981 | | |
980 | 982 | | |
981 | 983 | | |
982 | | - | |
| 984 | + | |
| 985 | + | |
983 | 986 | | |
984 | 987 | | |
985 | 988 | | |
986 | 989 | | |
987 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
988 | 994 | | |
989 | | - | |
990 | 995 | | |
991 | | - | |
| 996 | + | |
992 | 997 | | |
993 | 998 | | |
994 | 999 | | |
| |||
0 commit comments