Skip to content

Commit 7e56e39

Browse files
authored
Merge pull request #1583 from RossComputerGuy/feat/fydetab-duo
Add Fydetab Duo
2 parents ba6fab2 + d9b0f10 commit 7e56e39

File tree

13 files changed

+10008
-0
lines changed

13 files changed

+10008
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ See code for all available configurations.
207207
| [FriendlyARM NanoPC-T4](friendlyarm/nanopc-t4) | `<nixos-hardware/friendlyarm/nanopc-t4>` | `friendlyarm-nanopc-t4` |
208208
| [FriendlyARM NanoPi R5s](friendlyarm/nanopi-r5s) | `<nixos-hardware/friendlyarm/nanopi-r5s>` | `friendlyarm-nanopi-r5s` |
209209
| [Focus M2 Gen 1](focus/m2/gen1) | `<nixos-hardware/focus/m2/gen1>` | `focus-m2-gen1` |
210+
| [Fydetab Duo](fydetab/duo) | `<nixos-hardware/fydetab/duo>` | `fydetab-duo` |
210211
| [Gigabyte B550](gigabyte/b550) | `<nixos-hardware/gigabyte/b550>` | `gigabyte-b550` |
211212
| [Gigabyte B650](gigabyte/b650) | `<nixos-hardware/gigabyte/b650>` | `gigabyte-b650` |
212213
| [GMKtec NucBox G3 Plus](gmktec/nucbox/g3-plus) | `<nixos-hardware/gmktec/nucbox/g3-plus>` | `gmktec-nucbox-g3-plus` |

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
friendlyarm-nanopc-t4 = import ./friendlyarm/nanopc-t4;
142142
friendlyarm-nanopi-r5s = import ./friendlyarm/nanopi-r5s;
143143
focus-m2-gen1 = import ./focus/m2/gen1;
144+
fydetab-duo = import ./fydetab/duo;
144145
gigabyte-b550 = import ./gigabyte/b550;
145146
gigabyte-b650 = import ./gigabyte/b650;
146147
gmktec-nucbox-g3-plus = import ./gmktec/nucbox/g3-plus;

fydetab/duo/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Fydetab Duo
2+
3+
The Fydetab Duo is an open source and hackable tablet by FydeOS.
4+
5+
## Features
6+
7+
- Display: **works**
8+
- GPU driver: **not working**
9+
- WiFi: **working**
10+
- Cellular: **untested**
11+
- SD card: **untested**
12+
- Sound: **untested**
13+
- Fingerprint: **untested**
14+
15+
## Flashing
16+
17+
Flashing requires `rkdeveloptool` and using it to write the new bootloader and eMMC image. To flash, press and hold the mask rom button on the board. Ensure a USB C cable is already plugged into the host computer. Run `nix build .#nixosConfigurations.<hostname>.config.hardware.rockchip.platformFirmware` and then use `rkdeveloptool ul result/rk3588_spl_loader_v1.18.113.bin`. The NixOS image can then be downloaded using `rkdeveloptool wl 0`, it is recommended to use the disko image configuration which is provided.

fydetab/duo/ap6275p.nix

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
}:
6+
stdenv.mkDerivation (_finalAttrs: {
7+
pname = "ap6275p-firmware";
8+
version = "2023-11-05";
9+
10+
src = fetchFromGitHub {
11+
owner = "Joshua-Riek";
12+
repo = "firmware";
13+
rev = "621ac45f5d931522bc08b51b995b938778973d2a";
14+
hash = "sha256-ksAOxZTnEka9SirHYxroLMbKi+99FY72X2z1pJhgYnY=";
15+
};
16+
17+
compressFirmware = false;
18+
19+
dontConfigure = true;
20+
dontBuild = true;
21+
22+
installPhase = ''
23+
runHook preInstall
24+
25+
mkdir -p $out/lib/firmware/ap6275p
26+
install -m644 ap6275p/BCM4362A2.hcd $out/lib/firmware/ap6275p/
27+
install -m644 ap6275p/clm_bcm43752a2_pcie_ag.blob $out/lib/firmware/ap6275p/
28+
install -m644 ap6275p/fw_bcm43752a2_pcie_ag.bin $out/lib/firmware/ap6275p/
29+
install -m644 ap6275p/nvram_AP6275P.txt $out/lib/firmware/ap6275p/
30+
install -m644 ap6275p/config.txt $out/lib/firmware/ap6275p/
31+
32+
mv $out/lib/firmware/ap6275p/nvram_AP6275P.txt $out/lib/firmware/ap6275p/nvram_ap6275p.txt
33+
mv $out/lib/firmware/ap6275p/config.txt $out/lib/firmware/ap6275p/config_bcm43752a2_pcie_ag.txt
34+
35+
runHook postInstall
36+
'';
37+
38+
meta = {
39+
description = "Firmware for the AP6275P WiFi/Bluetooth module";
40+
homepage = "https://github.com/Joshua-Riek/firmware";
41+
license = lib.licenses.unfree;
42+
};
43+
})

fydetab/duo/brcm-patchram.nix

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchurl,
5+
autoPatchelfHook,
6+
}:
7+
stdenv.mkDerivation (_finalAttrs: {
8+
pname = "brcm-patchram-plus";
9+
version = "2024-08-23";
10+
11+
src = fetchurl {
12+
url = "https://github.com/Linux-for-Fydetab-Duo/pkgbuilds/raw/fd5ebe4914f32c5a1c4fc15b4fb5a62bad2da1ea/fydetabduo-post-install/brcm_patchram_plus";
13+
hash = "sha256-fZ1ximZcosZDYbveEkyMnasLWpcifaZ5CKz7QKtqKZQ=";
14+
};
15+
16+
nativeBuildInputs = [
17+
autoPatchelfHook
18+
];
19+
20+
unpackPhase = ''
21+
runHook preUnpack
22+
cp --no-preserve=ownership,mode $src brcm_patchram_plus
23+
chmod +x brcm_patchram_plus
24+
runHook postUnpack
25+
'';
26+
27+
dontConfigure = true;
28+
dontBuild = true;
29+
30+
installPhase = ''
31+
runHook preInstall
32+
33+
mkdir -p $out/bin
34+
cp brcm_patchram_plus $out/bin
35+
autoPatchelf $out/bin/brcm_patchram_plus
36+
37+
runHook postInstall
38+
'';
39+
40+
meta = {
41+
license = lib.licenses.unfree;
42+
mainProgram = "brcm_patchram_plus";
43+
};
44+
})

0 commit comments

Comments
 (0)