This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OSA_fileCreateFile OSA_fileWriteFileOffset failed!

Hi ,

I want to record  YUV buffer before algorithm process. So I use :

1. In SgxFrmcpyLink_drvDoProcessFrames() , I  create a file , save YUV buffer  to /home/root/rawImage/raw_xxx.YUV ;

OSA_fileCreateFile    OSA_fileWriteFile

but it is failed...

error log as below:

[HOST ] 47.840759 s: SRV: File create (/home/root/rawImage/raw_47836.YUV) failed !!! 
[HOST ] 47.840820 s: SRV: File write (/home/root/rawImage/raw_47836.YUV) failed !!! 
[FILE ] Writing to file [/home/root/rawImage/raw_47869.YUV] (2097152 bytes) ... ERROR 
[FILE ] Writing to file [/home/root/rawImage/raw_47869.YUV] (2097152 bytes) ... ERROR

2.In SgxFrmcpyLink_drvDoProcessFrames() , I  mount  a usb media , create a file , save YUV buffer  to /mnt/rawImage/raw_xxx.YUV;

system("mount /dev/sda1 /mnt")

OSA_fileCreateFile ,OSA_fileWriteFile to save 

It is failed....

what's wrong with this ?can u give some clues?

Best regards,

John