Hi there,
I am creating a build system that does a lot of the heavy lifting on my host computer such that I do not need to download anything on the device once the flash is complete.
I have a bash script that does the following in a chroot environment
- Creates the rootfs from a base Ubuntu 22.04 tarball - works
- Installs L4T BSP - works
- Installs nvidia-jetpack on the rootfs - facing issues
Steps in the ‘install nvidia-jetpack’ portion of the script
- open chroot environment in built rootfs
- sed -i “s//t234/g” /etc/apt/sources.list.d/nvidia-l4t-apt-source.list
- apt update
- apt install nvidia-jetpack
I am getting the following error output from apt/dpkg. Is there a workaround? It looks like it’s confused since I am in a chroot environment - maybe some nvidia script that need to run on boot have not run yet? Full output from apt is in attached .txt
nvidia-jetpack-apt-error.txt (53.7 KB)
EDIT: Figured it out. Adding this file allows install in chroot
touch /opt/nvidia/l4t-packages/.nv-l4t-disable-boot-fw-update-in-preinstall
Removing libopencv-ml-dev:arm64 (4.5.4+dfsg-9ubuntu4) …
(Reading database … 189167 files and directories currently installed.)
Preparing to unpack …/libopencv-dev_4.8.0-1-g6371ee1_arm64.deb …
Unpacking libopencv-dev (4.8.0-1-g6371ee1) over (4.5.4+dfsg-9ubuntu4) …
(Reading database … 189571 files and directories currently installed.)
Removing libopencv-contrib-dev:arm64 (4.5.4+dfsg-9ubuntu4) …
Removing libopencv-viz-dev:arm64 (4.5.4+dfsg-9ubuntu4) …
(Reading database … 189272 files and directories currently installed.)
Preparing to unpack …/00-nvidia-l4t-camera_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-camera (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/01-nvidia-l4t-multimedia_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-multimedia (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/02-nvidia-l4t-cuda_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-cuda (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/03-nvidia-l4t-vulkan-sc-samples_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-vulkan-sc-samples (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/04-nvidia-l4t-openwfd_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-openwfd (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/05-nvidia-l4t-vulkan-sc_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-vulkan-sc (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/06-nvidia-l4t-vulkan-sc-dev_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-vulkan-sc-dev (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/07-nvidia-l4t-vulkan-sc-sdk_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-vulkan-sc-sdk (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/08-nvidia-l4t-pva_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-pva (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/09-nvidia-l4t-nvsci_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-nvsci (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/10-nvidia-l4t-graphics-demos_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-graphics-demos (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/11-nvidia-l4t-multimedia-utils_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-multimedia-utils (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/12-nvidia-l4t-weston_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-weston (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/13-nvidia-l4t-gbm_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-gbm (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/14-nvidia-l4t-nvpmodel-gui-tools_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-nvpmodel-gui-tools (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/15-nvidia-l4t-nvpmodel_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-nvpmodel (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/16-nvidia-l4t-nvfancontrol_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-nvfancontrol (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/17-nvidia-l4t-jetsonpower-gui-tools_36.3.0-20240719161631_arm64.deb …
Unpacking nvidia-l4t-jetsonpower-gui-tools (36.3.0-20240719161631) over (36.3.0-20240506102626) …
Preparing to unpack …/18-nvidia-l4t-core_36.3.0-20240719161631_arm64.deb …
/var/lib/dpkg/tmp.ci/preinst: line 43: /proc/device-tree/compatible: No such file or directory
dpkg: error processing archive /tmp/apt-dpkg-install-33M9S4/18-nvidia-l4t-core_36.3.0-20240719161631_arm64.deb (–unpack):
new nvidia-l4t-core package pre-installation script subprocess returned error exit status 1
/bin/df: no file systems processed
Errors were encountered while processing:
/tmp/apt-dpkg-install-33M9S4/18-nvidia-l4t-core_36.3.0-20240719161631_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)