[En-Nut-Discussion] PNUT on EIR

Andre Riesberg andre at riesberg-net.de
Sat Jul 3 13:04:19 CEST 2010


Harald Kipp schrieb:
> On 02.07.2010 17:52, Andre Riesberg wrote:
>   
>> int hvol = _open(path,_O_RDWR|_O_BINARY);
>>     
>
> Hi Andre,
>
> if the file doesn't exist, you need additional mode flags:
>
> http://en.wikipedia.org/wiki/Open_%28system_call%29
>
> Regards,
>
> Harald
>
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
>   
Hi Harald,

I don't try to open a file, I try to mount the volumen.
In your FTP example program are only this two flags. But I add _O_CREAT 
and tested agin. It still fails.
I am a little confused about this string:

"PNUT0:1/PHAT1"

What does this string mean?

I mount my SD-Card with this code fragment:

          char path[] = "MMC0:1/PHAT0";
          Log(1,"Mount partition %s",path);
          int hvol = _open(path,_O_RDWR|_O_BINARY);

And this works!

Greetings
André











More information about the En-Nut-Discussion mailing list