Upgrade to L35.4

Hello.

While upgrading to L35.4 from L35.3 using apt upgrade, I got a following message from package nvidia-l4t-bootloader. What should I do?

Setting up nvidia-l4t-bootloader (35.4.1-20230801124926) ...
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 6 blocks) or continue
with the current setting? 
Fix/Ignore? Ignore                                                        
Partition number?
Partition number? 1                                                       
Partition name?  [APP]?
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 6 blocks) or continue
with the current setting? 
Fix/Ignore? Ignore                                                        
Partition number? 1                                                       
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 6 blocks) or continue
with the current setting? 
Fix/Ignore? Fix                                                           
Partition number?                                                         
Partition number?                                                         
Partition number?                                                         
Partition number?                                                         
[1]+  Stopped                 apt upgrade

What does it mean, and what I suppose to answer here?

Wow, cool, my system is unbootable now

[    9.791085] Root device found: mmcblk0p1
[   10.209669] mmc1: SDHCI controller on 3400000.sdhci [3400000.sdhci] using ADMA 64-bit
[   10.610126] mmc1: new ultra high speed SDR104 SDHC card at address aaaa
[   10.617429] mmcblk1: mmc1:aaaa SM32G 29.7 GiB 
[   10.762090]  mmcblk1: p1 p2
[   19.921543] ERROR: mmcblk0p1 not found

Well, more details:

  • Device is NVIDIA Orin Nano Developer Kit
  • Rootfs created using official script from L34.3: ./nv_build_samplefs.sh --abi aarch64 --distro ubuntu --flavor minimal --version focal
  • QSPI is flashed using this commands (also from L34.3):
BOARD=jetson-orin-nano-devkit
sudo ./flash.sh --no-systemimg -c bootloader/t186ref/cfg/flash_t234_qspi.xml ${BOARD} nvme0n1
  • System is flashed to the nVME drive using:
BOARD=jetson-orin-nano-devkit
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-only --network usb0 --external-device nvme0n1 -c tools/kernel_flash/flash_l4t_external.xml -S 40GiB ${BOARD} nvme0n1p1

Then, i change l34.4 to l34.5 in the sources list and run:

sudo apt update
sudo apt upgrade

I was forced to stop upgrade process because I have no idea how I should answer to questions about disk space and Partition number. Then, i run sudo dpkg --configure -a to finish installation

dpkg --configure -a output:

