Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix firmware update #1767

Open
2 tasks
kodjima33 opened this issue Feb 8, 2025 · 15 comments
Open
2 tasks

Fix firmware update #1767

kodjima33 opened this issue Feb 8, 2025 · 15 comments
Assignees

Comments

@kodjima33
Copy link
Collaborator

kodjima33 commented Feb 8, 2025

Our dev Kit 2 devices are shipped with 2.0.2 firmware

Problem: no one wants to do manual firmware update and auto-update doesn't work for 2.0.2

Problem2: people don't know they can update firmware

Todo

  • Fix auto-update for 2.0.2 update - autoupdate should work ($400)
  • Add auto-update sign as soon as device connected ($100)
@kodjima33
Copy link
Collaborator Author

/bounty $500

Copy link

algora-pbc bot commented Feb 9, 2025

💎 $500 bounty • omi

Steps to solve:

  1. Start working: Comment /attempt #1767 with your implementation plan
  2. Submit work: Create a pull request including /claim #1767 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to BasedHardware/omi!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @asr2003 Feb 9, 2025, 3:05:28 AM WIP

@asr2003
Copy link

asr2003 commented Feb 9, 2025

@kodjima33 I would like to take this issue

/attempt #1767

Algora profile Completed bounties Tech Active attempts Options
@asr2003 10 bounties from 4 projects
Rust, Typescript,
Go & more
Cancel attempt

@andrewgazelka
Copy link

@addbounty $500

@addbounty
Copy link

addbounty commented Feb 11, 2025

banner
button

Make a Draft PR early so others can see you are working on it! To automatically create one:

# Using npx (installed if you have NodeJS/npm)
npx bountybot solve BasedHardware/omi#1767

Join Our Discord to connect with other bounty hunters and get help.

When merged, you will receive the bounty!

@kodjima33
Copy link
Collaborator Author

Issue still open, I haven't seen any demos

@asr2003
Copy link

asr2003 commented Feb 13, 2025 via email

@kodjima33 kodjima33 moved this to TODO (This week) in omi TODO / bounties Feb 13, 2025
@skywinder
Copy link
Contributor

Just received mine—shipped a month ago with firmware version 2.0.2.

Updated successfully without any issues using the instructions here: Discord Link.

The only inconvenience was the lack of direct links in the app to copy and paste onto a laptop, which forced me to check Discord for details.

I’ve submitted a feature request to improve this UX: #1808

@kodjima33
Copy link
Collaborator Author

@skywinder wow your github looks amazing!
Can you help with this by any chance? This is such a big pain

@skywinder
Copy link
Contributor

@kodjima33
Thanks! I’ve been an open-source enthusiast and builder since 2010, and I'm excited to dive into this project. :)

Regarding the issue, I'm currently exploring the codebase, and I just got my Omi DK2 yesterday, which I’m really looking forward to experimenting with!

Let’s keep an eye on the situation since two others have committed to resolving this. If we don’t see any progress by next week, I’ll step in and do my best to tackle it!

@beastoin
Copy link
Collaborator

More context:

The current pain is that the OTA update does not work if the user plugs their device into a USB cable(either to a charger or a computer).

Without USB cable, everything works well.

--

My comment on the previous investigation: #1682 (comment)

yes sir, actually the brick mean *the device can not boot after performing the ota updates.

i also try with/without the usb connected. the result is: without the usb connected, the ota updates work fine. the device can boot with any versions, e.g. ota updates from 2.0.2 to 2.0.8 or 2.0.4 to 2.0.7 and so on.

so i guess there're something confusing the bootloader's state between the ota updates and serial updates when the usb is connected.

ofc we can also try disabling all usb interrupts while performing the ota updates. but i dont think it's a smart move.

i'm a nerd, as you know, i love deep-diving into issues. but the time is not super generous right now haha.

anw, i'm super happy when you're here and diving into this with me. looking fwd sir.

--

My note on the OTA updates 2.0.8: https://github.com/BasedHardware/omi/releases/tag/Omi_DK2_v2.0.8

Image

--

The PR supports DK2's OTA updates #1393

@beastoin
Copy link
Collaborator

hope this helps and, nice to meet @skywinder /

@kodjima33 kodjima33 added the firmware firmware work label Feb 17, 2025
@beastoin beastoin moved this from TODO (This week) to In progress in omi TODO / bounties Feb 23, 2025
@beastoin beastoin self-assigned this Feb 23, 2025
@beastoin beastoin mentioned this issue Feb 23, 2025
3 tasks
@beastoin
Copy link
Collaborator

ota_updates_w_instruction_steps_and_the_indicator_1.mp4
ota_updates_w_instruction_steps_and_the_indicator_2.mp4

@beastoin
Copy link
Collaborator

ota_updates_with_instructions_demo_2.mp4

beastoin added a commit that referenced this issue Feb 24, 2025
issue: #1767

## deploy plan
- [ ] deploy backend
- [ ] deploy app
- [ ] update ota_update_steps to github release
  ```
    <!-- KEY_VALUE_START
    release_firmware_version:2.0.8
    minimum_firmware_required:2.0.5
    minimum_app_version:1.0.55
    minimum_app_version_code:242
    ota_update_steps:no_usb,battery,internet
    KEY_VALUE_END -->
   ```
@beastoin beastoin moved this from In progress to In review in omi TODO / bounties Feb 24, 2025
@kodjima33 kodjima33 moved this from In review to In progress in omi TODO / bounties Feb 25, 2025
@beastoin
Copy link
Collaborator

next:

  • display a new popup at the home page to inform users about new firmware version, a more aggressive way to encourage firmware updates.
  • add a new checkbox such as, I have disconnected the USB, i understand that a USB connection might brick my device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

No branches or pull requests

6 participants