incidrthreat / iceriver_oc

88 stars 19 forks source link

how to extract .BGZ file? #50

Closed Dyrindyi closed 10 months ago

Dyrindyi commented 11 months ago

I want to extract the firmware file to have a look into the code. I have tried diffrent method like Gunzip etc to open it up, but no success. Please suggest me how to extract .bgz firmware file. Thanks in Advance!

incidrthreat commented 10 months ago

To extract the firmware from the BGZ file you need to use the custom developed extraction method that's on the miner itself called jm. No passwords are set on the firmware file just a basic AES256 encryption that's easy to get around. Mind you, you will need an ARM env to do this as the binary is written for ARM architecture. You can do it directly on the ASICs themselves or extract and run elsewhere. The commands for extraction are

./jm *miner*.bgz miner.tar tar -zxmf miner.tar