Loading Redboot Binary Directly to RAM

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

Loading Redboot Binary Directly to RAM

Loading Redboot Binary Directly to RAM

In order to get Redboot running on i.MX35 PDK without a flashing procedure, a little modification in the binary file is needed. After that it can be loaded into RAM memory using the ATK tool.

The Redboot Header

To execute the binary Redboot file a header of 32 bytes long must be added:

ddccbbaa0000000000000000hhggffee00000000000000000000000000000000 

Where ddccbbaa is the 4-byte start address and hhggffee is the start address (all in Hexadecinal format) modified by the following procedure:

value - 0x20 (or 32 decimal) + 0x08 (or 8 decimal) 

Note that in this header the values are placed from LSB to MSB bytes, so if the start address for MX35PDK is 0x87F00000 then the header should looks like:

Start Address    --> 0x87F00000                                               --> 0000F087 
Modified Address --> 0x87F00000 - 0x20 + 0x08 = 0x87EFFFE8 --> E8FFEF87
Header --> 0000F0870000000000000000E8FFEF8700000000000000000000000000000000 

Now, this header must be appended to the beginning of the redboot.bin file.

Tags (2)
%3CLINGO-SUB%20id%3D%22lingo-sub-1121628%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELoading%20Redboot%20Binary%20Directly%20to%20RAM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121628%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20order%20to%20get%20Redboot%20running%20on%20i.MX35%20PDK%20without%20a%20flashing%20procedure%2C%20a%20little%20modification%20in%20the%20binary%20file%20is%20needed.%20After%20that%20it%20can%20be%20loaded%20into%20RAM%20memory%20using%20the%20ATK%20tool.%3C%2FP%3E%3CH1%20id%3D%22toc-hId-382367644%22%20id%3D%22toc-hId-382367644%22%20id%3D%22toc-hId-1297817201%22%3E%3C%2FH1%3E%3CH1%20id%3D%22toc-hId--1425086819%22%20id%3D%22toc-hId--1425086819%22%20id%3D%22toc-hId--509637262%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EThe%20Redboot%20Header%20%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3C%2FP%3E%3CP%3ETo%20execute%20the%20binary%20Redboot%20file%20a%20header%20of%2032%20bytes%20long%20must%20be%20added%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%3CSTRONG%3Eddccbbaa%3C%2FSTRONG%3E0000000000000000%3CSTRONG%3Ehhggffee%3C%2FSTRONG%3E00000000000000000000000000000000%20%3C%2FPRE%3E%3CP%3EWhere%20%3CSTRONG%3Eddccbbaa%3C%2FSTRONG%3E%20is%20the%204-byte%20start%20address%20and%20%3CSTRONG%3Ehhggffee%3C%2FSTRONG%3E%20is%20the%20start%20address%20(all%20in%20Hexadecinal%20format)%20modified%20by%20the%20following%20procedure%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Evalue%20-%200x20%20(or%2032%20decimal)%20%2B%200x08%20(or%208%20decimal)%20%3C%2FPRE%3E%3CP%3ENote%20that%20in%20this%20header%20the%20values%20are%20placed%20from%20LSB%20to%20MSB%20bytes%2C%20so%20if%20the%20start%20address%20for%20MX35PDK%20is%200x87F00000%20then%20the%20header%20should%20looks%20like%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3EStart%20Address%26nbsp%3B%26nbsp%3B%26nbsp%3B%20--%26gt%3B%200x87F00000%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20--%26gt%3B%200000F087%20%0AModified%20Address%20--%26gt%3B%200x87F00000%20-%200x20%20%2B%200x08%20%3D%200x87EFFFE8%20--%26gt%3B%20E8FFEF87%0A%3C%2FPRE%3E%3CPRE%20class%3D%22jive-pre%22%3EHeader%20--%26gt%3B%20%3CSTRONG%3E0000F087%3C%2FSTRONG%3E0000000000000000%3CSTRONG%3EE8FFEF87%3C%2FSTRONG%3E00000000000000000000000000000000%20%3C%2FPRE%3E%3CP%3ENow%2C%20this%20header%20must%20be%20appended%20to%20the%20beginning%20of%20the%20redboot.bin%20file.%3C%2FP%3E%3CH1%20id%3D%22toc-hId-1062426014%22%20id%3D%22toc-hId-1062426014%22%20id%3D%22toc-hId-1977875571%22%3E%3C%2FH1%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 02:51 AM
Updated by: