1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00
578: nxp: imx8: Fix wrong paths to imx-uboot.nix file r=Mic92 a=unbel13ver



Co-authored-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
This commit is contained in:
bors[bot] 2023-03-09 08:22:13 +00:00 committed by GitHub
commit 6e303a505a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -10,7 +10,7 @@
];
boot.loader.grub.extraFiles = {
"imx8qm-mek.dtb" = "${pkgs.linux_imx8}/dtbs/freescale/imx8qm-mek.dtb";
"imx8qm-mek.dtb" = "${pkgs.linux_imx8}/dtbs/freescale/imx8qm-mek.dtb";
};
hardware.deviceTree = {

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;
}