Skip to content

Commit 7ecd119

Browse files
Wojciech GładyszWojciech Gładysz
authored andcommitted
patches for 6.0 6.1 restored
1 parent 376a8c7 commit 7ecd119

19 files changed

Lines changed: 2053 additions & 24 deletions

apply_patches.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,38 @@ fi
3939

4040
# NVIDIA SDK Manager's JetPack 4.6.1 source_sync.sh doesn't set the right folder name, it mismatches with the direct tar
4141
# package source code. Correct the folder name.
42-
if [ -d sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial-dts ]; then
42+
if [[ $1 == apply && -d sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial-dts ]]; then
4343
mv sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial-dts sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial
4444
fi
45+
if [[ $1 == reset && -d sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial ]]; then
46+
rm -rfv sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial > /dev/null
47+
fi
4548

4649
apply_external_patches() {
4750
if [ $1 = 'apply' ]; then
48-
echo WOJTEK: git -C sources_$JETPACK_VERSION/$3 apply ${PWD}/$3/$2/*
49-
git -C sources_$JETPACK_VERSION/$3 apply ${PWD}/$3/$2/*
51+
ls -Ld sources_$JETPACK_VERSION/$3
52+
ls -Lw1 ${PWD}/$3/$2
53+
git -C sources_$JETPACK_VERSION/$3 apply -vq ${PWD}/$3/$2/*
5054
elif [ $1 = 'reset' ]; then
5155
if [[ -n $(git -C sources_$JETPACK_VERSION/$3 diff --quiet) || -n $(git -C sources_$JETPACK_VERSION/$3 diff --cached --quiet) ]]; then
5256
read -p "Repo sources_$JETPACK_VERSION/$3 has changes that will be hard reset. Continue? (y/N): " confirm
5357
if [[ ! "$confirm" == "y" && ! "$confirm" == "Y" ]]; then
5458
exit 1
5559
fi
5660
fi
57-
git -C sources_$JETPACK_VERSION/$2 reset --hard $4
61+
echo -n $(ls -d sources_$JETPACK_VERSION/$3):\
62+
git -C sources_$JETPACK_VERSION/$3 reset --hard $4
5863
fi
5964
}
6065

6166
apply_external_patches $1 $2 $D4XX_SRC_DST $L4T_VERSION
6267

63-
if [ -d ${KERNEL_DIR}/${JETPACK_VERSION} ]; then
68+
if [ -d sources_$JETPACK_VERSION/$KERNEL_DIR ]; then
6469
apply_external_patches $1 $2 $KERNEL_DIR $L4T_VERSION
6570
fi
6671

6772
if [[ "$JETPACK_VERSION" == "6.x" ]]; then
68-
apply_external_patches $1 $2 hardware/nvidia/t23x/nv-public $L4T_VERSION
73+
apply_external_patches $1 $JETPACK_VERSION hardware/nvidia/t23x/nv-public $L4T_VERSION
6974
else
7075
apply_external_patches $1 $2 hardware/nvidia/platform/t19x/galen/kernel-dts $L4T_VERSION
7176
fi
@@ -81,4 +86,5 @@ if [ $1 = 'apply' ]; then
8186
elif [ $1 = 'reset' ]; then
8287
[[ -f $DEVDIR/sources_$JETPACK_VERSION/${D4XX_SRC_DST}/drivers/media/i2c/d4xx.c ]] && rm $DEVDIR/sources_$JETPACK_VERSION/${D4XX_SRC_DST}/drivers/media/i2c/d4xx.c
8388
[[ -f $DEVDIR/sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-camera-d4xx.dtsi ]] && rm $DEVDIR/sources_$JETPACK_VERSION/hardware/nvidia/platform/t19x/galen/kernel-dts/common/tegra194-camera-d4xx.dtsi
89+
true
8490
fi

apply_patches_ext.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,19 @@ if [ -d $JETPACK_VERSION/hardware/nvidia/platform/t19x/galen-industrial-dts ]; t
4343
fi
4444

4545
apply_external_patches() {
46-
ls -ld ${PWD}/$2/$JETPACK_VERSION
47-
ls -ld ${PWD}/sources_$JETPACK_VERSION/$2
48-
ls ${PWD}/$2/$JETPACK_VERSION
49-
cat ${PWD}/$2/$JETPACK_VERSION/* | patch -p1 --directory=${PWD}/sources_$JETPACK_VERSION/$2
46+
ls -Ld ${PWD}/$2/$1
47+
ls -Lw1 ${PWD}/$2/$1
48+
cat ${PWD}/$2/$1/* | patch --quiet -p1 --directory=${PWD}/sources_$JETPACK_VERSION/$2
5049
}
5150

5251
apply_external_patches $1 $D4XX_SRC_DST
53-
if [ -d ${KERNEL_DIR}/${JETPACK_VERSION} ]; then
52+
53+
if [ -d sources_$JETPACK_VERSION/$KERNEL_DIR ]; then
5454
apply_external_patches $1 $KERNEL_DIR
5555
fi
56+
5657
if [[ "$JETPACK_VERSION" == "6.x" ]]; then
57-
apply_external_patches $1 hardware/nvidia/t23x/nv-public
58+
apply_external_patches $JETPACK_VERSION hardware/nvidia/t23x/nv-public
5859
else
5960
apply_external_patches $1 hardware/nvidia/platform/t19x/galen/kernel-dts
6061
fi

build_all.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ fi
2626

2727
if [[ "$JETPACK_VERSION" == "6.x" ]]; then
2828
export CROSS_COMPILE=$DEVDIR/l4t-gcc/$JETPACK_VERSION/bin/aarch64-buildroot-linux-gnu-
29-
elif [[ "$JETPACK_VERSION" == "5.1.2" ]]; then
30-
export CROSS_COMPILE=$DEVDIR/l4t-gcc/$JETPACK_VERSION/bin/aarch64-buildroot-linux-gnu-
31-
elif [[ "$JETPACK_VERSION" == "5.0.2" ]]; then
29+
elif [[ "$JETPACK_VERSION" == "5.x" ]]; then
3230
export CROSS_COMPILE=$DEVDIR/l4t-gcc/$JETPACK_VERSION/bin/aarch64-buildroot-linux-gnu-
3331
elif [[ "$JETPACK_VERSION" == "4.6.1" ]]; then
3432
export CROSS_COMPILE=$DEVDIR/l4t-gcc/$JETPACK_VERSION/bin/aarch64-linux-gnu-
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
From a28c524638e88665f3757002703a7add3e95643b Mon Sep 17 00:00:00 2001
2+
From: ejgoldik <ehud.joseph.goldik@intel.com>
3+
Date: Sun, 8 Jun 2025 11:08:56 +0300
4+
Subject: [PATCH] kernel: enable HID_SENSOR without USB impact
5+
6+
Signed-off-by: Ehud J. Goldik <ehud.joseph.goldik@intel.com>
7+
---
8+
arch/arm64/configs/defconfig | 6 ++++++
9+
1 file changed, 6 insertions(+)
10+
11+
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
12+
index 57e2a364e..8fffc0a60 100644
13+
--- a/arch/arm64/configs/defconfig
14+
+++ b/arch/arm64/configs/defconfig
15+
@@ -862,8 +862,10 @@ CONFIG_SND_SOC_LPASS_WSA_MACRO=m
16+
CONFIG_SND_SOC_LPASS_VA_MACRO=m
17+
CONFIG_SND_SIMPLE_CARD=m
18+
CONFIG_SND_AUDIO_GRAPH_CARD=m
19+
+CONFIG_HID=m
20+
CONFIG_HIDRAW=y
21+
CONFIG_HID_MULTITOUCH=m
22+
+CONFIG_HID_SENSOR_HUB=m
23+
CONFIG_I2C_HID_ACPI=m
24+
CONFIG_I2C_HID_OF=m
25+
CONFIG_USB=y
26+
@@ -1148,6 +1150,7 @@ CONFIG_EXTCON_USB_GPIO=y
27+
CONFIG_EXTCON_USBC_CROS_EC=y
28+
CONFIG_RENESAS_RPCIF=m
29+
CONFIG_IIO=y
30+
+CONFIG_HID_SENSOR_ACCEL_3D=m
31+
CONFIG_EXYNOS_ADC=y
32+
CONFIG_MAX9611=m
33+
CONFIG_QCOM_SPMI_VADC=m
34+
@@ -1155,6 +1158,9 @@ CONFIG_QCOM_SPMI_ADC5=m
35+
CONFIG_ROCKCHIP_SARADC=m
36+
CONFIG_IIO_CROS_EC_SENSORS_CORE=m
37+
CONFIG_IIO_CROS_EC_SENSORS=m
38+
+CONFIG_HID_SENSOR_IIO_COMMON=m
39+
+CONFIG_HID_SENSOR_IIO_TRIGGER=m
40+
+CONFIG_HID_SENSOR_GYRO_3D=m
41+
CONFIG_IIO_ST_LSM6DSX=m
42+
CONFIG_IIO_CROS_EC_LIGHT_PROX=m
43+
CONFIG_SENSORS_ISL29018=m
44+
--
45+
2.43.0
46+

kernel/kernel-jammy-src/6.x/0002-realsense-camera-formats-jammy-master.patch renamed to kernel/kernel-jammy-src/6.0/0002-realsense-camera-formats-jammy-master.patch

File renamed without changes.

kernel/kernel-jammy-src/6.x/0003-realsense-metadata-jammy-master.patch renamed to kernel/kernel-jammy-src/6.0/0003-realsense-metadata-jammy-master.patch

File renamed without changes.

kernel/kernel-jammy-src/6.x/0004-realsense-powerlinefrequency-control-fix-jammy.patch renamed to kernel/kernel-jammy-src/6.0/0004-realsense-powerlinefrequency-control-fix-jammy.patch

File renamed without changes.

kernel/kernel-jammy-src/6.x/0005-support-for-dynamic-change-of-i2c-bus-clk-rate.patch renamed to kernel/kernel-jammy-src/6.0/0005-support-for-dynamic-change-of-i2c-bus-clk-rate.patch

File renamed without changes.

kernel/kernel-jammy-src/6.1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.2

kernel/kernel-jammy-src/6.x/0001-kernel-enable-HID_SENSOR-without-USB-impact.patch renamed to kernel/kernel-jammy-src/6.2/0001-kernel-enable-HID_SENSOR-without-USB-impact.patch

File renamed without changes.

0 commit comments

Comments
 (0)