download rootfs to microSD error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

download rootfs to microSD error

ソリューションへジャンプ
1,728件の閲覧回数
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,340件の閲覧回数
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,341件の閲覧回数
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,340件の閲覧回数
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 件の賞賛
返信