NixOS on ARM/Orange Pi Zero2 H616: Difference between revisions

imported>Ein-shved
m Ein-shved moved page NixOS on ARM/Orange Pi Zero2 H626 to NixOS on ARM/Orange Pi Zero2 H616: Type withing SOC name
imported>Ein-shved
Add more info about USB, Wi-Fi and HDMI
Line 139: Line 139:


{{note|Be careful with such firmware - the unstable kernel version may be harmfull}}
{{note|Be careful with such firmware - the unstable kernel version may be harmfull}}
=== USB ===
The suggested master kernel supports only the onboard usb ports (not sure about USB type-C). If you want to use extension board or D+/D- pins, you need to add dts overlay to enable ehci and ohci ports. Just enable them all, putting this to configuration:
<syntaxHighlight lang=nix>
      hardware.deviceTree = {
        enable = true;
        filter = "sun50i-h616-orangepi-zero2.dtb";
        overlays = [
          {
            name = "sun50i-h616-orangepi-zero2.dtb";
            dtsText = ''
              /dts-v1/;
              /plugin/;
              / {
                compatible = "xunlong,orangepi-zero2", "allwinner,sun50i-h616";
              };
              &ehci0 {
                status = "okay";
              };
              &ehci1 {
                status = "okay";
              };
              &ehci2 {
                status = "okay";
              };
              &ehci3 {
                status = "okay";
              };
              &ohci0 {
                status = "okay";
              };
              &ohci1 {
                status = "okay";
              };
              &ohci2 {
                status = "okay";
              };
              &ohci3 {
                status = "okay";
              };
            '';
          }
        ];
      };
</syntaxHighlight>
=== WiFi ===
According to SOC [https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi dts], Wi-Fi does not supported yet in mainline.
=== HDMI ===
According to SOC [https://github.com/torvalds/linux/blob/master/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi dts], HDMI does not supported yet in mainline.


== Resources ==
== Resources ==