Skip to contentSkip to conversation

Select MTD before EXT2/CRAMFS/SQUASHFS are built

PATCH New Ulf Samuelsson 4 participants 6 messages Jan 23, 2007 – Jan 25, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Select MTD before EXT2/CRAMFS/SQUASHFS are built

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

#1 lore raw

PATCH 1/1 Select MTD before EXT2/CRAMFS/SQUASHFS are built

Quoted 3 lines · Ulf Samuelsson

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--

#2 lore raw

PATCH 1/1 Select MTD before EXT2/CRAMFS/SQUASHFS are built

Quoted 10 lines · Erik Andersen
Quoted 3 lines · Ulf Samuelsson

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

#3 lore raw

PATCH 1/1 Select MTD before EXT2/CRAMFS/SQUASHFS are built

Quoted 10 lines · Ulf Samuelsson
Quoted 9 lines · Erik Andersen
Quoted 3 lines · Ulf Samuelsson

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.

Quoted 6 lines
Quoted 1 line

-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

Quoted 6 lines
$ 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..

#4 lore raw

PATCH 1/1 Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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.

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

-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.

Quoted 5 lines

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

Quoted 1 line

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

Quoted 7 lines
Quoted 5 lines
$ 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

#5 lore raw

PATCH 1/1 Select MTD before EXT2/CRAMFS/SQUASHFS arebuilt

Quoted 8 lines · Ulf Samuelsson
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

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,

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

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?

Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
$ 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.