1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19: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:
Ivan Nikolaenko 2023-03-07 12:05:26 +02:00
parent f6610997b0
commit 826a2714d7
No known key found for this signature in database
GPG key ID: E55095EF729BF2D7
5 changed files with 8 additions and 6 deletions

View file

@ -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.
## 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:
```

View file

@ -18,7 +18,7 @@ with pkgs; let
ahab = "mx8qmb0-ahab-container.img";
scfw = "mx8qm-mek-scfw-tcm.bin";
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

View file

@ -1,3 +1,3 @@
final: _prev: {
inherit ( final.callPackage ./bsp/u-boot/imx8/imx-uboot.nix { pkgs = final; targetBoard = "imx8qm"; }) ubootImx8 imx-firmware;
final: prev: {
inherit ( final.callPackage ../common/bsp/imx-uboot.nix { pkgs = final; targetBoard = "imx8qm"; }) ubootImx8 imx-firmware;
}

View file

@ -1,3 +1,3 @@
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;
}