Skip to contentSkip to conversation

AT91SAM9263-EK

DISCUSSION Stutz Sven 3 participants 3 messages Jul 18, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Stutz Sven

author
#1 lore raw

Hello Sascha,

thanks a lot for your help.

When I completely switch off the ecc, Barebox is loading the Linux kernel. But I guess that the ecc is necessary especially for NAND-Flash devices.

The AT91SAM9263 controller has a ecc unit implemented. There are three registers and the error calculation is done automatically, only the error correction must be done in software. Or is it better to you use the software ecc and I should try to fix the software problem?
Can you give me some hints to fix this problem?

Btw. I have found the description table for the NAND devices. But what would happen if I change the connections between the controller and the NAND-Flash, where are those port description stored or the timings to access the data bus?

best regards Sven

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw

Hi Sven,

Quoted 7 lines · Stutz Sven

Hello Sascha,

thanks a lot for your help.

When I completely switch off the ecc, Barebox is loading the Linux kernel. But I guess that the ecc is necessary especially for NAND-Flash devices.

Indeed. You shouldn't use NAND without ecc.

Quoted 7 lines

The AT91SAM9263 controller has a ecc unit implemented. There are three registers and the error calculation is done automatically, only the error correction must be done in software.
Or is it better to you use the software ecc and I should try to fix the software problem?

If possible you should use hardware ecc. It may be though that it has bugs that force you to use software ecc, but I'm not familiar with the atmel hardware.

Quoted 1 line

Can you give me some hints to fix this problem?

Does it work in the kernel? If yes, try looking for differences. The NAND layers are sufficiently similar.

Quoted 5 lines

Btw. I have found the description table for the NAND devices. But what would happen if I change the connections between the controller and the NAND-Flash, where are those port description stored or the timings to access the data bus?

I have no idea.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
Quoted 21 lines · Sascha Hauer

Hi Sven,

Quoted 7 lines · Stutz Sven

Hello Sascha,

thanks a lot for your help.

When I completely switch off the ecc, Barebox is loading the Linux kernel. But I guess that the ecc is necessary especially for NAND-Flash devices.

Indeed. You shouldn't use NAND without ecc.

Quoted 7 lines

The AT91SAM9263 controller has a ecc unit implemented. There are three registers and the error calculation is done automatically, only the error correction must be done in software.
Or is it better to you use the software ecc and I should try to fix the software problem?

Quoted 3 lines

If possible you should use hardware ecc. It may be though that it has bugs that force you to use software ecc, but I'm not familiar with the atmel hardware.

the hw ecc work on 9263 but we do not use it on the kernel

Quoted 5 lines
Quoted 2 lines

Can you give me some hints to fix this problem?

Does it work in the kernel? If yes, try looking for differences. The NAND layers are sufficiently similar.

the drivers as the same on both barebox and linux

Quoted 6 lines
Quoted 6 lines

Btw. I have found the description table for the NAND devices. But what would happen if I change the connections between the controller and the NAND-Flash, where are those port description stored or the timings to access the data bus?

smc

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox