Giter Site home page Giter Site logo

Alpine Linux about corefreq HOT 7 CLOSED

cyring avatar cyring commented on June 1, 2024
Alpine Linux

from corefreq.

Comments (7)

JamiKettunen avatar JamiKettunen commented on June 1, 2024 1

On top of using ln -s instead of making relative symlinks won't you have to fix the instances where $(SYMLINK) was used like from:

$(SYMLINK) Makefile $(BUILD)/Makefile

to:

$(SYMLINK) $(PWD)/Makefile $(BUILD)/Makefile

in https://github.com/cyring/CoreFreq/blob/develop/Makefile#L109, so that $(BUILD)/Makefile won't be a broken symlink? $(HW)/corefreqk.c below also would need the $(PWD)/ prefix

from corefreq.

cyring avatar cyring commented on June 1, 2024

@JamiKettunen

Based on Virtual x86_64 alpine-virt-3.18.3-x86_64.iso

Host [Arch Linux 6.5.4]

qemu-system-x86_64 -enable-kvm -cpu max,hv-runtime -m 2G -smp 4 -cdrom alpine-virt-3.18.3-x86_64.iso

Once VM booted, the following packages have been installed

apk add nano git make gcc musl-dev linux-headers

CoreFreq Makefile is also fixed for symbolic links

git clone -b develop https://github.com/cyring/CoreFreq.git
cd CoreFreq
nano Makefile
SYMLINK ?= ln -s

Now try to build.
You may have to force clean

rm -fr build
make

2023-09-23-124340_739x495_scrot

Missing kernel module: to be continued

from corefreq.

cyring avatar cyring commented on June 1, 2024
  • Alpine is now installed to disk to ease Linux Kernel Headers
apk update
apk upgrade
apk add linux-virt-dev
reboot
  • CoreFreq is now build and run from a standard user
cd ~/src/CoreFreq
nano Makefile
SYMLINK ?= ln -s

prepare:
        @if [ ! -e $(BUILD)/Makefile ]; then \
                $(SYMLINK) $(PWD)/Makefile $(BUILD)/Makefile; \
        fi
rm -fr build
make

2023-09-23-192951_706x115_scrot

  • Need to rebuild a custom kernel ...

from corefreq.

cyring avatar cyring commented on June 1, 2024

Custom Kernel

apk add alpine-sdk sed installkernel bc nawk diffutils findutils pahole openssl-dev python3 linux-virt linux-virt-dev
git config --global user.name "Your Full Name"
git config --global user.email "[email protected]"
git clone https://gitlab.alpinelinux.org/alpine/aports
  • Fix write mode of /var/cache/distfiles/
  • Create User keygen
  • Add User to group abuild
  • Create a branch for custom kernel
# addgroup <yourusername> abuild
abuild-keygen -a -i
cd aports
git checkout -b corefreq-kernel
cd main/linux-lts
cp -vi virt.x86_64.config .config
nano APKBUILD
_flavor-virt
abuild -rd

from corefreq.

cyring avatar cyring commented on June 1, 2024

@JamiKettunen
With your Makefile changes, can you now build and run CoreFreq ?
Can you show the UI with its kernel window and the view in Tasks mode ?

from corefreq.

cyring avatar cyring commented on June 1, 2024

No more work

from corefreq.

cyring avatar cyring commented on June 1, 2024
  • New parallel build

2023-12-17-190428_1280x825_scrot

  • Symlinks

2023-12-17-190554_1280x825_scrot

from corefreq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.