View Single Post
Old 02-10-2019, 11:42   #6 (permalink)
layder
Product Supporter
 
layder's Avatar
 
Join Date: Jun 2002
Location: Belarus
Age: 47
Posts: 3,187
Member: 13148
Status: Offline
Thanks Meter: 2,948
Nvidia Tegra devices have individual device "blob" keys.

Nvidia Tegra devices have "linear" adressing.

zero address is the beginning of rom2
Further continuation is written in rom3,
and further rom1

therefore, for nvidia, the data recorded in section 0 of rom1 have an address that is the sum of the length of rom2 and rom3

for example rom2 and rom3 have a size of 4mb (0x400000)
data at the beginning of rom1 for the processor will have an address (0x800000)

Nvidea keys is stored at BCT partition
BCT partittion are placed uasially at rom3 or begin of rom1, depended of size of partitions

it's a example:

eMMC Init returned = 0
EMMC Device Information :
EMMC CID: 1501004D414734464112090E8A593F77
EMMC CSD: D02701320F5903FFF6DBFFEF8A404067
EMMC Manufacture : SAMSUNG , EMMC NAME: MAG4FA , HEX: 4D4147344641 , S/N: 090E8A59 , rev. 0x12
EMMC Manufacture ID: 0x15 , OEM ID: 0x00 , Device Type: BGA (Discrete embedded) , Date: 3/2012
EMMC ROM 1 (Main User Data) Capacity: 15028 MB (0003AB400000)
EMMC ROM 2/3 (Boot Partition 1/2) Capacity: 512 KB (000000080000)
EMMC RPMB (Replay Protected Memory Block) Capacity: 128 KB (000000020000)
EMMC Permanent Write Protection: No
EMMC Temporary Write Protection: No
EMMC BootArea Write Protection: No
Extended CSD Information :
Extended CSD rev: 1.5 (MMC 4.41)
Boot configuration [PARTITION_CONFIG]: 0x00 , Boot from: no boot
Boot Bus Config: 0x00 , width 1bit
H/W Reset Function [RST_N_FUNCTION]: 0x00, RST_n signal is temporarily disabled
Supported partition features [PARTITIONING_SUPPORT]: 0x03
Device supports partitioning features
Device can have enhanced technological features in partitions and user data area
Partition Settings [PARTITION_SETTING_COMPLETED]: 0x00
Backup saved: MAG4FA_090E8A59_20181114_144106.extcsd

