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

location of ROM binary? #3

Open
sknebel opened this issue Sep 7, 2018 · 8 comments
Open

location of ROM binary? #3

sknebel opened this issue Sep 7, 2018 · 8 comments

Comments

@sknebel
Copy link

sknebel commented Sep 7, 2018

https://www.sifive.com/blog/2018/09/06/an-open-source-release-of-the-freedom-u540-c000s-bootloader/ links to this repository as the location for a copy of the ROM contents, but there doesn't appear to be a non-source, binary file here?

@tmagik
Copy link
Contributor

tmagik commented Sep 7, 2018

The binary slipped through the cracks (or maybe my .gitignore) on that one.

The file to be posted is:

shasum -a 256 bootrom.bin 
f9353bab5e826e937783c9ace7411375af9733c454d3d5f9f365509f2f7a4cdb  bootrom.bin

@zhuowei
Copy link

zhuowei commented Sep 7, 2018

@tmagik Would it be possible to post the original file in addition to the hash?

@tmagik
Copy link
Contributor

tmagik commented Sep 7, 2018

https://github.com/sifive/freedom-u540-c000-bootloader/tree/challenge/u540-c000-release

@tmagik
Copy link
Contributor

tmagik commented Sep 7, 2018

So one conjecture I have heard floating around is that on the HiFive1, you cannot reliably read the MASK rom if you turn up the clock speed, and if this is the case on the HiFiveU as well, this would explain why I spent half a day trying to confirm (with no success) that what I'm posting is a byte-for-byte copy of what is in the ROM.

Extra bonus points (in my opinion, anyway), if you can propose, or better yet, show some code, for some reasonable method for the bootloader to attest to the code it actually ran such that we could verify it in Linux or the device tree.

@zhuowei
Copy link

zhuowei commented Sep 8, 2018

@tmagik

you cannot reliably read the MASK rom if you turn up the clock speed ... I spent half a day trying to confirm ... that what I'm posting is a byte-for-byte copy of what is in the ROM.

I noticed that the fsbl code is responsible for increasing the clock speed of the main CPU; can one dump the bootrom from the fsbl before the clocks are increased?

@tmagik
Copy link
Contributor

tmagik commented Sep 8, 2018 via email

@zhuowei
Copy link

zhuowei commented Sep 8, 2018

@tmagik Something like https://github.com/zhuowei/freedom-u540-c000-bootloader/tree/dumprom ? I don't have a u540, so I'm not sure if I'm doing this right.

@tmagik
Copy link
Contributor

tmagik commented Sep 11, 2018 via email

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