FL2440在烧写nand flash的时候,出错[error:file size error]

我解决了这个问题,我的机器是Ubuntu的,然后装了个VirtualBox,在VirtualBox中装了个XP,是在XP中使用DNW烧写文件的,并且文件是通过VirtualBox的共享工具得到的。
只要把文件考到虚拟机上就可以了。
我是在mini6410的论坛上找到的答案
Looks like this is some kind of problem with reading the file through a
folder share inside a VirtualBox XP client.

Here's the source of the error

# ReadFile(hFile,(void *)(txBuf+8),fileSize,&txBufSize,NULL);   
#     if(txBufSize!=fileSize)      
#     {   
#         EB_Printf(TEXT("[ERROR:File Size Error]/n") );   
#     return;   
#     }  

So it looks like ReadFile isn't reading it all in in one go, and so the
error is triggered. I'm guessing this could be improved to try to read the
file again?

Anyway simple solution, move the .img file into the virtual machine, and it
works.

Just so people know if they come across the same problem.
http://www.friendlyarm.net/forum/topic/654

TOP

我解决了这个问题,我的机器是Ubuntu的,然后装了个VirtualBox,在VirtualBox中装了个XP,是在XP中使用DNW烧写文件的,并且文件是通过VirtualBox的共享工具得到的。
只要把文件考到虚拟机上就可以了。
我是在mini6410的论坛上找到的答案
Looks like this is some kind of problem with reading the file through a
folder share inside a VirtualBox XP client.

Here's the source of the error

# ReadFile(hFile,(void *)(txBuf+8),fileSize,&txBufSize,NULL);   
#     if(txBufSize!=fileSize)      
#     {   
#         EB_Printf(TEXT("[ERROR:File Size Error]/n") );   
#     return;   
#     }  

So it looks like ReadFile isn't reading it all in in one go, and so the
error is triggered. I'm guessing this could be improved to try to read the
file again?

Anyway simple solution, move the .img file into the virtual machine, and it
works.

Just so people know if they come across the same problem.
http://www.friendlyarm.net/forum/topic/654

TOP

我解决了这个问题,我的机器是Ubuntu的,然后装了个VirtualBox,在VirtualBox中装了个XP,是在XP中使用DNW烧写文件的,并且文件是通过VirtualBox的共享工具得到的。
只要把文件考到虚拟机上就可以了。
我是在mini6410的论坛上找到的答案
Looks like this is some kind of problem with reading the file through a
folder share inside a VirtualBox XP client.

Here's the source of the error

# ReadFile(hFile,(void *)(txBuf+8),fileSize,&txBufSize,NULL);   
#     if(txBufSize!=fileSize)      
#     {   
#         EB_Printf(TEXT("[ERROR:File Size Error]/n") );   
#     return;   
#     }  

So it looks like ReadFile isn't reading it all in in one go, and so the
error is triggered. I'm guessing this could be improved to try to read the
file again?

Anyway simple solution, move the .img file into the virtual machine, and it
works.

Just so people know if they come across the same problem.
http://www.friendlyarm.net/forum/topic/654

http://bbs.witech.com.cn/thread-3771-1-1.htm

 

该问题我以为是bootloader的问题呢,结果找半天bootloader的代码也没有发现“error:file size error”这句。然后到网上搜,最后有网友遇到过类似问题,告诉大家,原来是虚拟机使用共享文件夹造成的。我想烧写的文件在共享文件夹内,因此打印出了这个错误。结果我把文件从共享文件夹中拷贝到虚拟机中,也就是没有用共享文件夹,问题就解决了。

你可能感兴趣的:(FL2440在烧写nand flash的时候,出错[error:file size error])