mkfs command

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

mkfs command

跳至解决方案
4,613 次查看
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

标签 (2)
0 项奖励
回复
1 解答
3,233 次查看
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 项奖励
回复
3 回复数
3,233 次查看
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 项奖励
回复
3,233 次查看
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 项奖励
回复
3,234 次查看
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 项奖励
回复