* Mounting Entire Flash
@ 2009-09-24 10:14 Rahanesh
2009-09-24 13:05 ` Dennis McLeod
0 siblings, 1 reply; 4+ messages in thread
From: Rahanesh @ 2009-09-24 10:14 UTC (permalink / raw)
To: linux-mtd
Hi All,
Currently I have 4 mtd partitions in Flash. They are all seen under /dev
directory as mtd0 mtd1 mtd2 and mtd3.
mtd0-> Uboot + Itz Environment
mtd1-> JFFS
mtd2-> Config files
mtd3-> Not used
I am currently trying to implement Image upgradation.
I will need to update JFFS, uboot and Config files from Linux.
I am currently achieving this through flash_eraseall and dd command .
To Update U-boot First i will do a
flash_eraseall /dev/mtd0 and then
dd if=uboot.bin of=/dev/mtd0 count=size;
and similarly for all individual partitions.
But If i have a combined image as combined.bin how do i update the
entire flash .
Is it possible to see entire flash as /dev/mtd . i can very well
extract individual images from combined image and reflash to respective
partitions.
But it would be generic if we are able write to entire flash not to
individual partitions.
Is it possible to Write to entire flash as such.
Thanks
Rahanesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mounting Entire Flash
2009-09-24 10:14 Mounting Entire Flash Rahanesh
@ 2009-09-24 13:05 ` Dennis McLeod
2009-09-29 5:00 ` Rahanesh
0 siblings, 1 reply; 4+ messages in thread
From: Dennis McLeod @ 2009-09-24 13:05 UTC (permalink / raw)
To: Rahanesh; +Cc: linux-mtd
On Thu, 2009-09-24 at 15:44 +0530, Rahanesh wrote:
> Hi All,
>
> Currently I have 4 mtd partitions in Flash. They are all seen under /dev
> directory as mtd0 mtd1 mtd2 and mtd3.
>
> mtd0-> Uboot + Itz Environment
> mtd1-> JFFS
> mtd2-> Config files
> mtd3-> Not used
>
> I am currently trying to implement Image upgradation.
>
> I will need to update JFFS, uboot and Config files from Linux.
>
> I am currently achieving this through flash_eraseall and dd command .
>
> To Update U-boot First i will do a
>
> flash_eraseall /dev/mtd0 and then
> dd if=uboot.bin of=/dev/mtd0 count=size;
>
> and similarly for all individual partitions.
>
> But If i have a combined image as combined.bin how do i update the
> entire flash .
>
> Is it possible to see entire flash as /dev/mtd . i can very well
> extract individual images from combined image and reflash to respective
> partitions.
>
> But it would be generic if we are able write to entire flash not to
> individual partitions.
>
> Is it possible to Write to entire flash as such.
>
> Thanks
> Rahanesh
I always set up a partition that spans the entire flash chip..
mtd0 -> 0:ENTIRE_SIZE
mtd1 -> 0:+10M
mtd2 -> 10M:22M
...
-
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
= Dennis McLeod =
= Software Engineer =
= BittWare, Inc. =
= 603.226.0404 ext 514 =
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
** BittWare Celebrates 20 Years Delivering COTS Signal Processing Solutions 1989 - 2009 **
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Mounting Entire Flash
2009-09-24 13:05 ` Dennis McLeod
@ 2009-09-29 5:00 ` Rahanesh
2009-09-30 8:13 ` zheng shi
0 siblings, 1 reply; 4+ messages in thread
From: Rahanesh @ 2009-09-29 5:00 UTC (permalink / raw)
To: Dennis McLeod; +Cc: linux-mtd
Hi Dennis,
> On Thu, 2009-09-24 at 15:44 +0530, Rahanesh wrote:
>
>> Hi All,
>>
>> Currently I have 4 mtd partitions in Flash. They are all seen under /dev
>> directory as mtd0 mtd1 mtd2 and mtd3.
>>
>> mtd0-> Uboot + Itz Environment
>> mtd1-> JFFS
>> mtd2-> Config files
>> mtd3-> Not used
>>
>> I am currently trying to implement Image upgradation.
>>
>> I will need to update JFFS, uboot and Config files from Linux.
>>
>> I am currently achieving this through flash_eraseall and dd command .
>>
>> To Update U-boot First i will do a
>>
>> flash_eraseall /dev/mtd0 and then
>> dd if=uboot.bin of=/dev/mtd0 count=size;
>>
>> and similarly for all individual partitions.
>>
>> But If i have a combined image as combined.bin how do i update the
>> entire flash .
>>
>> Is it possible to see entire flash as /dev/mtd . i can very well
>> extract individual images from combined image and reflash to respective
>> partitions.
>>
>> But it would be generic if we are able write to entire flash not to
>> individual partitions.
>>
>> Is it possible to Write to entire flash as such.
>>
>> Thanks
>> Rahanesh
>>
>
> I always set up a partition that spans the entire flash chip..
>
> mtd0 -> 0:ENTIRE_SIZE
> mtd1 -> 0:+10M
> mtd2 -> 10M:22M
>
How do we achieve this? Should we edit /proc/mtd or
flash/driver code ?
Thanks
Rahanesh
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Mounting Entire Flash
2009-09-29 5:00 ` Rahanesh
@ 2009-09-30 8:13 ` zheng shi
0 siblings, 0 replies; 4+ messages in thread
From: zheng shi @ 2009-09-30 8:13 UTC (permalink / raw)
To: Rahanesh; +Cc: linux-mtd, Dennis McLeod
There's a kernel command line parameter called mtdparts.
You may refer to the comments in drivers/mtd/cmdlinepart.c.
On Tue, Sep 29, 2009 at 1:00 PM, Rahanesh <rahanesh@tataelxsi.co.in> wrote:
> Hi Dennis,
>
>> On Thu, 2009-09-24 at 15:44 +0530, Rahanesh wrote:
>>
>>>
>>> Hi All,
>>>
>>> Currently I have 4 mtd partitions in Flash. They are all seen under /dev
>>> directory as mtd0 mtd1 mtd2 and mtd3.
>>>
>>> mtd0-> Uboot + Itz Environment
>>> mtd1-> JFFS
>>> mtd2-> Config files
>>> mtd3-> Not used
>>>
>>> I am currently trying to implement Image upgradation.
>>>
>>> I will need to update JFFS, uboot and Config files from Linux.
>>>
>>> I am currently achieving this through flash_eraseall and dd command .
>>>
>>> To Update U-boot First i will do a
>>>
>>> flash_eraseall /dev/mtd0 and then
>>> dd if=uboot.bin of=/dev/mtd0 count=size;
>>>
>>> and similarly for all individual partitions.
>>>
>>> But If i have a combined image as combined.bin how do i update the
>>> entire flash .
>>>
>>> Is it possible to see entire flash as /dev/mtd . i can very well extract
>>> individual images from combined image and reflash to respective partitions.
>>>
>>> But it would be generic if we are able write to entire flash not to
>>> individual partitions.
>>>
>>> Is it possible to Write to entire flash as such.
>>>
>>> Thanks
>>> Rahanesh
>>>
>>
>> I always set up a partition that spans the entire flash chip..
>> mtd0 -> 0:ENTIRE_SIZE
>> mtd1 -> 0:+10M
>> mtd2 -> 10M:22M
>>
>
> How do we achieve this? Should we edit /proc/mtd or flash/driver code
> ?
>
> Thanks
> Rahanesh
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
--
Regards, Shizheng
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-30 8:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 10:14 Mounting Entire Flash Rahanesh
2009-09-24 13:05 ` Dennis McLeod
2009-09-29 5:00 ` Rahanesh
2009-09-30 8:13 ` zheng shi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox