Re: mtdpart add/del usage

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

 




On 9/27/19 4:31 PM, Richard Weinberger wrote:
> On Fri, Sep 27, 2019 at 3:21 PM Mauro Condarelli <mc5686@xxxxxxxxx> wrote:
>> / # mtdpart del /dev/mtd3 3
>> mtdpart: error!: Failed to issue BLKPG ioctl
>>          error 22 (Invalid argument)
>> / # mtdpart del /dev/mtd3 4
>> mtdpart: error!: Failed to issue BLKPG ioctl
>>          error 22 (Invalid argument)
>> / # mtdpart del /dev/mtd3 2
>> mtdpart: error!: Failed to issue BLKPG ioctl
>>          error 22 (Invalid argument)
> Is /dev/mtd3 really the master partition?
No, it is definitely not.
It is the partition I wish to delete.
> IIRC you can only apply such changes on the mtd master
> partition.
That makes sense but, in spite of having "CONFIG_MTD_PARTITIONED_MASTER=y",
I see no "mtd master partition".

...

Please forget about that.
After a couple of reboots I actually have:

/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 01000000 00010000 "spi0.0"
mtd1: 00040000 00010000 "u-boot"
mtd2: 00010000 00010000 "u-boot-env"
mtd3: 00550000 00010000 "kernel"
mtd4: 00a50000 00010000 "filesystem"
mtd5: 00010000 00010000 "firmware"

and:

mtdpart del /dev/mtd0 3

works as expected.

I am unsure why I was unable to see the master device before, it *seems*
changing
just CONFIG_MTD_PARTITIONED_MASTER did not trigger right recompilation.
After a full kernel recompile I see it.

Sorry for the noise and
THANKS! for the help.

Mauro


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux