Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2011-01-06 Thread David Woodhouse
On Tue, 2010-12-14 at 11:51 -0800, Jason Lunz wrote: > > > Instead, you should solve this problem in UML code. I do not know how, > > but may be you can add readb/writeb there which actually do nothing or > > print a scary warning, or do BUG(), and let things which use them just > > fail run-time.

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-19 Thread Artem Bityutskiy
On Fri, 2010-12-17 at 22:08 -0600, Rob Landley wrote: > On Thursday 16 December 2010 09:18:31 Artem Bityutskiy wrote: > > On Wed, 2010-12-15 at 00:31 -0600, Rob Landley wrote: > > > That is awesome and I'm not finding any documentation on it... Ah: > > > > > > > > > http://wiki.maemo.org/Modifyi

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-18 Thread Rob Landley
On Thursday 16 December 2010 09:18:31 Artem Bityutskiy wrote: > On Wed, 2010-12-15 at 00:31 -0600, Rob Landley wrote: > > That is awesome and I'm not finding any documentation on it... Ah: > > > > > > http://wiki.maemo.org/Modifying_the_root_image#Block_device_emulating_an_ > >MTD_device > > > >

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-16 Thread Artem Bityutskiy
On Wed, 2010-12-15 at 00:31 -0600, Rob Landley wrote: > That is awesome and I'm not finding any documentation on it... Ah: > > > http://wiki.maemo.org/Modifying_the_root_image#Block_device_emulating_an_MTD_device > > Wow that's awkward. Let's see, that says... > > mknod /tmp/mtdblock0 b 3

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-16 Thread Anatolij Gustschin
On Tue, 14 Dec 2010 11:51:24 -0800 Jason Lunz wrote: ... > diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h > index a9e6ba4..3d9f7e0 100644 > --- a/include/linux/mtd/map.h > +++ b/include/linux/mtd/map.h > @@ -388,6 +388,15 @@ static inline map_word map_word_ff(struct map_info *map)

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-16 Thread Artem Bityutskiy
On Tue, 2010-12-14 at 11:51 -0800, Jason Lunz wrote: > On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: > > But I think your solution is a bit dirty, because it adds a great deal > > of little 'if HAS_IOMEM' and '#ifdef CONFIG_HAS_IOMEM' to many places. > > This is error-prone. >

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-15 Thread Rob Landley
On Tuesday 14 December 2010 19:19:05 Jason Lunz wrote: > On Tue, Dec 14, 2010 at 06:49:02PM -0600, Rob Landley wrote: > > The problem is that jffs2 is a filesystem, and thus something people > > would really like to be able to loopback mount, but it's hardwired to > > assume it's only ever stored o

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-15 Thread Geert Uytterhoeven
On Wed, Dec 15, 2010 at 02:19, Jason Lunz wrote: > On Tue, Dec 14, 2010 at 06:49:02PM -0600, Rob Landley wrote: >> The problem is that jffs2 is a filesystem, and thus something people would >> really like to be able to loopback mount, but it's hardwired to assume it's >> only ever stored on a cert

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Rob Landley
On Tuesday 14 December 2010 15:23:49 Jason Lunz wrote: > On one hand you've got uml, which simply doesn't have mmio. On the other > there's mtd, which began as a method for accessing hardware devices that > are often accessed using mmio. But then the mtd subsystem developed > emulations of that har

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Jason Lunz
On Tue, Dec 14, 2010 at 06:49:02PM -0600, Rob Landley wrote: > The problem is that jffs2 is a filesystem, and thus something people would > really like to be able to loopback mount, but it's hardwired to assume it's > only ever stored on a certain type of hardware, and thus requies incestuous >

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Rob Landley
On Tuesday 14 December 2010 14:01:33 Artem Bityutskiy wrote: > > > Instead, you should solve this problem in UML code. I do not know how, > > > but may be you can add readb/writeb there which actually do nothing or > > > print a scary warning, or do BUG(), and let things which use them just > > > f

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Geert Uytterhoeven
On Tue, Dec 14, 2010 at 21:01, Artem Bityutskiy wrote: > On Tue, 2010-12-14 at 11:51 -0800, Jason Lunz wrote: >> On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: >> > But I think your solution is a bit dirty, because it adds a great deal >> > of little 'if HAS_IOMEM' and '#ifdef C

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Jason Lunz
On one hand you've got uml, which simply doesn't have mmio. On the other there's mtd, which began as a method for accessing hardware devices that are often accessed using mmio. But then the mtd subsystem developed emulations of that hardware that are software based and thus don't require mmio. It'

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Artem Bityutskiy
On Tue, 2010-12-14 at 11:51 -0800, Jason Lunz wrote: > On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: > > But I think your solution is a bit dirty, because it adds a great deal > > of little 'if HAS_IOMEM' and '#ifdef CONFIG_HAS_IOMEM' to many places. > > This is error-prone. >

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Jason Lunz
On Tue, Dec 14, 2010 at 06:24:38PM +0200, Artem Bityutskiy wrote: > But I think your solution is a bit dirty, because it adds a great deal > of little 'if HAS_IOMEM' and '#ifdef CONFIG_HAS_IOMEM' to many places. > This is error-prone. The intent of that patch was to allow as much of the mtd subsy

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-14 Thread Artem Bityutskiy
On Tue, 2010-12-07 at 10:20 -0800, Jason Lunz wrote: > On Tue, Dec 07, 2010 at 10:39:41AM +0100, richard -rw- weinberger wrote: > > On Tue, Dec 7, 2010 at 8:29 AM, Jason Lunz wrote: > > > > > > Allow parts of drivers/mtd to compile on uml by pushing the HAS_IOMEM > > > dependencies down closer to

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-07 Thread Jason Lunz
On Tue, Dec 07, 2010 at 10:39:41AM +0100, richard -rw- weinberger wrote: > On Tue, Dec 7, 2010 at 8:29 AM, Jason Lunz wrote: > > > > Allow parts of drivers/mtd to compile on uml by pushing the HAS_IOMEM > > dependencies down closer to the parts of mtd that actually need it. > > This allows enough

Re: [uml-devel] [PATCH] mtd: allow mtd and jffs2 when ARCH=um

2010-12-07 Thread richard -rw- weinberger
On Tue, Dec 7, 2010 at 8:29 AM, Jason Lunz wrote: > > Allow parts of drivers/mtd to compile on uml by pushing the HAS_IOMEM > dependencies down closer to the parts of mtd that actually need it. > This allows enough of mtd to build to let jffs2 be used on uml. > > Signed-off-by: Jason Lunz > --- >