Hello
I am trying to download software for running python scripts and OpenCV.
Although I am very inexperienced when it comes to Ubuntu and this kind of stuff, I notice two errors that I think are connected. Solving these problems might help me actually get opencv running and downloaded.
In short, I see in my errors of trying to download stuff the same phrases thrown around. Below are examples of said phrases and my hardware.
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
sudo apt-get update
sudo apt-get upgrade
"Errors were encountered while processing:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)
"
Specifically
"
dpkg: error processing package nvidia-l4t-xusb-firmware (–configure):
installed nvidia-l4t-xusb-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-l4t-initrd:
nvidia-l4t-initrd depends on nvidia-l4t-xusb-firmware (= 32.5.2-20210709090126); however:
Package nvidia-l4t-xusb-firmware is not configured yet.
dpkg: error processing package nvidia-l4t-initrd (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)
fatal: destination path ‘opencv’ already exists and is not an empty directory.
fatal: destination path ‘opencv_contrib’ already exists and is not an empty directory.
mkdir: cannot create directory ‘build’: File exists
"
When trying to use a github script for downloading and building openCV per a youtube video
github JetsonHacksNano/buildOpenCV
When I try running the script from the terminal as advocated, it cuts off after a couple minutes instead of completing hours later.
I see the same phrases about the bootloader and x-usb.
"Configuring incomplete, errors occurred!
See also “/home/jetson/opencv/build/CMakeFiles/CMakeOutput.log”.
See also “/home/jetson/opencv/build/CMakeFiles/CMakeErrors.log”.
real 0m10.697s
user 0m8.368s
sys 0m2.040s
CMake issues
Please check the configuration being used
"
Scrolling up in the logs, I note something
I tried again but reconfigured the script according to the video’s instructions to be better suited for SD card storage Jetsons. Changing the amount of cores being used from 4 to 1 which said would take longer but would work out. Same error happened again. I have attached a part of the verbose logs at the end of this post.
I am naïve and may be glossing over some serious detail that could help. Please let me know what I can supply to paint a better picture. I am sad that blindly following tutorials does not work, but I hope that this can be somehow resolved.
Something of note is that I am using a Jetson Nano using a 16gb EMMC storage instead of booting from a flash drive. I cant figure out how to reflash and reset said EMMC storage since there’s no card to re-burn.
amazon Yahboom-Jetson-Nano-4GB-Board
I would appreciate any tips or advice on how to approach this problem.
Thank you for your time,
Yelizar
Said verbose log from trying to build Opencv
dpkg: error processing package nvidia-l4t-xusb-firmware (–configure):
installed nvidia-l4t-xusb-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nvidia-l4t-initrd:
nvidia-l4t-initrd depends on nvidia-l4t-xusb-firmware (= 32.5.2-20210709090126); however:
Package nvidia-l4t-xusb-firmware is not configured yet.
dpkg: error processing package nvidia-l4t-initrd (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)
fatal: destination path ‘opencv’ already exists and is not an empty directory.
fatal: destination path ‘opencv_contrib’ already exists and is not an empty directory.
mkdir: cannot create directory ‘build’: File exists
There it is again.
nvidia-l4t-bootloader
nvidia-l4t-xusb-firmware
nvidia-l4t-initrd
What are these things? Did I mess something up when trying to download and set up the Nano for the first time?