Problem with writing to the AM29LV800B device

Hi,

I start driver as follows:

./devf-generic -s0,1M,2,1 -vvvv &

65551 running ./devf-generic

calloc f3s_start, 181: 0x80

calloc f3s_start, 211: 0x40
calloc f3s_start, 235: 0x30
calloc f3s_start, 257: 0x48
calloc f3s_start, 271: 0x98
devf: fs2 socket generic
QRY string =
devf: chip total = 1
devf: bus width = 2
devf: chip interleave = 1
calloc f3s_array_alloc, 21: 0x18
calloc f3s_array_alloc, 22: 0x40
calloc f3s_array_alloc, 23: 0x20
calloc f3s_array_alloc, 24: 0x10
calloc f3s_array_alloc, 25: 0x10
calloc f3s_array_alloc, 26: 0x40
malloc f3s_array_alloc, 27: 0x240
devf: fs2 array Am29LV800B-B U: 10 S: 010000
malloc f3s_array_attach, 135: 0x10
calloc f3s_array_attach, 139: 0x80
calloc f3s_array_attach, 140: 0x80
calloc f3s_array_attach, 143: 0x88
calloc f3s_array_attach, 146: 0x30
calloc f3s_array_attach, 147: 0x30
devf: fs2p0 raw U: 10
65551 exited with status 0

Flash is recognized properly and I am able to read data from it.
For example I copied whole 1MB partition (/dev/fs2p0) without any error.

During writing to flash I get the following message:

cp data.1 /dev/fs2p0

devf: over poll waiting for write completion in amd_v2wordwrite:97
cp: write (/dev/fs2p0): Input/output error

What does above error mean?
What I should to do next?
What part of driver or MTD library do I need to modify?


Regards,
Jacek

Maybe problem reside in fact that our flash has blocks at
different size (16k + 2x8k + 32k + 15x64k)?

It is possible to handle such device via devf-* driver?
Where and what should to be modified?

Until now I was playing with several flash devices, but all
of them had a constant size of block.

Regards,
Jacek

Hi,

I start driver as follows:

./devf-generic -s0,1M,2,1 -vvvv &

65551 running ./devf-generic

calloc f3s_start, 181: 0x80

calloc f3s_start, 211: 0x40
calloc f3s_start, 235: 0x30
calloc f3s_start, 257: 0x48
calloc f3s_start, 271: 0x98
devf: fs2 socket generic
QRY string =
devf: chip total = 1
devf: bus width = 2
devf: chip interleave = 1
calloc f3s_array_alloc, 21: 0x18
calloc f3s_array_alloc, 22: 0x40
calloc f3s_array_alloc, 23: 0x20
calloc f3s_array_alloc, 24: 0x10
calloc f3s_array_alloc, 25: 0x10
calloc f3s_array_alloc, 26: 0x40
malloc f3s_array_alloc, 27: 0x240
devf: fs2 array Am29LV800B-B U: 10 S: 010000
malloc f3s_array_attach, 135: 0x10
calloc f3s_array_attach, 139: 0x80
calloc f3s_array_attach, 140: 0x80
calloc f3s_array_attach, 143: 0x88
calloc f3s_array_attach, 146: 0x30
calloc f3s_array_attach, 147: 0x30
devf: fs2p0 raw U: 10
65551 exited with status 0

Flash is recognized properly and I am able to read data from it.
For example I copied whole 1MB partition (/dev/fs2p0) without any error.

During writing to flash I get the following message:

cp data.1 /dev/fs2p0

devf: over poll waiting for write completion in amd_v2wordwrite:97
cp: write (/dev/fs2p0): Input/output error

What does above error mean?
What I should to do next?
What part of driver or MTD library do I need to modify?


Regards,
Jacek

That should not be a problem.
Check if the flash is write protected.


Jacek Rudnicki wrote:

Maybe problem reside in fact that our flash has blocks at
different size (16k + 2x8k + 32k + 15x64k)?

It is possible to handle such device via devf-* driver?
Where and what should to be modified?

Until now I was playing with several flash devices, but all
of them had a constant size of block.

Regards,
Jacek


Hi,

I start driver as follows:

./devf-generic -s0,1M,2,1 -vvvv &

65551 running ./devf-generic

calloc f3s_start, 181: 0x80

calloc f3s_start, 211: 0x40
calloc f3s_start, 235: 0x30
calloc f3s_start, 257: 0x48
calloc f3s_start, 271: 0x98
devf: fs2 socket generic
QRY string =
devf: chip total = 1
devf: bus width = 2
devf: chip interleave = 1
calloc f3s_array_alloc, 21: 0x18
calloc f3s_array_alloc, 22: 0x40
calloc f3s_array_alloc, 23: 0x20
calloc f3s_array_alloc, 24: 0x10
calloc f3s_array_alloc, 25: 0x10
calloc f3s_array_alloc, 26: 0x40
malloc f3s_array_alloc, 27: 0x240
devf: fs2 array Am29LV800B-B U: 10 S: 010000
malloc f3s_array_attach, 135: 0x10
calloc f3s_array_attach, 139: 0x80
calloc f3s_array_attach, 140: 0x80
calloc f3s_array_attach, 143: 0x88
calloc f3s_array_attach, 146: 0x30
calloc f3s_array_attach, 147: 0x30
devf: fs2p0 raw U: 10
65551 exited with status 0

