Hi all,

I've been toying with the DVFS example in
https://www.gem5.org/documentation/learning_gem5/part2/arm_dvfs_support/
with a v21 distro of GEM5.
I got it working despite some small version variations...

This is the command I use to launch the simulation:
./build/ARM/gem5.opt \
./configs/example/arm/fs_bigLITTLE_DVFS.py \
--cpu-type=atomic \
--big-cpu-clock 2GHz 1GHz 500MHz \
--little-cpu-clock 1GHz 500MHz 250MHz \
--big-cpu-voltage 1.0V 0.5V 0.25V \
--little-cpu-voltage 1.0V 0.5V 0.25V \
--dvfs \
--bootloader=./common/boot.arm64 \
--kernel=./common/kernel_test/vmlinux \
--disk=./common/aarch64-ubuntu-trusty-headless.img \
--bootscript=./common/bash.rcS

Where fs_bigLITTLE_DVFS.py  was modified following the guide; boot.arm64
and aarch64-ubuntu-trusty-headless.img were obtained from the gem5 guest
binaries repo (
https://www.gem5.org/documentation/general_docs/fullsystem/guest_binaries);
bash.rcS is a simple command line application; and vmlinux was obtained
from  https://gem5.googlesource.com/arm/linux and compiled with

make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- gem5_defconfigmake
ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- -j $(nproc)

However, the latest linux version in googlesource is 4.15 and for different
reasons I'm interested in the newer versions of the kernel.
So, naturally I obtained the vanilla linux kernel from Linus' repository
and compiled it with

make ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- defconfigmake
ARCH=arm64 CROSS_COMPILE=aarch64-none-elf- -j $(nproc)

I've tested the latest version (5.19) and even checked out the v4.14 and
v4.15 branches; however, while the simulation works, the cpufreq driver is
nowhere to be found.
I've also tested using the pre-compiled kernel from the guest binaries
(v4.15) and it also works.
Finally, I tested building the kernel from the googlesource using different
configurations (gem5_defconfig, oldconfig, defconfig) and only defconfig
fails to generate the cpufreq drivers.

Any ideas as to what I'm missing or some insights on what needs to be
changed to defconfig in the vanilla kernels?

Best,
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to