This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Illegal memory access
- From: mementux <mementux at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 11 Feb 2009 21:48:34 +0100
- Subject: [ECOS] Illegal memory access
Hi,
I've a problem loading Linux with RedBoot 2.04 [ROMRAM] on a Compex
device: when I try to execute the loaded ramdisk image I get an
"illegal memory access" error. This is the log:
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 2.04 - built 09:48:17, Jun 6 2007
Platform: WP18/WP188/WPM188/NP18 Development Platform (IXP4XX) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
RAM: 0x00000000-0x04000000, [0x0006c2b0-0x03fc1000] available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
^C
RedBoot> ^C
RedBoot> load -r -b %{FREEMEMLO} openwrt-compex-2.6-zImage.mm
Using default protocol (TFTP)
Raw file loaded 0x0006c400-0x008641f3, assumed entry at 0x0006c400
RedBoot> exec
Using base address 0x0006c400 and length 0x007f7df4
** command abort - illegal memory access?
RedBoot>
If I load a smaller ramdisk image, then I can execute it correctly:
RedBoot> load -r -b %{FREEMEMLO} openwrt-compex-2.6-zImage.mm
Using default protocol (TFTP)
Raw file loaded 0x0006c400-0x00562acf, assumed entry at 0x0006c400
RedBoot> exec
Using base address 0x0006c400 and length 0x004f66d0
Uncompressing Linux.......................................................................................................................................................................................................
done, booting the kernel.
Linux version 2.6.19.2 (root@alberto-desktop) (gcc version 4.1.2) #5
Wed Feb 11 12:07:18 UTC 2009
CPU: XScale-IXP42x Family [690541c2] revision 2 (ARMv5TE), cr=000039ff
Machine: Compex WP18 / NP18A
Memory policy: ECC disabled, Data cache writeback
[... cut ...]
I think that the only difference is the size of the ramdisk images.
The first image is about 8 Mbyte big; the second image is instead 5
Mbyte big.
I successfully use the first ramdisk image on others IXP4xx-based
devices with RedBoot 2.01 [ROM]. Can it be RedBoot limit/bug? Or can
it be an hardware limit?
Have someone any suggestions?
Thanks in advance,
Albert.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss