download rootfs to microSD error

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

download rootfs to microSD error

跳至解决方案
1,740 次查看
caohaifeng
Contributor IV

Hi,All,

I succeed to build fsl gnome release package. But I have problem when download rootfs to microSD.

The attachment is my batch file,which has three stages.

first, fdisk microSD,

then, download u_boot.bin and u_zimage by dd command,

the last, mount rootfs to microSD.

 

When copy rootfs files to microSD, an error occurred. The error information is described below.

cp: cannot create directory `/home/chf/mountpoint/usr/share/sgml': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/share/fonts': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/share/applications': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/share/info': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/share/themes': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/share/application-registry': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/share/pixmaps': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/bin': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/src': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/libexec': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/lib': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/var': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/info': No space left on device

cp: cannot create directory `/home/chf/mountpoint/usr/etc': No space left on device

 


I have modified export TMPFS_SIZE="8192k" in /etc/rc.d/rc.conf. It seems that the block for rootfs is not enough.

I used 4G microSD, and I have tried to usd MFG to download files. error informatin is push mmcblk0p1.

How to solve this problem?


Regards,

Haifeng

Original Attachment has been moved to: dd_mircoSD.sh

标签 (2)
0 项奖励
回复
1 解答
1,352 次查看
VladanJovanovic
NXP Employee
NXP Employee

Apparently you create your partition with first cylinder set to 8192. For some SD cards that may be close to end of card already.

Suggest to fix (or check) that. May be better to use "parted" for formatting SD card, as it allows to specify offsets and sizes in MB.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,353 次查看
VladanJovanovic
NXP Employee
NXP Employee

Apparently you create your partition with first cylinder set to 8192. For some SD cards that may be close to end of card already.

Suggest to fix (or check) that. May be better to use "parted" for formatting SD card, as it allows to specify offsets and sizes in MB.

0 项奖励
回复
1,352 次查看
caohaifeng
Contributor IV

Hi,Vladan,

You are right. It must be set cylinder not sector when I fdisk microSD.

I re-create partition with first sector set to 8192. There is no error when I use batch file to download rootfs.

Thank you.

Haifeng

0 项奖励
回复