View Issue Details

IDProjectCategoryView StatusLast Update
0004888UBootU-Bootpublic2021-10-05 10:56
Reporterderksen Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Versionfsimx8mm-Y2021.04Fixed in Versionfsimx8mm-Y2021.04 
Summary0004888: fsimx8mm: Identify boot system with NXP boot devices
Descriptionfsimx8mm: Identify boot system with NXP boot devices

The U-Boot devices BOOT_DEVICE_* do not relate directly to the hardware
devices. Sometimes USDHC3 is converted to BOOT_DEVICE_MMC2, sometimes to
BOOT_DEVICE_MMC2_2, sometimes even to BOOT_DEVICE_MMC1. However we need
to know exactly what device is used in the current boot process and what
device is set in the fuses. So change to using the NXP boot devices from
arch/arm/include/asm/mach-imx/boot_mode.h where this information is still
available.
    
In fs_board_common.c, change fs_board_get_boot_device_from_fuses()
accordingly. Also add two new functions fs_board_get_boot_dev_from_name()
and fs_board_get_name_from_boot_dev() to get the boot device number from
the boot device string and vice versa. This is necessary because the
boot device in nand-info is given as a string.
    
Modify all places where the boot devices are used, i.e. in
board/F+S/fsimx8mm/fsimx7mm.c and board/F+S/fsimx8mm/spl.c.
Forum Link

Activities

There are no notes attached to this issue.