QEMU-sparc can't open to file

Viewed 23

I am pretty new about QEMU. I am working on QEMU emulation for SPARC microcontroller in my virtual machine which is Ubuntu 20.04.3. I would like to read data from .raw file but fopen functions doesn't work.

I am using eclipse for compiler.

Code Example :

FILE *fake;

if((fake = fopen("/home/rtems/Desktop/file.raw","r"))== NULL){
    printf("File doesn't created !\n");
}

File path is correct. There is no doubt.

I am always getting same error even if I can try to open file for write.

Do I need to change something for file access or do I need to convert my raw binary file to another format to access?

0 Answers
Related