!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

357 Members
113 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
3 Jul 2023
@raitobezarius:matrix.orgraitobezariusThis was mentioned above09:33:30
@raitobezarius:matrix.orgraitobezariusI'm not sure it's a good idea to buy this right right now09:33:43
4 Jul 2023
@alex:tunstall.xyzAlex
In reply to @alex:tunstall.xyz

Has anyone worked out how to get the VF2 to run at 1.5GHz?

I'm using a kernel with the AXP15060 enabled and all the patches for PMIC and CPU freq applied, but the system still runs at 1GHz (the boot clock rate).

[nixos@nixos:/etc/nixos/nixos-vf2]$ sudo cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_{cur,max}_freq
1000000
1500000
[nixos@nixos:/etc/nixos/nixos-vf2]$ sudo cat /sys/devices/system/cpu/cpufreq/policy0/scaling_{driver,governor,cur_freq}
cpufreq-dt
performance
1500000

I've asked upstream because I couldn't work out what's wrong, inexperienced as I am at kernel hacking.

https://github.com/starfive-tech/VisionFive2/issues/55

08:02:34
@emilytrau:matrix.orgemilytrau Any ideas on how to get an LLVM crossLibcStdenv with C++ support? SerenityOS needs it to bootstrap libc but I can't see a straightforward way to enable it like with GCC (https://github.com/NixOS/nixpkgs/pull/186484/files#diff-ab5748dc9567516fefba8344056b51ec1866adeace380f46e58a7af3d619ea22R15251) 11:01:08
@fgaz:matrix.orgfgaz2023-07-04-145913_786x410_scrot.png
Download 2023-07-04-145913_786x410_scrot.png
13:00:00
@fgaz:matrix.orgfgaz\o/13:00:07
@alex:tunstall.xyzAlex
In reply to @fgaz:matrix.org
sent an image.

Is that the devel branch kernel?

The CPU frequency shown is the max frequency, but is that also what you get for /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq?

Asking because I don't want to spend 10+ hours building the devel branch kernel (+ time needed to get it to build and work properly).

15:24:53
@raitobezarius:matrix.orgraitobezariusyou can also just cross compile :p15:26:09
@alex:tunstall.xyzAlex
In reply to @raitobezarius:matrix.org
you can also just cross compile :p

I'm not entirely sure how I'd then hook that into nixos-rebuild.

nix copy to the VF2 and then hardcode the store path (or a symlink to it) in place of the native kernel in the system config?

15:29:04
@raitobezarius:matrix.orgraitobezariusyou want to mix native and cross compiled derivations?15:29:41
@raitobezarius:matrix.orgraitobezariusI'd cross compile an entire NixOS system, boot it, then pick up the rest with native derivation or just keep up with cross compiled stuff15:29:58
@alex:tunstall.xyzAlexI already have a running native system, so I'd rather stick to native.15:30:53
@raitobezarius:matrix.orgraitobezariusI see15:34:33
@alex:tunstall.xyzAlex

That's how I know how long it takes to build the Linux kernel in the first place. 🙃

(I could probably disable a lot of unused modules to reduce the build times, but is it worth it?)

15:39:16
@fgaz:matrix.orgfgaz
In reply to @alex:tunstall.xyz

Is that the devel branch kernel?

The CPU frequency shown is the max frequency, but is that also what you get for /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq?

Asking because I don't want to spend 10+ hours building the devel branch kernel (+ time needed to get it to build and work properly).

It's this one (the board is a star64, not a vf2) https://github.com/Fishwaldo/Star64_linux/commit/765947eacb2408a3a232cbe8093bf28a991f3c35

Yes I get 1.5GHz

15:58:44

Show newer messages


Back to Room ListRoom Version: 6