[En-Nut-Discussion] PNUT on EIR
Andre Riesberg
andre at riesberg-net.de
Fri Jul 2 17:52:16 CEST 2010
Hi all!
I try to use the PNUT files system on the EIR board.
This is the code I use:
{
int size = 1024;
Log(0,"Allocate %d kbyte memory for PNUT");
if (!NutSegBufInit(size * 1024)) LogResult(-1);
Log(0,"Register the PNUT block device");
if (LogResult(NutRegisterDevice(&devPnut,0,0)) >= 0) {
char path[] = "PNUT0:1/PHAT1";
Log(1,"Mount partition %s",path);
int hvol = _open(path,_O_RDWR|_O_BINARY);
LogResult(hvol);
}
}
LogResult is a function to send result messages to the console. Return
value is equal to the parameter.
NutSegBufInit and NutRegisterDevice is succesfull. The call to _open fails.
I also use MMC block device together with PHAT (MMC0:1/PHAT0) with a
quit simmilar code.
Any help would be nice!
Greetings
Andre
More information about the En-Nut-Discussion
mailing list