Skip to content

Commit beda2c5

Browse files
polarFire: Remove the polarfire - not maintained
Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
1 parent 7e20ac8 commit beda2c5

File tree

15 files changed

+8
-281
lines changed

15 files changed

+8
-281
lines changed

docs/src/content/docs/ghaf/dev/ref/build_and_run.mdx

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -298,29 +298,3 @@ In the case of i.MX8, Ghaf deployment consists of creating a bootable SD card an
298298
2. Insert an SD card and USB boot media into the board and switch the power on.
299299

300300
---
301-
302-
## Building Ghaf Image for Microchip Icicle Kit
303-
304-
Before you begin:
305-
306-
- Check device-independent [prerequisites](#prerequisites).
307-
- Make sure HSS version 0.99.35-v2023.02 is programmed in your board eNVM. The version can be seen in the pre-bootloader log. Check the video guide to build HSS and program the eNVM: [How to build HSS and program the eNVM?](https://www.youtube.com/watch?v=McAt2-6cwd4)
308-
309-
In the case of the Icicle Kit, Ghaf deployment consists of creating an SD image with U-Boot and Linux kernel from Microchip, and Ghaf-based NixOS rootfs:
310-
311-
1. Build a Ghaf SD image:
312-
313-
a. Run the nix build .#packages.riscv64-linux.microchip-icicle-kit-release command to release the image.
314-
b. Run the nix build .#packages.riscv64-linux.microchip-icicle-kit-debug command to debug the image.
315-
316-
2. Flash the Ghaf SD image:
317-
318-
- If you want to use a SD card:
319-
320-
- Prepare the SD card with the target HW image you built: `./packages/flash/flash.sh -d /dev/<YOUR_SD_CARD> -i result/<IMAGE_NAME>`.
321-
- Insert an SD card into the board and switch the power on.
322-
323-
- If you want to use the onboard MMC:
324-
- You can directly flash a NixOS image to an onboard MMC card: `./packages/flash/flash.sh -d /dev/<YOUR_MMC_DEVICE> -i result/<IMAGE_NAME>`.
325-
326-
For more information on how to access the MMC card as a USB disk, see [MPFS Icicle Kit User Guide](https://github.com/polarfire-soc/polarfire-soc-documentation/blob/v2023.02/reference-designs-fpga-and-development-kits/icicle-kit-user-guide.md).

docs/src/content/docs/ghaf/dev/ref/dependencies.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Ghaf relies on a carefully curated set of external dependencies and repositories
138138
#### systems
139139
**Source**: `github:nix-systems/default`
140140
**Purpose**: Standard system definitions for cross-platform builds
141-
**Platforms**: x86_64-linux, aarch64-linux, riscv64-linux
141+
**Platforms**: x86_64-linux, aarch64-linux
142142

143143
#### nixpkgs-lib
144144
**Source**: `github:NixOS/nixpkgs/lib`

docs/src/content/docs/ghaf/overview/features.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following tables show the status of the Ghaf Platform features:
3333
| `x86` generic image | &#x2705; | `x86` | Generic x86 computer, based on generic [NixOS](https://nixos.org/). NOTE: requires device specific configuration. |
3434
| `Lenovo X1` reference image | &#x2705; | `Lenovo X1` | x86_64 laptop computer, supports basic compartmentalized environment |
3535
| Native build | &#x2705; | `aarch64, x86` | Remote `aarc64` nixos builders recommended |
36-
| Cross-compilation | &#x1f6A7; | `aarch64, riscv64` | Depends on NixOS `nixpkgs 23.05` support for cross-compilation |
36+
| Cross-compilation | &#x1f6A7; | `aarch64` | Depends on NixOS `nixpkgs 23.05` support for cross-compilation |
3737
| CI builds | &#x2705; | `All` | [Only `main`-branch, not for all PRs](https://vedenemo.dev/). |
3838
| Emulated build | &#x274C; | `aarch64` | `binfmt`, may freeze the build machine. Not recommended. [See instructions.](/ghaf/dev/ref/cross_compilation#binfmt-emulated-build) |
3939

modules/development/debug-tools.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ let
1010
cfg = config.ghaf.development.debug.tools;
1111

1212
rm-linux-bootmgrs = pkgs.callPackage ./scripts/rm_linux_bootmgr_entries.nix { };
13-
perf-test-script-icicle = pkgs.callPackage ./scripts/perf_test_icicle_kit.nix { };
1413
sysbench-test-script = pkgs.callPackage ./scripts/sysbench_test.nix { };
1514
sysbench-fileio-test-script = pkgs.callPackage ./scripts/sysbench_fileio_test.nix { };
1615
nvpmodel-check = pkgs.callPackage ./scripts/nvpmodel_check.nix { };
@@ -78,15 +77,12 @@ in
7877
++ rmDesktopEntries [ pkgs.htop ]
7978
#TODO tmp disable perf as it is broken in cross-compiled Orin AGX/NX
8079
++ lib.optional (config.nixpkgs.hostPlatform.system != "aarch64-linux") pkgs.perf
81-
# LuaJIT (which is sysbench dependency) not available on RISC-V
82-
# ydotool and grim are tools for automated GUI-testing, useless on riscv
83-
++ lib.optionals (config.nixpkgs.hostPlatform.system != "riscv64-linux") [
80+
# Sysbench, ydotool, and grim for testing
81+
++ [
8482
pkgs.sysbench
8583
pkgs.ydotool
8684
pkgs.grim
8785
]
88-
# Icicle Kit performance test script available on RISC-V
89-
++ lib.optional (config.nixpkgs.hostPlatform.system == "riscv64-linux") perf-test-script-icicle
9086
# Build VLC only on x86. Ffmpeg7 and v4l for camera related testing only on x86
9187
++ lib.optionals (config.nixpkgs.hostPlatform.system == "x86_64-linux") (rmDesktopEntries [
9288
pkgs.vlc

modules/development/scripts/perf_test_icicle_kit.nix

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-FileCopyrightText: 2022-2026 TII (SSRC) and the Ghaf contributors
22
# SPDX-License-Identifier: Apache-2.0
33
#
4-
# Support for Microchip Polarfire Icicle-Kit
4+
# Support for NXP i.MX 8M Plus
55
#
66
{ imports = [ ./imx8mp-sdimage.nix ]; }

modules/reference/hardware/polarfire/default.nix

Lines changed: 0 additions & 6 deletions
This file was deleted.

modules/reference/hardware/polarfire/mpfs-nixos-sdimage.nix

Lines changed: 0 additions & 53 deletions
This file was deleted.

nix/devshell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
config.treefmt.build.wrapper
3434
self'.legacyPackages.ghaf-build-helper
3535
self'.legacyPackages.update-docs-depends
36+
pkgs.cachix
3637
]
3738
++ config.pre-commit.settings.enabledPackages
38-
++ lib.attrValues config.treefmt.build.programs # make all the trefmt packages available
39-
++ lib.optional (pkgs.stdenv.hostPlatform.system != "riscv64-linux") pkgs.cachix;
39+
++ lib.attrValues config.treefmt.build.programs; # make all the trefmt packages available
4040

4141
startup.hook.text = config.pre-commit.installationScript;
4242
};

packages/hart-software-services/0001-Workaround-for-a-compilation-issue.patch

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)