| 11 Jul 2023 |
fgaz | In reply to @alex:tunstall.xyz I've gotten Linux 5.15 (VF2 dev branch) to compile but it doesn't boot, doesn't log to journalctl, and doesn't output to HDMI, so I've folded and ordered the necessary hardware to debug over serial. I have a serial adapter, could you publish your patches so I can try them on the star64? | 17:43:14 |
| 12 Jul 2023 |
Alex | In reply to @fgaz:matrix.org I have a serial adapter, could you publish your patches so I can try them on the star64? Sure: https://github.com/AlexandreTunstall/nixos-vf2/tree/linux-devel
This isn't the exact code I'm building (my VF2 configuration files are a bit of a mess), but it should work when built natively or at the very least allow you to build the same kernel. | 04:34:43 |
Pratham Patel | My main machine (x86 computer) is dead so don't have enough resources to CXX but if I could get an image, I can check for the issue... | 06:58:27 |
Alex | In reply to @thefossguy:matrix.org My main machine (x86 computer) is dead so don't have enough resources to CXX but if I could get an image, I can check for the issue... I might be able to generate a NAR of the closure. | 07:15:53 |
Alex | 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. | 07:39:40 |
Alex | By the way, if you don't already have NixOS on the VF2, you can get a bootable image from here: https://github.com/misuzu/nixos-vf2/releases (set boot mode to flash). | 07:45:19 |
Pratham Patel | Ah, this is tricky for me... I'll see what I can do | 10:20:08 |
Pratham Patel | I don't have a big enough SD Card that can handle more than one generation :( | 10:20:31 |
Alex | In reply to @thefossguy:matrix.org I don't have a big enough SD Card that can handle more than one generation :( 4GB should be enough, the closure is ~850MiB and misuzu's images are <2GiB.
You can also download/inflate it onto tmpfs if you barely have enough space to import it into the Nix store. | 10:24:39 |
Pratham Patel | Ah okay | 10:46:37 |
Alex | 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 |
Pratham Patel | They're here: https://lore.kernel.org/all/20230613125852.211636-1-xingyu.wu@starfivetech.com/ | 17:01:16 |
Pratham 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 |
Pratham Patel | Oh my bad | 17:06:45 |
Pratham Patel | I'm adhd-ing too much | 17:06:51 |
Pratham Patel | I didn't have to specify the nar archive XD | 17:07:01 |
Alex | Pipe it through stdin | 17:07:53 |
Pratham Patel | nix store cat --store ./new-nix.nar | nix-store --import? | 17:09:07 |
Pratham Patel | Sorry, I'm a newb :( | 17:09:36 |
Alex | nix-store --import < ./new-nix.nar
(This command is also in man nix-store) | 17:09:41 |
Pratham 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 |
Pratham Patel | It is normal to not have any output? | 17:13:12 |
Pratham Patel | All 4 cores are idle too | 17:13:18 |
Alex | Yes, no output is normal in the Linux world. | 17:13:37 |
Pratham Patel | Usually I see a lot of output in nixos-rebuild XD | 17:14:21 |
Alex | You should now have /nix/store/mpgh4905nxkpf0jxcx90lchhf6l5gpiq-nixos-system-nixos-23.11.git.7c67f006ea0M if the command worked. | 17:14:27 |
Pratham Patel | It's still churning. I'll wait for it to finish | 17:14:59 |
Alex | 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 |
Pratham Patel | Okay yeah, got the "expected" output. | 17:15:13 |
Pratham Patel | The last line says /nix/store/mpgh4905nxkpf0jxcx90lchhf6l5gpiq-nixos-system-nixos-23.11.git.7c67f006ea0M | 17:15:38 |