mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-23 10:09:44 +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.
|
||||
|
||||
## 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:
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue