We currently only register a single barebox update handler for the eMMC, but the MLO can also be on the SD-Card or in a FAT partition instead one of the magic offsets. Let's therefore register MLO bbu handlers for those as well as well as for the second stage barebox.bin. Fixes: df22a22f84b6 ("bbu: fix exporting i.MX NAND bbu handler over fastboot") Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- arch/arm/boards/beaglebone/board.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/beaglebone/board.c b/arch/arm/boards/beaglebone/board.c index 43e2d81f3813..586d83fc4df0 100644 --- a/arch/arm/boards/beaglebone/board.c +++ b/arch/arm/boards/beaglebone/board.c @@ -78,9 +78,19 @@ static int beaglebone_devices_init(void) armlinux_set_architecture(MACH_TYPE_BEAGLEBONE); - /* Register update handler */ + /* Register update handlers */ am33xx_bbu_emmc_mlo_register_handler("MLO.emmc", "/dev/mmc1"); + bbu_register_std_file_update("MLO.fat.emmc", 0, "/mnt/mmc1.0/MLO", + filetype_ch_image); + bbu_register_std_file_update("barebox.fat.emmc", 0, "/mnt/mmc1.0/barebox.bin", + filetype_arm_barebox); + + bbu_register_std_file_update("MLO.fat.sd", 0, "/mnt/mmc0.0/MLO", + filetype_ch_image); + bbu_register_std_file_update("barebox.fat.sd", 0, "/mnt/mmc0.0/barebox.bin", + filetype_arm_barebox); + if (IS_ENABLED(CONFIG_SHELL_NONE)) return am33xx_of_register_bootdevice(); -- 2.39.5