-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide bootloader-hash tool #1190
Conversation
This pull request seems to be good.
|
@stefanrueger
I am not so sure if you want to include the small change to this PR. or you want to creae a new PR. |
Going back to this PR. The only thing is that the user will have to rebuild avrdude if they want to include more optiboot bootloaders. I am thinking we can extend For example, I hope adding (at least the 115200bps version) of all the optiboot_flash hex files from @MCUdude should not slow down avrdude. |
I am thinking that I understand that Arduino will take time to adopt new version of avrdude (they have not officially adopted 7.0 yet). But I think we can already build good static link avrdude version using the Arduino provided infrastructure, for Linux, macOS and Windows. So it may not be a big issue any more. |
The intention with the hashes of a few popular bootloaders is to make it easy to change from The way I think about this is that arduino's distributed bootloaders should be recognised amongst which is the v4.4 optiboot (that's probably on millions of chips all over the world). People who download and install custom bootloaders, eg, from @MCUdude's repository should be able to cope with an extra parameter |
I see your point. Thanks. I think this PR is good to go now. |
This bash script computes the hash-sum of stk500v1 bootloaders to ease the guesswork of
-c urclock
. The-c urclock
programmer is compatible with-c arduino
, but needs to know the size of the bootloader as it protects it externally from being overwritten. In contrast to urboot, optiboot et al binaries do not advertise its size and properties. Hence,urclock.c
maintains a table with hash-sums of popular bootloaders that are out there in the wild, so the user doesn't have to know, let alone specify, the size of the bootloader on their devices. This utility computes the table entry from a .hex files in the directory.