This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do I get the base address of partitions

I have the following partitions on my device running android, has a u-boot bootloader

U-Boot 1.1.4.XTRAVERSION-g6c554dbc-dirty (Mar 26 2013 - 14:26:11
Load address: 0x80e80000
DRAM: 512 MB
Flash: 0 kB
Using default environment
In: serial
Out: serial
Err: serial
efi partition table:
ptbl slot: EMMC:(1).
256 128K xloader
512 3M bootloader
6656 512K splash
7680 128K misc
8704 64M efs
139776 16K crypto
139808 16M recovery
172576 8M boot
188960 512M system
1237536 256M cache
1761824 128M apk
2023968 2787M userdata

How do I get the base address of each partition, I tried the following commands in u-boot but It either gives me an error or doesn't return anything
1. # flinfo
Bank # 1: missing or unknown FLASH type
Bank # 2: missing or unknown FLASH type

2. fsinfo
Device Hangs up

3. # fli
Bank # 1: missing or unknown FLASH type
Bank # 2: missing or unknown FLASH type

Please help me find the base address of each of the partition.

  • Hello,

    Regarding the Android_Fastboot guide the regions in eMMC are given names. Their offsets and sizes are set in u-boot in the mmc.c file of the board directory that you are using. For example, for the Blaze, this file is u-boot/board/omap4430sdp/mmc.c :

    static struct partition partitions[] = { 
    { "-", 128 }, { "xloader", 128 },
    { "bootloader", 256 },
    /* "misc" partition is required for recovery */
    { "misc", 128 },
    { "-", 384 }, { "efs", 16384 },
    { "recovery", 8*1024 },
    { "boot", 8*1024 },
    { "system", 512*1024 },
    { "cache", 256*1024 },
    { "userdata", 0},
    { 0, 0 },
    };

    The partitions used are shown here. Here's an example:

    Sector# Size Name 
    256 128K xloader
    512 256K bootloader
    2048 8M recovery
    8432 8M boot
    34816 512M system
    1083392 256M cache
    1607680 512M userdata
    2656256 2183M media