View Issue Details

IDProjectCategoryView StatusLast Update
0004939UBootU-Bootpublic2021-10-05 15:08
Reporterderksen Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Versionfsimx8mm-B2021.06 
Target Versionfsimx8mn-Y2021.09Fixed in Versionfsimx8mn-Y2021.09 
Summary0004939: Handle new eMMC layout on fsimx8mn
DescriptionHandle new eMMC layout on fsimx8mn

On i.MX8M-Nano, the loading of the Secondary Image works completely
different than on i.MX8M-Mini. There are two completely different
scenarios:

1. If the system boots from a boot partition (Boot1 or Boot2), then this
   is the Primary Image. Then the Secondary Image is taken from the other
   boot partition (Boot2 if booting from Boot1 and vice versa). SPL is
   always loaded from offset 0, in both partitions.

2. If the system boots from the User partition, then the Primary Image
   is loaded from offset 0x8000 and the Secondary Image is loaded from
   the offset that is given by the fuse value IMG_CNTN_SET1_OFFSET
   (OCOTP register 0x490, Bank 2, Word 2, Bits 22-19).

This allows a completely different layout where we can move U-Boot to
the Boot partitions. Use this new layout on fsimx8mn.

- Modify the eMMC layout in the head comment of fsimx8mn.h. Change
  CONFIG_FUS_BOARDCFG_MMC1 accordingly.
- Change the entries in nboot-info-mmc.dtsi accordingly.
- Add function fs_board_get_secondary_offset() to fs_board_common.c
  that returns the fused value for the Secondary Image Offset.
- In cmd/fsimage.c, handle the partition placement for i.MX8M-Nano
  according to the new layout.
Forum Link

Activities

There are no notes attached to this issue.