* MTD Flash Partition: change possible?
@ 2010-08-23 10:23 Arno Steffen
2010-08-23 10:53 ` Artem Bityutskiy
0 siblings, 1 reply; 6+ messages in thread
From: Arno Steffen @ 2010-08-23 10:23 UTC (permalink / raw)
To: linux-mtd
In my embedded system the Flash-partition table is compiled into kernel.
Is there a way to change partition table without booting a new kernel? How?
Background: I want to update an embedded system and change the size of
partitions. But tools as flash_eraseall and nandwrite use partitions
of the current kernel. If I want to change the size of the partitions,
this is impossible.
If I first flash a new kernel with new partition table, I have to
reboot and the system will not start, as the old partitioning scheme
is still active.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MTD Flash Partition: change possible?
2010-08-23 10:23 MTD Flash Partition: change possible? Arno Steffen
@ 2010-08-23 10:53 ` Artem Bityutskiy
2010-08-23 12:11 ` Arno Steffen
0 siblings, 1 reply; 6+ messages in thread
From: Artem Bityutskiy @ 2010-08-23 10:53 UTC (permalink / raw)
To: Arno Steffen; +Cc: linux-mtd
On Mon, 2010-08-23 at 12:23 +0200, Arno Steffen wrote:
> In my embedded system the Flash-partition table is compiled into kernel.
> Is there a way to change partition table without booting a new kernel? How?
>
> Background: I want to update an embedded system and change the size of
> partitions. But tools as flash_eraseall and nandwrite use partitions
> of the current kernel. If I want to change the size of the partitions,
> this is impossible.
> If I first flash a new kernel with new partition table, I have to
> reboot and the system will not start, as the old partitioning scheme
> is still active.
There were at least 2 patches. One from Nokia - it was ok, but a small
change was requested and the author disappeared. One was from Samsung -
I did not look at it so far. The patches were sent to the MTD mailing
list a month or 2 ago.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MTD Flash Partition: change possible?
2010-08-23 10:53 ` Artem Bityutskiy
@ 2010-08-23 12:11 ` Arno Steffen
2010-08-23 12:13 ` Artem Bityutskiy
0 siblings, 1 reply; 6+ messages in thread
From: Arno Steffen @ 2010-08-23 12:11 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
2010/8/23 Artem Bityutskiy <dedekind1@gmail.com>:
> On Mon, 2010-08-23 at 12:23 +0200, Arno Steffen wrote:
>> In my embedded system the Flash-partition table is compiled into kernel.
>> Is there a way to change partition table without booting a new kernel? How?
>>
>> Background: I want to update an embedded system and change the size of
>> partitions. But tools as flash_eraseall and nandwrite use partitions
>> of the current kernel. If I want to change the size of the partitions,
>> this is impossible.
>> If I first flash a new kernel with new partition table, I have to
>> reboot and the system will not start, as the old partitioning scheme
>> is still active.
>
> There were at least 2 patches. One from Nokia - it was ok, but a small
> change was requested and the author disappeared. One was from Samsung -
> I did not look at it so far. The patches were sent to the MTD mailing
> list a month or 2 ago.
>
> --
> Best Regards,
> Artem Bityutskiy (Артём Битюцкий)
>
>
Spasibo, Artem.
I found the Nokia Patch
http://lists.infradead.org/pipermail/linux-mtd/2010-June/030645.html
This seems to be done for OneNand, while I am using Nand.
Regarding the pathes: That are requests to change, so it is not for
sure that this is implemented in a new kernel?
I found this as an update to mtdutils.
http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html
Does this needs a new kernel to support this functions? I am using a 2.6.33.
Reading this, I think there is no solution for my current system.
Is there a way to show the startaddress of a partition? /proc/mtd
shows just size, not start address.
Regards
Arno
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MTD Flash Partition: change possible?
2010-08-23 12:11 ` Arno Steffen
@ 2010-08-23 12:13 ` Artem Bityutskiy
2010-08-23 13:09 ` Arno Steffen
0 siblings, 1 reply; 6+ messages in thread
From: Artem Bityutskiy @ 2010-08-23 12:13 UTC (permalink / raw)
To: Arno Steffen; +Cc: linux-mtd
On Mon, 2010-08-23 at 14:11 +0200, Arno Steffen wrote:
> 2010/8/23 Artem Bityutskiy <dedekind1@gmail.com>:
> > On Mon, 2010-08-23 at 12:23 +0200, Arno Steffen wrote:
> >> In my embedded system the Flash-partition table is compiled into kernel.
> >> Is there a way to change partition table without booting a new kernel? How?
> >>
> >> Background: I want to update an embedded system and change the size of
> >> partitions. But tools as flash_eraseall and nandwrite use partitions
> >> of the current kernel. If I want to change the size of the partitions,
> >> this is impossible.
> >> If I first flash a new kernel with new partition table, I have to
> >> reboot and the system will not start, as the old partitioning scheme
> >> is still active.
> >
> > There were at least 2 patches. One from Nokia - it was ok, but a small
> > change was requested and the author disappeared. One was from Samsung -
> > I did not look at it so far. The patches were sent to the MTD mailing
> > list a month or 2 ago.
> >
> > --
> > Best Regards,
> > Artem Bityutskiy (Артём Битюцкий)
> >
> >
>
> Spasibo, Artem.
>
> I found the Nokia Patch
> http://lists.infradead.org/pipermail/linux-mtd/2010-June/030645.html
> This seems to be done for OneNand, while I am using Nand.
No, it is not OneNAND-specific!
> Regarding the pathes: That are requests to change, so it is not for
> sure that this is implemented in a new kernel?
>
> I found this as an update to mtdutils.
> http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html
> Does this needs a new kernel to support this functions? I am using a 2.6.33.
Dunno, did not look at this.
> Reading this, I think there is no solution for my current system.
> Is there a way to show the startaddress of a partition? /proc/mtd
> shows just size, not start address.
I do not think we can change /proc/mtd, but isn't it easy to calculate
the start address using partition sizes?
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MTD Flash Partition: change possible?
2010-08-23 12:13 ` Artem Bityutskiy
@ 2010-08-23 13:09 ` Arno Steffen
2010-08-23 13:11 ` Artem Bityutskiy
0 siblings, 1 reply; 6+ messages in thread
From: Arno Steffen @ 2010-08-23 13:09 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
2010/8/23 Artem Bityutskiy <dedekind1@gmail.com>:
> On Mon, 2010-08-23 at 14:11 +0200, Arno Steffen wrote:
>> 2010/8/23 Artem Bityutskiy <dedekind1@gmail.com>:
>> > On Mon, 2010-08-23 at 12:23 +0200, Arno Steffen wrote:
>> >> In my embedded system the Flash-partition table is compiled into kernel.
>> >> Is there a way to change partition table without booting a new kernel? How?
>> >>
>> >> Background: I want to update an embedded system and change the size of
>> >> partitions. But tools as flash_eraseall and nandwrite use partitions
>> >> of the current kernel. If I want to change the size of the partitions,
>> >> this is impossible.
>> >> If I first flash a new kernel with new partition table, I have to
>> >> reboot and the system will not start, as the old partitioning scheme
>> >> is still active.
>> >
>> > There were at least 2 patches. One from Nokia - it was ok, but a small
>> > change was requested and the author disappeared. One was from Samsung -
>> > I did not look at it so far. The patches were sent to the MTD mailing
>> > list a month or 2 ago.
>> >
>> > --
>> > Best Regards,
>> > Artem Bityutskiy (Артём Битюцкий)
>> >
>> >
>>
>> Spasibo, Artem.
>>
>> I found the Nokia Patch
>> http://lists.infradead.org/pipermail/linux-mtd/2010-June/030645.html
>> This seems to be done for OneNand, while I am using Nand.
>
> No, it is not OneNAND-specific!
>
>> Regarding the pathes: That are requests to change, so it is not for
>> sure that this is implemented in a new kernel?
>>
>> I found this as an update to mtdutils.
>> http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html
>> Does this needs a new kernel to support this functions? I am using a 2.6.33.
>
> Dunno, did not look at this.
>
>> Reading this, I think there is no solution for my current system.
>> Is there a way to show the startaddress of a partition? /proc/mtd
>> shows just size, not start address.
>
> I do not think we can change /proc/mtd, but isn't it easy to calculate
> the start address using partition sizes?
>
> --
> Best Regards,
> Artem Bityutskiy (Артём Битюцкий)
>
>
If I check the git for mtd-utils, this pathes seems not to be
inserted. Do I have to patch manually?
http://git.infradead.org/mtd-utils.git
Calculating the address might work, but hasn't to be. It is not
forbidden to have "holes" in the partition table.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: MTD Flash Partition: change possible?
2010-08-23 13:09 ` Arno Steffen
@ 2010-08-23 13:11 ` Artem Bityutskiy
0 siblings, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2010-08-23 13:11 UTC (permalink / raw)
To: Arno Steffen; +Cc: linux-mtd
On Mon, 2010-08-23 at 15:09 +0200, Arno Steffen wrote:
> If I check the git for mtd-utils, this pathes seems not to be
> inserted. Do I have to patch manually?
> http://git.infradead.org/mtd-utils.git
Yes.
> Calculating the address might work, but hasn't to be. It is not
> forbidden to have "holes" in the partition table.
OK. Then I think you can introduce a sysfs attribute like:
/sys/class/mtd/mtd0/start
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-08-23 13:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-23 10:23 MTD Flash Partition: change possible? Arno Steffen
2010-08-23 10:53 ` Artem Bityutskiy
2010-08-23 12:11 ` Arno Steffen
2010-08-23 12:13 ` Artem Bityutskiy
2010-08-23 13:09 ` Arno Steffen
2010-08-23 13:11 ` Artem Bityutskiy
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).