I want to add to my current "genimage.cfg" new partition "logs". So I added lines like bellow to my config file:
File "genimage.cfg":
image boot.vfat {
vfat {
files = {
"MLO",
"u-boot.img",
"uEnv.txt"
}
}
size = 2M
}
image sdcard.img {
hdimage {
}
partition boot {
partition-type = 0xC
bootable = "true"
image = "boot.vfat"
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext4"
}
partition home {
partition-type = 0x83
image = "home.ext3"
}
partition logs {
partition-type = 0x83
image = "logs.ext4"
}
}
image home.ext3 {
name = "home"
ext3 {}
size = 240M
}
image logs.ext4 {
name = "logs"
ext4 {}
size = 64M
}
But I got error during build image:
genext2fs: couldn't allocate a block (no free space)
hdimage(sdcard.img): could not generate logs.ext4
hdimage(sdcard.img): failed to generate sdcard.img
Makefile:625: recipe for target 'target-post-image' failed
What could I do to fix this error? The error is only related to the "logs" partition and its image because without them the image is built