mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
nxp: imx8: Fix wrong paths to imx-uboot.nix file
In addition, adjust code formatting and improve documentation Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
This commit is contained in:
parent
f6610997b0
commit
826a2714d7
5 changed files with 8 additions and 6 deletions
|
@ -5,7 +5,9 @@
|
||||||
- [i.MX8QuadXPlus Multisensory Enablement Kit](https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-8quadxplus-multisensory-enablement-kit-mek:MCIMX8QXP-CPU) (**imx8qxp-mek**) - device-specific U-Boot and Linux kernel.
|
- [i.MX8QuadXPlus Multisensory Enablement Kit](https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-8quadxplus-multisensory-enablement-kit-mek:MCIMX8QXP-CPU) (**imx8qxp-mek**) - device-specific U-Boot and Linux kernel.
|
||||||
|
|
||||||
## 2. How to use
|
## 2. How to use
|
||||||
Currently this NXP overlay is used for generating EFI-bootable NixOS images. [Tow-Boot](https://tow-boot.org/) is used as a bootloader in our case, but U-Boot can also be used.
|
Currently this NXP overlay is used for generating EFI-bootable NixOS images.
|
||||||
|
I recommend to use [Tow-Boot](https://tow-boot.org/) as a bootloader, but U-Boot from this overlay can also be used.
|
||||||
|
U-Boot was tested separately from NixOS.
|
||||||
|
|
||||||
Code snippet example that enables imx8qm configuration:
|
Code snippet example that enables imx8qm configuration:
|
||||||
```
|
```
|
||||||
|
|
|
@ -18,7 +18,7 @@ with pkgs; let
|
||||||
ahab = "mx8qmb0-ahab-container.img";
|
ahab = "mx8qmb0-ahab-container.img";
|
||||||
scfw = "mx8qm-mek-scfw-tcm.bin";
|
scfw = "mx8qm-mek-scfw-tcm.bin";
|
||||||
soc = "QM";
|
soc = "QM";
|
||||||
patches = [ ../patches/0001-Add-UEFI-boot-on-imx8qm_mek.patch ];
|
patches = [ ../patches/0001-Add-UEFI-boot-for-imx8qm.patch ];
|
||||||
};
|
};
|
||||||
|
|
||||||
imx8-attrs = if (targetBoard == "imx8qxp") then imx8qxp-attrs
|
imx8-attrs = if (targetBoard == "imx8qxp") then imx8qxp-attrs
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
final: _prev: {
|
final: prev: {
|
||||||
inherit ( final.callPackage ./bsp/u-boot/imx8/imx-uboot.nix { pkgs = final; targetBoard = "imx8qm"; }) ubootImx8 imx-firmware;
|
inherit ( final.callPackage ../common/bsp/imx-uboot.nix { pkgs = final; targetBoard = "imx8qm"; }) ubootImx8 imx-firmware;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
final: prev: {
|
final: prev: {
|
||||||
inherit ( final.callPackage ./bsp/u-boot/imx8/imx-uboot.nix { pkgs = final; targetBoard = "imx8qxp"; }) ubootImx8 imx-firmware;
|
inherit ( final.callPackage ../common/bsp/imx-uboot.nix { pkgs = final; targetBoard = "imx8qxp"; }) ubootImx8 imx-firmware;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue