Skip to content

Commit b48cc4d

Browse files
erikeahmergify[bot]
authored andcommitted
pine64/rockpro64: HDMI output and Network in initrd
1 parent ae546d0 commit b48cc4d

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

pine64/rockpro64/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ firmware.
1212

1313
Alternatively, starting from the _Tow-Boot_ disk image on eMMC is easier to
1414
deal with and understand than having to deal with _U-Boot_ manually.
15+
16+
## Console
17+
18+
To configure default console I/O to use serial instead of HDMI (default):
19+
20+
```nix
21+
hardware.rockpro64.console = "serial";
22+
```

pine64/rockpro64/console.nix

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{ config, lib, ... }:
2+
{
3+
options.hardware.rockpro64.console = lib.mkOption {
4+
default = "hdmi";
5+
description = "Default console to use at boot.";
6+
type = lib.types.enum [
7+
"hdmi"
8+
"serial"
9+
];
10+
};
11+
config = lib.mkIf (config.hardware.rockpro64.console == "hdmi") {
12+
boot.kernelParams = [
13+
"console=ttyS0"
14+
"console=tty0"
15+
];
16+
};
17+
}

pine64/rockpro64/default.nix

+7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
{ lib, ... }:
22
{
3+
imports = [
4+
./console.nix
5+
];
36
boot.initrd.kernelModules = [
47
# PCIe/NVMe
58
"nvme"
69
"pcie_rockchip_host"
710
"phy_rockchip_pcie"
11+
# Network
12+
"dwmac_rk"
13+
# HDMI
14+
"rockchipdrm"
815
];
916
# control the fan on the rockpro64 (like the one in the NAS case)
1017
hardware.fancontrol = {

0 commit comments

Comments
 (0)