OnionIoT / Onion-Docs

Documentation for all things Onion
https://docs.onion.io
GNU General Public License v3.0
112 stars 65 forks source link

Possible to update u-boot without ethernet? #91

Open sec opened 5 months ago

sec commented 5 months ago

Hi, I have omega2p, with factory u-boot. Is it possible to flash the new u-boot without using ethernet connection? As I don't own the ethernet dock, only expansion dock.

both serial over usb and/or wifi are working. Can this be done from running Linux distro or u-boot command line (ex. flash u-boot from usb drive) ?

greenbreakfast commented 5 months ago

Hi @sec The factory bootloader only supports updates using web recovery over ethernet. Here is our guide on the topic: https://docs.onion.io/omega2-docs/Web-Recovery-flash-bootloader.html

Updating the bootloader to support other methods of updating the bootloader is a little bit of a chicken and egg problem. You will first need to update the bootloader with web recovery over ethernet in order to support other methods of bootloader updates.

sec commented 5 months ago

That was the plan in the first place, but right now I need to restore uboot in there and then I can play around to update it again. Do you maybe have access to factory uboot (it was something like 1.1.3 from 2016) - on the bootloader page the oldest is from 2017. If I will be able to connect to flash and read, I would just compare what was erased from factory uboot and restore just that :)

Also, what are other ways to update uboot after newest uboot will be flashed? Are those somethere in the docs?

greenbreakfast commented 5 months ago

@sec sorry, I'm realizing I was unclear when I said:

Updating the bootloader to support other methods of updating the bootloader is a little bit of a chicken and egg problem. You will first need to update the bootloader with web recovery over ethernet in order to support other methods of bootloader updates.

What I meant was: even if newer versions of the bootloader had other update methods, you would still be limited to the update mechanisms of your current bootloader. So you would have to use web recovery over ethernet to upgrade your current bootloader

Newer versions of the bootloader do not have other methods for bootloader updates. Updating the bootloader seems to be a fairly rare use case, and web recovery over ethernet has fit the bill so far.

Sorry for any confusion!