Scanning soft partitions
NVidia header is found
Partition: mmcblk0p0 (BCT) Address in , [000000000000 - 000000400000], size: 000000400000 (4,00 MB)
Partition: mmcblk0p1 (PT) Address in ROM1, [000000300000 - 000000500000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p2 (EBT) Address in ROM1, [000000500000 - 000000B00000], size: 000000600000 (6,00 MB)
Partition: mmcblk0p3 (GP1) Address in ROM1, [000000B00000 - 000000D00000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p4 (SOS) Address in ROM1, [000000D00000 - 000001300000], size: 000000600000 (6,00 MB)
Partition: mmcblk0p5 (LNX) Address in ROM1, [000001300000 - 000001B00000], size: 000000800000 (8,00 MB)
Partition: mmcblk0p6 (APP) Address in ROM1, [000001B00000 - 000031B00000], size: 000030000000 (768 MB)
Partition: mmcblk0p7 (CAC) Address in ROM1, [000031B00000 - 000069F00000], size: 000038400000 (900 MB)
Partition: mmcblk0p8 (MSC) Address in ROM1, [000069F00000 - 00006A100000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p9 (PIA) Address in ROM1, [00006A100000 - 00008A100000], size: 000020000000 (512 MB)
Partition: mmcblk0p10 (SEC) Address in ROM1, [00008A100000 - 00008B500000], size: 000001400000 (20,0 MB)
Partition: mmcblk0p11 (USP) Address in ROM1, [00008B500000 - 000094100000], size: 000008C00000 (140 MB)
Partition: mmcblk0p12 (PDA) Address in ROM1, [000094100000 - 000095500000], size: 000001400000 (20,0 MB)
Partition: mmcblk0p13 (UDA) Address in ROM1, [000095500000 - 0003AB100000], size: 000315C00000 (12,3 GB)
Partition: mmcblk0p14 (GPT) Address in ROM1, [0003AB100000 - 0003AB300000], size: 000000200000 (2,00 MB)
NVidia header successfully parsed

at this exmple BCT partition is stored at rom2/3 and ROM1
ROM2: 0.5MB
ROM3: 0.5MB
ROM1: 3MB

(PT) partittion stores at 0x000000300000 Address in ROM1, after end of BCT


and example 2

Setting bus width to 8 Bit
Setting frequence to 21 Mhz
eMMC Init returned = 0
EMMC Device Information :
EMMC CID: 11010030333247373400088941B712F7
EMMC CSD: D02700320F5903FFFFFFFFE78640009B
EMMC Manufacture : TOSHIBA , EMMC NAME: 032G74 , HEX: 303332473734 , S/N: 088941B7 , rev. 0x00
EMMC Manufacture ID: 0x11 , OEM ID: 0x00 , Device Type: BGA (Discrete embedded) , Date: 1/2015
EMMC ROM 1 (Main User Data) Capacity: 29820 MB (000747C00000)
EMMC ROM 2/3 (Boot Partition 1/2) Capacity: 4096 KB (000000400000)
EMMC RPMB (Replay Protected Memory Block) Capacity: 4096 KB (000000400000)
EMMC Permanent Write Protection: No
EMMC Temporary Write Protection: No
Extended CSD Information :
Extended CSD rev: 1.7 (MMC 5.0, MMC 5.01)
Boot configuration [PARTITION_CONFIG]: 0x40 , Boot from: no boot
Boot Bus Config: 0x00 , width 1bit
H/W Reset Function [RST_N_FUNCTION]: 0x01, RST_n signal is permanently enabled
Supported partition features [PARTITIONING_SUPPORT]: 0x07
Device supports partitioning features
Device can have enhanced technological features in partitions and user data area
Device can have extended partitions attribute
Partition Settings [PARTITION_SETTING_COMPLETED]: 0x00
Backup saved: 032G74_088941B7_20180215_120713.extcsd
EMMC Init completed.

Scanning soft partitions
NVidia header is found
Partition: mmcblk0p0 (BCT) Address in BOOT1+BOOT2, [000000000000 - 000000800000], size: 000000800000 (8,00 MB)
Partition: mmcblk0p1 (PT) Address in ROM1, [FFFFFFFFFFC00000 - FFFFFFFFFFE00000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p2 (EBT) Address in ROM1, [FFFFFFFFFFE00000 - 000000400000], size: 000000600000 (6,00 MB)
Partition: mmcblk0p3 (LGE) Address in ROM1, [000000400000 - 000000600000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p4 (EKS) Address in ROM1, [000000600000 - 000000800000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p5 (GP1) Address in ROM1, [000000800000 - 000000A00000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p6 (SOS) Address in ROM1, [000000A00000 - 000001400000], size: 000000A00000 (10,0 MB)
Partition: mmcblk0p7 (LNX) Address in ROM1, [000001400000 - 000001E00000], size: 000000A00000 (10,0 MB)
Partition: mmcblk0p8 (APP) Address in ROM1, [000001E00000 - 000061E00000], size: 000060000000 (1,50 GB)
Partition: mmcblk0p9 (CAC) Address in ROM1, [000061E00000 - 000079E00000], size: 000018000000 (384 MB)
Partition: mmcblk0p10 (MSC) Address in ROM1, [000079E00000 - 00007A000000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p11 (USP) Address in ROM1, [00007A000000 - 00007F000000], size: 000005000000 (80,0 MB)
Partition: mmcblk0p12 (NVA) Address in ROM1, [00007F000000 - 00007F200000], size: 000000200000 (2,00 MB)
Partition: mmcblk0p13 (UDA) Address in ROM1, [00007F200000 - 00073AA00000], size: 0006BB800000 (26,9 GB)
Partition: mmcblk0p14 (DRM) Address in ROM1, [00073AA00000 - 00073BA00000], size: 000001000000 (16,0 MB)
Partition: mmcblk0p15 (MLT) Address in ROM1, [00073BA00000 - 00073CA00000], size: 000001000000 (16,0 MB)
Partition: mmcblk0p16 (FOT) Address in ROM1, [00073CA00000 - 00073DE00000], size: 000001400000 (20,0 MB)
Partition: mmcblk0p17 (CAL) Address in ROM1, [00073DE00000 - 00073EE00000], size: 000001000000 (16,0 MB)
Partition: mmcblk0p18 (UDB) Address in ROM1, [00073EE00000 - 000747A00000], size: 000008C00000 (140 MB)
Partition: mmcblk0p19 (GPT) Address in ROM1, [000747A00000 - 000747C00000], size: 000000200000 (2,00 MB)
NVidia header successfully parsed


BCT fully placed at ROM2/3

Last edited by layder; 02-10-2019 at 11:56.
  Reply With Quote
The Following 3 Users Say Thank You to layder For This Useful Post:
Show/Hide list of the thanked
 
Page generated in 0.12237 seconds with 7 queries