R. Ou Profile picture
19 Apr, 9 tweets, 2 min read
Fun hardware discovery of the day: so Atmel has their ATF15xx CPLD family, and this chip is compatible enough with Altera's MAX 7000 series to the point where Atmel has a tool, POF2JED, that can convert Altera bitstreams without recompiling.
I always assumed that this came about via some kind of licensing or second-sourcing agreement, but then I decided to actually take a look at the strings in the POF2JED binary.
It turns out that the POF2JED binary has some secret debugging capability (that cannot be turned on by default) that dumps Altera POF files into a human-readable form.
However, this human-readable information includes comments that very much look like somebody's reverse engineering notes (e.g. "4th bit: JTAG, 5th bit: ?, 6th bit: ?").
So it would appear that Atmel actually reverse-engineered Altera's CPLD and then engineered their own product with a different architecture with a superset of functionality (e.g. there are more macrocell functions and interconnect lines)
If you want to play with this, you can patch the POF2JED executable as follows:

at 0x20d84 change 95 b3 00 to 00 22 01
at 0x32f88 change zeros to 68 ad 2f 43 00 68 a4 2f 43 00 e8 86 91 ff ff 83 c4 08 a3 54 1d 44 00 e9 79 91 ff ff 64 75 6d 70 2e 74 78 74 00 77 00
The output will be written to dump.txt in the current working directory. The unmodified file should have a SHA256 hash of 513c2e20e04ff826e7efc480d75e0aa4f988375460e0a0901e397a9ab856e5ca
and the patched file should have a hash of b636a8797f94937d9c1d3fd13540bc10f1fd5064e511d29c46e564f1891d6959

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with R. Ou

R. Ou Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @rqou_

27 Oct
I procrastinated for way too long and apparently now I'm running low on time to do some frivolous stunt hacking diebold voting machine inte...
step 0: my microsd card died??
status: I downloaded the wrong image, because apparently an x86 raspbian exists for some reason?

I am good engineer I swear
Read 6 tweets
26 Oct
doing a marie kondo. anyone know how much a shrink-wrapped altera max+plus ii manual might be worth? altera max+plus ii manual
anybody want to design a pci device? preliminary pci system desi...
how about a Pentium PC? Pentium Processor User's Ma...
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!