AsteroidOS / meta-smartwatch

OpenEmbedded layer that provides support for various smartwatches.
24 stars 18 forks source link

fastboot flash userdata failing with C++ error on asus zenwatch 2 sparrow #242

Closed MichaelBitard closed 3 months ago

MichaelBitard commented 3 months ago

Hi,

I'm on linux:

sudo fastboot oem unlock
(bootloader) The bootloader is already unlocked!

I verified the sha512sum of the downloaded file:

sha512sum ~/Downloads/asteroid-image-sparrow.ext4
aaf459fd3728c91adf0e707d30d340a1ebfdbc940840eafa99b72b2aeeb64c5548e44be02d057217feb930a13969305d7049f6084676b0c04f768322096886fa

When I try to flash the userdata, I get the following error:

sudo fastboot flash userdata ~/Downloads/asteroid-image-sparrow.ext4
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::compare: __pos (which is 917456) > this->size() (which is 0)
Aborted

I don't know what to do next, am I missing something?

beroset commented 3 months ago

There was and is a problem with the Fedora 39 version of fastboot that causes this error. See https://bugzilla.redhat.com/show_bug.cgi?id=2269950

I encountered this same problem and recompiled this version of fastboot that I shared via our Matrix chat.

Since this is not an AsteroidOS issue, but rather a Fedora issue, I'm closing this. Post a message in our Matrix chat if you'd like some help.

MichaelBitard commented 3 months ago

Thanks for pointing that out!