View Single Post
Old 05-01-2016, 03:23 PM   #1
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Arrow A firmware updater for all Kobos

I have created a Kobo firmware updater for Linux because Kobo desktop does not work on Linux, and I also don't sign in with a Kobo account and I want to be able to update.

This has been tested with the Kobo Mini, Kobo Aura, Kobo Glo, and the Kobo WiFi. This should work with any device.

How to run
  1. Plug in your e-reader
  2. Type: bash <(wget -qO- https://raw.githubusercontent.com/ge.../KoboUpdate.sh) , and then press ENTER
  3. Follow the prompts
  4. You are done!

How it works
Spoiler:


It finds the mount point of your Kobo: mount | grep KOBO | head -n1 | cut -d' ' -f 3, and quits if it cannot find it
It finds the info about your Kobo:
The model id is the last field in the file KOBOPATH/.kobo/version : cat .kobo/version | rev | cut -d',' -f 1 | rev
The serial number is the first field in the file KOBOPATH/.kobo/version : cat .kobo/version | cut -d',' -f 1
The current firmware version is the third field in the file KOBOPATH/.kobo/version : cat .kobo/version | cut -d',' -f 3
The affiliate is in the affiliate value in KOBOPATH/.kobo/affiliate.conf : cat .kobo/affiliate.conf | grep "affiliate=" | sed "s/affiliate=//g"
It then confirms it for safety
It uses the Kobo API to check for a new firmware version:
https://api.kobobooks.com/1.0/UpgradeCheck/Device/$MODEL_ID/$AFFILIATE/$FWVERSION/$SERIAL
It checks for an update by looking at the value in UpdateType: 0 for none, and 2 for anything else
If it is 2, then it continues, if it is 0, it quits
It then downloads the url returned (which is a zip file)
After it downloads, it extracts the files into the KOBOPATH/.kobo/ directory
It then ejects the Kobo, and tells the user to unplug it
The Kobo will then finish installing the update

Is there a Windows version?
Soon.


Please leave a reply if you tried this. Report any issues on GitHub

See the link for more information!

http://geek1011.github.io/koboupdater-for-linux/


Last edited by geek1011; 02-11-2017 at 03:30 PM.
geek1011 is offline   Reply With Quote