dotfiles/overlays/uboot/clara-hd.nix

22 lines
614 B
Nix
Raw Normal View History

{
buildUBoot,
pkgs,
}:
buildUBoot {
version = "kobo-2023-10";
src = pkgs.fetchFromGitHub {
owner = "akemnade";
repo = "u-boot-fslc";
rev = "3247fa27aed27bb5ac24bd9966fd7dadd9c4c373";
hash = "sha256-MUAiiXTfxt/o/6rnoI7A76IMRPDUhXodjnguKwQKrVs=";
};
defconfig = "mx6sllclarahd_defconfig";
extraMeta.platforms = ["armv7l-linux"];
filesToInstall = ["u-boot-dtb.imx"];
extraConfig = ''
CONFIG_FASTBOOT_OEM_RUN=y
CONFIG_USB_FUNCTION_ACM=y
CONFIG_BOOTCOMMAND="detect_clara_rev ; run distro_bootcmd ; setenv stdin usbacm ; setenv stdout usbacm ; setenv stderr usbacm"
'';
}