[U-Boot-Users] Booting from 4MB flash on Walnut derived board

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] Booting from 4MB flash on Walnut derived board

Brian S. Park-2
Hi all,
I have custom board built based on IBM walnut demo board.
It worked well when I was using 512KB flash. Since I want to burn all my
application on the flash, I installed 4MB flash and u-boot no longer works.

According to README file, I should set CFG_FLASH_BASE, CFG_MONITOR_BASE and
TEXT_BASE to the beginning of the flash. When I did this, the processor was
not able to pick up the instruction on the beginning of the flash. Probably
because the EBC is not configured to access 4MB of flash when it boots up.

Is there a way to make it come up with 4MB of flash? I'm using u-Boot 0.3.0

I tried changing the CFG_FLASH_BASE only but I get bus error when u-Boot
tries to access the flash. I did setup pb0cr so that it can access 4MB
address space.

U-Boot 0.3.0 (Jun 26 2003 - 19:43:08)

CPU:   IBM PowerPC 405GP Rev. E at 200 MHz (PLB=100, OPB=50, EBC=50 MHz)
            PCI sync clock at 100 MHz, external PCI arbiter enabled
            16 kB I-Cache 8 kB D-Cache
Board: ### No HW ID - assuming WALNUT405
I2C:   ready
DRAM:  128 MB
FLASH: Bus Fault @ 0x07fd2954, fixup 0x00000000
Machine check in kernel mode.
Caused by (from msr): regs 07fadd08 Machine check signal - probably due to
mm ft
with mmu off
NIP: 07FD2954 XER: 00000000 LR: 07FD219C REGS: 07fadd08 TRAP: 0200 DAR:
00000800
MSR: 00001000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00

GPR00: 00000090 07FADDF8 40000000 07FADE08 07FF1194 00000000 00000000 0110795E
GPR08: 07FD9C84 FFC00000 00000002 0000051C 28000004 00000000 07FEF300 08050000
GPR16: 00000000 00000000 00000000 00000000 00001000 07FADDF8 00000000 07FD219C
GPR24: 07FD2954 07FADF64 07FADF90 07FF1194 07FADF90 07FADF64 07FF0110 0000FFFF
Call backtrace:
machine check

Any help will be appreciated.

Thank you.

Brian


===============================================================
Brian S. Park  brian at corelis.com  (562) 926-6727 x143
---------------------------------------------------------------
Everything we do helps our customers get to market
FASTER with HIGHER quality and LOWER cost
===============================================================





Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] Booting from 4MB flash on Walnut derived board

Brian S. Park-2
Oops,
Never mind. I did not configure pb0cr properly. After fixing the bug, it
does not get a bus error.

However, the flash is not detected properly even after I define
CFG_FLASH_CFI. Is there something special I need to do use CFI compliant
flash working with u-Boot? I'm using AM29LV320DT.

Thanks.


===============================================================
Brian S. Park  brian at corelis.com  (562) 926-6727 x143
---------------------------------------------------------------
Everything we do helps our customers get to market
FASTER with HIGHER quality and LOWER cost
===============================================================





Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] Booting from 4MB flash on Walnut derived board

Wolfgang Denk
In message <5.1.1.6.2.20030626195542.012e7308 at corelis.com> you wrote:
>
> However, the flash is not detected properly even after I define
> CFG_FLASH_CFI. Is there something special I need to do use CFI compliant
> flash working with u-Boot? I'm using AM29LV320DT.

You will, of course, have to adapt the flash driver for your board.


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The average woman would rather have beauty than brains,  because  the
average man can see better than he can think.