How to properly build custom FW image (tar.gz)
-
@Xykon
Does pycom-fwtool-cli support flash erase?
Any news on GUI tool ability to flash custom tar.gz files? :) -
@danielm
why you need flash custom tar.gz?
if you have custom firmware domake flash -
@livius
Because I want to deliver single file containing both firmware and custom application to my customers. It would be easier for them to use GUI tool to flash it. For now I will ask them to use pycom-fwtool-cli which works well. -
@danielm said in How to properly build custom FW image (tar.gz):
@Xykon
Does pycom-fwtool-cli support flash erase?It will in the next release. However please be mindful that the flash contains a config block that stores details such as LoRa / Sigfox MAC and Sigfox credentials. These will be restored when using the online firmware flasher as we keep of copy of those details in our database, but if you erase the flash and then install a custom built firmware, these details are gone.
The next cli tool will have functionality to backup and restore the config block as well as nvs and ota partitions.
I am also working on an option to erase just the file system partition (similar to whatos.mkfs('/flash')does but for obvious reasons this will need thorough testing before it can be used safely.Any news on GUI tool ability to flash custom tar.gz files? :)
It's on my to-do list along with many other things... I have some ideas about this but I can't give you any firm timeline when this could be ready.
-
@xykon said in How to properly build custom FW image (tar.gz):
tar -cvzf LoPy_868-custom.tar.gz appimg.bin bootloader.bin partitions.bin script lopy_868.bin
I'm confused. I remember that older fw-images only did contain(e.g. https://software.pycom.io/downloads/LoPy_915-1.7.4.b1.tar.gz):
bootloader.binpartitions.binscriptlopy_868.bin
is the
appimg.binreally required in the fw_image? -
appimg.bin is used for OTA updates
-
@seb thanks for the quick answer. Can you be more specific: What's inside appimg.bin that is not included in lopy_868.bin or vice versa?
-
@this-wiederkehr It includes a hash of the file (at the end I believe) that the bootloader uses to verify if the rest of the firmware image is valid. This is included in the tar.gz just so that customers who wish to update to an official firmware, either via FTP or via the OTA functions we provide, do not have to compile the firmware themselves.
-
awesome, thanks for the clear answer.
-
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login