Closed mstaack closed 10 months ago
Thanks for the report.
I believe this is related to gcc 13's change in what is included with the -ffreestanding
flag.
Since abs
is the only function in the project that's no longer part of a freestanding environment with gcc 13, probably the most simple way to work around this is just define it ourselves. Another approach would be to remove the flag and change the return type of main, but I'm not certain this would not entail other unforeseen issues.
I'll push a fix for it.
Great! Thanks for this repo/information about stm32mp1 booting and baremetal.
would it be possible to use this bootloader to then boot a real linux kernel? thinking about ditching u-boot
I haven't tried that, but I think it would depend a lot on the kernel configuration. For instance, mp1-boot doesn't support FIT images or compressed kernel images, nor does it handle secure booting. It also doesn't configure a display, USB, or ethernet, nor does it pass any parameters to the kernel. There's probably a lot more to this list... You could configure a minimal kernel to not need any of those things, or you could implement the ones you need in mp1-boot. I'd be curious to see how it works out if you decide to tackle that.
gcc:
host:
error: