Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS are built
@ 2007-01-23 22:34 Ulf Samuelsson
  2007-01-24  0:07 ` Erik Andersen
  0 siblings, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2007-01-23 22:34 UTC (permalink / raw)
  To: buildroot

Building a file sysrtem will fail if the mtd tools are not
available. THis patch ensure MTD is selected if
either of ext2/cramfs/squashfs are selected.

Best Regards
Ulf Samuelsson



-------------- next part --------------
A non-text attachment was scrubbed...
Name: target_cramfs_squashfs_ext2_Config.in.patch
Type: text/x-patch
Size: 1656 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070123/cc873888/attachment.bin 

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

* [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS are built
  2007-01-23 22:34 [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS are built Ulf Samuelsson
@ 2007-01-24  0:07 ` Erik Andersen
  2007-01-24  1:18   ` Ulf Samuelsson
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Andersen @ 2007-01-24  0:07 UTC (permalink / raw)
  To: buildroot

On Tue Jan 23, 2007 at 11:34:48PM +0100, Ulf Samuelsson wrote:
> Building a file sysrtem will fail if the mtd tools are not
> available. THis patch ensure MTD is selected if either of
> ext2/cramfs/squashfs are selected.

Nak.  There are a great many situations where people use ext2
and/or cramfs and/or squashfs without wanting to also use MTD...
I happen to use all of them without wanting MTD at various times.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

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

* [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS are built
  2007-01-24  0:07 ` Erik Andersen
@ 2007-01-24  1:18   ` Ulf Samuelsson
  2007-01-24 22:57     ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2007-01-24  1:18 UTC (permalink / raw)
  To: buildroot

Erik Andersen wrote:
> On Tue Jan 23, 2007 at 11:34:48PM +0100, Ulf Samuelsson wrote:
>> Building a file sysrtem will fail if the mtd tools are not
>> available. THis patch ensure MTD is selected if either of
>> ext2/cramfs/squashfs are selected.
>
> Nak.  There are a great many situations where people use ext2
> and/or cramfs and/or squashfs without wanting to also use MTD...
> I happen to use all of them without wanting MTD at various times.
>
> -Erik

Hmm,

The intention is, that if ext2/squashfs/cramfs etc is selected,
you ensure you build the  MTD utilities for the *host*.

$ mkfs.ext2 etc.

Not that you put the MTD utilities into the root file system.
How do I do what I intended then?
(I hope building the host tools is not inconvenient).


Best Regards,
Ulf Samuelsson
ulf at atmel.com
GSM:  +46 (706) 22 44 57
Tel:     +46  (8) 441 54 22
Fax:     +46 (8) 441 54 29
Mail: Box 2033  174 02 Sundbyberg
Visit: Kavalleriv?gen 24
          174 58 Sundbyberg'
Sweden

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

* [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS are built
  2007-01-24  1:18   ` Ulf Samuelsson
