View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004888 | UBoot | U-Boot | public | 2021-10-05 09:00 | 2021-10-05 10:56 |
Reporter | derksen | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Target Version | fsimx8mm-Y2021.04 | Fixed in Version | fsimx8mm-Y2021.04 | ||
Summary | 0004888: fsimx8mm: Identify boot system with NXP boot devices | ||||
Description | fsimx8mm: 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 | |||||