Skip to content

Commit

Permalink
meta-mender-tegra: update flash layout file for jetson-nano-qspi-sd
Browse files Browse the repository at this point in the history
The flashing tools and flash layout for the QSPI-equipped Nanos were
updated in L4T R32.4.3, and our existing layout file generates an
error during USB flashing because the updated tools think the VER
partition runs off the end of the flash. Either we added up the
sizes incorrectly, or there's a bug in the tools.

This patch updates the flash layout to keep the U-Boot environment
area we reserve in the QSPI flash at the same location and with the
same size.  The VER_b and VER partitions that follow are reduced
in size to prevent the flashing tools from complaining.  This should
retain compatibility for an OTA upgrade that updates the SPI flash
without having to save and restore the U-Boot environment.  The
VER partitions are smaller than the default L4T settings (which
were also reduced in R32.4.3), but still plenty large enough to
hold the version information.

Signed-off-by: Matt Madison <matt@madison.systems>
  • Loading branch information
madisongh authored and dwalkes committed Nov 8, 2020
1 parent 259e0bd commit b320108
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,22 @@
binary. </description>
</partition>

<!-- This is padding to ensure VER is at the end of flash -->
<partition name="PAD" id="6" type="data">
<partition name="UBENV" type="data">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> 3342336 </size>
<start_location> 0x3B0000 </start_location>
<size> 131072 </size>
<file_system_attribute> 0 </file_system_attribute>
<allocation_attribute> 8 </allocation_attribute>
<percent_reserved> 0 </percent_reserved>
<description> Empty padding. </description>
<description> U-Boot environment area </description>
</partition>

<partition name="VER_b" id="7" type="data">
<partition name="VER_b" type="data">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> 65536 </size>
<start_location> 0x3E0000 </start_location>
<size> 32768 </size>
<file_system_attribute> 0 </file_system_attribute>
<partition_attribute> 0 </partition_attribute>
<allocation_attribute> 8 </allocation_attribute>
Expand All @@ -72,10 +73,11 @@
information. </description>
</partition>

<partition name="VER" id="8" type="data">
<partition name="VER" type="data">
<allocation_policy> sequential </allocation_policy>
<filesystem_type> basic </filesystem_type>
<size> 65536 </size>
<start_location> 0x3F0000 </start_location>
<size> 32768 </size>
<file_system_attribute> 0 </file_system_attribute>
<partition_attribute> 0 </partition_attribute>
<allocation_attribute> 8 </allocation_attribute>
Expand Down

0 comments on commit b320108

Please sign in to comment.