File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,11 @@ firmware.
1212
1313Alternatively, starting from the _ Tow-Boot_ disk image on eMMC is easier to
1414deal 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 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 = {
You can’t perform that action at this time.
0 commit comments