snapclient
snapclient copied to clipboard
Increase Bootloader Size (Changing Offset) - Only 1% left for Bootloader when using Wifi provisioning
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.
Why do you think we need more margin? It fits if it fits doesn't it?
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. ;-)
It's no problem to increase bootloader partition as we got plenty space left since I removed the factory partition entirely :)
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
Great, I guess this is ideal. Wasn't aware that logging takes so much space ...
this will be resolved with upcoming merge of #69