linux-google-nyan: new aport (MR 3325)
Co-Authored-By: Segfault <awarnecke002@hotmail.com>
This commit is contained in:
parent
2aa7b9d72e
commit
f7ef5ff857
5 changed files with 8276 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
diff --git a/arch/arm/mm/proc-v7-bugs.c b/arch/arm/mm/proc-v7-bugs.c
|
||||
index fb9f3eb6bf48..03f793b22ccf 100644
|
||||
--- a/arch/arm/mm/proc-v7-bugs.c
|
||||
+++ b/arch/arm/mm/proc-v7-bugs.c
|
||||
@@ -211,8 +211,8 @@ static int spectre_bhb_install_workaround(int method)
|
||||
spectre_bhb_method = method;
|
||||
}
|
||||
|
||||
- pr_info("CPU%u: Spectre BHB: using %s workaround\n",
|
||||
- smp_processor_id(), spectre_bhb_method_name(method));
|
||||
+/* pr_info("CPU%u: Spectre BHB: using %s workaround\n",
|
||||
+ smp_processor_id(), spectre_bhb_method_name(method)); */
|
||||
|
||||
return SPECTRE_MITIGATED;
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
From ef83570613d2ab81e0b9fd39067bfa1ec000add7 Mon Sep 17 00:00:00 2001
|
||||
From: Anton Bambura <jenneron@protonmail.com>
|
||||
Date: Sat, 18 Jun 2022 17:44:06 +0300
|
||||
Subject: [PATCH] ARM: dts: tegra: nyan: add mmc aliases
|
||||
|
||||
Add aliases for eMMC, SD card and WiFi, so nubmers will not be
|
||||
changed anymore.
|
||||
|
||||
Signed-off-by: Anton Bambura <jenneron@protonmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/tegra124-nyan.dtsi | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi
|
||||
index 63a812703..84a97e32d 100644
|
||||
--- a/arch/arm/boot/dts/tegra124-nyan.dtsi
|
||||
+++ b/arch/arm/boot/dts/tegra124-nyan.dtsi
|
||||
@@ -4,6 +4,9 @@
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
+ mmc0 = "/mmc@700b0600"; /* eMMC */
|
||||
+ mmc1 = "/mmc@700b0400"; /* SD */
|
||||
+ mmc2 = "/mmc@700b0000"; /* WiFi/BT */
|
||||
rtc0 = "/i2c@7000d000/pmic@40";
|
||||
rtc1 = "/rtc@7000e000";
|
||||
serial0 = &uarta;
|
||||
--
|
||||
2.36.1
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
From a1387014c94ff6fffd0b67e05f2a8f907e9daa02 Mon Sep 17 00:00:00 2001
|
||||
From: Anton Bambura <jenneron@protonmail.com>
|
||||
Date: Sun, 19 Jun 2022 09:18:56 +0300
|
||||
Subject: [PATCH] ARM: tegra: nyan: fix mic jack detection
|
||||
|
||||
Configure this pin properly.
|
||||
|
||||
Signed-off-by: Anton Bambura <jenneron@protonmail.com>
|
||||
Tested-by: Alexander Warnecke <awarnecke002@hotmail.com>
|
||||
---
|
||||
arch/arm/boot/dts/tegra124-nyan-big.dts | 2 +-
|
||||
arch/arm/boot/dts/tegra124-nyan-blaze.dts | 2 +-
|
||||
arch/arm/boot/dts/tegra124-nyan.dtsi | 3 +--
|
||||
3 files changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/tegra124-nyan-big.dts b/arch/arm/boot/dts/tegra124-nyan-big.dts
|
||||
index 1d2aac2cb..320e1da3f 100644
|
||||
--- a/arch/arm/boot/dts/tegra124-nyan-big.dts
|
||||
+++ b/arch/arm/boot/dts/tegra124-nyan-big.dts
|
||||
@@ -677,7 +677,7 @@ kb_row6_pr6 {
|
||||
};
|
||||
kb_row7_pr7 {
|
||||
nvidia,pins = "kb_row7_pr7";
|
||||
- nvidia,pull = <TEGRA_PIN_PULL_NONE>;
|
||||
+ nvidia,pull = <TEGRA_PIN_PULL_UP>;
|
||||
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
||||
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
||||
};
|
||||
diff --git a/arch/arm/boot/dts/tegra124-nyan-blaze.dts b/arch/arm/boot/dts/tegra124-nyan-blaze.dts
|
||||
index 677babde6..06b27fb6c 100644
|
||||
--- a/arch/arm/boot/dts/tegra124-nyan-blaze.dts
|
||||
+++ b/arch/arm/boot/dts/tegra124-nyan-blaze.dts
|
||||
@@ -675,7 +675,7 @@ kb_row6_pr6 {
|
||||
};
|
||||
kb_row7_pr7 {
|
||||
nvidia,pins = "kb_row7_pr7";
|
||||
- nvidia,pull = <TEGRA_PIN_PULL_NONE>;
|
||||
+ nvidia,pull = <TEGRA_PIN_PULL_UP>;
|
||||
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
||||
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
||||
};
|
||||
diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi
|
||||
index 84a97e32d..11655575b 100644
|
||||
--- a/arch/arm/boot/dts/tegra124-nyan.dtsi
|
||||
+++ b/arch/arm/boot/dts/tegra124-nyan.dtsi
|
||||
@@ -778,8 +778,7 @@ sound {
|
||||
<&tegra_car TEGRA124_CLK_EXTERN1>;
|
||||
|
||||
nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(I, 7) GPIO_ACTIVE_HIGH>;
|
||||
- nvidia,mic-det-gpios =
|
||||
- <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
|
||||
+ nvidia,mic-det-gpios = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
gpio-restart {
|
||||
--
|
||||
2.36.1
|
||||
|
80
device/testing/linux-google-nyan/APKBUILD
Normal file
80
device/testing/linux-google-nyan/APKBUILD
Normal file
|
@ -0,0 +1,80 @@
|
|||
# Maintainer: Jenneron <jenneron@protonmail.com>
|
||||
# Co-Maintainer: Segfault <awarnecke002@hotmail.com>
|
||||
pkgname=linux-google-nyan
|
||||
pkgver=5.18.5
|
||||
pkgrel=0
|
||||
pkgdesc="Mainline kernel fork for Google Nyan Chromebooks"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="${pkgname#linux-}"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps
|
||||
pmb:cross-native
|
||||
pmb:kconfigcheck-anbox
|
||||
pmb:kconfigcheck-apparmor
|
||||
pmb:kconfigcheck-containers
|
||||
pmb:kconfigcheck-iwd
|
||||
pmb:kconfigcheck-nftables
|
||||
pmb:kconfigcheck-zram
|
||||
"
|
||||
makedepends="
|
||||
bison
|
||||
findutils
|
||||
flex
|
||||
installkernel
|
||||
openssl-dev
|
||||
perl
|
||||
gmp-dev
|
||||
mpc1-dev
|
||||
mpfr-dev
|
||||
xz
|
||||
"
|
||||
|
||||
# Source
|
||||
_config="config-$_flavor.$arch"
|
||||
case $pkgver in
|
||||
*.*.*) _kernver=${pkgver%.0};;
|
||||
*.*) _kernver=$pkgver;;
|
||||
esac
|
||||
source="
|
||||
https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-${pkgver//_/-}.tar.xz
|
||||
$_config
|
||||
0001-disable-spectre-log-spam.patch
|
||||
0002-ARM-dts-tegra-nyan-add-mmc-aliases.patch
|
||||
0003-ARM-tegra-nyan-fix-mic-jack-detection.patch
|
||||
"
|
||||
builddir="$srcdir/linux-${_kernver//_/-}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$CARCH" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
make zinstall modules_install dtbs_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_PATH="$pkgdir"/boot \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1872e2cf8cdd6e0033ce69f26f25526a30c237d220c02b20829fca31d6068fb816de2f2e5fd41f6807648cef8f28ddda392b199c7b1c3b48b2460c840fa1e150 linux-5.18.5.tar.xz
|
||||
ef6b65a2aa9652b23a70092c4c76ffeb43ae2f3d8a285dcf142a964786efd44da3372692c892559f063afa2267e438c1dc681b9c034a30fde1fe09bd91822cf9 config-google-nyan.armv7
|
||||
2367c64676e4329739e8cc8f874553981747c1bdea833871e2eefe649854fb5908ca0cff5ad11d07e095737632ee71a2f6010bf438a1a60414d7572800b4a07b 0001-disable-spectre-log-spam.patch
|
||||
be21d145f39d334e37f8dd79b78474c072e54502ba5c9ae63163f0ce30ffaa3a3448b05d153205ba8af7a761952ecddb3ae1a5b348902b4ce5f4f72138937fdb 0002-ARM-dts-tegra-nyan-add-mmc-aliases.patch
|
||||
4ec3bc3bce229ba664ad98251dbcad9d224a3792d3149cc64b5a1eee0801f1a366b83447b55a02cb0915bd3ef63f42260dd55a286f68c727fcfc4d46bba4363a 0003-ARM-tegra-nyan-fix-mic-jack-detection.patch
|
||||
"
|
8093
device/testing/linux-google-nyan/config-google-nyan.armv7
Normal file
8093
device/testing/linux-google-nyan/config-google-nyan.armv7
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue