USB stops working after copy a large file

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

USB stops working after copy a large file

777 Views
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

Labels (1)
0 Kudos
4 Replies

614 Views
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 Kudos

614 Views
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.

614 Views
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!

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

614 Views
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 Kudos