Insert area, Skip area, Extract area

Insert area, Skip area, Extract area

Sometimes some specific cases require a non-standard approach when it's necessary to extract, insert or skip some areas. For these cases, VNR has three designed functions. Each of this function allows to perform simple and cyclical operations on the dump or on the dump structures. These three functions are available in the Workspace tab.  



Each of this function has a set of parameters:
  1. Period
  2. Starting address
  3. Length
  4. Value (Only insert area)


Period - defines an area on which operations are performed. After setting this parameter VNR will divide dump by set value into periodic areas, then operations (insert/skip/extract) will be performed on those areas.
Starting address - byte position (in the period area) from which VNR starts performing an operation.
Length - the number of bytes.
Value - values of inserted bytes (hex).

Extract area
This function allows to extract some pieces/areas from periodical areas.



Example 1

It is necessary to extract the first half from each block. The EXTRACT AREA tool will be used. The period will be equal to the block size (2359296 bytes), the start address is zero  (since the first half of the block has to be extracted) and the length is half of the block (1179648 bytes).



Example 2

One particular block has to be extracted from the dump. In this case the Period equals to the dump size, Start address is the address of the first byte of the extracted block. The Length is the Block size.




Example 3

Six bytes after 1024 byte from each page should be extracted. Period = Page size; Start address = 1024; Length = 6




Skip area

Allows to skip some areas, from periodical areas. It's opposite to extract area function.




Insert area
This function can add certain amount of bytes to periodical areas.



Other examples

Chip parameters:
  1. Phy image size 9663676416 (4096 blocks)
  2. Block size 2359296
  3. Page size 9216
  4. Data area(1024)+SA(6)+ECC(70)+[Data area(1024)+ECC(70)]7

Extract area

Extraction of every first block out of 2 from the dump
  1. Period 4718592 (2 blocks)
  2. Starting address 0
  3. Length 2359296
Extraction of every second block out of 2 from the dump
  1. Period 4718592 (2 blocks)
  2. Starting address 2359296
  3. Length 2359296
Extraction of first Service area (by offset 1024) from each page from each block
  1. Period 9216
  2. Starting address 1024 
  3. Length 6
Extraction of first 3 pages from each block
  1. Period 2359296
  2. Starting address 0
  3. Length 27648 (3*9216)
Extraction of block number 505 from the dump
  1. Period 9663676416 (dump size)
  2. Starting address 1193803776 (505*2359296)
  3. Length 2359296

Skip area

Leaving out 2 last pages from each block in the dump
  1. Period 2359296
  2. Starting address 2340864 (2359296-18432)
  3. Length 18432(2*9216)
Insert area

Adding half block of zeros to the end of each block in the dump
  1. Period 2359296
  2. Starting address 2359296
  3. Length 1179648 (2359296/2)
  4. Value 0x00

    • Related Articles

    • Phison - Double block rotation and SLC block management

      The solution step by step It’s been many years since the first NAND controllers were released on the market. Many technological aspects of flash devices have changed since that time, but one thing is certain, along with the multiplied capacity, the ...
    • Phison dynamic XOR

      Majority of NAND memory devices that use scrambling algorithms generate their XOR keys statically. When a user writes new data to the NAND chip, the controller transforms this data with the XOR key that is generated every time with the same binary. ...
    • Block extraction

      Video tutorial Introduction In this little tutorial the procedure of block extraction is briefly explained. Blocks are second most basic structures in NAND memory dumps and their length defines (in most cases) length of XOR key, for this reason it is ...
    • Alcor Micro(AU) controllers - Peculiarities of data recovery

      Alcor Micro (AU) controllers are found in all sorts of devices such as microSD cards, USB flash drives, SD cards of any package, and especially monolithic devices. They are very popular in cheap, refurbished, and fake devices as well. Recent models ...
    • XOR transformation

      Scrambling (XOR) Modern Flash controllers utilize scrambling algorithms when recording data into flash memory. A typical scrambler implementation is based on the method where the special scrambling (XOR) key is generated by a controller and mixed ...