Panagiotis Grivas <griva <at> ceid.upatras.gr> writes: > > Hi! I am new to gem5, i want to get a Alpha executable of FFT (splash > benchmarks) using alpha cross compiler. I follow the the Guide is aimed > at the M5 beginners (gem5.org) by modifying CC, CFLAGS, and LDFLAGS, but > i am getting: "make: *** [fft.o] Error 127". Can anyone give me > instractions (full steps) in order to get the executable; > Thanks in advance! >
wget http://www.m5sim.org/dist/current/alphaev67-unknown-linux-gnu.tar.bz2 tar -xjvf alphaev67-unknown-linux-gnu.tar.bz2 (This is for 64 bit Ubuntu,if your Ubuntu is 32 bit,download here:http://www.gem5.org/Download) Change Makefile.config to use the crosscompiler by modifying CC,CFLAGS,and LDFLAGS cc:=/path/to/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu- gcc CFLAGS:=$(CFLAGS) -I/path/to/alphaev67-unknown-linux-gnu/alphaev67-unknown- linux-gnu/sys-root/usr/include LDFLAGS:=$(LDFLAGS) -L/path/to/alphaev67-unknown-linux-gnu/alphaev67- unknown-linux-gnu/lib/ You also need to modify the Makefile to compile statically,since the disk image doesn't have the correct libraries to dynamically link to. CFLAGS := $(CFLAGS) -static -static-libgcc Then,cd benchmark and make. Run FFT in M5: 1)mount -o loop,offset=32256 linux-parsec-2-1-m5.img /mnt/m5_disk(make m5_disk first) mkdir -p /mnt/m5_disk/benchmarks/ cp FFT /mnt/m5_disk/benchmarks/ (cd directory of benchmarks) 2)add a fft benchmark to configs/common/Benchmarks.py.Add the following data to the Benchmarks data structure: 'fft': [SysConfig('fft.rcS','512MB')], 3)make the rcS script at configs/boot/fft.rcS.This is the script m5 will run when it boots linux #! /bin/sh cd benchmarks Echo "Running FFT now..." ./FFT -t -p1 #Gracefully exit M5 /sbin/m5 exit Now run M5: ./build/ALPHA/m5.opt configs/example/fs.py -n 1 -b fft To check the progress of your simulation,you can telnet into the booting linux machine using m5term.Or you can wait until it's done and examine m5out/system.terminal.At the bottom you should see TEST PASSED _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
