From: Mauro Condarelli <mc5686@mclink.it>
To: Richard Weinberger <richard.weinberger@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: mtdpart add/del usage
Date: Fri, 27 Sep 2019 17:29:38 +0200 [thread overview]
Message-ID: <8d6e58f6-de92-872c-ec2a-8ef5a1b4d492@mclink.it> (raw)
In-Reply-To: <CAFLxGvy67vrX9t==UK5U+P+LW=h0aGt_MGFFfAvCspi9GnayRQ@mail.gmail.com>
On 9/27/19 4:31 PM, Richard Weinberger wrote:
> On Fri, Sep 27, 2019 at 3:21 PM Mauro Condarelli <mc5686@mclink.it> 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/
next prev parent reply other threads:[~2019-09-27 15:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 13:21 mtdpart add/del usage Mauro Condarelli
2019-09-27 14:31 ` Richard Weinberger
2019-09-27 15:29 ` Mauro Condarelli [this message]
2019-09-28 16:07 ` Mauro Condarelli
2019-09-28 22:48 ` Richard Weinberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8d6e58f6-de92-872c-ec2a-8ef5a1b4d492@mclink.it \
--to=mc5686@mclink.it \
--cc=linux-mtd@lists.infradead.org \
--cc=richard.weinberger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).