Hi, Really Great Thanks for this support.
Before trying these steps,i have a question about step No.8 This step can be done also through modifying the file "Syspaths.py" except KeyError: path = [ '/dist/m5/system', '/home/wael/gem5/linux-2.6..28.4' ] instead of except KeyError: path = [ '/dist/m5/system', '/n/poolfs/z/dist/m5/system' ] So is this right or wrong ? Thanks again Best Regards Wael AMR On Wed, Jun 27, 2012 at 10:05 PM, Diana Guttman <drg...@cse.psu.edu> wrote: > >> Hi, >> >> Since the git didn't work well with me ,i downloaded linux-2.6.28.4.tar.bz2 >> <http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.4.tar.bz2>then >> i followed these commands at :http://gem5.org/Linux_kernel >> >> and when i applied "make vmlinux -j 4" >> I got the same error message : >> # configuration written to .config >> # >> CHK include/linux/version.h >> UPD include/linux/version.h >> CHK include/linux/utsrelease.h >> UPD include/linux/utsrelease.h >> >> SYMLINK include/asm -> include/asm-x86 >> ln: failed to create symbolic link `include/asm': Read-only file system >> make: *** [include/asm] Error 1 >> make: *** Waiting for unfinished jobs.... >> >> >> So Please would you tell the commands steps that you have used to compile >> the kernel ? >> >> >> Thanks in advance >> Best Regards >> Wael AMR >> >> >> > I'm not sure what that error means. Maybe you can look at the folder you > are installing in and make sure you have write permission everywhere. I > think there needs to be a .config file in the same directory, and then you > can just use "make". > > Here is the problem I was having, for which I needed to recompile the > kernel: when booting, I saw some messages like "WARNING: NR_CPUS limit of 8 > reached. Processor ignored." in the m5_term window. I was trying to run an > x86 full system simulation with 32 cores. > > My steps to build, % is the shell > 1. Download linux version 2.6.28.4 (the version we have a config for) from > http://www.kernel.org/pub/linux/kernel/v2.6/ and extract. > 2. % cd linux-2.6.28.4 > 3. Copy existing config from gem5 folder > % cp $GEM5/x86-system/binaries/linux-2.6.28.4 .config > 4. % make menuconfig > This brings up a menu where you can change the configuration of the > kernel. In my case, I set SMP support under Processor type to Yes and max > number of CPUs to 32. > 5. Quit from menu > 6. % make > 7. Copy newly created vmlinux into x86 system/binaries folder and rename > if you want e.g vmlinux-2.6.28.4-smp > % cp vmlinux $GEM5/x86-system/binaries > 8. Specify this kernel when running gem5 e.g. > % setenv M5_PATH $GEM5/x86-system > % ./build/X86_FS/gem5.opt ./configs/example/ruby_fs.py -n 32 --kernel > =vmlinux-2.6.28.4-smp > > Diana > > _______________________________________________ > 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