<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/utils/atj2137, branch wolf3d</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>atjboottool: document more header fields and crypto code</title>
<updated>2017-10-26T17:17:59+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-10-26T17:16:00+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=7807934a271e9eb7b045cdcd89ba70fb59a91d69'/>
<id>7807934a271e9eb7b045cdcd89ba70fb59a91d69</id>
<content type='text'>
The encryption definitely uses some standard elliptic curve encryption over
binary fields (163 and 233 bits, standard polynomials). It is still unclear
how this is used in the actual encryption, the key authentification and
derivation do not look standard.

Change-Id: I6b9180ff7e6115e1dceca8489e986a02a9ea6fc9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The encryption definitely uses some standard elliptic curve encryption over
binary fields (163 and 233 bits, standard polynomials). It is still unclear
how this is used in the actual encryption, the key authentification and
derivation do not look standard.

Change-Id: I6b9180ff7e6115e1dceca8489e986a02a9ea6fc9
</pre>
</div>
</content>
</entry>
<entry>
<title>atjboottool: add support for FwuTail</title>
<updated>2017-10-20T21:57:58+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-10-20T21:57:58+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=7e42e902947b951bc9ec9f5d6ba6ef6a6f2eb836'/>
<id>7e42e902947b951bc9ec9f5d6ba6ef6a6f2eb836</id>
<content type='text'>
Change-Id: Ib01a2ff92294dd0bb59439c23f26bc31eafa4a39
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ib01a2ff92294dd0bb59439c23f26bc31eafa4a39
</pre>
</div>
</content>
</entry>
<entry>
<title>atjboottool: put afi and fw code in its own files</title>
<updated>2017-09-29T16:22:30+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-09-29T16:22:30+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=ea679de8371e4e74fe4e78fb8df8e5df19efffdc'/>
<id>ea679de8371e4e74fe4e78fb8df8e5df19efffdc</id>
<content type='text'>
Change-Id: I16347ebee0f82d5fdf32f5aa8f955c07fe148eba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I16347ebee0f82d5fdf32f5aa8f955c07fe148eba
</pre>
</div>
</content>
</entry>
<entry>
<title>atjboottool: split fwu code into its own file</title>
<updated>2017-09-29T15:56:04+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-09-29T15:53:06+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=95c32a505a7bfef2dcac2a975b1f5875f490c405'/>
<id>95c32a505a7bfef2dcac2a975b1f5875f490c405</id>
<content type='text'>
Slightly cleanup the code by removing the old and dangerous --force option.

Change-Id: I776633a9924797fcd509b8b80623bcd64b391672
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Slightly cleanup the code by removing the old and dangerous --force option.

