From: Lauri Hintsala <lauri.hintsala@bluegiga.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] MXS NAND: DMA read error
Date: Tue, 17 Apr 2012 11:07:28 +0300 [thread overview]
Message-ID: <4F8D24C0.9090106@bluegiga.com> (raw)
Hello,
I'm trying to compile latest U-Boot to mx28evk (rev D) with NAND
support. U-Boot boots up but NAND chip is not detected and DMA read
error is popped up.
Here is console output:
U-Boot 2012.04-rc2-dirty (Apr 17 2012 - 10:58:50)
Freescale i.MX28 family at 454 MHz
DRAM: 128 MiB
NAND: MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: Error sending command
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: Error sending command
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
MXS NAND: DMA read error (-110)
No NAND device found!!!
0 MiB
I did following changes to mainline code. Did I forget something?
diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index 9c95811..93e54da 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -465,7 +465,7 @@ static void mxs_nand_read_buf(struct mtd_info *mtd,
uint8_t *buf, int length)
/* Execute the DMA chain. */
ret = mxs_dma_go(channel);
if (ret) {
- printf("MXS NAND: DMA read error\n");
+ printf("MXS NAND: DMA read error (%d)\n", ret);
goto rtn;
}
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h
index 02f3366..a0bd2db 100644
--- a/include/configs/mx28evk.h
+++ b/include/configs/mx28evk.h
@@ -148,6 +148,15 @@
#endif
/*
+ * NAND
+ */
+#define CONFIG_CMD_NAND
+#define CONFIG_NAND_MXS
+#define CONFIG_SYS_MAX_NAND_DEVICE 1
+#define CONFIG_SYS_NAND_BASE 0x60000000
+#define CONFIG_SYS_NAND_5_ADDR_CYCLE
+
+/*
* Ethernet on SOC (FEC)
*/
#ifdef CONFIG_CMD_NET
BR,
Lauri Hintsala
next reply other threads:[~2012-04-17 8:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 8:07 Lauri Hintsala [this message]
2012-04-17 8:17 ` [U-Boot] MXS NAND: DMA read error Marek Vasut
2012-04-17 8:23 ` Lauri Hintsala
2012-04-17 8:29 ` Marek Vasut
2012-04-17 8:38 ` Lauri Hintsala
2012-04-17 9:05 ` Marek Vasut
2012-04-17 9:26 ` Lauri Hintsala
2012-04-17 10:17 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F8D24C0.9090106@bluegiga.com \
--to=lauri.hintsala@bluegiga.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox