!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

346 Members
109 Servers

Load older messages


SenderMessageTime
12 Jul 2023
@thefossguy:matrix.orgPratham Patel Ah okay 10:46:37
@alex:tunstall.xyzAlex

Concerning the VF2 CPU frequency issue on the "upstream" branch: a Starfive employee has responded to say that it'll be fixed once the JH7110 PLL patchset is accepted upstream.

If anyone doesn't want to wait for the vendor's fix, the issue is that the PLL0 clock runs at 1GHz instead of 1.5GHz. I'd write a patch for it myself, but I can't figure out what change needs to be made, so good luck to anyone willing to try. If you do find a fix, please share it in the GitHub issue.

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

16:27:44
@thefossguy:matrix.orgPratham PatelThey're here: https://lore.kernel.org/all/20230613125852.211636-1-xingyu.wu@starfivetech.com/17:01:16
@thefossguy:matrix.orgPratham Patel
In reply to @alex:tunstall.xyz

This should work. https://github.com/AlexandreTunstall/nixos-vf2/releases/tag/broken-v1

If needed, I can spend extra time to build a disk image instead.

I see the extracted .nar file but don't know how to import it... I get the following error:

$ nix-store --import ./new-nix.nar
error: no arguments expected
Try 'nix-store --help' for more information.
17:05:39
@thefossguy:matrix.orgPratham PatelOh my bad17:06:45
@thefossguy:matrix.orgPratham PatelI'm adhd-ing too much17:06:51
@thefossguy:matrix.orgPratham PatelI didn't have to specify the nar archive XD17:07:01
@alex:tunstall.xyzAlexPipe it through stdin17:07:53
@thefossguy:matrix.orgPratham Patel nix store cat --store ./new-nix.nar | nix-store --import? 17:09:07
@thefossguy:matrix.orgPratham PatelSorry, I'm a newb :(17:09:36
@alex:tunstall.xyzAlex
nix-store --import < ./new-nix.nar

(This command is also in man nix-store)

17:09:41
@thefossguy:matrix.orgPratham Patel I saw nix-store --import < out in the manpage but didn't try it because I didn't see the .nar extension... My bad. Sorry 17:12:07
@thefossguy:matrix.orgPratham PatelIt is normal to not have any output?17:13:12
@thefossguy:matrix.orgPratham PatelAll 4 cores are idle too17:13:18
@alex:tunstall.xyzAlexYes, no output is normal in the Linux world.17:13:37
@thefossguy:matrix.orgPratham Patel Usually I see a lot of output in nixos-rebuild XD 17:14:21
@alex:tunstall.xyzAlex You should now have /nix/store/mpgh4905nxkpf0jxcx90lchhf6l5gpiq-nixos-system-nixos-23.11.git.7c67f006ea0M if the command worked. 17:14:27
@thefossguy:matrix.orgPratham PatelIt's still churning. I'll wait for it to finish17:14:59
@alex:tunstall.xyzAlex

That's because Nix is busy building the stuff in your configuration.

Since I've shared the output, you don't need to build it yourself and can just import it directly into your store.

17:15:08
@thefossguy:matrix.orgPratham PatelOkay yeah, got the "expected" output.17:15:13
@thefossguy:matrix.orgPratham Patel The last line says /nix/store/mpgh4905nxkpf0jxcx90lchhf6l5gpiq-nixos-system-nixos-23.11.git.7c67f006ea0M 17:15:38
@thefossguy:matrix.orgPratham PatelIt matches with your hash17:15:46
@thefossguy:matrix.orgPratham PatelI'll reboot now17:15:50
@alex:tunstall.xyzAlexYeah, that's Nix telling you what output has been imported.17:15:55
@alex:tunstall.xyzAlexYou also need to switch the boot system to it first.17:16:05
@alex:tunstall.xyzAlex* Yeah, that's Nix telling you what store paths have been imported.17:16:39
@thefossguy:matrix.orgPratham PatelYep, switched17:17:01
@thefossguy:matrix.orgPratham PatelDid I f-up by being extra smart? 🙃17:24:35
@alex:tunstall.xyzAlex?17:24:41
@thefossguy:matrix.orgPratham Patel I noticed that the image (https://github.com/misuzu/nixos-vf2) didn't boot with all combinations of DIP switches so me being extra smart, I dd-ed uboot SPL and SBI firmware on /dev/sda1 and /dev/sda2 respectively and mvoed /boot to /dev/sda3 and / to /dev/sda4. Now, your derivation doesn't work because it expects "/dev/sda1" to be EFI? 17:27:21

Show newer messages


Back to Room ListRoom Version: 6