mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 23:43:30 +01:00
Add Microchip Icicle-kit board support.
* Uses Linux kernel released by Microchip - https://github.com/linux4microchip/linux.git - Ver: v5.15 Tag: linux4microchip+fpga-2023.02 * Uses UBoot released by Microchip - Ver: uboot-2022-01 Tag: linux4microchip+fpga-2023.02 To generate NixOS sd image for MICROCHIP icicle-kit refer: https://github.com/tiiuae/ghaf.git Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
This commit is contained in:
1 parent
3006d2860a
commit
ba8b9209ce
12 files changed
+264
No files matched your search
@@ -0,0 +1,32 @@
|
||||
{
|
||||
pkgs, targetBoard, ...
|
||||
}:
|
||||
|
||||
with pkgs; let
|
||||
payload-generator = pkgs.callPackage ./hss-payload-generator.nix {};
|
||||
payload_config = ./uboot.yaml;
|
||||
in
|
||||
buildUBoot rec {
|
||||
pname = "uboot";
|
||||
version = "linux4microchip+fpga-2023.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "polarfire-soc";
|
||||
repo = "u-boot";
|
||||
rev = "b356a897b11ef19dcbe7870530f23f3a978c1714";
|
||||
sha256 = "sha256-ouNLnDBeEsaY/xr5tAVBUtLlj0eylWbKdlU+bQ2Ciq4=";
|
||||
};
|
||||
|
||||
extraMakeFlags = [
|
||||
"OPENSBI=${opensbi}/share/opensbi/lp64/generic/firmware/fw_dynamic.bin"
|
||||
];
|
||||
|
||||
patches = [ ./patches/0001-Boot-environment-for-Microchip-Iciclle-Kit.patch ];
|
||||
defconfig = "${targetBoard}_defconfig";
|
||||
enableParallelBuilding = true;
|
||||
extraMeta.platforms = ["riscv64-linux"];
|
||||
postBuild = ''
|
||||
${payload-generator}/hss-payload-generator -c ${payload_config} payload.bin
|
||||
'';
|
||||
filesToInstall = [ "payload.bin" ];
|
||||
}
|
||||
Reference in new issue
Block a user