snapclient icon indicating copy to clipboard operation
snapclient copied to clipboard

Increase Bootloader Size (Changing Offset) - Only 1% left for Bootloader when using Wifi provisioning

Open DerPicknicker opened this issue 9 months ago • 3 comments

Hi,

as discussed. Here is the Issue for the small Bootloader Size. I can build the code. But I would recommend adding some safe space for the Bootloader. I think 1% is too small. This only occurs with the wifi provisioning. Tested with sync_with_sample_stuffing.

Generated /project/build/bootloader/bootloader.bin 0x8000 bootloader 0x1000 /project/build/bootloader/bootloader.binBootloader binary size 0x6f30 bytes. 0xd0 bytes (1%) free.

DerPicknicker avatar Apr 25 '24 10:04 DerPicknicker

Why do you think we need more margin? It fits if it fits doesn't it?

CarlosDerSeher avatar Apr 25 '24 10:04 CarlosDerSeher

I think a small buffer would be good. For the reason that if you want to enable secrurity features like encrypted flash, secure boot or if the firmware gets bigger you have some safe space. In my Project I try to reserve 5% free for the Bootloader. So if I want to add some more features I can reduce the Bootloader size. So this is only a personal preference.

I don't want to criticise you - just as an input why it might be useful to have some buffer. ;-)

DerPicknicker avatar Apr 25 '24 10:04 DerPicknicker

It's no problem to increase bootloader partition as we got plenty space left since I removed the factory partition entirely :)

CarlosDerSeher avatar Apr 25 '24 11:04 CarlosDerSeher

Ok, so what do you think about just removing those (unnecessary) logs. If I set the default output to ERROR i have 12% to spare in the bootloader partition

CarlosDerSeher avatar Apr 28 '24 07:04 CarlosDerSeher

Great, I guess this is ideal. Wasn't aware that logging takes so much space ...

DerPicknicker avatar Apr 28 '24 07:04 DerPicknicker

this will be resolved with upcoming merge of #69

CarlosDerSeher avatar Apr 28 '24 12:04 CarlosDerSeher