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

FPGAconf does not support .bin files. #24

Closed
sbagneris opened this issue Jan 12, 2020 · 16 comments
Closed

FPGAconf does not support .bin files. #24

sbagneris opened this issue Jan 12, 2020 · 16 comments

Comments

@sbagneris
Copy link

FPGAconf explicitly wants .bit files to flash firmware onto a Pluto II board. This is no longer provided with the 3.0 release.

It is possible to rename the .bin file file to .bit file and FPGAconf will happily (foolishly?) flash the file onto the board but when booting the picture is now black and white and the following message is displayed:

"!!! Updater hardware ID is invalid !!!"
"--> YOU must choose the correct ID <--"
"Main firmware is missing"

A rotating cursor is displayed bellow and when pressing the z-button a hex dump of the ROM is displayed that can be navigated up and down the memory addresses.

Long live GCVideo!

@ikorb
Copy link
Owner

ikorb commented Jan 12, 2020

It seems that FPGAconf is trying to remove a header from the "bitstream" file to get to the actual contents and the part it removed it small enough that the FPGA still boots. However, the flasher that starts first thinks that the main firmware is bad and starts its recovery mode instead of booting the main firmware.

Good thing I added that memory hex viewer for diagnosing problems like this. =) Run it, hit the X button (should jump to address 30000), take a picture, hit left on the D-Pad once (shoudl jump to 2ff80) and take another picture. With a bit of luck that should be enough to figure out how to build a pseudo .bit file that can be flashed with FPGAconf.

@sbagneris
Copy link
Author

sbagneris commented Jan 12, 2020

You bet!

Note to anyone else reading that the Pluto board is not bricked when doing this. One can easily revert to 2.4d without harm.

E7F1BE24-A7A8-448E-8FF3-33AD21C6D052
4CA5CFD2-6715-4F2C-B56D-679AC416A66D

Thanks for your prompt response and of course the super killer gcvideo!

@ikorb
Copy link
Owner

ikorb commented Jan 12, 2020

Thanks!

Unfortunately FPGAconf did something completely against my expectations - instead of dropping the (nonexistant) .bit header, it added something, which shifts everything backwards instead of forwards. Could you take another screenshot from address 0?

@sbagneris
Copy link
Author

No problem.

I included the first two pages.

D2837355-8F17-4846-A01D-2F14BFE8FD02
278D6727-4768-4BD7-A3BB-F880426E017D

@ikorb
Copy link
Owner

ikorb commented Jan 12, 2020

Thanks. The file below might work with FPGAconf. If it doesn't, I'll probably need a few days to dig out my own hardware to figure out a workaround.

(removed, please use the file from the 3.0a release)

@sbagneris
Copy link
Author

Success!

34BDC2A3-B648-47E3-8615-BC0D8576A88A

@ikorb
Copy link
Owner

ikorb commented Jan 12, 2020

Nice! Thanks for helping figure this out, I'll add a link to the release notes.

P2XH Wii fake bitstream in case someone actually uses it:
(removed, please use the file from the 3.0a release)

@ikorb ikorb closed this as completed Jan 12, 2020
@sbagneris
Copy link
Author

Thank you very much. I would have given you two thumbs up but I can’t quite levitate my camera yet. Most thing at first glance seems to function just fine. I’m excited for the built in firmware upgrade.

@ikorb
Copy link
Owner

ikorb commented Jan 12, 2020

Actually the system is resilient enought that you could have used the 3.0 updater to install a working main firmware by manually selecting the correct board ID - but since you appeared to be a willing victim, I preferred to work out the problem so others can avoid it completely.

@sbagneris
Copy link
Author

By all means!

@Tazberry
Copy link

@sbagneris what are you using to update ur pluto?

@sbagneris
Copy link
Author

I'm using the basic TXDI header from KNJN along with FPGAconf software that should have come along your purchase of the Pluto board. A judicious search online should net you a downloadable package for FPGAconf if you have lost the files. (it is not available on the KNJN website for some reason) or email KNJN for a link.

@Tazberry
Copy link

@sbagneris Is it possible I can get a link to all this. Doing this for the first time.

@GizmoTheGreen
Copy link

what are you using to connect to the TXDI header if you don't mind me asking? I've got a Sparkfun FTDI basic. put the TX in invert and been emailing KNJN. checking voltages on the TX RX lines etc but can't for the love of me program the thing.
it just times out! (still on 2.4c)

@sbagneris
Copy link
Author

sbagneris commented Jan 14, 2020

I use a bog standard USB to serial adapter and I plug the TXDI header right into it.
This looks pretty identical to what I have:
https://www.amazon.com/dp/B0000VYJRY/ref=cm_sw_em_r_mt_dp_U_C1GhEb3Q1G029

The specific TXDI header I use is the plain jane one without the RS232 chip built in ($6.95)
https://www.knjn.com/ShopAdapterBoardsTXDI.html

Additionally, the following may be of further help:
https://www.knjn.com/docs/Re-programing%20Pluto-IIx%20HDMI%20with%20the%20latest%20gcvideo%20release.pdf

@GizmoTheGreen
Copy link

I use a bog standard USB to serial adapter and I plug the TXDI header right into it.
This looks pretty identical to what I have:
https://www.amazon.com/dp/B0000VYJRY/ref=cm_sw_em_r_mt_dp_U_C1GhEb3Q1G029

The specific TXDI header I use is the plain jane one without the RS232 chip built in ($6.95)
https://www.knjn.com/ShopAdapterBoardsTXDI.html

Additionally, the following may be of further help:
https://www.knjn.com/docs/Re-programing%20Pluto-IIx%20HDMI%20with%20the%20latest%20gcvideo%20release.pdf

thanks for your input. I've read that PDF and referenced it when I hooked up the FTDI.
as I mentioned I've been emailing KNJN and they say it looks correct but have no idea why I can't program the board.

I should probably make a new "issue" to try and get help with this here but for now I'll just share the pictures.

image
image

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

4 participants