DNW File Size Error

Andrew Gatt
OK so i'm trying to put the latest zImage-A70 and qtopia root on my 128MB
board.

So far i've reflashed supervivi in NOR to the latest. I've then
repartitioned the NAND (required to get the latest kernel on) as mentioned
in another post.

press q to drop to shell
> part del kernel
> part del root
> part add kernel 0x00060000 0x00500000 0
> part add root 0x00560000 0x40000000 0
> part save

which lets me load the kernel, now when i press y to load the root fs DNW
simply displays [ERROR:File Size Error] and does nothing. Anyone else come
across this? DNW is configured to 0x30000000 as download address as per
instructions and the qtopia image is directly from this site.

I've also tried using
> ./s3c2410_boot_usb root_qtopia-128M.img 0x30000000

from linux, which starts but immediately stops doing anything and just
hangs.

Anyone know of a work around?

Andrew Gatt
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.

Harsha
Andrew,

Thanks for the info. Its indeed VirtualBox issue. I spent half a day on
finding the solution for filesytem download using DNW.