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
cd linux-kernel-module-cheat
./configure
./build
./run
./configure && ./build && ./run
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"
if [ "$arch" = 'arm-gem5' ]; then
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"
else
echo "\
@@ -92,6 +91,7 @@ time \
$extra_targets \
all \
;
cd ..
if [ "$arch" = 'arm-gem5' ]; then
./build-gem5
fi

View File

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