-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hello,
thanks for making this bootloader publicly available!
Unfortunately, the mbed distribution specified in mbed-os.lib does not seem to be available anymore. Building with a current ARM-distributed version of mbed causes an issue during linking:
Link: mcuboot-arduino-stm32h7
/usr/lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: BUILD/PORTENTA_H7_M7/GCC_ARM/mbed-os/storage/filesystem/fat/source/FATFileSystem.o: in function `mbed::FATFileSystem::format
(mbed::BlockDevice*, unsigned long long)':
/home/kevin/Development/ipt/mcuboot-arduino-stm32h7/./mbed-os/storage/filesystem/fat/source/FATFileSystem.cpp:420: undefined reference to `f_mkfs'
collect2: error: ld returned 1 exit status
[ERROR] /usr/lib/gcc/arm-none-eabi/12.2.0/../../../../arm-none-eabi/bin/ld: BUILD/PORTENTA_H7_M7/GCC_ARM/mbed-os/storage/filesystem/fat/source/FATFileSystem.o: in function `mbed::FATFileSystem
::format(mbed::BlockDevice*, unsigned long long)':
/home/kevin/Development/ipt/mcuboot-arduino-stm32h7/./mbed-os/storage/filesystem/fat/source/FATFileSystem.cpp:420: undefined reference to `f_mkfs'
collect2: error: ld returned 1 exit status
This seems to be due to the option fat_chan.ff_use_mkfs being disabled. On the other hand, building with mkfs enabled makes the build too big to fit in the designated memory area.
Can you give a hint as to how I can build the bootloader? I am trying to flash a custom MCUBoot image to the slot at 0x8020000, but this always leaves my Portenta H7 in a state where e.g. the PMIC is still configured correctly when power is connected, but nothing else happens. gdb indicates the board is stuck somewhere in the bootloader's address space, and I am hoping getting some logging from the bootloader could help here.