linux_nvidia_jetson icon indicating copy to clipboard operation
linux_nvidia_jetson copied to clipboard

Problem with compiling kernel 34.1.1 and where to find precompiled one

Open ZeroVital opened this issue 1 year ago • 5 comments

Hello, I'm working on jetson xavier nx dev kit

I compiled kernel but when i try to ./install.sh on target , i have following output :

➜ AlliedVision_NVidia_L4T_34.1.1_5.0.1~beta1~gde1f51d7b sudo ./install.sh -y Allied Vision MIPI CSI-2 camera driver for NVidia Jetson (kernel 5.10.65) Extracting repository: Release Packages avt-nvidia-l4t-bootloader_34.1.1-5.0.1~beta1~gde1f51d7b_arm64.deb avt-nvidia-l4t-kernel-headers_5.10.65-tegra-34.1.1-5.0.1~beta1~gde1f51d7b_arm64.deb avt-nvidia-l4t-kernel-dtbs_5.10.65-tegra-34.1.1-5.0.1~beta1~gde1f51d7b_arm64.deb avt-nvidia-l4t-kernel_5.10.65-tegra-34.1.1-5.0.1~beta1~gde1f51d7b_arm64.deb Importing Repository: deb [allow-insecure=yes] file:/opt/avt/packages ./ Get:1 file:/opt/avt/packages ./ InRelease Ign:1 file:/opt/avt/packages ./ InRelease Get:2 file:/opt/avt/packages ./ Release [816 B] Get:2 file:/opt/avt/packages ./ Release [816 B] Get:3 file:/opt/avt/packages ./ Release.gpg Ign:3 file:/opt/avt/packages ./ Release.gpg Hit:4 http://ports.ubuntu.com/ubuntu-ports focal InRelease Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease Hit:6 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Hit:8 https://repo.download.nvidia.com/jetson/common r34.1 InRelease Hit:9 https://repo.download.nvidia.com/jetson/t194 r34.1 InRelease Reading package lists... Done W: The repository 'file:/opt/avt/packages ./ Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. Installing packages: Reading package lists... Done Building dependency tree
Reading state information... Done 0 upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 2 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for avt-nvidia-l4t-bootloader:arm64 Connection to 192.168.1.44 closed by remote host. Connection to 192.168.1.44 closed.

Here is my host build.log https://drive.google.com/uc?export=download&id=1zowZP21g9X0XFUW0CjFbw9aGrCLQ2qJe

Also where i can find the precompiled kernel please ?

thx

ZeroVital avatar Oct 04 '22 18:10 ZeroVital

Check here for precompiled versions: https://github.com/alliedvision/linux_nvidia_jetson/releases

AVTechie avatar Oct 06 '22 13:10 AVTechie

Hello

I still have problem with precompiled kernel installation


sudo apt reinstall avt-nvidia-l4t-kernel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  avt-nvidia-l4t-kernel
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/356 MB of archives.
After this operation, 2.302 MB of additional disk space will be used.
Get:1 file:/opt/avt/packages ./ avt-nvidia-l4t-kernel 5.10.65-tegra-34.1.1-5.0.1~beta1~gb0feb54753 [356 MB]
Selecting previously unselected package avt-nvidia-l4t-kernel.
(Reading database ... 122077 files and directories currently installed.)
Preparing to unpack .../avt-nvidia-l4t-kernel_5.10.65-tegra-34.1.1-5.0.1~beta1~gb0feb54753_arm64.deb ...
Unpacking avt-nvidia-l4t-kernel (5.10.65-tegra-34.1.1-5.0.1~beta1~gb0feb54753) ...
Setting up avt-nvidia-l4t-kernel (5.10.65-tegra-34.1.1-5.0.1~beta1~gb0feb54753) ...
3668-100---1--jetson-xavier-nx-devkit-qspi-
Starting kernel post-install procedure.
ERROR. Procedure for kernel update FAILED.
Cannot install package. Exiting...
dpkg: error processing package avt-nvidia-l4t-kernel (--configure):
 installed avt-nvidia-l4t-kernel package post-installation script subprocess returned error exit status 1
Setting up avt-nvidia-l4t-bootloader (34.1.1-5.0.1~beta1~gb0feb54753) ...
rm: cannot remove '/boot/dtb/kernel_*': No such file or directory
Traceback (most recent call last):
  File "/var/lib/dpkg/info/avt-nvidia-l4t-bootloader.config", line 288, in <module>
    main()
  File "/var/lib/dpkg/info/avt-nvidia-l4t-bootloader.config", line 283, in main
    active_board.update_active_configuration(i)
  File "/var/lib/dpkg/info/avt-nvidia-l4t-bootloader.config", line 146, in update_active_configuration
    shutil.copyfile('/boot/%s' % new_config.dtb, '/boot/kernel_%s' % new_config.dtb)
  File "/usr/lib/python3.8/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/boot/tegra194-p3668-0000-p3509-0000-avt.dtb'
