Skip to content

Commit cbc98a6

Browse files
author
Stephen Cprek
committed
Add FIRDATA partition
1 parent 838d5ad commit cbc98a6

4 files changed

+20
-0
lines changed

HabaneroPnorLayout.xml

+7
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ Layout Description
171171
<physicalRegionSize>0x120000</physicalRegionSize>
172172
<ecc/>
173173
</section>
174+
<section>
175+
<description>FIRDATA (12K)</description>
176+
<eyeCatch>FIRDATA</eyeCatch>
177+
<physicalOffset>0x2425000</physicalOffset>
178+
<physicalRegionSize>0x3000</physicalRegionSize>
179+
<ecc/>
180+
</section>
174181
<section>
175182
<description>Special PNOR Test Space (36K)</description>
176183
<eyeCatch>TEST</eyeCatch>

PalmettoPnorLayout.xml

+8
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ Layout Description
191191
<side>A</side>
192192
<ecc/>
193193
</section>
194+
<section>
195+
<description>FIRDATA (12K)</description>
196+
<eyeCatch>FIRDATA</eyeCatch>
197+
<physicalOffset>0x1E49000</physicalOffset>
198+
<physicalRegionSize>0x3000</physicalRegionSize>
199+
<side>A</side>
200+
<ecc/>
201+
</section>
194202
<section>
195203
<description>Hostboot Base (576K)</description>
196204
<eyeCatch>HBB</eyeCatch>

create_pnor_image.pl

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
$build_pnor_command .= " --binFile_ATTR_TMP $scratch_dir/attr_tmp.bin.ecc";
104104
$build_pnor_command .= " --binFile_ATTR_PERM $scratch_dir/attr_perm.bin.ecc";
105105
$build_pnor_command .= " --binFile_OCC $occ_binary_filename.ecc";
106+
$build_pnor_command .= " --binFile_FIRDATA $scratch_dir/firdata.bin.ecc";
106107
$build_pnor_command .= " --fpartCmd \"fpart\"";
107108
$build_pnor_command .= " --fcpCmd \"fcp\"";
108109
print "###############################";

update_image.pl

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@
136136
run_command("dd if=$occ_binary_filename of=$scratch_dir/hostboot.temp.bin ibs=1M conv=sync");
137137
run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $occ_binary_filename.ecc --p8");
138138

139+
#Create blank binary file for FIRDATA Partition
140+
run_command("dd if=/dev/zero bs=8K count=1 | tr \"\\000\" \"\\377\" > $scratch_dir/hostboot.temp.bin");
141+
run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/firdata.bin.ecc --p8");
142+
139143
#Copy Binary Data files for consistency
140144
run_command("cp $hb_binary_dir/$sbec_binary_filename $scratch_dir/");
141145
run_command("cp $hb_binary_dir/$sbe_binary_filename $scratch_dir/");

0 commit comments

Comments
 (0)