@ 2007-01-24 22:57     ` Bernhard Fischer
  2007-01-24 23:51       ` [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt Ulf Samuelsson
  0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-01-24 22:57 UTC (permalink / raw)
  To: buildroot

On Wed, Jan 24, 2007 at 02:18:07AM +0100, Ulf Samuelsson wrote:
>Erik Andersen wrote:
>> On Tue Jan 23, 2007 at 11:34:48PM +0100, Ulf Samuelsson wrote:
>>> Building a file sysrtem will fail if the mtd tools are not
>>> available. THis patch ensure MTD is selected if either of
>>> ext2/cramfs/squashfs are selected.
>>
>> Nak.  There are a great many situations where people use ext2
>> and/or cramfs and/or squashfs without wanting to also use MTD...
>> I happen to use all of them without wanting MTD at various times.
>>
>> -Erik
>
>Hmm,
>
>The intention is, that if ext2/squashfs/cramfs etc is selected,
>you ensure you build the  MTD utilities for the *host*.

What specific failure do you see?


Since you seem to use cramfs, may i ask you to look if these patches are ok?
http://busybox.net/bugs/view.php?id=512
http://busybox.net/bugs/view.php?id=1027
>
>$ mkfs.ext2 etc.
>
>Not that you put the MTD utilities into the root file system.
>How do I do what I intended then?
>(I hope building the host tools is not inconvenient).

I do not want to download nor build a package that i do not need..

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

* [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt
  2007-01-24 22:57     ` Bernhard Fischer
@ 2007-01-24 23:51       ` Ulf Samuelsson
  2007-01-25  8:46         ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Ulf Samuelsson @ 2007-01-24 23:51 UTC (permalink / raw)
  To: buildroot

>>> Nak.  There are a great many situations where people use ext2
>>> and/or cramfs and/or squashfs without wanting to also use MTD...
>>> I happen to use all of them without wanting MTD at various times.
>>>
>>> -Erik
>>
>> Hmm,
>>
>> The intention is, that if ext2/squashfs/cramfs etc is selected,
>> you ensure you build the  MTD utilities for the *host*.
>
> What specific failure do you see?
>

There are no mkfs.jffs2 application on the host, so it fails.


>
> Since you seem to use cramfs, may i ask you to look if these patches
> are ok? http://busybox.net/bugs/view.php?id=512
> http://busybox.net/bugs/view.php?id=1027
>>

I only use ext2 and jffs2 but this seemed to be a generic problem.

>> $ mkfs.ext2 etc.
>>
>> Not that you put the MTD utilities into the root file system.
>> How do I do what I intended then?
>> (I hope building the host tools is not inconvenient).
>
> I do not want to download nor build a package that i do not need..

How can you create an ext2/cramfs/squashfs if you have no
application on your host that takes a directory and generates the fs????



Best Regards,
Ulf Samuelsson
ulf at atmel.com
GSM:  +46 (706) 22 44 57
Tel:     +46  (8) 441 54 22
Fax:     +46 (8) 441 54 29
Mail: Box 2033  174 02 Sundbyberg
Visit: Kavalleriv?gen 24
          174 58 Sundbyberg'
Sweden

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

* [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt
  2007-01-24 23:51       ` [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt Ulf Samuelsson
@ 2007-01-25  8:46         ` Bernhard Fischer
  0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-01-25  8:46 UTC (permalink / raw)
  To: buildroot

On Thu, Jan 25, 2007 at 12:51:12AM +0100, Ulf Samuelsson wrote:
>>>>Nak.  There are a great many situations where people use ext2
>>>>and/or cramfs and/or squashfs without wanting to also use MTD...
>>>>I happen to use all of them without wanting MTD at various times.
>>>>
>>>>-Erik
>>>
>>>Hmm,
>>>
>>>The intention is, that if ext2/squashfs/cramfs etc is selected,
>>>you ensure you build the  MTD utilities for the *host*.
>>
>>What specific failure do you see?
>>
>
>There are no mkfs.jffs2 application on the host, so it fails.

How does an eventual missing mkfs.jffs2 inhibit the generation of an
ext2 image?
Can you paste the error you were getting?

>>>$ mkfs.ext2 etc.
>>>
>>>Not that you put the MTD utilities into the root file system.
>>>How do I do what I intended then?
>>>(I hope building the host tools is not inconvenient).
>>
>>I do not want to download nor build a package that i do not need..
>
>How can you create an ext2/cramfs/squashfs if you have no
>application on your host that takes a directory and generates the fs????

See above. Perhaps you ment to select e2fsprogs for the ext2 filesystem
iff the host doesn't have an mkfs2? But then we seem to use genext2fs so
there is no need for an mkfs.ext2 installed on the host that i can see.

genext2fs should live in the TOOL_BUILD_DIR and not in the BUILD_DIR,
btw.

The BR2_TARGET_ROOTFS_JFFS2 already builds an host-mtd automatically, so
again this works (i did try this sometimes ago, it does work indeed).
$ grep  _MTD target/jffs2/Config.in -B2
        bool "jffs2 root filesystem"
        default n
        select BR2_PACKAGE_MTD
$ grep -e mtd-host$ target/jffs2/jffs2root.mk 
$(JFFS2_TARGET): host-fakeroot makedevs mtd-host

Again, paste the error you were seeing, please.

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

end of thread, other threads:[~2007-01-25  8:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 22:34 [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS are built Ulf Samuelsson
2007-01-24  0:07 ` Erik Andersen
2007-01-24  1:18   ` Ulf Samuelsson
2007-01-24 22:57     ` Bernhard Fischer
2007-01-24 23:51       ` [Buildroot] [PATCH] Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt Ulf Samuelsson
2007-01-25  8:46         ` Bernhard Fischer

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