dpkg: error processing package avt-nvidia-l4t-bootloader (--configure):
 installed avt-nvidia-l4t-bootloader package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 avt-nvidia-l4t-kernel
 avt-nvidia-l4t-bootloader
E: Sub-process /usr/bin/dpkg returned an error code (1)

here is my uname -a : Linux jetsonara 5.10.65-gb0feb54753 #1 SMP PREEMPT Mon Jul 18 09:45:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linu

I just installed L4T-34.1.1, one detail though is thats its on nvme, if thats matter :(

ZeroVital avatar Oct 07 '22 10:10 ZeroVital

You might want to try the new beta release for JetPack 5.0.2. Find it here: https://github.com/alliedvision/linux_nvidia_jetson/releases/tag/l4t-35.1.0-5.0.2-beta1

AVTechie avatar Oct 10 '22 14:10 AVTechie

After a full flash of 5.0.2, and apt update/upgrade i have same error

`Setting up avt-nvidia-l4t-kernel (5.10.104-tegra-35.1.0-5.0.2~beta1~g08528412a) ... 3668-100---1--jetson-xavier-nx-devkit-qspi- Starting kernel post-install procedure. ERROR. Procedure for kernel update FAILED. Cannot install package. Exiting... dpkg: error processing package avt-nvidia-l4t-kernel (--configure): installed avt-nvidia-l4t-kernel package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of avt-nvidia-l4t-kernel-headers: avt-nvidia-l4t-kernel-headers depends on avt-nvidia-l4t-kernel (= 5.10.104-tegra-35.1.0-5.0.2~beta1~g08528412a); however: Package avt-nvidia-l4t-kernel is not configured yet.

dpkg: error processing package avt-nvidia-l4t-kernel-headers (--configure): dependency problems - leaving unconfigured Setting up avt-nvidia-l4t-bootloader (35.1.0-5.0.2~beta1~g08528412a) ... 3668-100---1--jetson-xavier-nx-devkit-qspi- Starting bootloader post-install procedure. ERROR. Procedure for bl_only_payload update FAILED. Cannot install package. Exiting... dpkg: error processing package avt-nvidia-l4t-bootloader (--configure): installed avt-nvidia-l4t-bootloader package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of avt-nvidia-l4t-kernel-dtbs: avt-nvidia-l4t-kernel-dtbs depends on avt-nvidia-l4t-kernel (= 5.10.104-tegra-35.1.0-5.0.2~beta1~g08528412a); however: Package avt-nvidia-l4t-kernel is not configured yet.

dpkg: error processing package avt-nvidia-l4t-kernel-dtbs (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: avt-nvidia-l4t-kernel avt-nvidia-l4t-kernel-headers avt-nvidia-l4t-bootloader avt-nvidia-l4t-kernel-dtbs ` here is the /opt/ota_package/kernel.log

Start running: /opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh -c 3668-100---1--jetson-xavier-nx-devkit-qspi- Got individual part name: kernel Got update payload: /opt/ota_package/bl_update_payload Tegra User Block Device: /dev/disk/by-partlabel Tegra Boot Block Device: /dev/mtdblock0 Tegra GPT Block Device: /dev/mtdblock0 HEADER: MAGIC NVIDIA__BLOB__V3 HEX_VALUE 16975394 BLOB_SIZE 50132230 HEADER_SIZE 48 NUMBER_OF_ELEMENTS 19 HEADER_TYPE 0 UNCOMP_SIZE 50132230 MB1_RATCHET_LV 0 MTS_RATCHET_LV 0 ROLLBACK_FUSE_LV 0 Device TN Spec: 3668-200-0000-H.0-1-2-jetson-xavier-nx-devkit-qspi- Device Compatible Spec: 3668-100---1--jetson-xavier-nx-devkit-qspi- Can't find matching TN Spec in OTA Blob! GPT update failed. Status: 3 /usr/sbin/nv_bootloader_payload_updater --forced-part Failed.

thx

ZeroVital avatar Oct 12 '22 21:10 ZeroVital

Issue seems on my side cause of weird partition configuration

here my /etc/nv_boot_control.conf :

`TNSPEC 3668-200-0000-H.0-1-2-jetson-xavier-nx-devkit- COMPATIBLE_SPEC 3668-100---1--jetson-xavier-nx-devkit- TEGRA_CHIPID 0x19 TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0 TEGRA_OTA_GPT_DEVICE /dev/mtdblock0

deb installed successfully, Seems to work now, camera detected`

ZeroVital avatar Oct 19 '22 20:10 ZeroVital