Summary
# sudo dpkg --configure -a
Setting up libdbusmenu-gtk3-4:arm64 (16.04.1+18.10.20180917-0ubuntu6) ...
Setting up nvidia-l4t-vulkan-sc-sdk (35.4.1-20230801124926) ...
Setting up nvidia-l4t-nvfancontrol (35.4.1-20230801124926) ...
Setting up nvidia-l4t-x11 (35.4.1-20230801124926) ...
Setting up gir1.2-gtk-3.0:arm64 (3.24.20-0ubuntu1.1) ...
Setting up libappindicator3-1 (12.10.1+20.04.20200408.1-0ubuntu1) ...
Setting up python3-pil:arm64 (7.0.0-4ubuntu0.7) ...
Setting up gir1.2-appindicator3-0.1 (12.10.1+20.04.20200408.1-0ubuntu1) ...
Setting up nvidia-l4t-bootloader (35.4.1-20230801124926) ...
3767--0005--1--jetson-orin-nano-devkit-
Info. Active boot storage: nvme0n1
Info. Legacy mode: false
TNSPEC 3767-300-0005-K.2-1-1-jetson-orin-nano-devkit-
COMPATIBLE_SPEC 3767--0005--1--jetson-orin-nano-devkit-
TEGRA_LEGACY_UPDATE false
TEGRA_BOOT_STORAGE nvme0n1
TEGRA_EMMC_ONLY false
TEGRA_CHIPID 0x23
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0
Info: Write TegraPlatformCompatSpec with 3767--0005--1--jetson-orin-nano-devkit-.
INFO. Dump slots info:
Current version: 35.3.1
Capsule update status: 0
Current bootloader slot: A
Active bootloader slot: A
num_slots: 2
slot: 0,             status: normal
slot: 1,             status: normal
INFO. Dump nv_boot_control.conf:
TNSPEC 3767-300-0005-K.2-1-1-jetson-orin-nano-devkit-
COMPATIBLE_SPEC 3767--0005--1--jetson-orin-nano-devkit-
TEGRA_LEGACY_UPDATE false
TEGRA_BOOT_STORAGE nvme0n1
TEGRA_EMMC_ONLY false
TEGRA_CHIPID 0x23
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0
Starting bootloader post-install procedure.
INFO. Copy capsule payload: TEGRA_BL_3767.Cap.
INFO. Copy capsule payload to /opt/nvidia/esp/EFI/UpdateCapsule/ and l4tlauncher to /opt/nvidia/esp/EFI/BOOT/ done.
INFO. Set capsule UEFI variable /sys/firmware/efi/efivars/OsIndications-8be4df61-93ca-11d2-aa0d-00e098032b8c done.
Updating extlinux.conf...
Root device is set in the extlinux.conf
Reboot the target system for updates to take effect.
Setting up libtcl8.6:arm64 (8.6.10+dfsg-1) ...
Setting up python3-numpy (1:1.17.4-5ubuntu3.1) ...
Setting up nvidia-l4t-nvsci (35.4.1-20230801124926) ...
Setting up nvidia-l4t-vulkan-sc (35.4.1-20230801124926) ...
Setting up nvidia-l4t-wayland (35.4.1-20230801124926) ...
Setting up python3-dateutil (2.7.3-3ubuntu1) ...
Setting up libgtk2.0-common (2.24.32-4ubuntu4) ...
Setting up nvidia-l4t-xusb-firmware (35.4.1-20230801124926) ...
Setting up nvidia-l4t-cuda (35.4.1-20230801124926) ...
Setting up nvidia-l4t-optee (35.4.1-20230801124926) ...
Setting up python-matplotlib-data (3.1.2-1ubuntu4) ...
Setting up python3-distro-info (0.23ubuntu1.1) ...
Setting up nvidia-l4t-kernel (5.10.120-tegra-35.4.1-20230801124926) ...
Using the existing boot entry 'primary'
3767--0005--1--jetson-orin-nano-devkit-
Info. Active boot storage: nvme0n1
Info. Legacy mode: false
TNSPEC 3767-300-0005-K.2-1-1-jetson-orin-nano-devkit-
COMPATIBLE_SPEC 3767--0005--1--jetson-orin-nano-devkit-
TEGRA_LEGACY_UPDATE false
TEGRA_BOOT_STORAGE nvme0n1
TEGRA_EMMC_ONLY false
TEGRA_CHIPID 0x23
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0
Info: Write TegraPlatformCompatSpec with 3767--0005--1--jetson-orin-nano-devkit-.
Starting kernel post-install procedure.
Rootfs AB is not enabled.
Reboot the target system for changes to take effect.
Setting up nvidia-l4t-nvpmodel-gui-tools (35.4.1-20230801124926) ...
Setting up python3-matplotlib (3.1.2-1ubuntu4) ...
Setting up nvidia-l4t-openwfd (35.4.1-20230801124926) ...
Setting up libgtk2.0-0:arm64 (2.24.32-4ubuntu4) ...
Setting up nvidia-l4t-kernel-headers (5.10.120-tegra-35.4.1-20230801124926) ...
Setting up libtk8.6:arm64 (8.6.10-1) ...
Setting up nvidia-l4t-jetson-io (35.4.1-20230801124926) ...
Setting up libopencv (4.5.4-8-g3e4c170df4) ...
Setting up nvidia-l4t-3d-core (35.4.1-20230801124926) ...
Setting up nvidia-l4t-display-kernel (5.10.120-tegra-35.4.1-20230801124926) ...
depmod: WARNING: could not open modules.order at /lib/modules/5.10.104-tegra: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/5.10.104-tegra: No such file or directory
Setting up nvidia-l4t-initrd (35.4.1-20230801124926) ...
Setting up nvidia-l4t-multimedia (35.4.1-20230801124926) ...
Setting up nvidia-l4t-kernel-dtbs (5.10.120-tegra-35.4.1-20230801124926) ...
Setting up nvidia-l4t-pva (35.4.1-20230801124926) ...
Setting up libgail18:arm64 (2.24.32-4ubuntu4) ...
Setting up libgtk2.0-bin (2.24.32-4ubuntu4) ...
Setting up nvidia-l4t-gbm (35.4.1-20230801124926) ...
Setting up tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Setting up libgail-common:arm64 (2.24.32-4ubuntu4) ...
Setting up nvidia-l4t-vulkan-sc-samples (35.4.1-20230801124926) ...
Setting up nvidia-l4t-camera (35.4.1-20230801124926) ...
Setting up blt (2.5.3+dfsg-4) ...
Setting up nvidia-l4t-gstreamer (35.4.1-20230801124926) ...
Setting up python3-tk:arm64 (3.8.10-0ubuntu1~20.04) ...
Setting up nvidia-l4t-weston (35.4.1-20230801124926) ...
Setting up nvidia-l4t-graphics-demos (35.4.1-20230801124926) ...
Setting up nvidia-l4t-jetsonpower-gui-tools (35.4.1-20230801124926) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Processing triggers for nvidia-l4t-kernel (5.10.120-tegra-35.4.1-20230801124926) ...

An finally, my system is unbootable:
serial.log (82.7 KB)

What exactly did you do here? I think we don’t have 34.4 and 34.5

I think this is because you used the -S option when flashing, so not all the space was used. Was there any reason you had to do that?

Then are you able to enter UEFI to select the boot device?

Also, I think the correct command to run is

$ sudo apt update
$ sudo apt dist-upgrade

, but not

$ sudo apt update
$ sudo apt upgrade

After running the following commands:

sudo apt update
sudo apt dist-upgrade

I encountered the same thing:

Setting up nvidia-l4t-bootloader (35.4.1-20230801124926) ...
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the
space (an extra 6 blocks) or continue with the current setting? 
Fix/Ignore? Ignore                                                        
Partition number?                                                         
Partition number?                                                         
Partition number?                                                         
Partition number?                                                         
Partition number?                                                         
Partition number? 1                                                       
Partition name?  [APP]?

I don’t know if ‘1’ was the right choice and I don’t know what ‘APP’ is referring to. Can someone please let me know what I was suppose to select? Should I just press enter now?

Thanks!

Does it show any error if you proceed?

Should I just press ‘Enter’ on that last question?

I think Yes.

After pressing ‘Enter’:

Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the
space (an extra 6 blocks) or continue with the current setting? 
Fix/Ignore? Fix                                                           
Fix
Partition number? 1                                                       
1
Partition name?  [APP]?                                                   

Warning: Cannot get compatible board name.
3767-000-0000--1--p3509-a02+p3767-0000-
.
.
.

and finally, after all of that:

dpkg: dependency problems prevent configuration of nvidia-l4t-kernel-headers:
 nvidia-l4t-kernel-headers depends on nvidia-l4t-kernel (= 5.10.120-tegra-35.4.1-20230801124926); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-kernel-headers (--configure):
 dependency problems - leaving unconfigured
Setting up nvidia-cuda-dev (5.1.2-b104) ...
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of nvidia-l4t-jetson-io:
 nvidia-l4t-jetson-io depends on nvidia-l4t-kernel (>> 5.10.120-tegra-35.4-0); however:
  Package nvidia-l4t-kernel is not configured yet.
 nvidia-l4t-jetson-io depends on nvidia-l4t-kernel (<< 5.10.120-tegra-35.5-0); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-jetson-io (--configure):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-x11 (35.4.1-20230801124926) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up samba-libs:arm64 (2:4.15.13+dfsg-0ubuntu0.20.04.4) ...
Setting up libpoppler97:arm64 (0.86.1-0ubuntu1.3) ...
Setting up ghostscript (9.50~dfsg-5ubuntu4.9) ...
Setting up software-properties-common (0.99.9.12) ...
Setting up nvidia-l4t-3d-core (35.4.1-20230801124926) ...
Setting up libnvvpi2 (2.3.9) ...
pva_allow and/or /etc/pva/allow.d missing! Falling back to force-overwrite of system allowlist
Setting up libtiff-dev:arm64 (4.1.0+git191117-2ubuntu0.20.04.9) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-display-kernel:
 nvidia-l4t-display-kernel depends on nvidia-l4t-kernel (= 5.10.120-tegra-35.4.1-20230801124926); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-display-kernel (--configure):
 dependency problems - leaving unconfigured
Setting up nvidia-l4t-initrd (No apport report written because MaxReports is reached already
35.4.1-20230801124926) ...
Setting up vpi2-demos (2.3.9) ...
Setting up nvidia-l4t-multimedia (35.4.1-20230801124926) ...
dpkg: dependency problems prevent configuration of nvidia-l4t-kernel-dtbs:
 nvidia-l4t-kernel-dtbs depends on nvidia-l4t-kernel (= 5.10.120-tegra-35.4.1-20230801124926); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-kernel-dtbs (--configure):
 dependency problems - leaving unconfigured
Setting up No apport report written because MaxReports is reached already
libsmbclient:arm64 (2:4.15.13+dfsg-0ubuntu0.20.04.4) ...
Setting up nvidia-l4t-pva (35.4.1-20230801124926) ...
Setting up poppler-utils (0.86.1-0ubuntu1.3) ...
Setting up python3.9-vpi2 (2.3.9) ...
Setting up libpoppler-cpp0v5:arm64 (0.86.1-0ubuntu1.3) ...
Setting up nvidia-l4t-gbm (35.4.1-20230801124926) ...
Setting up libpoppler-glib8:arm64 (0.86.1-0ubuntu1.3) ...
Setting up nvidia-l4t-vulkan-sc-samples (35.4.1-20230801124926) ...
Setting up vpi2-dev (2.3.9) ...
Setting up nvidia-l4t-camera (35.4.1-20230801124926) ...
Setting up software-properties-gtk (0.99.9.12) ...
Setting up nvidia-l4t-gstreamer (35.4.1-20230801124926) ...
Setting up nvidia-l4t-weston (35.4.1-20230801124926) ...
Setting up ghostscript-x (9.50~dfsg-5ubuntu4.9) ...
Setting up nvidia-l4t-graphics-demos (35.4.1-20230801124926) ...
Setting up nvidia-l4t-jetson-multimedia-api (35.4.1-20230801124926) ...
Setting up python3.8-vpi2 (2.3.9) ...
Setting up vpi2-samples (2.3.9) ...
Setting up nvidia-vpi (5.1.2-b104) ...
Setting up nvidia-jetpack-runtime (5.1.2-b104) ...
Setting up nvidia-vpi-dev (5.1.2-b104) ...
Setting up nvidia-jetpack-dev (5.1.2-b104) ...
Setting up nvidia-jetpack (5.1.2-b104) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:arm64 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
Errors were encountered while processing:
 nvidia-l4t-kernel
 nvidia-l4t-kernel-headers
 nvidia-l4t-jetson-io
 nvidia-l4t-display-kernel
 nvidia-l4t-kernel-dtbs
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation was interrupted before it could finish

I attempt to just rerun dist-upgrade again with similar errors.

$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cmake-data cupva-2.0-l4t gir1.2-goa-1.0 libexif-dev libfwupdplugin1 libgdcm-dev libgdcm3.0 libgl2ps1.4
  libgphoto2-dev libhdf5-openmpi-103 libilmbase-dev libjsoncpp1 libnetcdf-c++4 libopencv-calib3d4.2
  libopencv-contrib4.2 libopencv-dnn4.2 libopencv-features2d4.2 libopencv-flann4.2 libopencv-highgui4.2
  libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopencv-ml4.2 libopencv-objdetect4.2 libopencv-photo4.2
  libopencv-shape4.2 libopencv-stitching4.2 libopencv-superres4.2 libopencv-video4.2 libopencv-videoio4.2
  libopencv-videostab4.2 libopencv-viz4.2 libopencv4.2-java libopencv4.2-jni libopenexr-dev libpaps0 libpcaudio0
  librhash0 libsocket++1 libsonic0 libvtk6.3 libxmlb1 nsight-systems-2022.5.2 paps
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  vlc-bin libavresample-dev vlc-plugin-video-output libavformat58
  libpostproc-dev libavfilter7 libpython3.9-minimal liburiparser1
  vlc-plugin-samba libswresample3 vlc-plugin-qt libopenexr-dev
  libpython3.9-stdlib libzmq5 python2.7-minimal libhdf5-103 vlc-plugin-skins2
  vlc-plugin-visualization vlc-l10n libpython2.7 python2.7 libavformat-dev
  python3.9 vlc-plugin-notify libvlc5 libhdf5-dev libsdl2-dev
  libswresample-dev libpostproc55 libvlccore9 libvlc-bin libavutil-dev
  libavcodec-dev hdf5-helpers python3.9-minimal libhdf5-cpp-103 libavcodec58
  libjs-jquery-ui vlc libavutil56 vlc-data libswscale5 libopenexr24
  libsdl2-2.0-0 libmysofa1 vlc-plugin-video-splitter libpython2.7-minimal
  libhdf5-openmpi-103 libswscale-dev vlc-plugin-base libpython2.7-stdlib
  python3-scipy libavresample4
Learn more about Ubuntu Pro at https://ubuntu.com/pro
#
# You can verify the status of security fixes using the `pro fix` command.
# E.g., a recent Ruby vulnerability can be checked with: `pro fix USN-6219-1`
# For more detail see: https://ubuntu.com/security/notices/USN-6219-1
#
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up nvidia-l4t-kernel (5.10.120-tegra-35.4.1-20230801124926) ...
Using the existing boot entry 'primary'
Warning: Cannot get compatible board name.
3767-000-0000--1--p3509-a02+p3767-0000-
Info. Active boot storage: nvme0n1
Info. Legacy mode: false
TNSPEC 3767-RC1-0000-B.6-1-1-p3509-a02+p3767-0000-
COMPATIBLE_SPEC 3767-000-0000--1--p3509-a02+p3767-0000-
TEGRA_LEGACY_UPDATE false
TEGRA_BOOT_STORAGE nvme0n1
TEGRA_EMMC_ONLY false
TEGRA_CHIPID 0x23
TEGRA_OTA_BOOT_DEVICE /dev/mtdblock0
TEGRA_OTA_GPT_DEVICE /dev/mtdblock0
Info: Write TegraPlatformCompatSpec with 3767-000-0000--1--p3509-a02+p3767-0000-.
Starting kernel post-install procedure.
Rootfs AB is not enabled.
ERROR. Procedure for A_kernel update FAILED.
Cannot install package. Exiting...
dpkg: error processing package nvidia-l4t-kernel (--configure):
 installed nvidia-l4t-kernel package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-l4t-kernel-headers:
 nvidia-l4t-kernel-headers depends on nvidia-l4t-kernel (= 5.10.120-tegra-35.4.1-20230801124926); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-kernel-headers (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-l4t-jetson-io:
 nvidia-l4t-jetson-io depends on nvidia-l4t-kernel (>> 5.10.120-tegra-35.4-0); however:
  Package nvidia-l4t-kernel is not configured yet.
 nvidia-l4t-jetson-io depends on nvidia-l4t-kernel (<< 5.10.120-tegra-35.5-0); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-jetson-io (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-l4t-display-kernel:
 nvidia-l4t-display-kernel depends on nvidia-l4t-kernel (= 5.10.120-tegra-35.4.1-20230801124926); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-display-kernel (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport 
report written because the error message indicates its a followup error from a previous failure.
                                                                                                No apport report wri
tten because MaxReports is reached already
                                          dpkg: dependency problems prevent configuration of nvidia-l4t-kernel-dtbs:
 nvidia-l4t-kernel-dtbs depends on nvidia-l4t-kernel (= 5.10.120-tegra-35.4.1-20230801124926); however:
  Package nvidia-l4t-kernel is not configured yet.

dpkg: error processing package nvidia-l4t-kernel-dtbs (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 nvidia-l4t-kernel
 nvidia-l4t-kernel-headers
 nvidia-l4t-jetson-io
 nvidia-l4t-display-kernel
 nvidia-l4t-kernel-dtbs
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then can you just re-flash the device?
Since you are using an NVMe drive, it should be easy to backup the data inside.

If I don’t have a choice, that will be the route I take. While it’s not /hard/ it is quite time-consuming considering the amount of custom software I have on the system. I was hoping that there would be a fix. Thank you!

Reinstalled. I’m reinstalling everything now.

this link How to Install JetPack :: NVIDIA JetPack Documentation is used to upgrade Jetpack
The same problem arises in the process and I reinstalled the system.
Could you tell me how you solved it?
Much appreciated.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.