Use the ATK with a secure boot enabled chip.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use the ATK with a secure boot enabled chip.

Use the ATK with a secure boot enabled chip.

Even though the Advanced Tool Kit is not a supported tool anymore, it can be used to provision the code and blow fuses of an i.MX device during manufacturing.

This is true when the secure boot has been enabled, which means that the code downloaded by the ATK to the target must be signed, as it will be authenticated prior to its execution.


Once in secure mode, the Serial Download boot mode (SDP) can only access a restricted range of addresses, which is documented in the DCD section of the reference manual. An attempt to write outside this allowed area will result in an error, and will make the ROM restart the SDP by considering this as an attack.


To automatically detect the mode (engineering or secure/production) of the chip, the ATK writes data to a memory location, and by retrieving the response it knows the configuration.

The response can be one of two values:

0x56787856 means that the chip is in engineering mode.

0x12343412 means that the chip is in production/secure mode.


It should be known that there is a bug that prevents a secure chip from being handled correctly. For instance, to perform the automatic detection mentioned above, the tool writes to 0xFFFF_FFFF for the i.MX25 or even i.MX35. This address is invalid by being outside the allowed address range, so the ROM code aborts the current session, and restarts a new one.


The attached DLL library fixes this issue by writing to an appropriate area like the free iRAM space. This will allow use of the ATK for a chip whose secure boot is enabled.

Attachments
Comments

Apologies in advance if the answer is simple, but I don't use Windows much. I'm unsure how to use the dll with the Advanced Tool Kit (ATK): doesn't the dll have to be installed in the Windows OS in order for ATK to recognize it and, if yes: how do I do that?


Many thanks for any reply, -Peter

To launch ATK it is enough just to run the ADSToolkit.exe, assuming the (proper) file AtkHostApi_std.dll is located in the same directory.  

No ratings
Version history
Last update:
‎10-29-2012 09:51 AM
Updated by: