Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with compiling kernel 34.1.1 and where to find precompiled one #55

Open
ZeroVital opened this issue Oct 4, 2022 · 5 comments
Open

Comments

@ZeroVital
Copy link

ZeroVital commented Oct 4, 2022

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.1beta1gde1f51d7b 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.1beta1gde1f51d7b_arm64.deb
avt-nvidia-l4t-kernel-headers_5.10.65-tegra-34.1.1-5.0.1beta1gde1f51d7b_arm64.deb
avt-nvidia-l4t-kernel-dtbs_5.10.65-tegra-34.1.1-5.0.1beta1gde1f51d7b_arm64.deb
avt-nvidia-l4t-kernel_5.10.65-tegra-34.1.1-5.0.1beta1gde1f51d7b_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

@AVTechie
Copy link

AVTechie commented Oct 6, 2022

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

@ZeroVital
Copy link
Author

ZeroVital commented Oct 7, 2022

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 :(

@AVTechie
Copy link

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

@ZeroVital
Copy link
Author

ZeroVital commented Oct 12, 2022

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.2beta1g08528412a) ...
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.2beta1g08528412a); 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.2beta1g08528412a) ...
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.2beta1g08528412a); 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
Copy link
Author

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants