I am looking for a mechanism to manage my eeprom image with a unique device identifier. I would like to do this in the make file so that the device automatically gets a new identifier and then updates it to a data image and then launches it. In pseudo code:
wget http://my.centralized.uid.service/new >new.id binedit binary.image -write 0xE6 new.id flash binary.image into device
So, first we enter the identifier in a separate file, then rewrite the image (from the specified offset) with the contents of this file ID. Then flare up. But how to make the second part? I looked at bvi, which seems to have some scripting capabilities, but I didn’t quite understand this, and honestly, vi always gave me creeps.
Thanks for the help in advance!
source share