NixOS on ARM/Libre Computer ROC-RK3328-CC: Difference between revisions

imported>Cyber-murmel
m explain postBuildCommands
imported>Cyber-murmel
m explain USB service
Line 102: Line 102:


== USB ==
== USB ==
To enable USB power ''GPIO1_D2'' must be pulled high. D2 translates to 26 (D=4, 4*8+2=26). This is most easily done with the following systemd service.
To enable USB power ''GPIO1_D2'' must be pulled high. D2 translates to 26 (D=4, 4*8+2=26). Normally this is configured in the device tree, which gets loaded at boot time. At the time of writing, the ROC-RK3328-CC version of u-boot hasn't been ported to nixpkgs yet, so this is most easily done with the following systemd service.


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>