public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* How to generate a patch limited to MTD subsystem
@ 2006-08-02 14:14 llandre
  2006-08-02 14:38 ` Artem B. Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: llandre @ 2006-08-02 14:14 UTC (permalink / raw)
  To: linux-mtd

I'm facing the following problem.
I'm working on custom hardware with kernel 2.6.15. I suspect I need to 
update the MTD subsystem with latest sources. How to do that without 
migrating to latest kernel? In other words I need to generate a patch 
from latest MTD code against MTD code included in v2.6.15 kernel. Is it 
possible? How?


TIA,
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2@dave-tech.it

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to generate a patch limited to MTD subsystem
  2006-08-02 14:14 How to generate a patch limited to MTD subsystem llandre
@ 2006-08-02 14:38 ` Artem B. Bityutskiy
  2006-08-02 15:18   ` llandre
  0 siblings, 1 reply; 4+ messages in thread
From: Artem B. Bityutskiy @ 2006-08-02 14:38 UTC (permalink / raw)
  To: llandre; +Cc: linux-mtd

llandre wrote:
> I'm facing the following problem.
> I'm working on custom hardware with kernel 2.6.15. I suspect I need to 
> update the MTD subsystem with latest sources. How to do that without 
> migrating to latest kernel? In other words I need to generate a patch 
> from latest MTD code against MTD code included in v2.6.15 kernel. Is it 
> possible? How?

I'd do like this:

rm -rf linux-2.6.15/drivers/mtd
cp -r linux-latest/drivers/mtd linux-2.6.15/drivers/

rm linux-2.6.15/include/mtd
cp -r linux-latest/include/mtd linux-2.6.15/include/mtd

rm linux-2.6.15/include/linux/mtd
cp -r linux-latest/include/linux/mtd linux-2.6.15/include/linux/mtd

Then try to compile & run and resolve all problems. I suspect there are 
not going to be many of them.

-- 
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to generate a patch limited to MTD subsystem
  2006-08-02 14:38 ` Artem B. Bityutskiy
@ 2006-08-02 15:18   ` llandre
  2006-08-02 15:22     ` Artem B. Bityutskiy
  0 siblings, 1 reply; 4+ messages in thread
From: llandre @ 2006-08-02 15:18 UTC (permalink / raw)
  To: Artem B. Bityutskiy; +Cc: linux-mtd

> I'd do like this:
> 
> rm -rf linux-2.6.15/drivers/mtd
> cp -r linux-latest/drivers/mtd linux-2.6.15/drivers/
> 
> rm linux-2.6.15/include/mtd
> cp -r linux-latest/include/mtd linux-2.6.15/include/mtd
> 
> rm linux-2.6.15/include/linux/mtd
> cp -r linux-latest/include/linux/mtd linux-2.6.15/include/linux/mtd
> 
> Then try to compile & run and resolve all problems. I suspect there are 
> not going to be many of them.
> 

Hmm ... if I recall correctly MTD provides more stuff (JFFS2 for 
example), doesn't it?

-- 
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2@dave-tech.it

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to generate a patch limited to MTD subsystem
  2006-08-02 15:18   ` llandre
@ 2006-08-02 15:22     ` Artem B. Bityutskiy
  0 siblings, 0 replies; 4+ messages in thread
From: Artem B. Bityutskiy @ 2006-08-02 15:22 UTC (permalink / raw)
  To: llandre; +Cc: linux-mtd

On Wed, 2006-08-02 at 17:18 +0200, llandre wrote:
> Hmm ... if I recall correctly MTD provides more stuff (JFFS2 for 
> example), doesn't it?

If you need JFFS2 as well, do similar for fs/jffs2,
include/linux/jffs2*.

I don't know another way ...

In JFFS2 you'll probably meet more merging problems. There was an
RB-tree rework (special macros were introduced), and you may have
troubles compiling JFFS2 because of this. But this is solvable.

-- 
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-02 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02 14:14 How to generate a patch limited to MTD subsystem llandre
2006-08-02 14:38 ` Artem B. Bityutskiy
2006-08-02 15:18   ` llandre
2006-08-02 15:22     ` Artem B. Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox