gem5 works

This commit is contained in:
Ciro Santilli
2017-12-28 21:24:10 +00:00
parent 8ddefa940e
commit ba99c525d8
3 changed files with 4 additions and 7 deletions

View File

@@ -8,9 +8,7 @@ Reserve 12Gb of disk and run:
git clone https://github.com/cirosantilli/linux-kernel-module-cheat git clone https://github.com/cirosantilli/linux-kernel-module-cheat
cd linux-kernel-module-cheat cd linux-kernel-module-cheat
./configure ./configure && ./build && ./run
./build
./run
The first build will take a while ([GCC](https://stackoverflow.com/questions/10833672/buildroot-environment-with-host-toolchain), Linux kernel), e.g.: The first build will take a while ([GCC](https://stackoverflow.com/questions/10833672/buildroot-environment-with-host-toolchain), Linux kernel), e.g.:

4
build
View File

@@ -63,8 +63,7 @@ make O="$outdir" BR2_EXTERNAL="$(pwd)/../kernel_module" "$defconfig"
cat ../buildroot_config_fragment >> "${outdir}/.config" cat ../buildroot_config_fragment >> "${outdir}/.config"
if [ "$arch" = 'arm-gem5' ]; then if [ "$arch" = 'arm-gem5' ]; then
echo "\ echo "\
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"../kernel_config_gem5\"
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=../kernel_config_gem5
" >> "${outdir}/.config" " >> "${outdir}/.config"
else else
echo "\ echo "\
@@ -92,6 +91,7 @@ time \
$extra_targets \ $extra_targets \
all \ all \
; ;
cd ..
if [ "$arch" = 'arm-gem5' ]; then if [ "$arch" = 'arm-gem5' ]; then
./build-gem5 ./build-gem5
fi fi

View File

@@ -23,8 +23,7 @@ Vs QEMU:
## ARM ## ARM
./configure ./configure && ./build -a arm-gem5
./build -a arm-gem5
./rungem5 ./rungem5
On another shell: On another shell: