Skip to contentSkip to conversation

mx28evk: add NAND commands

PATCH New Eric Bénard 3 participants 5 messages Apr 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mx28evk: add NAND commands

the mx28evk has a socket which can contains a TSOP48 NAND flash. So enable the nand command and it's trimffs option.

Tested on MX28EVK with NAND :
NAND: 128 MiB
MX28EVK U-Boot > nand info

Device 0: nand0, sector size 16 KiB
Page size 2048 b
OOB size 64 b
Erase size 16384 b

and without NAND :
NAND: No NAND device found!!!
0 MiB
MX28EVK U-Boot > nand info

MX28EVK U-Boot >

---
 include/configs/mx28evk.h | 2 ++
 1 file changed, 2 insertions(+)
include/configs/mx28evk.h +2 -0
index 0d918a1..789d980 100644
@@ -69,6 +69,8 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_NAND
+#define CONFIG_CMD_NAND_TRIMFFS
 
 /*
  * Memory configurations
Signature · 1 line
1.7.11.7
#1 lore raw

PATCH 1/1 mx28evk: add NAND commands

Hi Eric,

include/configs/mx28evk.h line 72

Quoted 9 lines · Eric B?nard
include/configs/mx28evk.h +1 -0
index 0d918a1..789d980 100644
@@ -69,6 +69,8 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_NAND

Please check include/configs/mx28evk_nand.h in u-boot.imx. It has this define already.

include/configs/mx28evk.h line 73

Quoted 1 line
include/configs/mx28evk.h +1 -0
+#define CONFIG_CMD_NAND_TRIMFFS

Then you could add this command there, if you like.

Regards,

Fabio Estevam

#2 lore raw

PATCH 1/1 mx28evk: add NAND commands

Hi Fabio,

Le Mon, 8 Apr 2013 10:24:45 -0300,
Fabio Estevam <[email protected]> a ?crit :

Quoted 15 lines · Eric B?nard

include/configs/mx28evk.h line 72

Quoted 10 lines
include/configs/mx28evk.h +1 -0
index 0d918a1..789d980 100644
@@ -69,6 +69,8 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_NAND

Please check include/configs/mx28evk_nand.h in u-boot.imx. It has this define already.

OK I was on master :-(

Eric

#3 lore raw

PATCH 1/1 mx28evk: add NAND commands

In reply to Fabio Estevam
Quoted 17 lines · Fabio Estevam

Hi Eric,

include/configs/mx28evk.h line 72

Quoted 9 lines · Eric B??nard
include/configs/mx28evk.h +1 -0
index 0d918a1..789d980 100644
@@ -69,6 +69,8 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_NAND

Please check include/configs/mx28evk_nand.h in u-boot.imx. It has this define already.

Quoted 3 lines

include/configs/mx28evk.h line 73

Quoted 1 line
include/configs/mx28evk.h +1 -0
+#define CONFIG_CMD_NAND_TRIMFFS

Then you could add this command there, if you like.

And check for UBI related things being on too.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130408/0f1a050f/attachment.pgp>
#4 lore raw

PATCH 1/1 mx28evk: add NAND commands

Hi Tom,

Le Mon, 8 Apr 2013 09:27:29 -0400,
Tom Rini <[email protected]> a ?crit :

Quoted 18 lines · Fabio Estevam
Quoted 17 lines

Hi Eric,

include/configs/mx28evk.h line 72

Quoted 9 lines · Eric B??nard
include/configs/mx28evk.h +1 -0
index 0d918a1..789d980 100644
@@ -69,6 +69,8 @@
 #define CONFIG_CMD_USB
 #define CONFIG_CMD_BOOTZ
 #define CONFIG_CMD_I2C
+#define CONFIG_CMD_NAND

Please check include/configs/mx28evk_nand.h in u-boot.imx. It has this define already.

Quoted 6 lines
Quoted 3 lines

include/configs/mx28evk.h line 73

Quoted 1 line
include/configs/mx28evk.h +1 -0
+#define CONFIG_CMD_NAND_TRIMFFS

Then you could add this command there, if you like.

And check for UBI related things being on too.

that's what I'm actually testing ;-)

Eric