![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2023
Device: asdfasdfasdfasdfasdf
|
KoboRoot.tgz
I recently acquired my first Kobo device, and I want to customize/hack it.
I see a lot of references to KoboRoot.tgz, but most of the stuff I find assumes a level of knowledge that I don't possess. Is there a good introductory document about the KoboRoot.tgz system that I should read before I start bombarding this forum with questions? |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,465
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Basically, the KoboRoot.tgz file is part of the automated installation system. New Kobo firmware and third party modifications use that file for installations.
For example, when you use the KoboPatcher, the output file from the patcher is a KoboRoot.tgz file which gets copied into the .kobo directory in the root of the exposed partition (what you see using a USB connection) and will be automagically installed when you eject your Kobo. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2023
Device: asdfasdfasdfasdfasdf
|
I wasn't able to find any detailed documentation/FAQ, but I did find some answers in my wanderings around the forum. Some were relatively definitive, while in some cases all I have is guesses based on reading between the lines.
Here's my questions and the answers I have: Does KoboRoot.tgz contain an _entire_ root filesystem, or just some files to add/change? It's just the files that are being added or changed. It's like a patch file. Do the KoboRoot.tgz files get automatically deleted from the device? Yes, if the install/upgrade is successful, the file should be automatically deleted. If the file is still there, try rebooting and see if something gets installed or if the file is still there after the reboot. If that doesn't work, advanced troubleshooting is necessary to figure out why it didn't work. Does the KoboRoot.tgz system only do add-file and modify-file, or can it do delete-file as well? Not sure. It can (most likely) do replace-file-with-zero-length-file, and that's almost as good as delete-file. |
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 99
Karma: 81981
Join Date: Oct 2023
Location: Ontario, Canada
Device: Kobo Aura Edition 2, Kobo Clara 2E
|
KoboRoot.tgz is the file that kobo devices use to detect software updates. If such a file exists, the device will consider it a valid update file and use it. It typically consists of replacing/adding files from the device's filesystem with new ones, or adding new ones, usually new libraries. we can intervene and supply the system with KoboRoot.tgz files of our own and trick the system to using them, hence our mods. The contents of the KoboRoot.tgz will depend on the mod, but if you were to unarchive the package, you'd see a folder structure that will resemble a standard Linux structure if you're familiar with it.
Mod developers (myself included) typically use geek1011's NickelHook tool suite to develop mods and package them with a KoboRoot.tgz. There's also the Kobopatch project, which will let you pick and choose from many customization options and install them with a single KoboRoot.tgz. Single-purpose, small mods that are built with NickelHook are more general purpose, that's why you can find their KoboRoot.tgz files readily available. My mod, NickelNote, for instance, is hosted on GitHub and the zip file over there contains the KoboRoot.tgz It contains a single compiled binary of my mod which does the "hooking" Quote:
If you're going with the kobopatch route, since it's highly personalized and configured based on what you want, the KoboRoot.tgz file will have to be created by you, using the instructions on the project page. It's straight-forward but requires some tinkering. |
|
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,465
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,465
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
It's an open system. You are not protected from your actions. You can do damn near anything and it will be applied. If you are feeling very enthused, you can even overwrite the factory restore partition. I did that one time while trying to update the factory restore partition to restore to a firmware version newer than the original factory. I managed to get it to work but was happy that I had a restore image since my first attempts either didn't work or bricked my Glo.
|
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
|
Quote:
how did you overwrite the factoryrestore partition? utook the sd card out correct? not using the zip file |
|
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,465
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I generated a KoboRoot.tgz to do the restore partition update since that was the easiest way to do the update without extracting the µSD everytime. |
|
![]() |
![]() |
![]() |
#11 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I add binaries via KoboRoot.tgz? | noobyme | Kobo Reader | 3 | 05-04-2023 10:23 AM |
Using KoboRoot.tgz to get rid of dot files...reinstall KR and P? | LivresInOz | KOReader | 1 | 06-18-2022 03:12 AM |
How can I add a new font file to KoboRoot.tgz | imlsj | Kobo Developer's Corner | 2 | 09-02-2015 11:51 PM |
Why does Kobo stop processing KoboRoot.tgz? | exachillus | Kobo Developer's Corner | 4 | 01-04-2014 08:03 AM |