[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#931852: [armel/marvell] cmdline mtd partition map without effect



Package: debian-installer
Version: 20190702

Hi,

I'm using the current Buster kernel/initrd on my Seagate Blackarmor NAS.

The mtd partition map ('mtdparts' cmdline variable) has no effect
(even with 'cmdline' module loaded):

[...]
[    2.312626] This architecture does not have kernel memory protection.
[    2.319057] Run /init as init process
[    2.659299] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75
[    2.665704] nand: Samsung NAND 32MiB 3,3V 8-bit
[    2.670237] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512,
OOB size: 16
[    2.738418] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.778297] libphy: orion_mdio_bus: probed
[    2.798779] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    2.824205] Scanning device for bad blocks
[...]
~ # uname -a
Linux (none) 4.19.0-5-marvell #1 Debian 4.19.37-5 (2019-06-19)
armv5tel GNU/Linux
~ # cat /proc/cmdline
console=ttyS0,115200
mtdparts=orion_nand:0xa0000@0x0(uboot),0x010000@0xa0000(env),0x500000@0xc0000(uimage),0x1a40000@0x5c0000(rootfs)
~ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 02000000 00004000 "orion_nand"
~ # lsmod
Module                  Size  Used by
ofpart                  3447  0
cmdlinepart             2775  0
ehci_orion              3765  0
ehci_hcd               53205  1 ehci_orion
usbcore               159269  2 ehci_orion,ehci_hcd
mvmdio                  4528  0
mv643xx_eth            27872  0
usb_common              3755  1 usbcore
nls_base                5869  1 usbcore
orion_nand              1914  0
nand                   74301  1 orion_nand
nand_ecc                3294  1 nand
nand_bch                2470  1 nand
bch                     9396  1 nand_bch
mtd                    44525  6 nand_bch,ofpart,nand,cmdlinepart,orion_nand
sha256_generic          9524  0
~ #

Manually removing/adding cmdline, mtd and nand modules does not help.

The same device started with Debian Stretch has 4 MTD partitions enabled:

[    0.851760] nand: Samsung NAND 32MiB 3,3V 8-bit
[    0.856313] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512,
OOB size: 16
[    0.863602] Scanning device for bad blocks
[    1.095922] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.102165] Creating 4 MTD partitions on "orion_nand":
[    1.107309] 0x000000000000-0x0000000a0000 : "uboot"
[    1.112995] 0x0000000a0000-0x0000000b0000 : "env"
[    1.118397] 0x0000000c0000-0x0000005c0000 : "uimage"
[    1.124306] 0x0000005c0000-0x000002000000 : "rootfs"
[    1.131105] mtd: device 3 (rootfs) set to be root filesystem

Kind regards,
Chris


Reply to: