Image Flashing Error
-
Hi All, I've got a relatively new Sentinel and I've attempted a system image flash to the device using two different computers. The image is the "voxl2_platform_0.9.5" image and the processor is naturally the VOXL2. The terminal output is below, suggesting that something appears to be up with permissions. Any ideas what's going on here? It at least partially succeeds. I imagine this should be possible to replicate with a fresh VOXL2 and the latest VOXL2 image in the repo...
[INFO] adb installed
[INFO] fastboot installed
----Starting System Image Flash----
Detected OS: LinuxInstaller Version: 0.8
Image Version: 1.5.5
[INFO] Found adb device, rebooting to fastboot
[INFO] Found fastboot device
[WARNING] This system image flash is intended only for the following
platform: VOXL2 (m0054)Make sure that the device that will be flashed is correct. Flashing a device with an incorrect system image will lead the device to be stuck in fastboot.
Would you like to continue with the VOXL2 (m0054) system image flash?
- Yes
- No
#? 1
[INFO] Found correct partitions
[INFO] Found all required files
Done Flashing
----------------------------------------------------------------
rebooting...finished. total time: 0.252s
[INFO] Waiting for ADB
[INFO] Device ready, version:
1.5.5-M0054-14.1a-perf
[INFO] Finished flashing system image!----Installing Suite----
[INFO] adb installed
[INFO] Waiting for device
[INFO] Pushing packages to target
Done Pushing
----------------------------------------------------------------
dpkg-scanpackages: warning: package voxl-mpa-tools (filename ./voxl-mpa-tools_0.7.6_arm64.deb) is repeat but newer version; used that one and ignored data from ./voxl-mpa-tools_0.7.5_arm64.deb!
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: libmodal-cv libmodal-exposure libmodal-journal libmodal-json libmodal-pipe libqrb5165-io librc-math libvoxl-cci-direct libvoxl-cutils mavlink-camera-manager qrb5165-dfs-server qrb5165-imu-server qrb5165-system-tweaks qrb5165-tflite voxl-bind voxl-camera-calibration voxl-camera-server voxl-ceres-solver voxl-cpu-monitor voxl-docker-support voxl-eigen3 voxl-flir-server voxl-gphoto2-server voxl-jpeg-turbo voxl-libgphoto2 voxl-libuvc voxl-logger voxl-mapper voxl-mavlink voxl-mavlink-server voxl-modem voxl-mongoose voxl-mpa-to-ros voxl-mpa-tools voxl-nlopt voxl-opencv voxl-portal voxl-px4 voxl-px4-imu-server voxl-qvio-server voxl-remote-id voxl-streamer voxl-suite voxl-tag-detector voxl-tflite-server voxl-utils voxl-uvc-server voxl-vision-px4 voxl-voxblox
dpkg-scanpackages: info: Wrote 49 entries to output Packages file.
Get:1 file:/data/voxl-suite-offline-packages ./ InRelease
Ign:1 file:/data/voxl-suite-offline-packages ./ InRelease
Get:2 file:/data/voxl-suite-offline-packages ./ Release
Ign:2 file:/data/voxl-suite-offline-packages ./ Release
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages [8065 B]
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Ign:4 file:/data/voxl-suite-offline-packages ./ Translation-en
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Ign:3 file:/data/voxl-suite-offline-packages ./ Packages
Get:3 file:/data/voxl-suite-offline-packages ./ Packages
Err:3 file:/data/voxl-suite-offline-packages ./ Packages
File not found - /data/voxl-suite-offline-packages/./Packages (2: No such file or directory)
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/data/voxl-suite-offline-packages/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch file:/data/voxl-suite-offline-packages/./Packages File not found - /data/voxl-suite-offline-packages/./Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.
[INFO] Installing packages on target
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package voxl-suite
[INFO] Pointing to correct repo
/bin/bash: voxl-configure-pkg-manager: command not found
[INFO] Done installing voxl-suite
----Installation Completed---- -
@Chad-Sweet Just wanted to bump this issue as it's also occurring with the latest image as well, but slightly different error. Basically following the instructions here: https://docs.modalai.com/flash-system-image/ and get an error with the new image. Given the user only runs "./install.sh", there's only so much that can be diagnosed on the user side. I'm surprised if no one else is seeing this, but I don't see any other posts. Is it dangerous to just wipe the /data partition completely? That's the only thing that could be different between this Sentinel setup and others I imagine...
./install.sh
▂▂▂▂▂▂▂▂▂▂▂▂▂ ▂▄▆▆██▛▀▀▀▀▀▀▀▀▜████▆▆▄▂
███╗ ███╗ ██████╗ ██████╗ █████╗ ██╗ ▗▆████▀▔ ▔▔▀▀▀▀▚▄
████╗ ████║██╔═══██╗██╔══██╗██╔══██╗██║ ▗▟████▀ ▗██▖ ▐█ ▝▀▆▄▄▄
██╔████╔██║██║ ██║██║ ██║███████║██║ ▟████▀ ▗█▘▝█▖ ▐█ ▜█▀█
██║╚██╔╝██║██║ ██║██║ ██║██╔══██║██║ █▌ ▐█▌ ▗█▘ ▝█▖ ▐█ ▐▄ ▄
██║ ╚═╝ ██║╚██████╔╝██████╔╝██║ ██║███████╗ ▀████ ▗█▘ ▝█▖ ▐█ ▂▄███▀
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ▀▀██▄▄ ▂▆███▀
▀▀██▄▄ ▀▀▆▄▄▄▄▆██▀▀▀▘Running in Interactive mode.
Flashing the following System Image:
Build Name: 1.6.2-M0054-14.1a-perf
Build Date: 2023-05-19
Platform: M0054
System Image Version: 1.6.2Installing the following version of voxl-suite:
voxl-suite Version: 1.0.0Would you like to continue with SDK install?
- Yes
- No
#? 1
[INFO] adb installed
[INFO] fastboot installed
----Starting System Image Flash----
Detected OS: LinuxInstaller Version: 0.8
Image Version: 1.6.2Please power off your VOXL, connect via USB,
then power on VOXL. We will keep searching for
an ADB or Fastboot device over USB
[INFO] Found ADB device
[INFO] Rebooting to fastboot
.
[INFO] Found fastboot device
[WARNING] This system image flash is intended only for the following
platform: VOXL2 (m0054)Make sure that the device that will be flashed is correct. Flashing a device with an incorrect system image will lead the device to be stuck in fastboot.
Would you like to continue with the VOXL2 (m0054) system image flash?
- Yes
- No
#? 1
[INFO] Found correct partitions
[INFO] Found all required files
Done Flashing
----------------------------------------------------------------
rebooting...finished. total time: 0.251s
[INFO] Waiting for ADB, if this takes more than 1 minute power cycle VOXL
[INFO] Device ready, version:
1.6.2-M0054-14.1a-perf
[INFO] Finished flashing system image!----Installing Suite----
[INFO] adb installed
[INFO] Waiting for device
[INFO] Pushing packages to target
Done Pushing
----------------------------------------------------------------
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning: libmodal-cv libmodal-exposure libmodal-journal libmodal-json libmodal-pipe libqrb5165-io librc-math libvoxl-cci-direct libvoxl-cutils mavlink-camera-manager qrb5165-dfs-server qrb5165-imu-server qrb5165-system-tweaks qrb5165-tflite voxl-bind-spektrum voxl-camera-calibration voxl-camera-server voxl-ceres-solver voxl-configurator voxl-cpu-monitor voxl-docker-support voxl-eigen3 voxl-elrs voxl-esc voxl-feature-tracker voxl-flow-server voxl-gphoto2-server voxl-hires-server voxl-jpeg-turbo voxl-lepton-server voxl-libgphoto2 voxl-libuvc voxl-logger voxl-mapper voxl-mavcam-manager voxl-mavlink voxl-mavlink-server voxl-modem voxl-mongoose voxl-mpa-to-ros voxl-mpa-tools voxl-nlopt voxl-open-vins voxl-open-vins-server voxl-opencv voxl-portal voxl-px4 voxl-px4-imu-server voxl-px4-params voxl-qvio-server voxl-remote-id voxl-slpi-uart-bridge voxl-streamer voxl-suite voxl-tag-detector voxl-tflite-server voxl-utils voxl-uvc-server voxl-vision-hub voxl-voxblox
dpkg-scanpackages: info: Wrote 60 entries to output Packages file.
[INFO] Installing packages on target
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package voxl-suite
ERROR failed to install voxl-suite
SUCCESS /tmp/success: No such file or directory -
@JoeC I'm wondering if something is corrupt in your VOXL2's file system.
Try the following flashing procedure: (The -f flag in ./flash-system-image.sh is what will wipe all partitions)
cd voxl2_SDK_1.0.0 cd system-image ./flash-system-image.sh -f cd ../voxl-suite ./offline-install.sh
-
@tom Thanks Tom! This "wipe everything flag" is what I was hoping for. I just tried on my Sentinel and got the same error BUT.... That said, my next step was to try a different COMPUTER and that worked! So something is messed up in the configuration of the laptop itself I was using.
-Joe
-
@JoeC Interesting... glad you were able to resolve the issue. For curiosity's sake, what OS were you running on the machine that wasn't working?
-
@tom I had a similar problem, except I couldn't get fastboot to reload. I ran it on a computer that boots up with Ubuntu and it flashed the drone perfectly fine, although the blue LEDs are flashing really fast and at the same rate, the GPS is blinking red but that might be something else I'm missing.
I was running Ubuntu 22.04 ARM64 with Parallels desktop on my MacBook Pro 2021 and tried flashing process on there. That's where I have the usb connected to on the Ubuntu virtual computer and that's the recommended developer OS to operate in it. I can access files on my Mac on Ubuntu (through parallels shared folders) to iCloud and it successfully uploaded to iCloud.
However, it failed to reboot to fast boot even after installing fastboot on Ubuntu. Here's the error. I tried it while powercycling and reinstalling fast boot but it didn't work on my Mac:
Running in Interactive mode.
Flashing the following System Image:
Build Name: 1.6.2-M0054-14.1a-perf
Build Date: 2023-05-19
Platform: M0054
System Image Version: 1.6.2Installing the following version of voxl-suite:
voxl-suite Version: 1.0.0Would you like to continue with SDK install?
- Yes
- No
#? 1
[INFO] adb installed
[INFO] fastboot installed
----Starting System Image Flash----
Detected OS: LinuxInstaller Version: 0.8
Image Version: 1.6.2Please power off your VOXL, connect via USB,
then power on VOXL. We will keep searching for
an ADB or Fastboot device over USB
[INFO] Found ADB device
[INFO] Rebooting to fastboot
.
.
.
.
.
.
.
.
.
.
[WARNING] Failed to reboot to fastboot
Try power cycling VOXL while holding the fastboot button
[INFO] Found ADB device
[INFO] Rebooting to fastboot
.
.
.
.
.
.
.
.
.
.
[WARNING] Failed to reboot to fastboot
Try power cycling VOXL while holding the fastboot button
^CThe issue is resolved but I just wanted to share it here.
-
@tom Hi Tom, I was using Ubuntu 20.04 as the dev computer OS.
-
@tom I've narrowed this behavior down! On the VOXL2 using the 0.9.5 image: Do a factory flash, connect to internet via 'voxl-wifi station', then 'apt update && apt dist-upgrade'. You'll note everything is fine. Then run 'voxl-configure-docker-support' and type '1' for all prompts. Immediately after this, you'll note that 'apt update' is broken and the error, "Download is performed unsandboxed as root as file '/data/voxl-suite-offline-packages/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)" is given. Something is up when running voxl-configure-docker-support that breaks how apt normally operates....
-Joe
-
@JoeC
voxl-configure-docker-support
is a VOXL1 only thing, it really shouldn't have ever been added into the VOXL2's SDK and is / will be removed from future releases. You should be able to install docker similar to how you would on a normal Ubuntu machine -
@tom Confirmed, installing the normal way doesn't corrupt the apt repo..... THANKS!
-