June 2017
Intermediate to advanced
478 pages
13h 14m
English
In most cases, you will want to partition the flash memory into a number of areas, for example, to provide space for a bootloader, a kernel image, or a root filesystem. In MTD, there are several ways to specify the size and location of partitions, the main ones being:
In the case of the first option, the kernel command-line option to use is mtdparts, which is defined as follows in the Linux source code in drivers/mtd/cmdlinepart.c:
mtdparts=<mtddef>[;<mtddef]<mtddef> := <mtd-id>:<partdef>[,<partdef>]<mtd-id> := unique name for the chip<partdef> := <size>[@<offset>][<name>][ro][lk]<size> ...
Read now
Unlock full access