View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004939 | UBoot | U-Boot | public | 2021-10-05 13:27 | 2021-10-05 15:08 |
Reporter | derksen | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | fsimx8mm-B2021.06 | ||||
Target Version | fsimx8mn-Y2021.09 | Fixed in Version | fsimx8mn-Y2021.09 | ||
Summary | 0004939: Handle new eMMC layout on fsimx8mn | ||||
Description | Handle 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 | |||||