dud0
07/30/2023, 5:22 PMCONFIG_NET_CLS_BPF=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CGROUP_BPF=y
CONFIG_NETFILTER_XT_TARGET_CT=m
CONFIG_NET_SCH_FQ=m
I'm fairly new to this level of tinkering with Linux. I asked chatGPT, and got a pretty straight forward response:
cd /usr/src/linux-headers-5.10.104-tegra-ubuntu20.04_aarch64/kernel-5.10/
cp .config .config.bak
make menuconfig
make -j$(nproc)
sudo make install
sudo make modules_install
sudo update-grub
sudo reboot
uname -r
I'm a bit confused on the GRUB part, as it seems the Jetson NX is using EFI. Checking which update-grub
returned nothing, so I'm leary to continue.
Anyone done this already? Could these flags be added during the preliminary flashing process?dud0
07/30/2023, 11:48 PMwerdnum
07/31/2023, 2:59 AMdud0
07/31/2023, 3:48 AMwerdnum
07/31/2023, 8:48 AMj0jux
07/31/2023, 12:41 PM_dhanos_
07/31/2023, 3:43 PMdud0
07/31/2023, 4:11 PMj0jux
07/31/2023, 5:54 PMdud0
08/25/2023, 10:54 PM/boot/Image
... Maybe I just yolo, though, and reflash if it goes sour?sh
# Create a temporary home for the new files
mkdir ~/kernel
cd ~/kernel
export TEGRA_KERNEL_OUT=`pwd`
mkdir ~/modules
cd ~/modules
export TEGRA_MODULES_OUT=`pwd`
export TOP=/usr/src/linux-headers-5.10.120-tegra-ubuntu20.04_aarch64/kernel-5.10
# Gather proper source files
cd ~
vim source_sync.sh
chmod +x source_sync.sh
./source_sync.sh -h
./source_sync.sh -k -t jetson_35.4.1
sudo cp -r ~/sources/kernel/* /usr/src/linux-headers-5.10.120-tegra-ubuntu20.04_aarch64
# Build kernel
cd $TOP
make O=$TEGRA_KERNEL_OUT tegra_defconfig
make O=$TEGRA_KERNEL_OUT nconfig
# CONFIG_NET_CLS_BPF=y
# CONFIG_NET_SCH_INGRESS=y
# CONFIG_CRYPTO_USER_API_HASH=y
# CONFIG_CGROUP_BPF=y
# CONFIG_NETFILTER_XT_TARGET_CT=m
make O=$TEGRA_KERNEL_OUT -j 8 Image
make O=$TEGRA_KERNEL_OUT -j 8 modules
make O=$TEGRA_KERNEL_OUT INSTALL_MOD_PATH=$TEGRA_MODULES_OUT modules_install
# Verify kernel exists
cd $TEGRA_KERNEL_OUT
find . -name Image
https://cdn.discordapp.com/attachments/1135261223173230725/1144769818071924886/source_sync.sh_dhanos_
08/27/2023, 6:59 PMcfsworks
08/27/2023, 7:08 PM_dhanos_
08/27/2023, 7:58 PMcfsworks
08/27/2023, 8:06 PMdud0
08/27/2023, 9:58 PMsed -i 's/cvb_eeprom_read_size = <0x100>/cvb_eeprom_read_size = <0x0>/g' Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts
sudo ./apply_binaries.sh
sudo ./tools/l4t_flash_prerequisites.sh
sudo ./tools/l4t_create_default_user.sh
cfsworks
08/27/2023, 10:02 PMsudo kexec path/to/Image
on that.dud0
08/27/2023, 10:10 PM$ sudo kexec ~/kernel/arch/arm64/boot/Image
Can't open (/proc/kcore).
Can't open (/proc/kcore).
Connection to 192.168.4.53 closed by remote host.
Connection to 192.168.4.53 closed.
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Operation timed out
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Operation timed out
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Operation timed out
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Host is down
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Host is down
[~] ssh jetson1
cfsworks
08/27/2023, 10:45 PMdud0
08/27/2023, 10:49 PMsudo dmesg
has some goodiescfsworks
08/27/2023, 10:57 PMdud0
08/27/2023, 10:59 PMcfsworks
08/27/2023, 11:02 PM_dhanos_
08/27/2023, 11:16 PMdud0
08/27/2023, 11:28 PMmake nconfig
?
https://cdn.discordapp.com/attachments/1135261223173230725/1145500002421067837/nvbuild.sh
https://cdn.discordapp.com/attachments/1135261223173230725/1145500002706276453/nvcommon_build.shcfsworks
08/27/2023, 11:33 PMconfig
yourself - but, first get an unmodified kernel going, just to confirm you have that part figured out firstdud0
08/28/2023, 12:09 AM--initrd
to kexec?werdnum
08/28/2023, 1:25 AMdud0
08/28/2023, 1:29 AMLOCALVERSION
. Rebuilding now.
https://cdn.discordapp.com/attachments/1135261223173230725/1145530653258039377/nvbuild.shcd ~
vim source_sync.sh
chmod +x source_sync.sh
vim nvbuild.sh
chmod +x nvbuild.sh
vim nvcommon_build.sh
chmod +x nvcommon_build.sh
Commands are simply:
cd ~
./source_sync.sh -h
./source_sync.sh -k -t jetson_35.4.1
mkdir kernel_out
cp nvbuild.sh nvcommon_build.sh sources
cd sources
./nvbuild.sh -h
./nvbuild.sh -o ~/kernel_out -s cilium
cfsworks
08/28/2023, 1:46 AMuname -a
to confirm I'm on the kernel I intend.dud0
08/28/2023, 1:59 AM$ sudo kexec ~/kernel_out/arch/arm64/boot/Image
$ uname -a
Linux jetson1 5.10.120-tegra #1 SMP PREEMPT Tue Aug 1 12:32:50 PDT 2023 aarch64 aarch64 aarch64 GNU/Linux
cfsworks
08/28/2023, 2:11 AMdud0
08/28/2023, 2:13 AM$ sudo kexec ~/kernel_out/arch/arm64/boot/Image
Can't open (/proc/kcore).
Can't open (/proc/kcore).
Connection to 192.168.4.53 closed by remote host.
Connection to 192.168.4.53 closed.
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Operation timed out
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Operation timed out
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Host is down
[~] ssh jetson1
ssh: connect to host 192.168.4.53 port 22: Host is down
[~] ssh jetson1
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.10.120-tegra aarch64)
cfsworks
08/28/2023, 2:14 AMdud0
08/28/2023, 2:14 AM-l
flag originally, though, might have botched it even worsecfsworks
08/28/2023, 2:20 AM/boot/initrd
dud0
08/28/2023, 2:24 AM$ find ~/kernel_out -type f -name "*.img"
returns nadacfsworks
08/28/2023, 2:24 AM/boot/initrd
?dud0
08/28/2023, 2:30 AM$ ls -la | grep initrd
-rw-r--r-- 1 root root 9782446 Aug 1 19:49 initrd
-rw-r--r-- 1 root root 9782448 Aug 1 19:49 initrd.t19x
-rw-r--r-- 1 root root 4096 Aug 1 19:49 initrd.t19x.sig
cfsworks
08/28/2023, 2:35 AMdud0
08/28/2023, 2:49 AMcfsworks
08/28/2023, 2:50 AMmkinitramfs
) that takes care of it. As long as you're on the same version of the kernel they should be compatible.dud0
08/28/2023, 2:55 AMcfsworks
08/28/2023, 2:57 AMdud0
08/28/2023, 3:03 AMwerdnum
08/28/2023, 3:07 AMdud0
08/28/2023, 3:07 AMwerdnum
08/28/2023, 3:07 AMdud0
08/28/2023, 3:09 AMcfsworks
08/28/2023, 3:10 AM/dev/ttyTHS0
goes to the BMCdud0
08/28/2023, 3:10 AMsudo kexec /home/dudo/kernel_out/arch/arm64/boot/Image --initrd=/boot/initrd
vs
sudo kexec -l /home/dudo/kernel_out/arch/arm64/boot/Image --initrd=/boot/initrd
sudo kexec -e
cfsworks
08/28/2023, 3:11 AMdud0
08/28/2023, 3:11 AMcfsworks
08/28/2023, 3:15 AMdud0
08/28/2023, 3:16 AMcfsworks
08/28/2023, 3:41 AMdud0
08/28/2023, 3:43 AMcfsworks
08/28/2023, 3:45 AMdud0
08/29/2023, 6:01 AM$ uname -a
Linux jetson1 5.10.120-tegra-cilium #1 SMP PREEMPT Mon Aug 28 01:25:02 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
$ for config in "${REQUIRED_CONFIGS[@]}"
> do
> zcat /proc/config.gz | grep "${config}[ =]"
> done
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
CONFIG_NET_CLS_BPF=y
CONFIG_BPF_JIT=y
CONFIG_NET_CLS_ACT=y
CONFIG_NET_SCH_INGRESS=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CGROUPS=y
CONFIG_CGROUP_BPF=y
CONFIG_PERF_EVENTS=y
CONFIG_SCHEDSTATS=y
CONFIG_NETFILTER_XT_TARGET_TPROXY=m
CONFIG_NETFILTER_XT_TARGET_CT=m
CONFIG_NETFILTER_XT_MATCH_MARK=m
CONFIG_NETFILTER_XT_MATCH_SOCKET=m
cfsworks
08/29/2023, 6:09 AMmake modules_install
from the Linux source directory. Dang, sorry I didn't think to suggest that. I'm too used to building my kernel with all the stuff I need builtin.dud0
08/29/2023, 6:28 AMcfsworks
08/29/2023, 6:29 AMdud0
08/29/2023, 6:31 AMcfsworks
08/29/2023, 4:59 PMdud0
08/29/2023, 4:59 PM/boot/extlinux/extlinux.conf
if I wanted to fall back, I think?ls /boot
and see these. Should I be concerned?
sh
Image
Image.t19x
Image.t19x.sig
initrd
initrd.t19x
initrd.t19x.sig