RamDisk and FEPRom

– I work with QNX 4.25 on Arcom Elan 104NC (x86) at 30MHz.

I use RamDisk for save temporary data in files.
And, before the system reboot, I copy files from RamDisk
to FEPRom (From FEPROM to RamDisk at start up).
Some time, the files save are right and some the files
are corrupted.

It’s very strange … (I remenber the same thing with WinCE …)

Philippe Frossard     : REZIER 74890 FESSY (FRANCE)
Site Internet         : http://philippe.frossard.free.fr
Courrier Electronique : mailto:<philippe.frossard@free.fr>

is the FEPROM ferroram? ( http://www.ramtron.com ) if so there are some gotchas in using it ( reads are distructive ). is this on a isa/pc104 card?

Previously, Philippe Frossard wrote in qdn.public.qnx4:
{ – I work with QNX 4.25 on Arcom Elan 104NC (x86) at 30MHz.
{
{ I use RamDisk for save temporary data in files.
{ And, before the system reboot, I copy files from RamDisk
{ to FEPRom (From FEPROM to RamDisk at start up).
{ Some time, the files save are right and some the files
{ are corrupted.
{
{ It’s very strange … (I remenber the same thing with WinCE …)
{ –
{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{ Philippe Frossard : REZIER 74890 FESSY (FRANCE)
{ Site Internet : http://philippe.frossard.free.fr
{ Courrier Electronique : mailto:philippe.frossard@free.fr
{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
{
{


Pat Ford email: pford@qnx.com
QNX Software Systems, Ltd. WWW: http://www.qnx.com
(613) 591-0931 (voice) mail: 175 Terence Matthews
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

AMD Elan SC400 - 100MHz CPU 486 without floating point unit (AMD) x1
CHIPs 65550B Video controller (CHIPS) x1
SMSC FDC37C932 Super Input/Output controller (SMSC) x1
AM29F010A Flash EPRom de 128Ko (AMD) x1
DA28F640J5 Flash EPRom de 8Mo (INTEL) x1
RMC RTL8019AS 10-Base T Ethernet Controller (REALTEK) x1
M5M465165ATP DRAM de 8Mo (MITSUBISHI) x2
TC551001CFT-70L SRam de 128Ko (TOSHIBA) x1


Pat Ford a écrit:

is the FEPROM ferroram? ( > http://www.ramtron.com > ) if so there are some gotchas in using it ( reads are distructive ). is this on a isa/pc104 card?

Previously, Philippe Frossard wrote in qdn.public.qnx4:
{ – I work with QNX 4.25 on Arcom Elan 104NC (x86) at 30MHz.
{
{ I use RamDisk for save temporary data in files.
{ And, before the system reboot, I copy files from RamDisk
{ to FEPRom (From FEPROM to RamDisk at start up).
{ Some time, the files save are right and some the files
{ are corrupted.
{
{ It’s very strange … (I remenber the same thing with WinCE …)
{ –
{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{ Philippe Frossard : REZIER 74890 FESSY (FRANCE)
{ Site Internet : > http://philippe.frossard.free.fr
{ Courrier Electronique : mailto:> philippe.frossard@free.fr
{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
{
{


Pat Ford email: > pford@qnx.com
QNX Software Systems, Ltd. WWW: > http://www.qnx.com
(613) 591-0931 (voice) mail: 175 Terence Matthews
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Philippe Frossard     : REZIER 74890 FESSY (FRANCE)
Site Internet         : http://philippe.frossard.free.fr
Courrier Electronique : mailto:<philippe.frossard@free.fr>

I wait some time after the last backup … and it’s all right …

Philippe Frossard a écrit:

– I work with QNX 4.25 on Arcom Elan 104NC (x86) at 30MHz.

I use RamDisk for save temporary data in files.
And, before the system reboot, I copy files from RamDisk
to FEPRom (From FEPROM to RamDisk at start up).
Some time, the files save are right and some the files
are corrupted.

It’s very strange … (I remenber the same thing with WinCE …)

Philippe Frossard     : REZIER 74890 FESSY (FRANCE)
Site Internet         : > http://philippe.frossard.free.fr
Courrier Electronique : mailto:> <philippe.frossard@free.fr>

Philippe Frossard     : 74890 FESSY (FRANCE)
Courrier Electronique : mailto:<philippe.frossard@free.fr>
Site Internet         : http://philippe.frossard.free.fr

Ahh, we generaly reffer to them as just flash. if the ffs loses power as it is doing a write bad things will happen.

Previously, Philippe Frossard wrote in qdn.public.qnx4:
{ I wait some time after the last backup … and it’s all right …
{
{ Philippe Frossard a écrit:
{
{ > – I work with QNX 4.25 on Arcom Elan 104NC (x86) at 30MHz.
{ >
{ > I use RamDisk for save temporary data in files.
{ > And, before the system reboot, I copy files from RamDisk
{ > to FEPRom (From FEPROM to RamDisk at start up).
{ > Some time, the files save are right and some the files
{ > are corrupted.
{ >
{ > It’s very strange … (I remenber the same thing with WinCE …)
{ > –
{ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{ > Philippe Frossard : REZIER 74890 FESSY (FRANCE)
{ > Site Internet : http://philippe.frossard.free.fr
{ > Courrier Electronique : mailto:philippe.frossard@free.fr
{ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
{ –
{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{ Philippe Frossard : 74890 FESSY (FRANCE)
{ Courrier Electronique : mailto:philippe.frossard@free.fr
{ Site Internet : http://philippe.frossard.free.fr
{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
{
{


Pat Ford email: pford@qnx.com
QNX Software Systems, Ltd. WWW: http://www.qnx.com
(613) 591-0931 (voice) mail: 175 Terence Matthews
(613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Philippe Frossard <philippe.frossard@free.fr> wrote:
: I wait some time after the last backup … and it’s all right …

How are you opening the file? Of do you just have the memory mapped
somehow? If it appears as a file, make sure you open it the O_SYNC and
O_DSYNC flags. If it is just memory, make sure you delay the appropriate
amount of time. I imagine the manufacturer specs will detail how long a
write takes to get commited.

Rick…

Rick Duff Internet: rick@astra.mb.ca
Astra Network QUICS: rgduff
QNX Consulting and Custom Programming URL: http://www.astra.mb.ca
+1 (204) 987-7475 Fax: +1 (204) 987-7479

I just copy file from RamDisk to FEPRom (system(“cp …”)).
But, I don’t know how long time a write takes … I work on
a arcom Elan 104NC and it’s a Intel DA28F640J5.
The time is : intel + arcom + qnx …

rick@astra.mb.ca a écrit:

Philippe Frossard <> philippe.frossard@free.fr> > wrote:
: I wait some time after the last backup … and it’s all right …

How are you opening the file? Of do you just have the memory mapped
somehow? If it appears as a file, make sure you open it the O_SYNC and
O_DSYNC flags. If it is just memory, make sure you delay the appropriate
amount of time. I imagine the manufacturer specs will detail how long a
write takes to get commited.

Rick…

Rick Duff Internet: > rick@astra.mb.ca
Astra Network QUICS: rgduff
QNX Consulting and Custom Programming URL: > http://www.astra.mb.ca
+1 (204) 987-7475 Fax: +1 (204) 987-7479

Philippe Frossard     : 74890 FESSY (FRANCE)
Courrier Electronique : mailto:<philippe.frossard@free.fr>
Site Internet         : http://philippe.frossard.free.fr