From 711d9f8127faae92138dc038881dc066ea52b9bb Mon Sep 17 00:00:00 2001 From: Tom Fitzhenry Date: Fri, 29 Sep 2023 22:10:49 +1000 Subject: [PATCH] pine64-rockpro64: init --- CODEOWNERS | 1 + pine64/rockpro64/README.md | 14 ++++++++++++++ pine64/rockpro64/default.nix | 14 ++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 pine64/rockpro64/README.md create mode 100644 pine64/rockpro64/default.nix diff --git a/CODEOWNERS b/CODEOWNERS index b5ee02ea7..4a19fd68b 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -4,6 +4,7 @@ dell/xps/13-9380 @kalbasit lenovo/thinkpad/x230 @makefu @yegortimoshenko lenovo/thinkpad/x250 @Mic92 pcengines/apu @yegortimoshenko +pine64/rockpro64 @tomfitzhenry pine64/star64 @fgaz purism/librem/13v3 @yegortimoshenko system76/darp6 @khumba diff --git a/pine64/rockpro64/README.md b/pine64/rockpro64/README.md new file mode 100644 index 000000000..e4695a478 --- /dev/null +++ b/pine64/rockpro64/README.md @@ -0,0 +1,14 @@ +# Pine64 RockPro64 + +## _Tow-Boot_ + +We highly suggest installing _Tow-Boot_ to the SPI Flash. + +- https://github.com/Tow-Boot/Tow-Boot + +Having the firmware installed to SPI makes the device act basically like a +normal computer. No need for weird incantations to setup the platform boot +firmware. + +Alternatively, starting from the _Tow-Boot_ disk image on eMMC is easier to +deal with and understand than having to deal with _U-Boot_ manually. diff --git a/pine64/rockpro64/default.nix b/pine64/rockpro64/default.nix new file mode 100644 index 000000000..cd66cd9eb --- /dev/null +++ b/pine64/rockpro64/default.nix @@ -0,0 +1,14 @@ +{ pkgs, lib, ... }: +{ + boot.kernelParams = [ + # Set 115200 baud, per https://tow-boot.org/getting-started.html + "console=ttyS2,115200n8" + ]; + + boot.initrd.kernelModules = [ + # PCIe/NVMe + "nvme" + "pcie_rockchip_host" + "phy_rockchip_pcie" + ]; +}