mkfs command

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mkfs command

Jump to solution
3,577 Views
niklasmolin
Senior Contributor I

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

Labels (2)
0 Kudos
Reply
1 Solution
2,197 Views
niklasmolin
Senior Contributor I

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.

View solution in original post

0 Kudos
Reply
3 Replies
2,197 Views
LeonardoSandova
Specialist I

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

0 Kudos
Reply
2,197 Views
niklasmolin
Senior Contributor I

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

0 Kudos
Reply
2,198 Views
niklasmolin
Senior Contributor I

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.

0 Kudos
Reply