All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Gurevich <vag@paulidav.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot 1.1.2 on mpc852t : decrementer exception in interrupt_init()
Date: Thu, 20 Oct 2005 09:05:27 -0700	[thread overview]
Message-ID: <4357C047.1050900@paulidav.org> (raw)
In-Reply-To: <435794ED.9050402@eisodus.com>

Hello Gautam,

gautam borad wrote:

> Thanks for giving the patch. I tried using your patch but it doesnt 
> work, i get the following on the console:

Did you apply it to unmodified U-boot snapshot (preferrably 1.1.2)? Did 
it apply cleanly? Did you do "make EP852_config; make"? How did you 
program U-boot in the FLASH? What is your BDI-2000 config file (I 
attached mine here).

>
> -------------------------------------------------------------------------------------------------------------------------------------------------------- 
>
> U-Boot 1.1.3 (Oct 20 2005 - 15:35:24) EP852
>
> CPU:   MPC852TxxZPnn at 50 MHz [25.0...125.0 MHz]
>       4 kB I-Cache 4 kB D-Cache FEC present
>
>       Board: EP852 (Rev. e4).   CPLD Rev: 00   DIP Switch: 1111
>       DRAM:  16 MB
>       FLASH: Bus Fault @ 0x00fab008, fixup 0x00000000


> -------------------------------------------------------------------------------------------------------------------------------------------------------- 
>
> I realized the problem was cfi_flash when i tried it with u-boot 1.1.2 
> which also gave the above error.(previously it didnt give the above 
> error)
> So I took the flash.c file from RPXClassic directory.
> The board has 2 AMD AM29LV320MB (8 MB each)  flash. In the flash.c the 
> auto select command (to read manufactor ID) returns 0x227e227e.
> However in include/flash.h i have #define AMD_ID_LV320B 0x22F922F9 . 
> 227E227E is defined for AMD_ID_DL640. Why is this so??
> I've modified #define AMD_ID_LV320B to 0x227E227E , but is this the 
> right way??

Standard CFI driver should handle these chips just fine. I do not think 
any modifications are needed. However, my board uses 2xAM29LV640MB chips 
and thus you have to adjust the related parameters (like CFG_FLASH_SIZE 
and CFG_MAX_FLASH_SECT). Also, watch for CFG_JFFS2_FIRST_SECTOR. It 
reflects my particular layout.

> The flash starts at 0xFF800000.

Well, this is programmable. When the CPU comes out of reset, it is 
located at 0x0. After that my U-boot port programs CS0 to be 0x04000000 
(64M), the same way, say, TQM8xx port does. This is reflected in 
CFG_FLASH_BASE as well as in TEXT_BASE variable in config.mk

> Also what actually does U-Boot does when a decrementer exception is 
> generated?

This is a standard timer interrupt, but since I suspect that your 
address map is quite screwed, I wouldn't concentrate on that.

Happy hacking,
Vladimir

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: EP852.cfg
Url: http://lists.denx.de/pipermail/u-boot/attachments/20051020/4b5bc998/attachment.txt 

      reply	other threads:[~2005-10-20 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19 14:02 [U-Boot-Users] u-boot 1.1.2 on mpc852t : decrementer exception in interrupt_init() gautam borad
2005-10-20  1:32 ` Vladimir Gurevich
2005-10-20 13:00   ` gautam borad
2005-10-20 16:05     ` Vladimir Gurevich [this message]

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=4357C047.1050900@paulidav.org \
    --to=vag@paulidav.org \
    --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.