meta-mender-tegra: dunfell nano development board partition layout fixes #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Per discussion at OE4T#5
As of r32.3.1 (or possibly earlier) NVIDIA has defined a UBENV partition at offset 0x3D8000 for
jetson-nano-qspi-sd
partition layout, which is the layout used for the Nano development board with SD card. Previously this area was defined as aPAD
partition and we had stored our uboot environment in that location. However, we'd also accidentally overflowed into theVER_b
location with our definition of uboot storage environment from 0x3B0000 to 0x3F0000. This might be a problem if/when we add support for Nano redundant boot for bootloader components.The area defined by NVIDIA for
UBENV
is too small to store dual redundant copies of mender variables, so we need to stretch our area back into what was known as thePAD
partition on previous releases and the unused space betweenNXC_R
andVER_b
partitions.After some discussion in the previously mentioned thread, we've settled on keeping the
UBENV
starting at0x3B0000
and reducing the size to 131072 bytes instead of 262144 of so we could continue to make the first uboot environment boundary at the same start location and complete both copies of uboot environment before theVER_b
sector starts. This means the u-boot environment for existing sdcard based Nano builds on the dunfell branch will move on the next tegraflash ordosdcard.sh
based update. In the cvase of adosdcard.sh
based update the existing SPI flash u-boot environment will be invalid and replaced with defaults.This alignment will be shared with the Jetson Nano 2GB hardware which will be brought in during gatesgarth/L4T+next (unless someone volunteers to add and backport it sooner in OE4T#4) and the patches here were rebased from those in the above linked PR.
I've started a sheet at this link which I plan to try to update with each new release and platform to make sure we don't miss these layout changes going forward with new L4T releases.
I've completed the uboot integration tests at this link for
jetson-nano-qspi-sd
with these changes.