Flash Extractor
© Soft-Center
About     Shop     Downloads     Manual     Library     Forum     Services     Contacts
Determine Block Size – v6   Search  Register  Log in
This topic is locked: you cannot edit posts or make replies.
Author Message
jeremyb



Joined: 09 Dec 2008
Posts: 1051
Location: RecoverMyFlashDrive.com Fairfield, CT, USA

PostPosted: Fri Nov 19, 2010 0:38    Post subject: Determine Block Size – v6
Reply with quote

Terminology

Parsed Spare Area Mode: See - Editors

Dump Address: The logical address within a dump after the spare area has been parsed.

Jump Address: The number of bytes to jump by using CTRL+ PGDN, CTRL+ PGUP, CTRL + UP Arrow, CTRL + DOWN Arrow,

Block Number: The address number assigned to a group of bytes by the controller.

Block Size: The number of bytes allocated to a block number.
Terminology.gif
jeremyb



Joined: 09 Dec 2008
Posts: 1051
Location: RecoverMyFlashDrive.com Fairfield, CT, USA

PostPosted: Fri Nov 19, 2010 0:56    Post subject:
Reply with quote

Method 1
The block size can be figured out by selecting the final step in the mix, locating the start of the current block, locating the start of the following block and subtracting the two numbers.

In parsed spare area mode scroll to an area that contains user data. Note the block number and scroll up until the block number changes.
Scroll down to the original block number, and look at the dump address. This is the start address of the current block.

Example 1:
Dump Address: 0x67200200
Block Number: 0x554

Dump Address: 0x67200000
Block Number: 0x554

Dump Address: 0x671ffe00
Block Number: 0x177

Block Number 0x554 starts at dump offset 0x67200000 because dump address 0x671ffe00 contains a different block number.

Now scroll down until the block number changes, this is the start address of the next block. Subtract the two numbers to get the block size.

Block Size = Next Block Start Address – Current Block Start Address

Example 2
Dump Address: 0x673ffc00
Block Number: 0x554

Dump Address: 0x673ffe00
Block Number: 0x554

Dump Address: 0x67400000
Block Number: 0x1a

The block after 0x554 starts at dump address 0x67400000.

0x67400000 - 0x67200000 = 0x200000
Block Size = 0x200000


Tip:
Once you figure out the current block's starting address you can use the jump address to locate the next block quickly.

Enter the page size with the spare area stripped out (enter: 0x800 if unsure) into the jump address box.

Code:
Typical Page Sizes
2112 = 0x800
4224 = 0x1000
4320 = 0x1000
...


1. Press CTRL + PGDOWN
2. Did the Block Number Change? If it did than the jump address is your block size, if it didn't change proceed to step 2.
2. Press CTRL + PGUP
3. Press CTRL + UP Arrow
4. Repeat Step #1
Step-1.gif
Final Step in Mix
Example-1.gif
Example 1
Example-2.gif
Example 2
jeremyb



Joined: 09 Dec 2008
Posts: 1051
Location: RecoverMyFlashDrive.com Fairfield, CT, USA

PostPosted: Fri Nov 19, 2010 1:14    Post subject:
Reply with quote

Method #2 - Advanced

When joining by interleaves (Eg: Join by Byte, Join by Page, Block Pair, etc) the final block size and page size increase by a factor of two.
In many cases you can use this to figure out the block size and page size for the block assembler or the next step in the mix.

Example #1
Block Pair 0x100000, 0x2000
Block Size / Page Size of the Next Step is:
0x100000 * 2 = Block Size: 0x200000
0x2000 * 2 = Page Size: 0x2000

If you know the block size of your NAND chip you can do the same. Typically (but not always)
Block Size = Page Size x 128
eg: 4224 x 128 = 0x84000

In this case the NAND chip's block size is 0x84000. If the spare area is stripped the block size becomes 0x80000:
512 (Bytes Per Sector) x 8 (Sectors Per Page) x 128 (Pages per Block)

Example #2
Input 4/0/5/1/6/2/7/3
Join by Byte 2, false
Block Pair 0x100000, 0x2000
Join by Dump 4

Join By Byte:
0x80000 x 2 = 0x100000
Block Pair:
0x100000 x 2 = 0x200000

Final Block Size = 0x200000
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 4 Hours
Page 1 of 1

 

Last added
AU6989NHL-2   98 d7 98 b2   1x1 SM3281L-AB   45 3c 98 b3   1x1   v5 Monolith Micro SD_76   98 3c 99 a3   1x4 SM3265P-AC   45 3e 98 03   1x1 SM3281N-AB   45 48 9a b3   2x2 Monolith Micro SD_75   32 2c c3 08   1x1 Monolith Micro SD_74   45 3e 98 b3   1x4   Ref AU6989SNHL-2   45 de 98 92   1x1 SM3261L-AB   45 de 98 92   1x1 SM2232T AC   89 d7 94 3e   4x2
News
01.02.2024 Save FE key
23.09.2022 The End
11.11.2021 Legs for NR
16.08.2021 Sector Number Slow
15.07.2021 New drivers
Other products
© Soft-Center ltd.