Change-Id: I776633a9924797fcd509b8b80623bcd64b391672
</pre>
</div>
</content>
</entry>
<entry>
<title>atjboottool: cleanup and add support for atj2127</title>
<updated>2017-07-30T12:32:12+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-07-30T12:22:39+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=d1ca2e45e9ebab9f9e254317e625c0a40f377315'/>
<id>d1ca2e45e9ebab9f9e254317e625c0a40f377315</id>
<content type='text'>
Several people asked me recently how to decrypt atj2127 firmware. Someone
posted on github (https://github.com/nfd/atj2127decrypt) a decrypt utility
clearly reverse engineered from some unknown source. The code is an absolute
horror but I concluded that ATJ changed very little between ATJ213x and ATJ2127
so I added support for the ATJ2127, credit to this github code that I stole
and rewrite (code was under MIT licence). At the same time do some small code
cleanups.
Note that there is not 100% sure way that I know to distinguish between the
two firmware types, so the code tries to do an educated guess to detect
ATJ2127. If this does not work, use --atj21217 option. Also note that contrary
to the github tool that decrypts and unpack in one go, this tool only does one
step at once. So first decrypt: HEX -&gt; AFI, then unpack AFI -&gt; files.
I also added for a different version of AFI. Based on AFI files I have, there
are, I think, two versions: the "old" ones (pre-ATJ213x) and "new" ones. The
tool only supported the new one but for some reason the ATJ2127 uses the old
ones without a mostly empty header. Strangely, even this mostly empty header
does not seem to follow the old layout as reverse engineered by the s1mp3
project (https://sourceforge.net/p/s1mp3/code/HEAD/tree/trunk/s1fwx/heads.h),
so in fact there might be three versions. In any case, only the header is
different, the rest of the file is identical so at the moment I just don't
print any header info for "old" files.

Change-Id: I1de61e64f433f6cacd239cd3c1ba469b9bb12442
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Several people asked me recently how to decrypt atj2127 firmware. Someone
posted on github (https://github.com/nfd/atj2127decrypt) a decrypt utility
clearly reverse engineered from some unknown source. The code is an absolute
horror but I concluded that ATJ changed very little between ATJ213x and ATJ2127
so I added support for the ATJ2127, credit to this github code that I stole
and rewrite (code was under MIT licence). At the same time do some small code
cleanups.
Note that there is not 100% sure way that I know to distinguish between the
two firmware types, so the code tries to do an educated guess to detect
ATJ2127. If this does not work, use --atj21217 option. Also note that contrary
to the github tool that decrypts and unpack in one go, this tool only does one
step at once. So first decrypt: HEX -&gt; AFI, then unpack AFI -&gt; files.
I also added for a different version of AFI. Based on AFI files I have, there
are, I think, two versions: the "old" ones (pre-ATJ213x) and "new" ones. The
tool only supported the new one but for some reason the ATJ2127 uses the old
ones without a mostly empty header. Strangely, even this mostly empty header
does not seem to follow the old layout as reverse engineered by the s1mp3
project (https://sourceforge.net/p/s1mp3/code/HEAD/tree/trunk/s1fwx/heads.h),
so in fact there might be three versions. In any case, only the header is
different, the rest of the file is identical so at the moment I just don't
print any header info for "old" files.

Change-Id: I1de61e64f433f6cacd239cd3c1ba469b9bb12442
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix uninitialized variable (should fix libusb retry handling)</title>
<updated>2015-01-04T12:35:47+00:00</updated>
<author>
<name>Thomas Jarosch</name>
<email>tomj@simonv.com</email>
</author>
<published>2015-01-04T12:35:47+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=89ab3c27610d441479c6e4133c73043762191b5a'/>
<id>89ab3c27610d441479c6e4133c73043762191b5a</id>
<content type='text'>
Reported by cppcheck

Change-Id: I5ac7b73f2e3eaee3d5427d118944613e572f684d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by cppcheck

Change-Id: I5ac7b73f2e3eaee3d5427d118944613e572f684d
</pre>
</div>
</content>
</entry>
<entry>
<title>adfuload: fix argument parsing</title>
<updated>2014-11-15T12:01:47+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2014-11-14T22:20:50+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=229a02a4eebb61332e8180692d4415a7d49303fd'/>
<id>229a02a4eebb61332e8180692d4415a7d49303fd</id>
<content type='text'>
Change-Id: Ibde77a2f7cb7a73c26235be5b2afed9f0aec3e97
Reviewed-on: http://gerrit.rockbox.org/1039
Reviewed-by: Amaury Pouly &lt;amaury.pouly@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ibde77a2f7cb7a73c26235be5b2afed9f0aec3e97
Reviewed-on: http://gerrit.rockbox.org/1039
Reviewed-by: Amaury Pouly &lt;amaury.pouly@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>adfuload: Improve arguments parsing</title>
<updated>2014-11-06T06:56:02+00:00</updated>
<author>
<name>Marcin Bukat</name>
<email>marcin.bukat@gmail.com</email>
</author>
<published>2014-11-06T06:56:02+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=df2ac7428f1ab98ccc2109d4f70521c5f8404c2c'/>
<id>df2ac7428f1ab98ccc2109d4f70521c5f8404c2c</id>
<content type='text'>
Change-Id: If18975f13d20bb7f7232cafdb4ea87fa516b5750
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: If18975f13d20bb7f7232cafdb4ea87fa516b5750
</pre>
</div>
</content>
</entry>
<entry>
<title>hwstub: Add atj213x support</title>
<updated>2014-11-05T07:18:59+00:00</updated>
<author>
<name>Marcin Bukat</name>
<email>marcin.bukat@gmail.com</email>
</author>
<published>2014-09-23T11:30:17+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=d11704fed5fd218b2ed26182de877bc6e5b513a4'/>
<id>d11704fed5fd218b2ed26182de877bc6e5b513a4</id>
<content type='text'>
Change-Id: Ic32200f9ab2c6977e503307a9cbe43a1328d0341
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ic32200f9ab2c6977e503307a9cbe43a1328d0341
</pre>
</div>
</content>
</entry>
<entry>
<title>atjbootool: fix date printing</title>
<updated>2014-10-31T17:02:41+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2014-10-31T17:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=791be56cff14a7a41774ce80ce401384291985d9'/>
<id>791be56cff14a7a41774ce80ce401384291985d9</id>
<content type='text'>
Change-Id: If5cd0d79e4afb12224932b24c63b016636c7a56e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: If5cd0d79e4afb12224932b24c63b016636c7a56e
</pre>
</div>
</content>
</entry>
</feed>
