ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VOXL2 SDK Flash Not Working

    Ask your questions right here!
    2
    18
    408
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tomT
      tom admin @ctitus
      last edited by

      @ctitus Do those two devices show up in lsusb simultaneously?

      Does anything show up with adb devices or fastboot devices?

      C 1 Reply Last reply Reply Quote 0
      • C
        ctitus @tom
        last edited by

        @tom No, it's only ever 1 at a time. I was able to get my hands on a new fresh linux machine, and after installing the packages I needed (and using the same files I copy and pasted from my original laptop), I was successfully able to factory reset and roll back the sdk and system image without issue. I'm gonna do a bit of digging but I have a feeling I was just missing some packages and it wasn't alerting me of it on my original laptop.

        tomT 1 Reply Last reply Reply Quote 0
        • tomT
          tom admin @ctitus
          last edited by

          @ctitus Interesting, I would also check to make sure your user on that machine has the required permissions, here's an example of the groups that my user is part of for ref:

          04b0655f-b9fe-4e90-84cc-cbd636550fe8-image.png

          C 1 Reply Last reply Reply Quote 0
          • C
            ctitus @tom
            last edited by

            @tom So I did some digging and found where it hangs. Line 391 of voxl2_1.3.1-0.8/system-image/flash-system-image.sh: local output="$( fastboot getvar "partition-size:${partition}" 2>&1 )" specifically executing fastboot getvar "partition-size:modalai_conf". For some reason, my original laptop shows "< waiting for any device >" while the laptop that worked returned "partition-size:modalai_conf: 0x4000000". I double checked that the voxl shows up as fastboot with lsusb on both laptops

            C 1 Reply Last reply Reply Quote 0
            • C
              ctitus @ctitus
              last edited by

              @ctitus Messing aroudn a bit more, sudo fastboot getvar "partition-size:modalai_conf" works

              1 Reply Last reply Reply Quote 0
              • C
                ctitus
                last edited by

                And running sudo ./install.sh worked and successfully installed the SDK and system image

                tomT 1 Reply Last reply Reply Quote 0
                • tomT
                  tom admin @ctitus
                  last edited by

                  @ctitus Thanks for this info, it is very helpful. What OS are you running on the PC that it isn't working?

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    ctitus @tom
                    last edited by

                    @tom Both are linux ubuntu 22.04 LTS. My current laptop I've been using for a while and likely have some weird issue in my user setup or configuration, the new laptop was dual booted as linux for the first time 2 hours ago and the first thing it did was factory reset the voxl and run install.sh (and install the missing dependencies that install.sh alerted me to) which worked just fine without needing sudo. I'm not sure what I could've done to my laptop to have this issue, but any advice would be greatly appreciated

                    tomT 1 Reply Last reply Reply Quote 0
                    • tomT
                      tom admin @ctitus
                      last edited by

                      @ctitus I would check the groups that your user is part of that I posted above. Maybe also compare the versions of adb and fastboot between the two machines.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        ctitus @tom
                        last edited by

                        @tom it looks like the groups are the same between machines (and yours except I'm not in docker), and the versions of adb, fastboot, and all android packages are the same. I was looking online and some people say it may be related to or solved by udev (https://askubuntu.com/questions/705537/no-permissions-fastboot-fastboot-and-adb-not-working) but I'm not sure I have more more time to troubleshoot this, and I didn't touch anything with udev on the working machine. Hopefully I'll be able to circle back to this eventually, but thank's for your help with everything!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors