From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] M29W256GL + WEIM in uboot
Date: Mon, 13 Feb 2012 21:52:32 +0100 [thread overview]
Message-ID: <201202132152.32928.marek.vasut@gmail.com> (raw)
In-Reply-To: <CA+YwPEcfs-1i9xyww01eG6ntEN=SZBzCmpoMrd2rOhH7AkHJPA@mail.gmail.com>
> Hello, Im new to all of this, but I 've been reading most of the post
> related to the M29w256 numonyx and the u-boot documentation without
> any success :(
>
> Im booting from MMC card and I want to parallel nor to be probed by
> cfi, but I have not succeeded since the uboot code freezes when at the
> beginning of the first "flash_cmd_write" in cfi_flash.c
>
> /* Issue FLASH reset command */
> flash_cmd_reset(info);
>
> The CS0_BASE_ADDR has an start address matching #define
> WEIM_ARB_BASE_ADDR 0x08000000 , however the range of
> the WEIM interface register settings are between 021B_8000 --
> 021B_8098.
>
> Many board files has the WEIM CS0 as the start of the registers and I
> think this is why the NOR configuration is a matter of config settings
> like the ones below.
>
> #define CONFIG_SYS_FLASH_BASE CS0_BASE_ADDR
> #define CONFIG_SYS_MAX_FLASH_BANKS 1
> #define CONFIG_SYS_MAX_FLASH_SECT 256
> #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
> #define CONFIG_SYS_FLASH_CFI_AMD_RESET 1
>
> /* Monitor at beginning of flash */
> #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
> #define CONFIG_SYS_MONITOR_LEN 0x40000 /* Reserve 256KiB
> */
>
> #define CONFIG_ENV_SECT_SIZE 0x20000
> #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
> #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x40000)
>
> /* Address and size of Redundant Environment Sector */
> #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET +
> CONFIG_ENV_SIZE) #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
>
>
> If you could give me some help so that at least I could send write
> commands to the chip without hang pls...
>
You're pointing CFI to configuration registers, you need to point it to where
the NOR flash is MMAPed. If it's not MMAPed, this isn't your driver.
M
next prev parent reply other threads:[~2012-02-13 20:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 20:30 [U-Boot] M29W256GL + WEIM in uboot Francisco Muñoz
2012-02-13 20:52 ` Marek Vasut [this message]
[not found] ` <CA+YwPEeJifw6oT8W+gEwOQ+N0zxVoaJd0KhLdc4kyQBgyJGbsg@mail.gmail.com>
2012-02-13 21:25 ` Marek Vasut
2012-02-13 21:33 ` Fabio Estevam
2012-02-13 21:39 ` Francisco Muñoz
2012-02-13 22:59 ` Fabio Estevam
2012-02-13 23:25 ` Francisco Muñoz
2012-02-13 23:33 ` Fabio Estevam
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=201202132152.32928.marek.vasut@gmail.com \
--to=marek.vasut@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.