Hi.
I'm trying to use the mkfs.ext3 command on a sabre SD board (to format the 8GB flash).
My first question is how to get the mkfs.ext3 (or ext2 and ext4) into the image (using Yocto)
Right now I tried to include e2fsprogs in my local.conf (in CORE_IMAGE_EXTRA_INSTALL) plus the bb-file for the image (in this case core-image-base).
I could see that it included the mkfs.ext3 files in my build, but I found some in directory:
./build/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/e2fsprogs/1.42.8-r0/packages-split/e2fsprogs-mke2fs/sbin
So I tried to use these ones.
The problem I see is that it takes forever to format the flash, after roughly 2 hours it has format half of the flash.
Anyone who has experience with this application?
Thanks,
Niklas
Solved! Go to Solution.
I finally had time to time to look at this, using information from the patch in previous response (didn't use all patches, just the first one)
I changed following line in sdhci.c
mmc->max_discard_to = (1 << 27) / host->timeout_clk;
to
mmc->max_discard_to = (1 << 28) / host->timeout_clk;
After this fix, it took around 1 minute to format the flash.
I am not sure which feature has this command but an SDK image has it
EXTRA_IMAGE_FEATURES += "dbg-pkgs \
dev-pkgs \
tools-sdk \
tools-debug \
tools-profile \
debug-tweaks"
Leo
Hi Leo.
I downloaded the source code and compiled it on the board (just to make sure it was compiled correctly).
But it still took roughly 3 house to format the 8GB flash on the Sabre SD board.
But I got a link from the meta-freescale mailing list :[PATCH 0/6] mmc: sdhci: a few fixes on timeout and max_discard_to — ARM, OMAP, Xscale Linux Kernel
I'll try this on Monday to see if it fixes the problem.
Best regards,
Niklas
I finally had time to time to look at this, using information from the patch in previous response (didn't use all patches, just the first one)
I changed following line in sdhci.c
mmc->max_discard_to = (1 << 27) / host->timeout_clk;
to
mmc->max_discard_to = (1 << 28) / host->timeout_clk;
After this fix, it took around 1 minute to format the flash.