mtdparts question
ANDY KENNEDY
ANDY.KENNEDY at adtran.com
Thu Nov 18 08:11:49 EST 2010
Attempting to configure mtdparts from the command line. The parts are
set statically in the kernel, however, the COMMENT prior to the config
declares that the this is what will happen IF there is no definition on
the command line.
Bootup info shows:
<snip>
Kernel command line: mtdparts=NAND 128MiB 3,3V
8-bit:256k(hidden),-(root) ip=192.168.1.10 root=/dev/ram
console=ttyS0,115200n8r <snip> Scanning for NAND chip NAND device:
Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks Bad eraseblock 1012 at 0x000007e80000
Setting up NAND partitions Creating 2 MTD partitions on "NAND 128MiB
3,3V 8-bit":
0x000000000000-0x000000400000 : "Kernel partition"
0x000000400000-0x000008000000 : "Root partition"
<snip>
physmap platform flash device: 01000000 at 1f000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu
Extended Query Table at 0x0040
physmap-flash.0: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available RedBoot partition parsing
not available Using physmap partition information Creating 1 MTD
partitions on "physmap-flash.0":
0x000000440000-0x000000a40000 : "filesystem"
<snip>
The system has two flash chips, one a NOR and the other a NAND.
Q1: Can we configure mtdparts from the command line if the definition
is already in arch/mips/<mysys>/platform.c.
Q2: Is the definition `mtdparts=NAND 128MiB 3,3V
8-bit:256k(hidden),-(root)` correct to do this for the NAND?
Q3: Can we define partitions for BOTH of these flash on the command
line? (my answer= NO -- am I correct?)
If this has been asked prior, I could not locate it. Sorry for the
repeat if it has been asked previously.
Thanks,
Andy
More information about the linux-mtd
mailing list