| 3 Jul 2023 |
raitobezarius | I'm not sure it's a good idea to buy this right right now | 09:33:43 |
| 4 Jul 2023 |
Alex | 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 | 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 |  Download 2023-07-04-145913_786x410_scrot.png | 13:00:00 |
fgaz | \o/ | 13:00:07 |
Alex | 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 | you can also just cross compile :p | 15:26:09 |
Alex | 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 | you want to mix native and cross compiled derivations? | 15:29:41 |
raitobezarius | I'd cross compile an entire NixOS system, boot it, then pick up the rest with native derivation or just keep up with cross compiled stuff | 15:29:58 |
Alex | I already have a running native system, so I'd rather stick to native. | 15:30:53 |
raitobezarius | I see | 15:34:33 |
Alex | 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 | 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 |
fgaz | Oh and I had to patch it a bunch | 15:59:57 |
fgaz | I'll add it to nixos-hardware shortly | 16:01:51 |
Alex | In reply to @fgaz:matrix.org
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 Thanks. Both boards use the same SoC, so it still gives me more material to sift through. | 16:02:00 |
| 5 Jul 2023 |
| AtnNn joined the room. | 18:20:40 |
| 6 Jul 2023 |
| Lukas set a profile picture. | 12:32:04 |
| Lukas changed their profile picture. | 12:36:40 |
| Lukas changed their profile picture. | 12:42:35 |
| 7 Jul 2023 |
| Lotte (it/its)/Cinny (she/her) θΔ& changed their profile picture. | 05:31:03 |
fgaz | In reply to @fgaz:matrix.org sent an image. https://github.com/NixOS/nixos-hardware/pull/662 | 19:34:35 |
raitobezarius | Redacted or Malformed Event | 19:38:51 |
Alex | In reply to @fgaz:matrix.org https://github.com/NixOS/nixos-hardware/pull/662 I'm currently compiling with a few patches applied to try to fix the compilation problems without disabling DRM, since I'd really like to get working HDMI on my VF2.
I'll share the configuration if I'm able to get it working. Given the similarities between the two SBCs (and their respective Linux fork), it might work for the Star64 too. | 20:43:23 |
| 8 Jul 2023 |
misuzu | 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
It's even worse now, haha
% sudo grep '' /sys/devices/system/cpu/cpufreq/policy0/*
/sys/devices/system/cpu/cpufreq/policy0/affected_cpus:0 1 2 3
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq:500000
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq:375000
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency:4294967295
/sys/devices/system/cpu/cpufreq/policy0/related_cpus:0 1 2 3
/sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies:375000 500000 750000 1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors:performance schedutil
/sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_driver:cpufreq-dt
/sys/devices/system/cpu/cpufreq/policy0/scaling_governor:performance
/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed:<unsupported>
% uname -a
Linux nixos 6.4.0 #1-NixOS SMP Tue Jan 1 00:00:00 UTC 1980 riscv64 GNU/Linux
| 19:26:23 |
Alex | In reply to @misuzu:matrix.org
It's even worse now, haha
% sudo grep '' /sys/devices/system/cpu/cpufreq/policy0/*
/sys/devices/system/cpu/cpufreq/policy0/affected_cpus:0 1 2 3
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq:500000
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq:375000
/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency:4294967295
/sys/devices/system/cpu/cpufreq/policy0/related_cpus:0 1 2 3
/sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies:375000 500000 750000 1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors:performance schedutil
/sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_driver:cpufreq-dt
/sys/devices/system/cpu/cpufreq/policy0/scaling_governor:performance
/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq:1500000
/sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed:<unsupported>
% uname -a
Linux nixos 6.4.0 #1-NixOS SMP Tue Jan 1 00:00:00 UTC 1980 riscv64 GNU/Linux
I was on upstream 6.4.0 (from commit 4964ce0a869e) when I wrote that. I assume from your repository that this behaviour is from a build of e5a381c51d624ffd8784db908a58ae227d0608a4? | 19:38:50 |
misuzu | In reply to @alex:tunstall.xyz I was on upstream 6.4.0 (from commit 4964ce0a869e) when I wrote that. I assume from your repository that this behaviour is from a build of e5a381c51d624ffd8784db908a58ae227d0608a4? Yep. Though probably it's because of my non-vendor u-boot | 19:41:11 |
Alex | It might not be a u-boot issue because when I booted the vendor's Debian image using the same u-boot I use for NixOS, it ran at 1.5 GHz. Or maybe you've run into a completely different problem with similar symptoms? | 19:42:46 |
Alex | By the way, the latest vendor u-boot is not flashable with the kernel from the upstream branch, because of the partition table in the DTB. | 19:44:42 |