Re: [sqlite] Porting Sqlite to MQX Operating system
Hi Geoff I am currently working on porting of SQLITE to MQX RTOS in MPC5125 Platform. I am trying to rewrite the sqlite_os_init() for MQX and I have taken Win32 VFS implementation as the reference. But I am not able to map all of the Win32 file system calls with that of MQX functions. Please advise me on the list of file system functions that can be implemented as part of VFS for MQX. Regards, Arun GeoffW wrote: > > hello > > I thought I had better update this and confess to my sins. Good job no one > is reading this thread as it is an embarassingly stupid mistake :rules: > > I cant believe I did this and then took so long to spot it. > > int sqlite3_os_init(void) > { > static sqlite3_vfs mqxVfs = { > 1, /* iVersion */ > 0, /* szOsFile ->ARRRGGGH <*/ > MAX_PATH, /* mxPathname */ > etc > > I started creating the ported file from osWin.c, I had quite a struggle > getting it to compile initially using CodeWarrior, so I was making several > temporary hacks to allow it to compile, which I then revisited later to > correct. I had replaced the sizeof(winFile) with a zero, and then forgot > to change it to sizeof(mqxFile). > This caused a fun crash down in the bowels of the paging code. > > Once I corrected this one liner it fixed the crash and sqlite is basically > up and running now. I still have a fair bit of work left to implement some > interface functions which are just dummy stubs at present, but I am making > progress now. > > Regards Geoff > > > > > -- View this message in context: http://old.nabble.com/Porting-Sqlite-to-MQX-Operating-system-tp27792715p35333161.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] Porting Sqlite to MQX Operating system
Hi Geoff I am currently working on porting of SQLITE to MQX RTOS in MPC5125 Platform. I am trying to rewrite the sqlite_os_init() for MQX and I have taken Win32 VFS implementation as the reference. But I am not able to map all of the Win32 file system calls with that of MQX functions. Please advise me on the list of file system functions that can be implemented as part of VFS for MQX. Regards, Arun GeoffW wrote: > > hello > > I thought I had better update this and confess to my sins. Good job no one > is reading this thread as it is an embarassingly stupid mistake :rules: > > I cant believe I did this and then took so long to spot it. > > int sqlite3_os_init(void) > { > static sqlite3_vfs mqxVfs = { > 1, /* iVersion */ > 0, /* szOsFile ->ARRRGGGH <*/ > MAX_PATH, /* mxPathname */ > etc > > I started creating the ported file from osWin.c, I had quite a struggle > getting it to compile initially using CodeWarrior, so I was making several > temporary hacks to allow it to compile, which I then revisited later to > correct. I had replaced the sizeof(winFile) with a zero, and then forgot > to change it to sizeof(mqxFile). > This caused a fun crash down in the bowels of the paging code. > > Once I corrected this one liner it fixed the crash and sqlite is basically > up and running now. I still have a fair bit of work left to implement some > interface functions which are just dummy stubs at present, but I am making > progress now. > > Regards Geoff > > > > > -- View this message in context: http://old.nabble.com/Porting-Sqlite-to-MQX-Operating-system-tp27792715p35333159.html Sent from the SQLite mailing list archive at Nabble.com. ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users