RK3066 partitions

From wiki
Revision as of 03:04, 15 March 2014 by AVRman (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page describe the partition layout of nand flash on MarsBoard.

The partition is decided by the mtd parts in cmd line bootloader passed to the kernel.

android partitions

CONFIG_CMDLINE="root=LABEL=linuxroot init=/sbin/init loglevel=8 rootfstype=ext4 rootwait mtdparts=rk29xxnand:0x00002000@0x00002000(misc),
0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00008000@0x00010000(recovery),0x000C0000@0x00018000(backup),
0x00040000@0x000D8000(cache),0x00100000@0x00118000(userdata),0x00002000@0x00218000(kpanic),0x00100000@0x0021A000(system),-@0x0033A000(user)"

linux partitions

CONFIG_CMDLINE="root=/dev/block/mtd/by-name/linuxroot init=/sbin/init loglevel=8 
rootfstype=ext4 rootwait mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x00012000(linuxroot)"

The partition must be 4M aligned due to the page size of flash.

dual boot partitions

Address Size Name Description
0x000000400000-0x000000800000 4M misc Android misc partition
0x000000800000-0x000001800000 16M kernel Obsolete Linux kernel partition, not used, keep it for compatibility*
0x000001000000-0x000002000000 16M boot Android boot.img(kernel+ramdisk)
0x000002000000-0x000004000000 32M recovery Android recovery/ Linux kernel + ramdisk
0x000004000000-0x000008000000 64M backup Backup partition, not used on radxa rock, keep it for compatibility
0x000008000000-0x000010000000 128M cache Android /cache partition
0x000010000000-0x000050000000 1024M userdata Android /data partition
0x000050000000-0x000050400000 4M kpanic For kernel panic dump
0x000050400000-0x000070400000 512M system Android /system partition
0x000070400000-0x0000d0400000 1536M linuxroot For the Linux rootfs
0x0000d0400000- - user Android internal flash as sdcard for storage
  • In previous android, the ramdisk(mounted as /) is in a separate partition, so we need two partitions, one for the kernel and the other for ramdisk, but the newer android pack together the kernel and the ramdisk into one single boot.img, so only one partition is needed
Personal tools