Motorola Charm

556 views
Skip to first unread message

Alexander

unread,
Jan 24, 2011, 1:06:33 PM1/24/11
to Android Linux Kernel Development
Hi, guys.
Im trying to backport motorola charm to 2.2.
And now im write BoardConfig.mk

alls fine but i dont uderstand where i can get
BOARD_FLASH_BLOCK_SIZE := ??????

With others partitions ok.
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00380000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 00480000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x08b260000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x0ab20000

Tiago Maluta

unread,
Jan 25, 2011, 11:43:55 AM1/25/11
to android...@googlegroups.com
On Mon, Jan 24, 2011 at 4:06 PM, Alexander <nobod...@gmail.com> wrote:
>
> alls fine but i dont uderstand where i can get
> BOARD_FLASH_BLOCK_SIZE := ??????
>

you can log at android terminal (i.e: adb shell) and type
# cat /proc/mtd

third column "erasesize" refers to blocksize.

--tm

Фьодор

unread,
Jan 25, 2011, 6:45:08 PM1/25/11
to android...@googlegroups.com


2011/1/25 Tiago Maluta <tiago....@gmail.com>

I know about "erasesize"

But where i can get definition for
BOARD_FLASH_BLOCK_SIZE


# #dev:    size   erasesize  name
# #mtd0: 00180000 00020000 "pds"
# #mtd1: 00060000 00020000 "cid"
# #mtd2: 000a0000 00020000 "logo"
# #mtd3: 00060000 00020000 "misc"
# #mtd4: 00380000 00020000 "boot"
# #mtd5: 00480000 00020000 "recovery"
# #mtd6: 008e0000 00020000 "cdrom"
# #mtd7: 0b260000 00020000 "system"
# #mtd8: 082a0000 00020000 "cache"
# #mtd9: 0ab20000 00020000 "userdata"
# #mtd10: 00200000 00020000 "kpanic"

This my /proc/mtd
Where is BOARD_FLASH_BLOCK_SIZE?

Tiago Maluta

unread,
Jan 27, 2011, 7:16:58 AM1/27/11
to android...@googlegroups.com
On Tue, Jan 25, 2011 at 9:45 PM, Фьодор <nobod...@gmail.com> wrote:
>
> I know about "erasesize"
>
> But where i can get definition for
> BOARD_FLASH_BLOCK_SIZE
>
>
> # #dev:    size   erasesize  name
> # #mtd0: 00180000 00020000 "pds"
> # #mtd1: 00060000 00020000 "cid"
> # #mtd2: 000a0000 00020000 "logo"
> # #mtd3: 00060000 00020000 "misc"
> # #mtd4: 00380000 00020000 "boot"
> # #mtd5: 00480000 00020000 "recovery"
> # #mtd6: 008e0000 00020000 "cdrom"
> # #mtd7: 0b260000 00020000 "system"
> # #mtd8: 082a0000 00020000 "cache"
> # #mtd9: 0ab20000 00020000 "userdata"
> # #mtd10: 00200000 00020000 "kpanic"
>
> This my /proc/mtd
> Where is BOARD_FLASH_BLOCK_SIZE?
>

On NAND technology an erasure can only be performed on a block basis,
this is why the number 0x20000 (128K) refers to your flash block size.

--tm

Patrick Jacques

unread,
Jan 28, 2011, 4:13:25 PM1/28/11
to android...@googlegroups.com
cat /proc/mtd

Patrick Jacques

unread,
Jan 29, 2011, 5:34:01 PM1/29/11
to android...@googlegroups.com
Sorry for the bad reply, the erase size is 0020000 so 128k block size, same as dream/sapphire and others:

BOARD_FLASH_BLOCK_SIZE := 131072

Фьодор

unread,
Jan 29, 2011, 6:36:15 PM1/29/11
to android...@googlegroups.com


2011/1/30 Patrick Jacques <pat...@kinetic-computing.net>



Thanks for helping
Reply all
Reply to author
Forward
0 new messages