Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2023, 01:11 AM   #1
bsammon
Member
bsammon began at the beginning.
 
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?
bsammon is offline   Reply With Quote
Old 12-11-2023, 02:11 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,475
Karma: 167847011
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.
DNSB is offline   Reply With Quote
Advert
Old 12-12-2023, 02:18 PM   #3
bsammon
Member
bsammon began at the beginning.
 
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.
bsammon is offline   Reply With Quote
Old 12-13-2023, 09:04 AM   #4
lumping-sugar66
Connoisseur
lumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trollslumping-sugar66 doesn't feed trolls
 
lumping-sugar66's Avatar
 
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:
/usr/local/Kobo/imageformats/libnickelnote.sh
.

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.
lumping-sugar66 is offline   Reply With Quote
Old 04-20-2025, 11:20 PM   #5
noobyme
Enthusiast
noobyme began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
Quote:
Originally Posted by lumping-sugar66 View Post
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"
.

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.
Is the KoboRoot.tgz just a compressed file? can i unzip it and add things then rezip? i dont want to bootloop my ereader so ithought id ask before i attempt it. ijust wanna add kobostuff, nickelmenu and koreader into asingle install as well as removing unncecessary stuff from kobostuff cuz that makes my nia crash alot
noobyme is offline   Reply With Quote
Advert
Old 04-21-2025, 01:02 AM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,475
Karma: 167847011
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by noobyme View Post
Is the KoboRoot.tgz just a compressed file? can i unzip it and add things then rezip? i dont want to bootloop my ereader so ithought id ask before i attempt it. ijust wanna add kobostuff, nickelmenu and koreader into asingle install as well as removing unncecessary stuff from kobostuff cuz that makes my nia crash alot
You can do whatever you want with adding/removing files from KoboRoot.tgz. However there is no protection against you doing anything that might turn your Nia into an expensive paperweight. I would strongly suggest removing the internal µSD card and creating an image from it to give you a backup for when you brick your Nia.
DNSB is offline   Reply With Quote
Old 04-21-2025, 04:34 PM   #7
noobyme
Enthusiast
noobyme began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
Quote:
Originally Posted by DNSB View Post
You can do whatever you want with adding/removing files from KoboRoot.tgz. However there is no protection against you doing anything that might turn your Nia into an expensive paperweight. I would strongly suggest removing the internal µSD card and creating an image from it to give you a backup for when you brick your Nia.
Hmm yea i have already bricked my nia which is why i ask, luckily i was able to factory reset it, and then i imaged the sd card. sodid the original creators have checks built in? if so what are they called? i dont recall seeing anything that might be a check
noobyme is offline   Reply With Quote
Old 04-21-2025, 04:46 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,475
Karma: 167847011
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by noobyme View Post
Hmm yea i have already bricked my nia which is why i ask, luckily i was able to factory reset it, and then i imaged the sd card. sodid the original creators have checks built in? if so what are they called? i dont recall seeing anything that might be a check
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.
DNSB is offline   Reply With Quote
Old 04-26-2025, 06:39 PM   #9
noobyme
Enthusiast
noobyme began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
Quote:
Originally Posted by DNSB View Post
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.
Ihavent yet figured out how to replicate the structire , when viewing the zip contents inzarchiver it shows the root folder being the relative path period, which doesnt show up me when i rezip the contents. im not sure if this is a zarchiver thing or if its actually there. besides ive already been thrpugh the trouble of pryingthe back open, iwant to keep waiting until i can be bothered to reopen it beforeiexperiment.

how did you overwrite the factoryrestore partition? utook the sd card out correct? not using the zip file
noobyme is offline   Reply With Quote
Old 04-26-2025, 11:12 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,475
Karma: 167847011
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by noobyme View Post
how did you overwrite the factoryrestore partition? utook the sd card out correct? not using the zip file
I took out the µSD card and examined the contents of the restore partition. I then attempted to duplicate that as closely as possible. It took a few efforts but I finally got a working version. As it turned out, I needed to pretty much as much work to update the restore partition every blasted firmware update and/or new device so I finally decided for the few time I actually used the restore functionality, it just wasn't worth the effort. That was back when I had a Kobo Glo before I updated to an Aura HD.

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.
DNSB is offline   Reply With Quote
Old Yesterday, 12:47 AM   #11
noobyme
Enthusiast
noobyme began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Apr 2023
Device: Kobo Nia
Quote:
Originally Posted by DNSB View Post
I took out the µSD card and examined the contents of the restore partition. I then attempted to duplicate that as closely as possible. It took a few efforts but I finally got a working version. As it turned out, I needed to pretty much as much work to update the restore partition every blasted firmware update and/or new device so I finally decided for the few time I actually used the restore functionality, it just wasn't worth the effort. That was back when I had a Kobo Glo before I updated to an Aura HD.

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.
I see. Thanks for telling me. Ive successfully recreated the dot folder structure ., had to use tar on linux wsl rather than 7zip on windows, "tar -czf /path/A.tgz -C /path/yourdir ." with the dir being the one with the extracted /mnt /bin /sbin etc
noobyme is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:23 AM.


MobileRead.com is a privately owned, operated and funded community.