mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Merge pull request #24112 from abbradar/odroid
Add ODROID-XU{3,4} support
This commit is contained in:
commit
179fe96a03
@ -28,7 +28,7 @@ in
|
|||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
boot.loader.generic-extlinux-compatible.enable = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.kernelParams = ["console=ttyS0,115200n8" "console=ttymxc0,115200n8" "console=ttyAMA0,115200n8" "console=ttyO0,115200n8" "console=tty0"];
|
boot.kernelParams = ["console=ttyS0,115200n8" "console=ttymxc0,115200n8" "console=ttyAMA0,115200n8" "console=ttyO0,115200n8" "console=ttySAC2,115200n8" "console=tty0"];
|
||||||
|
|
||||||
# FIXME: this probably should be in installation-device.nix
|
# FIXME: this probably should be in installation-device.nix
|
||||||
users.extraUsers.root.initialHashedPassword = "";
|
users.extraUsers.root.initialHashedPassword = "";
|
||||||
|
@ -83,6 +83,12 @@ in rec {
|
|||||||
filesToInstall = ["u-boot" "u-boot.dtb" "u-boot-dtb-tegra.bin" "u-boot-nodtb-tegra.bin"];
|
filesToInstall = ["u-boot" "u-boot.dtb" "u-boot-dtb-tegra.bin" "u-boot-nodtb-tegra.bin"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ubootOdroidXU3 = buildUBoot rec {
|
||||||
|
defconfig = "odroid-xu3_defconfig";
|
||||||
|
targetPlatforms = ["armv7l-linux"];
|
||||||
|
filesToInstall = ["u-boot.bin"];
|
||||||
|
};
|
||||||
|
|
||||||
ubootPcduino3Nano = buildUBoot rec {
|
ubootPcduino3Nano = buildUBoot rec {
|
||||||
defconfig = "Linksprite_pcDuino3_Nano_defconfig";
|
defconfig = "Linksprite_pcDuino3_Nano_defconfig";
|
||||||
targetPlatforms = ["armv7l-linux"];
|
targetPlatforms = ["armv7l-linux"];
|
||||||
|
31
pkgs/tools/misc/odroid-xu3-bootloader/default.nix
Normal file
31
pkgs/tools/misc/odroid-xu3-bootloader/default.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ stdenv, lib, fetchFromGitHub, coreutils, ubootOdroidXU3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "odroid-xu3-bootloader-2015-12-04";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hardkernel";
|
||||||
|
repo = "u-boot";
|
||||||
|
rev = "bbdea1841c4fbf767dcaf9d7ae8d3a46af235c4d";
|
||||||
|
sha256 = "03rvyfj147xh83w8hlvbxix131l3nnvk8n517fdhv9nil1l8dd71";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildCommand = ''
|
||||||
|
install -Dm644 -t $out/lib/sd_fuse-xu3 $src/sd_fuse/hardkernel/*.hardkernel
|
||||||
|
ln -sf ${ubootOdroidXU3}/u-boot.bin $out/lib/sd_fuse-xu3/u-boot.bin.hardkernel
|
||||||
|
|
||||||
|
install -Dm755 $src/sd_fuse/hardkernel/sd_fusing.sh $out/bin/sd_fuse-xu3
|
||||||
|
sed -i \
|
||||||
|
-e '1i#!${stdenv.shell}' \
|
||||||
|
-e '1iPATH=${lib.makeBinPath [ coreutils ]}:$PATH' \
|
||||||
|
-e "s,if=\./,if=$out/lib/sd_fuse-xu3/,g" \
|
||||||
|
$out/bin/sd_fuse-xu3
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
platforms = platforms.linux;
|
||||||
|
license = licenses.unfreeRedistributableFirmware;
|
||||||
|
description = "Secure boot enabled boot loader for ODROID-XU{3,4}";
|
||||||
|
maintainers = with maintainers; [ abbradar ];
|
||||||
|
};
|
||||||
|
}
|
@ -11939,6 +11939,8 @@ with pkgs;
|
|||||||
|
|
||||||
nss_ldap = callPackage ../os-specific/linux/nss_ldap { };
|
nss_ldap = callPackage ../os-specific/linux/nss_ldap { };
|
||||||
|
|
||||||
|
odroid-xu3-bootloader = callPackage ../tools/misc/odroid-xu3-bootloader { };
|
||||||
|
|
||||||
pagemon = callPackage ../os-specific/linux/pagemon { };
|
pagemon = callPackage ../os-specific/linux/pagemon { };
|
||||||
|
|
||||||
pam = callPackage ../os-specific/linux/pam { };
|
pam = callPackage ../os-specific/linux/pam { };
|
||||||
@ -12135,6 +12137,7 @@ with pkgs;
|
|||||||
ubootBananaPi
|
ubootBananaPi
|
||||||
ubootBeagleboneBlack
|
ubootBeagleboneBlack
|
||||||
ubootJetsonTK1
|
ubootJetsonTK1
|
||||||
|
ubootOdroidXU3
|
||||||
ubootPcduino3Nano
|
ubootPcduino3Nano
|
||||||
ubootRaspberryPi
|
ubootRaspberryPi
|
||||||
ubootRaspberryPi2
|
ubootRaspberryPi2
|
||||||
|
Loading…
Reference in New Issue
Block a user