forked from siderolabs/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial extension for RK3588 and kernel modules
- Loading branch information
Showing
7 changed files
with
98 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# RK3588 extension | ||
|
||
## Installation | ||
|
||
See [Installing Extensions](https://github.com/siderolabs/extensions#installing-extensions). | ||
|
||
## Usage | ||
|
||
The following modules to to loaded manually, so add this to the talos config: | ||
```yaml | ||
machine: | ||
kernel: | ||
modules: | ||
- name: rockchip-cpufreq | ||
``` | ||
The rest is automatically detected and loaded based on the device-tree. | ||
Provides: | ||
* `rockchip-cpufreq`: his module is responsible for CPU frequency scaling on Rockchip processors. It manages the CPU's operating frequency and voltage to balance performance and power consumption. | ||
* `rk_crypto2`: A cryptographic driver module for Rockchip SoCs, providing hardware acceleration for cryptographic operations like encryption and decryption, enhancing performance in cryptographic tasks. Currently only hashes are supported. | ||
* `phy-rockchip-naneng-combphy`: Enable this to support the Rockchip PCIe/USB3.0/SATA/QSGMII combo PHY with NaNeng IP block. | ||
* `phy-rockchip-snps-pcie3`: A PHY driver module for Rockchip's Synopsys PCIe3, it manages the physical layer interface for PCI Express 3.0, ensuring reliable and efficient data transmission over PCIe connections. | ||
* `rk808-regulator`: This module controls voltage regulators in the RK808 chip. It's used for managing power supply to various components of the system, ensuring stable operation and power efficiency. | ||
* `rk8xx-core`: A core driver for the RK8xx series of Multi-Function Devices (MFD). This module provides support and interfaces for various integrated functions like power management and others within RK8xx chips. | ||
* `rk8xx-spi`: This module is specifically for SPI (Serial Peripheral Interface) support in RK8xx series chips. It facilitates communication with devices connected via SPI, a common interface used in embedded systems. | ||
* `sm3_generic`: A generic implementation of the SM3 cryptographic hash algorithm. This module provides functionality for generating secure hash values, commonly used in data integrity checks and digital signatures. Need for `rk_crypto2`. | ||
* `rockchip-rng`: A hardware random number generator module for Rockchip SoCs. It provides high-quality random numbers, crucial for cryptographic applications and ensuring system security. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
modules.order | ||
modules.builtin | ||
modules.builtin.modinfo | ||
kernel/drivers/cpufreq/rockchip-cpufreq.ko | ||
kernel/drivers/crypto/rockchip/rk_crypto2.ko | ||
kernel/drivers/regulator/rk808-regulator.ko | ||
kernel/drivers/mfd/rk8xx-core.ko | ||
kernel/drivers/mfd/rk8xx-spi.ko | ||
kernel/crypto/sm3_generic.ko | ||
kernel/drivers/char/hw_random/rockchip-rng.ko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: v1alpha1 | ||
metadata: | ||
name: rk3588-drivers | ||
version: "$VERSION" | ||
author: Nico Berlee | ||
description: | | ||
This system extension provides drivers needed for RK3588 boards. | ||
compatibility: | ||
talos: | ||
version: ">= v1.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: rk3588 | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
# The pkgs version for a particular release of Talos as defined in | ||
# https://github.com/siderolabs/talos/blob/<talos version>/pkg/machinery/gendata/data/pkgs | ||
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/kernel:{{ .BUILD_ARG_PKGS }}" | ||
steps: | ||
- prepare: | ||
- | | ||
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml | ||
- install: | ||
- | | ||
export KERNELRELEASE=$(find /lib/modules -type d -name "*-talos" -exec basename {} \+) | ||
mkdir -p /rootfs | ||
xargs -a /pkg/files/modules.txt -I {} install -D /lib/modules/${KERNELRELEASE}/{} /rootfs/lib/modules/${KERNELRELEASE}/{} | ||
depmod -b /rootfs ${KERNELRELEASE} | ||
- test: | ||
- | | ||
# https://www.kernel.org/doc/html/v4.15/admin-guide/module-signing.html#signed-modules-and-stripping | ||
find /rootfs/lib/modules -name '*.ko' -exec grep -FL '~Module signature appended~' {} \+ | ||
finalize: | ||
- from: /rootfs | ||
to: /rootfs | ||
- from: /pkg/manifest.yaml | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VERSION: "{{ .BUILD_ARG_TAG }}" |
Empty file.