Flash is recognized properly and I am able to read data from it.
For example I copied whole 1MB partition (/dev/fs2p0) without any error.

During writing to flash I get the following message:

cp data.1 /dev/fs2p0

devf: over poll waiting for write completion in amd_v2wordwrite:97
cp: write (/dev/fs2p0): Input/output error

What does above error mean?
What I should to do next?
What part of driver or MTD library do I need to modify?


Regards,
Jacek


\

Flash is write enabled.

Uzytkownik “Wensheng Zheng” <wzheng@qnx.com> napisal w wiadomosci
news:dgotfo$q23$1@inn.qnx.com

That should not be a problem.
Check if the flash is write protected.


Jacek Rudnicki wrote:
Maybe problem reside in fact that our flash has blocks at
different size (16k + 2x8k + 32k + 15x64k)?

It is possible to handle such device via devf-* driver?
Where and what should to be modified?

Until now I was playing with several flash devices, but all
of them had a constant size of block.

Regards,
Jacek


Hi,

I start driver as follows:

./devf-generic -s0,1M,2,1 -vvvv &

65551 running ./devf-generic

calloc f3s_start, 181: 0x80

calloc f3s_start, 211: 0x40
calloc f3s_start, 235: 0x30
calloc f3s_start, 257: 0x48
calloc f3s_start, 271: 0x98
devf: fs2 socket generic
QRY string =
devf: chip total = 1
devf: bus width = 2
devf: chip interleave = 1
calloc f3s_array_alloc, 21: 0x18
calloc f3s_array_alloc, 22: 0x40
calloc f3s_array_alloc, 23: 0x20
calloc f3s_array_alloc, 24: 0x10
calloc f3s_array_alloc, 25: 0x10
calloc f3s_array_alloc, 26: 0x40
malloc f3s_array_alloc, 27: 0x240
devf: fs2 array Am29LV800B-B U: 10 S: 010000
malloc f3s_array_attach, 135: 0x10
calloc f3s_array_attach, 139: 0x80
calloc f3s_array_attach, 140: 0x80
calloc f3s_array_attach, 143: 0x88
calloc f3s_array_attach, 146: 0x30
calloc f3s_array_attach, 147: 0x30
devf: fs2p0 raw U: 10
65551 exited with status 0

Flash is recognized properly and I am able to read data from it.
For example I copied whole 1MB partition (/dev/fs2p0) without any error.

During writing to flash I get the following message:

cp data.1 /dev/fs2p0

devf: over poll waiting for write completion in amd_v2wordwrite:97
cp: write (/dev/fs2p0): Input/output error

What does above error mean?
What I should to do next?
What part of driver or MTD library do I need to modify?


Regards,
Jacek


\

Sorry, flash is not write protected.

Flash is write enabled.

Uzytkownik “Wensheng Zheng” <> wzheng@qnx.com> > napisal w wiadomosci
news:dgotfo$q23$> 1@inn.qnx.com> …
That should not be a problem.
Check if the flash is write protected.


Jacek Rudnicki wrote:
Maybe problem reside in fact that our flash has blocks at
different size (16k + 2x8k + 32k + 15x64k)?

It is possible to handle such device via devf-* driver?
Where and what should to be modified?

Until now I was playing with several flash devices, but all
of them had a constant size of block.

Regards,
Jacek


Hi,

I start driver as follows:

./devf-generic -s0,1M,2,1 -vvvv &

65551 running ./devf-generic

calloc f3s_start, 181: 0x80

calloc f3s_start, 211: 0x40
calloc f3s_start, 235: 0x30
calloc f3s_start, 257: 0x48
calloc f3s_start, 271: 0x98
devf: fs2 socket generic
QRY string =
devf: chip total = 1
devf: bus width = 2
devf: chip interleave = 1
calloc f3s_array_alloc, 21: 0x18
calloc f3s_array_alloc, 22: 0x40
calloc f3s_array_alloc, 23: 0x20
calloc f3s_array_alloc, 24: 0x10
calloc f3s_array_alloc, 25: 0x10
calloc f3s_array_alloc, 26: 0x40
malloc f3s_array_alloc, 27: 0x240
devf: fs2 array Am29LV800B-B U: 10 S: 010000
malloc f3s_array_attach, 135: 0x10
calloc f3s_array_attach, 139: 0x80
calloc f3s_array_attach, 140: 0x80
calloc f3s_array_attach, 143: 0x88
calloc f3s_array_attach, 146: 0x30
calloc f3s_array_attach, 147: 0x30
devf: fs2p0 raw U: 10
65551 exited with status 0

Flash is recognized properly and I am able to read data from it.
For example I copied whole 1MB partition (/dev/fs2p0) without any
error.

During writing to flash I get the following message:

cp data.1 /dev/fs2p0

devf: over poll waiting for write completion in amd_v2wordwrite:97
cp: write (/dev/fs2p0): Input/output error

What does above error mean?
What I should to do next?
What part of driver or MTD library do I need to modify?


Regards,
Jacek





\