From: duckycool <duckycool@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] No NAND device found!!! Freescale MPC8544+SAMSUNG 1GB Nand Flash , please help!
Date: Tue, 15 Sep 2009 14:40:13 -0700 (PDT) [thread overview]
Message-ID: <25462282.post@talk.nabble.com> (raw)
In-Reply-To: <25455541.post@talk.nabble.com>
Hi all,
Correction, the nand flash is K9F8G08U0M.
Please help
duckycool wrote:
>
> http://www.nabble.com/file/p25455541/nand_error.bmp nand_error.bmp Hi
> all,
> I can't do READID with nand_get_flash_type in the nand_base.c
> What I get is an error "No NAND device found!!!"
> My board is freescale mpc8544 with samsung K9K8G08U0A, the device is
> supposed {NAND 1GiB 3,3V 8-bit", 0xD3, 0, 1024, 0, LP_OPTIONS} .
>
> What I did is copy the nand.c from /board/tqc/tqm85xx/nand.c into
> /board/freescale/mpc8544ds
> Add #define CONFIG_CMD_NAND into MPC8544DS.h, setup TLB/LAW/BR/OR for
> nand flash.
> Add RAM array of upm into /board/.../nand.c.
>
> When booting, I can get the chip select signal put low with scope.
> Trace the code, it get both dev_id and tmp_id 0x000000ff.
>
> Per the /driver/mtd/nand/nand_base.c , /driver/mtd/nand/fsl_upm.c , and
> /board/.../nand.c ....
> I break down the upm operation into the upm control(mamr, mar,
> IO_ADDR_R, IO_ADDR_W)
> And then, I tried the low level register control under CodeWarrior
> command window, it's still failed.
>
> As below: (CCSRBR = 0xe0000000 , nand_flash_base = 0xff000000)
> change 0xe0005070 0x30000008 (OP=11, pattern_offset=8)
> change 0xe0005068 0x90000000
> change 0xff000000 0x0
> change 0xe0005070 0x0
> change 0xe0005070 0x30000010
> change 0xe0005068 0x00000000
> change 0xff000000 0x0
> change 0xe0005070 0x0
> change 0xe0005070 0x30000008
> change 0xe0005068 0x00000000
> change 0xff000000 0x0
> change 0xe0005070 0x0
> display 0xff000000
>
> I don't know why?
> Any MARCO I should add ?
> Or any special operation should I add into nand_base.c ?
> Please help, thank you.
>
--
View this message in context: http://www.nabble.com/No-NAND-device-found%21%21%21-Freescale-MPC8544%2BSAMSUNG-1GB-Nand-Flash-%2C-please-help%21-tp25455541p25462282.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
next prev parent reply other threads:[~2009-09-15 21:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 14:55 [U-Boot] No NAND device found!!! Freescale MPC8544+SAMSUNG 1GB Nand Flash , please help! duckycool
2009-09-15 21:40 ` duckycool [this message]
2009-09-16 15:55 ` Bin Meng
2009-09-16 16:40 ` duckycool
2009-09-16 17:00 ` Anton Vorontsov
2009-09-16 23:40 ` duckycool
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=25462282.post@talk.nabble.com \
--to=duckycool@gmail.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