Welcome to gem5 Q&A, where you can ask questions and receive answers from other members of the community.

it failed with "warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)"?

0 votes

I am a newer in GEM5. I installed and build it in an ubuntu 14.4 virtual machine for ARM in SE mode and test the hello program as follow:

build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hello

then I modified the hello to hello-modified and compiled it with the cross-compiler as:

sudo apt-get install gcc-arm-linux-gnueabi

arm-linux-gnueabi-gcc -static hello.c -o hello_modified

build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hello_modified

all were ok. but for the next programs it didn't work, if you help me, I will be vary grateful. the error is:

kia@ubuntu:~/gem5$ build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/helloadd

gem5 Simulator System.  http://gem5.org

gem5 is copyrighted software; use the --copyright option for details.

 

gem5 compiled Jan  9 2017 01:12:44

gem5 started Mar 21 2017 22:19:11

gem5 executing on ubuntu, pid 2921

command line: build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/helloadd

 

Global frequency set at 1000000000000 ticks per second

warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes)

fatal: Can't load object file tests/test-progs/hello/bin/arm/linux/helloadd

 @ tick 0

[create:build/ARM/sim/process.cc, line 623]

Memory Usage: 653060 KBytes

Program aborted at tick 0

--- BEGIN LIBC BACKTRACE ---

build/ARM/gem5.opt(_Z15print_backtracev+0x15)[0xbdac75]

build/ARM/gem5.opt(_Z12abortHandleri+0x36)[0xbec346]

/lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7fa2e354b330]

/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7fa2e1a9ac37]

/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7fa2e1a9e028]

build/ARM/gem5.opt(_Z15__exit_epilogueiPKcS0_iS0_+0x1ec)[0xc3b8cc]

build/ARM/gem5.opt(_ZN2cp5Print7add_argISsEEvRKT_+0x0)[0x939790]

build/ARM/gem5.opt(_ZN11LiveProcess6createEP17LiveProcessParams+0x260)[0xc1a890]

build/ARM/gem5.opt[0x119b2eb]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4bd4)[0x7fa2e3116b94]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4b59)[0x7fa2e3116b19]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7fa2e3118f22]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x563e)[0x7fa2e31175fe]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x48d8)[0x7fa2e3116898]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x80d)[0x7fa2e3118c3d]

/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7fa2e3118f22]

--- END LIBC BACKTRACE ---

Aborted (core dumped)

kia@ubuntu:~/gem5$ 

regards

keihaneh 

asked Mar 22 in Compiling by k.kia (140 points)

1 Answer

0 votes
The error is "fatal: Can't load object file tests/test-progs/hello/bin/arm/linux/helloadd". Likely, this means the file helloadd could not be found at the location "tests/test-progs/hello/bin/arm/linux/helloadd".
answered Mar 23 by powerjg (6,280 points)
...