Forum Discussion
Altera_Forum
Honored Contributor
14 years agoIssue with 16-bit CFI Flash
Hello, We use a CFI Flash with 16 bits of data width on our board (JS28F256) And we use nios2-linux (kernel version 2.6.30) to read/write on it. We know that the Linux version works well...
Altera_Forum
Honored Contributor
14 years agoOk I found the solution.
In linux-2.6/arch/nios2/kernel/config.c you can find :static struct physmap_flash_data nios2_flash_data = { # if defined(CONFIG_ALTERA_NEEK_C3) || defined(CONFIG_ALTERA_CYCLONE_III)
.width = 2, /* 16 bits data bus # else
.width = 1, /* 8 bits data bus */ # endif
But my config is not CONFIG_ALTERA_NEEK_C3 nor CONFIG_ALTERA_CYCLONE_III. So I just force the width to be 2 This type of bug will not happen with the latest kernel that use device-tree, hopefully ! Best regards