View Single Post
Old March 11th, 2010, 12:43 PM   #78 (permalink)
Nu11u5
Member
 
Join Date: Feb 2010
Location: Rolla, MO, USA
Posts: 263
 
Device(s): HTC Typhoon, HTC Juno, Samsung T939
Thanks: 26
Thanked 235 Times in 56 Posts
Default

Quote:
Originally Posted by Nu11u5 View Post

Partitions with file systems should be accessed via STL devices with no offset - edited table.

Code:
Device     Partition  Image     Offset     Size (KiB)
bml1       MIBIM      arm9boot               2048
bml2       OEMSBL1    arm9boot  @0x200000     512
bml3       OEMSBL2    {blank}                 512
bml4       APPSBL     arm11boot              1024
bml5       AMSS       amss                  23040
bml6       RECOVER    recovery               6144
bml7       EFS2       {radioFS} 0xA80000    23040
bml8       APPS       kernel                 6144
stl9       EFS2APPS   system    0xA80000   226304
bml10      FOTA       {blank}                8192
bml11      RFBACKUP   {blank}                 512
stl12      CACHE      cache     0xA80000    40960
bml13      PARAM      {unknown}              1024
stl14      USERDATA   userdata             173568
...

Update: Simply hexediting the flash file system header out so that the remaining image matches the contents of the original ODIN images does not seem to work.

The problem is that dumping the BML devices with files systems on them (vs RAW) produces an image that is too large. In the originals, all the files were allocated near the beginning of the ROM, and the rest was zeroed (in NAND flash this means 0xFF). After the update I noticed that files were allocated at the end as well. This means one cannot simply remove the extra zeroed space to make it fit for ODIN.

The STL devices work at a higher level, translating addresses in flash so they can work with normal file systems. Using an STL image instead of the edited BML image may work.

The downside of using STL devices for file system dumps is that they are only enabled on specific partitions. The good thing is these other partitions do not really concern us unless we want to edit the radio code (lets leave this alone).

Unfortunately the error in trying to flash the BML image forced me to ODIN back to the UVIJ6 firmware. Once I receive the update again I will test the new ROM dump and release a no-root-needed ROM update via ODIN if it works.
I updated the partitioning table with the above.
Nu11u5 is offline  
Last edited by Nu11u5; March 11th, 2010 at 12:49 PM. Reason: sp
Reply With Quote