trouble with ext2 filesystem
Hi all
I notice a problem of the generated filesystem
MACHINE = "qemux86"
DISTRO = "kaeilos"IMAGE_FSTYPES = "ext2"IMAGE_ROOTFS_SIZE = "102400"
building console-image I obtain a .ext2 filesystem with
Free blocks: 89357 Free inodes: 87
notice ... only 87 free inodes !!!
after my small and trial patch this is the result
Free blocks: 86302 Free inodes: 24527
maybe 4096 could be too small ... maybe 10k could be good, your choice.
At now I modify qemux86.conf cause usually EXTRA_IMAGECMD is in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.
thanks in advance
Signature · 2 lines
/------------------------------------------------\ | Alessandro Gardich : gremlin#gremlin!it |
Quoted 1 line
------------------------------------------------<
| I never saw a wild thing sorry for itself. | | A small bird will drop frozen dead from a bough | | without ever having felt sorry for itself. |
\------------------------------------------------/
conf/machine/qemux86.conf +0 -0
@@ -16,3 +16,5 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-rp"
GLIBC_ADDONS = "nptl"GLIBC_EXTRA_OECONF = "--with-tls"
+
+EXTRA_IMAGECMD_ext2 = "-i 4096"
Quoted 4 lines · Alessandro GARDICH
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.
The distro config probably is the right place for this. After all, the number of inodes you need depends primarily on the number of files that you're going to ship in the rootfs, and that in turn is primarily influenced by the DISTRO's policies rather than by any inherent aspect of the MACHINE.
The other uses of EXTRA_IMAGECMD that I guess you're thinking of are mostly to do with jffs2 parameters, which are rather different in that they're determined by the specifics of the hardware in use and hence do go with the MACHINE rather than the DISTRO.
p.
Quoted 16 lines · Phil Blundell
Quoted 3 lines · Alessandro GARDICH
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.The distro config probably is the right place for this. After all, the number of inodes you need depends primarily on the number of files that you're going to ship in the rootfs, and that in turn is primarily influenced by the DISTRO's policies rather than by any inherent aspect of the MACHINE.
The other uses of
EXTRA_IMAGECMDthat I guess you're thinking of are mostly to do with jffs2 parameters, which are rather different in that they're determined by the specifics of the hardware in use and hence do go with the MACHINE rather than the DISTRO.
Quoted 8 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
true, reform the patch for kaeilos.conf
Signature · 2 lines
/------------------------------------------------\ | Alessandro Gardich : gremlin#gremlin!it |
Quoted 1 line
------------------------------------------------<
| I never saw a wild thing sorry for itself. | | A small bird will drop frozen dead from a bough | | without ever having felt sorry for itself. |
\------------------------------------------------/
conf/distro/kaeilos.conf +0 -0
@@ -42,6 +42,8 @@ DISTRO_TYPE ?= "debug"
# Also, it appears that no locales fit in 16Mb for now. "C" locale rules! IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
+# increase inode/block ratio for ext2 filesystem +EXTRA_IMAGECMD_ext2 = "-i 4096"
# set feed path variables
FEED_BASEPATH = "feeds/2008/${ANGSTROM_PKG_FORMAT}/${LIBC}/"Quoted 16 lines · Phil Blundell
Quoted 3 lines · Alessandro GARDICH
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.The distro config probably is the right place for this. After all, the number of inodes you need depends primarily on the number of files that you're going to ship in the rootfs, and that in turn is primarily influenced by the DISTRO's policies rather than by any inherent aspect of the MACHINE.
The other uses of
EXTRA_IMAGECMDthat I guess you're thinking of are mostly to do with jffs2 parameters, which are rather different in that they're determined by the specifics of the hardware in use and hence do go with the MACHINE rather than the DISTRO.
Quoted 8 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
true, reform the patch for kaeilos.conf
Signature · 2 lines
/------------------------------------------------\ | Alessandro Gardich : gremlin#gremlin!it |
Quoted 1 line
------------------------------------------------<
| I never saw a wild thing sorry for itself. | | A small bird will drop frozen dead from a bough | | without ever having felt sorry for itself. |
\------------------------------------------------/
conf/distro/kaeilos.conf +0 -0
@@ -42,6 +42,8 @@ DISTRO_TYPE ?= "debug"
# Also, it appears that no locales fit in 16Mb for now. "C" locale rules! IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
+# increase inode/block ratio for ext2 filesystem +EXTRA_IMAGECMD_ext2 = "-i 4096"
# set feed path variables
FEED_BASEPATH = "feeds/2008/${ANGSTROM_PKG_FORMAT}/${LIBC}/"Quoted 16 lines · Phil Blundell
Quoted 3 lines · Alessandro GARDICH
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.The distro config probably is the right place for this. After all, the number of inodes you need depends primarily on the number of files that you're going to ship in the rootfs, and that in turn is primarily influenced by the DISTRO's policies rather than by any inherent aspect of the MACHINE.
The other uses of
EXTRA_IMAGECMDthat I guess you're thinking of are mostly to do with jffs2 parameters, which are rather different in that they're determined by the specifics of the hardware in use and hence do go with the MACHINE rather than the DISTRO.
Quoted 8 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
true, reform the patch for kaeilos.conf
Signature · 2 lines
/------------------------------------------------\ | Alessandro Gardich : gremlin#gremlin!it |
Quoted 1 line
------------------------------------------------<
| I never saw a wild thing sorry for itself. | | A small bird will drop frozen dead from a bough | | without ever having felt sorry for itself. |
\------------------------------------------------/
conf/distro/kaeilos.conf +0 -0
@@ -42,6 +42,8 @@ DISTRO_TYPE ?= "debug"
# Also, it appears that no locales fit in 16Mb for now. "C" locale rules! IMAGE_LINGUAS = '${@base_less_or_equal("ROOT_FLASH_SIZE", "16", "", "en-us", d)}'
+# increase inode/block ratio for ext2 filesystem +EXTRA_IMAGECMD_ext2 = "-i 4096"
# set feed path variables
FEED_BASEPATH = "feeds/2008/${ANGSTROM_PKG_FORMAT}/${LIBC}/"Marco Cavallini
Acked-byAlessandro GARDICH ha scritto:
Quoted 20 lines
Hi all
I notice a problem of the generated filesystem
MACHINE = "qemux86"
DISTRO = "kaeilos"IMAGE_FSTYPES= "ext2"IMAGE_ROOTFS_SIZE= "102400"building console-image I obtain a .ext2 filesystem with
Free blocks: 89357 Free inodes: 87notice ... only 87 free inodes !!!
after my small and trial patch this is the result
Free blocks: 86302 Free inodes: 24527
Quoted 10 lines
maybe 4096 could be too small ... maybe 10k could be good, your choice.
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.thanks in advance
Thank you for the patch.
Quoted 36 lines · Marco Cavallini
Alessandro GARDICH ha scritto:
Quoted 20 lines
Hi all
I notice a problem of the generated filesystem
MACHINE = "qemux86"
DISTRO = "kaeilos"IMAGE_FSTYPES= "ext2"IMAGE_ROOTFS_SIZE= "102400"building console-image I obtain a .ext2 filesystem with
Free blocks: 89357 Free inodes: 87notice ... only 87 free inodes !!!
after my small and trial patch this is the result
Free blocks: 86302 Free inodes: 24527Quoted 11 lines
maybe 4096 could be too small ... maybe 10k could be good, your choice.
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash size
and erase size). I'm not sure if is the right place. Probably in the
distro configuration could be better.thanks in advance
Thank you for the patch.
Quoted 9 lines
Acked-by Marco Cavallini <[email protected]>_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
nope ... my mistake ... the patch to ack is the other, that patch kaeilos.conf and not qemux86.conf
Signature · 2 lines
/-------------------------------------------------------------\ | Alessandro Gardich : [email protected] |
Quoted 1 line
-------------------------------------------------------------<
| I never saw a wild thing sorry for itself. | | A small bird will drop frozen dead from a bough | | without ever having felt sorry for itself. |
\-------------------------------------------------------------/
Marco Cavallini
Acked-byAlessandro GARDICH ha scritto:
Quoted 22 lines
Quoted 21 lines · Phil Blundell
Quoted 4 lines · Alessandro GARDICH
At now I modify qemux86.conf cause usually
EXTRA_IMAGECMDis in the machine config file, but to add hardware specific parameters (flash
size and erase size). I'm not sure if is the right place. Probably
in the distro configuration could be better.The distro config probably is the right place for this. After all, the number of inodes you need depends primarily on the number of files that you're going to ship in the rootfs, and that in turn is primarily influenced by the DISTRO's policies rather than by any inherent aspect of the MACHINE.
The other uses of
EXTRA_IMAGECMDthat I guess you're thinking of are mostly to do with jffs2 parameters, which are rather different in that they're determined by the specifics of the hardware in use and hence do go with the MACHINE rather than the DISTRO.p.
Quoted 10 lines
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-develtrue, reform the patch for kaeilos.conf
Thank you for the patch.