Skip to content

Instantly share code, notes, and snippets.

@cyring
Created March 10, 2025 18:03
Show Gist options
  • Select an option

  • Save cyring/e077025f36391f7a52f753aa0fa33aeb to your computer and use it in GitHub Desktop.

Select an option

Save cyring/e077025f36391f7a52f753aa0fa33aeb to your computer and use it in GitHub Desktop.
POWER10
IBM POWER10 Functional Simulator
@cyring
Copy link
Copy Markdown
Author

cyring commented Mar 12, 2025

Debian

  • Download the Debian virtual machine, in qcow2 format: 64-bit Little Endian PowerPC (qcow2)
  • Install QEMU for PowerPC
  • Start the virtual machine with the qcow image
pacman -S qemu-system-ppc

qemu-system-ppc64 -nographic -smp 6 -m 3G debian-12-nocloud-ppc64el.qcow2
  • Once in the VM, create a privileged user account
useradd -m nickname
passwd nickname
nano /etc/sudoers.d/01_first
nickname ALL=(ALL) ALL
  • Install the kernel development packages
sudo apt-get update
apt-cache search linux-headers-$(uname -r)
sudo apt install linux-headers-6.1.0-31-powerpc64le
sudo apt install make
sudo apt install gcc
sudo apt install ssh
sudo apt install git

CoreFreq

  • Build and Run CoreFreq, alpha preview version for PowerPC
cd
mkdir src
cd src
git clone git@github.com:cyring/CoreFreq.git
make -j

sudo sync; sudo insmod build/corefreqk.ko 
sudo sync; sudo build/corefreqd -q &
./build/corefreq-cli 

jobs
kill %1
sudo rmmod corefreqk

2025-03-12-181149_642x410_scrot
2025-03-12-181107_642x359_scrot
2025-03-12-181119_642x359_scrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment