USB stops working after copy a large file

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

USB stops working after copy a large file

2,024 次查看
chenkongjun
Contributor I

Hi,

I plugin a USB memory on i.MX257-based board. It is detected and seems to work.

After mount USB to /mnt/usb,I start to test by loop copy a testfile from /mnt/usb folder

to  /mnt/usb/temp folder.when the testfile size is over than 1M bytes,I/O error occurs

and it stops working(unmounts itself)  after a while.

by the way,the linux kernel version is 2.6.28.

See the attached error log for more information. Appreciate any help to solve this trouble

Best Regards

标签 (1)
0 项奖励
回复
4 回复数

1,861 次查看
Yuri
NXP Employee
NXP Employee

To be fully on safe side, please double check if oscillator provides correct frequency.

Sometimes it affects large file transfer, since USB is frequency sensitive.

~Yuri.

0 项奖励
回复

1,861 次查看
fabio_estevam
NXP Employee
NXP Employee

Yes, I would also recommend you using a more recent kernel.

You can try the latest stable 3.16.2.

1,861 次查看
igorpadykov
NXP Employee
NXP Employee

Hi chen

first I would highly suggest to move to more new kernel,

since it has better memory management

L2.6.31_09.12.00_SDK_SOURCE : Linux 2.6.31 Source Code

Second from log seems that this may be caused also by hardware, since

big size data transfer causes big noise on system, so additionally I would suggest to

test memory. Just for testing you may wish to decrease operating frequency (procesor and

memory) and test if issue will persist. Probably you can change memory stick, use

well known vendor.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

1,861 次查看
chenkongjun
Contributor I

Hi igorpadykov

thank you for the reply.

In this project ,we have finished a lot of interface test except USB.

so  recompile kernel is not the best way.

in order to find out the reason,i'll try to test by using a more recent  kernel

0 项奖励
回复