On Fri, Jun 15, 2012 at 5:05 PM, David Gonzalez Marquez <[email protected]> wrote: > I must to modify some parts of the linux kernel in order to add a pair > features. > I download the linux-2.6.37 kernel form the web and I tried to compiled. > The instructions at http://gem5.org/Linux_kernel does not work, because I > could not found the http://www.m5sim.org/Dist/current/arm/config-arm. > > I build the kernel inĀ a default way: > > $ make ARCH=arm xconfig > $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- vmlinux -j 4 > > next, I try to run it, and it does not work, it was blocked. > > I would like some help for compile the linux kernel for gem5. > > Thanks in advance,
There are a pair of config files located in the tar ball here : http://www.m5sim.org/dist/current/arm/arm-system-2011-08.tar.bz2 You can copy one of those over .config and compile that, instead of using xconfig. I think the android config file is a 2.6.37 kernel. Btw, you need to add an option EXTRA_CFLAGS=-mno-unaligned-access to the make command line for this to work. So, the command line would be : make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- EXTRA_CFLAGS=-mno-unaligned-access Also, use the tool chain from http://www.mentor.com/embedded-software/codesourcery since that's guaranteed to work. The following two threads may be useful : http://m5sim.org/cgi-bin/mailman/private/gem5-users/2012-June/019680.html and http://m5sim.org/cgi-bin/mailman/private/gem5-users/2012-June/019665.html > > David. > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
