Skip to content
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

SMC.BIN artefact creation #19

Closed
FlightControl-User opened this issue Oct 16, 2023 · 7 comments
Closed

SMC.BIN artefact creation #19

FlightControl-User opened this issue Oct 16, 2023 · 7 comments

Comments

@FlightControl-User
Copy link

FlightControl-User commented Oct 16, 2023

Hi Stefan,

Would it be possible to create also as part of the deployment SMC.BIN files, in analogy with VERA.BIN and ROM.BIN?
It would be great to have a structure where the file name also would contain the version number, eg. SMC-R45.1.0.BIN.
The flasher tool uses this header to verify compatibility between SMC and ROMs.

So people can find this .BIN file also in the official artefact list of the SMC CX16 community release page, so that I can direct to it from the CX16 flasher update documentation, so that people know where to find it ...

I have already a method of creating such .BIN files.
The two python sources to be combined in one with a procedure, i'll work on that.

The cx16-smc-header-R45.1.0.hex contain 32 bytes, and contain version information for the SMC and the compatible ROMs:

  • The first three bytes is the SMC version number of the SMC.BIN.
  • The remaining bytes contain version information of the supported ROMs for the SMC.BIN, starting from the last byte backwards.

Sven

@stefan-b-jakobsson
Copy link
Collaborator

stefan-b-jakobsson commented Oct 17, 2023

Hi,

As a first step, I've made a python script that makes the bin header. You can check it out here and test if it works:

https://github.com/stefan-b-jakobsson/x16-smc/tree/20231017-bin-artefact

It's the file bin/build_bin.py

@FlightControl-User
Copy link
Author

I have checked the python script and it looks great, and header.bin creation just from 16 bytes in a binary file is a good idea and simple :-).
Just keep in mind that:

  • SMC R43.0.0 would be compatible with ROM 43, ROM R44 and ROM R45. Also note that R44 actually was a preview version (-44) and indeed R45 now also has (-45).
  • SMC R45.1.0 would be compatible with ROM 45 ...
  • and next ROMs (ROM p46 (-46)) ... You may want to add P46 (preview) and R46 already?

Would suggest that we add these .BIN files to each SMC release as SMC-RVV.MM.NN.BIN, with the appropriate header.

@FlightControl-User
Copy link
Author

The python script just now seems to have disappeared.

@stefan-b-jakobsson
Copy link
Collaborator

I moved it to .github/workflows

I have never used GitHub Actions myself, so I need to test a few things. Or ask someone to help :-)

@FlightControl-User
Copy link
Author

I want to build the same yml for the deployment of the flasher tool. It will help the community and i won't be a bottle neck :-).

@stefan-b-jakobsson
Copy link
Collaborator

Pull request is now ready for review

@mooinglemur
Copy link
Contributor

Closed by #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants