Added script to prepare bcm43438 ucode for disassembling#4
Added script to prepare bcm43438 ucode for disassembling#4DanielAW wants to merge 1 commit intombuesch:masterfrom
Conversation
|
Its a Perl script for now, @mbuesch already mentioned that it would be the best to have some kind of parameter in the disassembler and assembler comand in the future. I'm not sure if a automatic detection is possible. |
But as I said, I won't merge this. We leave have it here on github as a hack, but a proper fix would simply fix the disassembler/assembler code read/write routines. |
They sort of throw the 8th byte away, I think its for saving space. The other way arround: I think they have to add a zero byte for padding.
Totally fine by me 😊 |
The format of the bcm43438 ucode used in the Raspberry Pi 3 needs preparation before it can be disassembled. This is handled in the ARM firmware before copying the code to the d11 core.
With this script I was able to disassemble bcm43438 ucode. During disassembling I got the following Warnings:
I was also able to assemble the resulting code back to a binary and using the script to get the code back to the original binary representation. Despite the missing argument for the NAP instruction, the reassembled code runs fine on the Rapsberry Pi 3.