File tree 3 files changed +32
-0
lines changed
3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,11 @@ firmware.
12
12
13
13
Alternatively, starting from the _ Tow-Boot_ disk image on eMMC is easier to
14
14
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
+ ```
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
{ lib , ... } :
2
2
{
3
+ imports = [
4
+ ./console.nix
5
+ ] ;
3
6
boot . initrd . kernelModules = [
4
7
# PCIe/NVMe
5
8
"nvme"
6
9
"pcie_rockchip_host"
7
10
"phy_rockchip_pcie"
11
+ # Network
12
+ "dwmac_rk"
13
+ # HDMI
14
+ "rockchipdrm"
8
15
] ;
9
16
# control the fan on the rockpro64 (like the one in the NAS case)
10
17
hardware . fancontrol = {
You can’t perform that action at this time.
0 commit comments