radareorg / ideas

4 stars 1 forks source link

Add support for Fujitsu FR, FR-V #231

Open montekki opened 10 years ago

montekki commented 10 years ago

http://en.wikipedia.org/wiki/FR-V_%28microprocessor%29 used in DSLR and other stuff

Maijin commented 8 years ago

Is there a binutils for that ?

satnatantas commented 8 years ago

Yes, there are binutils for both, and also a patch from Simeon Piligrim (Nikon Hacker) to add support for FR80 changes.

Actually, I am stuck at that there is no IDA CPU module for either FR80 or FRV, so I would like to contribute to the project by using existing binutils to add support of these archs to Radare and use it instead. What should I start with?

Maijin commented 8 years ago

Any... Link ?

satnatantas commented 8 years ago

https://github.com/simeonpilgrim/nikon-firmware-tools/tree/master/GNU%20Patches - FR80 patch

FRV anf FR is inside any recent binutils and GCC release. I compilied binutils for FRV just fine, GCC is a tougher thing though.

Maijin commented 8 years ago

There are tons of examples on how to add architecture from binutils see https://github.com/radare/radare2/wiki/Implementing-a-new-architecture (bottom) or just browse git logs/history

radare commented 8 years ago

new architectures should be added into radare2-extras and packaged in radare2-pm

On 08 Jun 2016, at 11:12, Maijin notifications@github.com wrote:

Any... Link ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/radare/radare2/issues/671#issuecomment-224533380, or mute the thread https://github.com/notifications/unsubscribe/AA3-lpgoLFmgP-DyQIkzwizRW7aeW8_Mks5qJoeKgaJpZM4BluAV.

XVilka commented 5 years ago

See also https://sec-consult.com/en/blog/2019/02/reverse-engineering-architecture-pinout-plc/

vitecd commented 4 years ago

FR still not present, am I wrong?

XVilka commented 4 years ago

@vitecd not yet, otherwise it would have been closed.

ret2libc commented 4 years ago

This issue has been moved from radareorg/radare2 to radareorg/ideas as we are trying to clean our backlog and this issue has probably been created a long while ago. This is an effort to help contributors understand what are the actionable items they can work on, prioritize issues better and help users find active/duplicated issues more easily. If this is not an enhancement/improvement/general idea but a bug, feel free to ask for re-transfer to main repo. Thanks for your understanding and contribution with this issue.

DiscoStarslayer commented 2 years ago

It's outrageously ugly, but it works if anyone is interested in FR30/FR60 disassembly: https://github.com/DiscoStarslayer/radare2/pull/1

trufae commented 2 years ago

Binutils cgen is a disaster. And that will increase r2 size a lot. Can you do the PR to r2-extras instead? And make the r2pm package