Skip to content

Commit

Permalink
hardware/rockchip: Add default installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldr committed Feb 26, 2022
1 parent dfefba7 commit ac6d9e2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/hardware/rockchip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ let
partitionOffset = 64; # in sectors
secondOffset = 16384; # in sectors
sectorSize = 512;

anyRockchip = lib.any (v: v) [cfg.rockchip-rk3399.enable];
isPhoneUX = config.Tow-Boot.phone-ux.enable;
in
{
options = {
Expand Down Expand Up @@ -126,5 +129,23 @@ in
};
};
})

# Documentation fragments
(mkIf (anyRockchip && !isPhoneUX) {
documentation.sections.installationInstructions =
lib.mkDefault
(config.documentation.helpers.genericInstallationInstructionsTemplate {
startupConflictNote = ''
> **NOTE**: The SoC startup order for Rockchip systems will
> prefer *SPI*, then *eMMC*, followed by *SD* last.
>
> You may need to prevent default startup sources from being used
> to install using the Tow-Boot installer image.
'';
})
;
})
];
}

0 comments on commit ac6d9e2

Please sign in to comment.