Shortly after the beginning of _start(), the C library issues the uname() syscall to verify for the minimum kernel version.
If you look at gem5/src/arch/arm/linux/process.cc, you will see that in 32-bit mode the emulated syscall returns "3.0.0" and in 64, "3.7.0+".
When you configured the toolchain in crosstool-ng, there is an option "CT_LIBC_GLIBC_MIN_KERNEL_VERSION".
If that's greater than what the emulated uname() reports, glibc will fatal().


-----"gem5-users" <gem5-users-boun...@gem5.org> wrote: -----
To: gem5 users mailing list <gem5-users@gem5.org>
From: "Ejjeh, Adel"
Sent by: "gem5-users"
Date: 11/18/2015 12:46PM
Subject: [gem5-users] FATAL: Kernel to old

Hi all. I am trying to generate some simulation statistics by running an application on an ARM core simulation in gem5. I used crosstool-ng to build the cross-gcc compiler and then I used that to compile the application I want to run as well as it’s needed library. After that, when i tried to run the gem5 simulation in SE mode, I got the following error:

**** REAL SIMULATION ****
info: Entering event queue @ 0.  Starting simulation...
FATAL: kernel too old
warn: ignoring syscall rt_sigprocmask(1, ...)
      (further warnings will be suppressed)
panic: Page table fault when accessing virtual address 0xfffffba8
 @ tick 614500
[invoke:build/ARM/sim/faults.cc, line 69]
Memory Usage: 820136 KBytes
Program aborted at tick 614500
Aborted (core dumped)

This is the command I used to run gem5:

build/ARM/gem5.opt configs/example/se.py -c ../glennko-ssgibbs-cmodel-6be3aada6e9e/streamss -o "0 10 10 936”

I am running on fedora lxde. I read somewhere that this has to do with the version of glibc (Specifically that the one I used in the compilation is newer than the one supported in gem5 or something like that.) Any ideas?

Regards
--
Adel Ejjeh
PhD Student | Computer Science
University of Illinois at Urbana-Champaign
Siebel Center for Computer Science
201 N Goodwin Ave, Urbana, IL 61801

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to