mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 01:48:50 +08:00
Add support for i.MX93-EVK platform
The i.MX93 EVK provides a platform for comprehensive evaluation of the i.MX93 application processors. This change adds support in NixOS hardware to provide a template for customized i.MX93-based platforms. Signed-off-by: Govind Singh <govind.singh@tii.ae>
This commit is contained in:
committed by
Jörg Thalheim
parent
46f9982c9b
commit
34b7229b95
47
nxp/imx93-evk/bsp/imx93-firmware.nix
Normal file
47
nxp/imx93-evk/bsp/imx93-firmware.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
with pkgs;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nxp-firmware";
|
||||
version = "nxp-firmware-8.21-0.11";
|
||||
|
||||
# Fetch the two firmware installers from NXP
|
||||
ddrFirmware = fetchurl {
|
||||
url = "https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.21.bin";
|
||||
sha256 = "sha256-w0R/D4E0FczqncLvEggMs6yLvAxnOSp0/H1ZIF61pnI=";
|
||||
};
|
||||
|
||||
ahabFirmware = fetchurl {
|
||||
url = "https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-sentinel-0.11.bin";
|
||||
sha256 = "sha256-JpSAQXqK6apMxBAauUcof8M0VakxAh29xNm621ISvOs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ coreutils bash ];
|
||||
|
||||
dontUnpack = true;
|
||||
dontStrip = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
|
||||
echo "Extracting DDR firmware..."
|
||||
cp ${ddrFirmware} ./firmware-imx-8.21.bin
|
||||
chmod +x firmware-imx-8.21.bin
|
||||
./firmware-imx-8.21.bin --auto-accept
|
||||
|
||||
echo "Extracting AHAB firmware..."
|
||||
cp ${ahabFirmware} ./firmware-sentinel-0.11.bin
|
||||
chmod +x firmware-sentinel-0.11.bin
|
||||
./firmware-sentinel-0.11.bin --auto-accept
|
||||
|
||||
echo "Copying DDR .bin files..."
|
||||
mkdir -p $out/ddr
|
||||
cp firmware-imx-8.21/firmware/ddr/synopsys/lpddr4*.bin $out/ddr/
|
||||
|
||||
echo "Copying AHAB container image..."
|
||||
mkdir -p $out/ahab
|
||||
cp firmware-sentinel-0.11/mx93a1-ahab-container.img $out/ahab/
|
||||
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user