2024-03-19 15:05:23 +07:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
2024-10-08 21:58:58 +07:00
|
|
|
uboot = pkgs.buildUBoot {
|
2024-03-19 15:05:23 +07:00
|
|
|
defconfig = "mx6sllclarahd_defconfig";
|
|
|
|
extraConfig = ''
|
2024-10-08 21:58:58 +07:00
|
|
|
CONFIG_FASTBOOT_OEM_RUN=y
|
|
|
|
CONFIG_ENV_IS_IN_EXT4=y
|
|
|
|
CONFIG_ENV_IS_IN_MMC=n
|
|
|
|
CONFIG_ENV_EXT4_INTERFACE=mmc
|
|
|
|
CONFIG_ENV_EXT4_DEVICE_AND_PART=0:1
|
|
|
|
CONFIG_ENV_EXT4_FILE=/uboot.env
|
2024-03-19 15:05:23 +07:00
|
|
|
CONFIG_BOOTCOMMAND="${builtins.replaceStrings [ "\n" ] [ "; " ] ''
|
|
|
|
detect_clara_rev
|
2024-10-08 21:58:58 +07:00
|
|
|
run distro_bootcmd
|
|
|
|
setenv stdin usbacm
|
|
|
|
setenv stdout usbacm
|
|
|
|
setenv stderr usbacm
|
2024-03-19 15:05:23 +07:00
|
|
|
''};"
|
2024-10-08 21:58:58 +07:00
|
|
|
'';
|
|
|
|
# fastboot 0
|
2024-03-19 15:05:23 +07:00
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "akemnade";
|
|
|
|
repo = "u-boot-fslc";
|
2024-10-08 21:58:58 +07:00
|
|
|
hash = "sha256-MUAiiXTfxt/o/6rnoI7A76IMRPDUhXodjnguKwQKrVs=";
|
|
|
|
rev = "3247fa27aed27bb5ac24bd9966fd7dadd9c4c373";
|
2024-03-19 15:05:23 +07:00
|
|
|
};
|
2024-10-08 21:58:58 +07:00
|
|
|
version = "2023.10";
|
2024-03-19 15:05:23 +07:00
|
|
|
extraMeta.platforms = [ "armv7l-linux" ];
|
2024-10-08 21:58:58 +07:00
|
|
|
filesToInstall = [ "u-boot-dtb.imx" ];
|
2024-03-19 15:05:23 +07:00
|
|
|
};
|
2024-10-08 21:58:58 +07:00
|
|
|
linux = (pkgs.buildLinux rec {
|
|
|
|
version = "6.9.0";
|
|
|
|
modDirVersion = lib.versions.pad 3 version;
|
|
|
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "akemnade";
|
|
|
|
repo = "linux";
|
|
|
|
rev = "4b0c49001732b93f6787c44e090b8e8f72e6fe6a";
|
|
|
|
hash = "sha256-rCiznEHDqrOW+CEI1I9HdHNSsVYCb7iJGE+7PKJ8H6A=";
|
2024-03-19 15:05:23 +07:00
|
|
|
};
|
2024-10-08 21:58:58 +07:00
|
|
|
|
|
|
|
defconfig = "kobo_defconfig";
|
|
|
|
}).overrideAttrs (old: {
|
|
|
|
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.lzop ];
|
|
|
|
});
|
2024-03-19 15:05:23 +07:00
|
|
|
}
|