File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ SECTIONS
41
41
*(.text)
42
42
*(.text._*)
43
43
*(.text.*)
44
+ *(.sfpr)
44
45
}
45
46
46
47
.rodata ALIGN (0x8) : {
Original file line number Diff line number Diff line change @@ -37,5 +37,7 @@ OBJS += bl_pnor_utils.o
37
37
OBJS += bl_pnor_ecc.o
38
38
OBJS += bl_builtins.o
39
39
40
+ OPT_LEVEL = -Os
41
+
40
42
include ${ROOTPATH}/config.mk
41
43
Original file line number Diff line number Diff line change @@ -770,11 +770,13 @@ namespace SBE
770
770
"pnor vaddr = 0x%.16X" ,
771
771
pnorSectionId , pnorInfo .vaddr );
772
772
773
- // Look for HBBL end data on 16-byte boundary start at offset 0x2C00
774
- // Note: Code takes up at least the first 0x2C00 bytes of the HBBL
775
- // image, so start at that offset to search for this data.
773
+ // Look for HBBL end data on 16-byte boundary start at offset
774
+ // HBBL_FUZZY_END_ADDRESS
775
+ // Note: Code takes up at least the first HBBL_FUZZY_END_ADDRESS
776
+ // bytes of the HBBL image, so start at that offset to search
777
+ // for this data.
776
778
uint64_t hbblAbsoluteEnd = pnorInfo .vaddr + pnorInfo .size ;
777
- uint64_t hbblAddr = pnorInfo .vaddr + 0x2C00 ;
779
+ uint64_t hbblAddr = pnorInfo .vaddr + HBBL_FUZZY_END_ADDRESS ;
778
780
while ( hbblAddr < hbblAbsoluteEnd )
779
781
{
780
782
hbblEndData = reinterpret_cast < hbblEndData_t * > (hbblAddr );
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ namespace SBE
96
96
97
97
// PNOR HBBL Partition constants
98
98
const uint64_t HBBL_START_ADDRESS = 0x0000000000003000 ;
99
+ const uint64_t HBBL_FUZZY_END_ADDRESS = 0x1400 ;
99
100
const size_t HBBL_MAX_SIZE = 20 *KILOBYTE; // 20KB
100
101
const uint64_t HBBL_END_EYECATCHER = 0x4842424C656E6400 ; // 'HBBLend\0'
101
102
You can’t perform that action at this time.
0 commit comments