Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2026, 11:53 AM   #1
ratiz
Junior Member
ratiz began at the beginning.
 
ratiz's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2026
Device: Kobo Clara Colour
Post kos: a minimal operating system that runs KOReader

kos is an open-source operating system that can replace the stock OS. It comes with KOReader as the graphical user interface.

Currently it only supports the Clara Colour, but if someone is interested I could easily add support for the Libra Colour and the Clara BW.

Compared to the stock OS, kos doesn't come with any additional features, except that it is certainly smaller. As you might know, the most recent Kobo models have a secure boot chain that makes it much harder to boot a different kernel. My intent with kos is to provide a simple, open-source OS that can serve as an example for further Kobo hacking. I hope that having more control over one's hardware will help make even better open-source software possible.

Because this installation will write to partitions essential for the boot process, it is much riskier than the installations you might usually find on this forum. If the installation goes wrong, it will likely brick your device. So far, it has only been tested on my kobo with firmware version 4.39.22468 and 4.46.23836 but I would expect it to work on all 4.x firmware versions.

Install:

Before the installation make sure that you have a Kobo Clara Colour and that it runs on firmware 4.x. Backup all your data as it will be erased during the installation.

For the installation, use the provided KoboRoot.tgz at the end of the post at your own risks. I am not responsibe if it bricks your device.

After the installation, to display your local time, set the time zone with:
Code:
# ln -sf /usr/share/zoneinfo/Area/Location /etc/localtime
To access a shell, you can use, for example, the terminal emulator provided by KOReader or its built-in SSH server.

Uninstall:

Run the command below and you will be back to the stock OS after reboot.
Code:
# ntx_hwconfig -S 1 -p /dev/mmcblk0p6 BootPartNo 0xB
Credits:
  • tux-linux for creating Quill OS and helping me to learn how to make an operating system for a kobo device

Source Code | KoboRoot.tgz
ratiz is offline   Reply With Quote
Old 09-10-2026, 02:54 AM   #2
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,848
Karma: 7454319
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour
I have a trick I made a few years ago you can use to safely try alternative root filesystems by doing a fake-A/B-ish kinda thing.

I'll see if I can polish it up and share it.
geek1011 is offline   Reply With Quote
Old 09-12-2026, 07:03 PM   #3
ratiz
Junior Member
ratiz began at the beginning.
 
ratiz's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2026
Device: Kobo Clara Colour
Quote:
Originally Posted by geek1011 View Post
I have a trick I made a few years ago you can use to safely try alternative root filesystems by doing a fake-A/B-ish kinda thing.
That would interesting to see. Do you use a loop device? I don't see otherwise how you can do that without touching the partitions.
ratiz is offline   Reply With Quote
Old 09-12-2026, 08:01 PM   #4
ratiz
Junior Member
ratiz began at the beginning.
 
ratiz's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2026
Device: Kobo Clara Colour
I have updated the KoboRoot.tgz to install kos.

Here is a list of the changes made:
  • Use the KOReader kobov5 release, which is optimized for the latest ereaders (compilation flags targeting the cores of the MediaTek SoCs).
  • Installation should be a bit safer. kos installer will now remove itself if it fails to patch Little Kernel or if it detects that the device is not a Clara Colour. Also, even if someone tries to install kos on firmware 5 it shouldn't do anything since firmware 5 doesn't use KoboRoot.tgz.
  • The integrity of u-boot and linux FIT images is now checked
  • wpa_supplicant is now compiled with WPA3 support and wpa_cli binary was added.
ratiz is offline   Reply With Quote
Old 09-13-2026, 10:20 AM   #5
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,848
Karma: 7454319
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour
Quote:
Originally Posted by ratiz View Post
That would interesting to see. Do you use a loop device? I don't see otherwise how you can do that without touching the partitions.
Yeah, I do a loop device, but the real trickery is that I have an additional init binary at /init (which takes priority) which mounts them, handles a/b switching, patches the loaded kernel via /dev/kmem (rather than a kernel module so it's universal) to swap the device major/minor for the sdcard partitions to the loop one (replacing an unused syscall with kmalloc to do the memory allocation for the hook trampoline from userspace), patches some scripts which care about it (there's only about 3, and it's relatively minor) by bind-mounting over it, then execs the real init. This allows everything else to work unmodified, including Kobo's USB mass storage mode. I originally wrote this for testing multiple firmware versions in parallel while working on patches. I didn't publish it since there are a few pitfalls, and new versions need to be audited (since if they started using udev netlink, this doesn't handle it).

I don't have time to polish it for the next 3 weeks, but you can probably get 90% of the way there having a LLM remake it from my description.
geek1011 is offline   Reply With Quote
Old 09-14-2026, 08:58 AM   #6
ratiz
Junior Member
ratiz began at the beginning.
 
ratiz's Avatar
 
Posts: 6
Karma: 10
Join Date: Sep 2026
Device: Kobo Clara Colour
It is much more involved than I expected. I find this impressive.

Why did you choose that approach rather than compiling a modified kernel that would do what you want? The latter seems easier to me and also safe because you can always write back the original kernel on the SD card (assuming it is a SD card and not eMMC).

The newer kobos don't have the /dev/kmem device.
Code:
[root@kobo ~]# gunzip -c /proc/config.gz | grep CONFIG_DEVKMEM
# CONFIG_DEVKMEM is not set
ratiz is offline   Reply With Quote
Old 09-14-2026, 10:36 AM   #7
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 1,277
Karma: 13516840
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Libra 2, Kobo Sage, Kobo Aura H2O, reMarkable PaperPro
Didn’t they replace the sdcard with emmc on the current devices?
rantanplan is offline   Reply With Quote
Old Yesterday, 07:21 PM   #8
PatchyMimo
Unordinary Magician
PatchyMimo began at the beginning.
 
PatchyMimo's Avatar
 
Posts: 8
Karma: 10
Join Date: Sep 2026
Device: Kobo Libre Colour
Quote:
Originally Posted by rantanplan View Post
Didn’t they replace the sdcard with emmc on the current devices?
AFAIK yes. At least as far as Libre Colour goes, I don't have a Clara Colour but I'm sure someone who does would know.
PatchyMimo is offline   Reply With Quote
Old Yesterday, 07:30 PM   #9
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: 54,455
Karma: 182161789
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The Kobo models in the list below do not have removable internal storage. The original Aura N514 can use it's external µSD to rewrite the internal storage. The others required ADB, fastbook and software to recover. IMNSHO, this makes them bad candidates for most modifications since recovering from errors is difficult.

Kobo N905 Touch
Kobo N709 Aura One
Kobo N867 Aura H2O Edition 2
Kobo N782 Forma
Kobo N777 & N778K Sage
Kobo N365 Clara BW
Kobo N367 Clara Colour
Kobo N428 Libra Colour
DNSB is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
operating system peaceridge justRead.app 5 03-14-2026 10:22 AM
Operating systems calibre runs on Fiat_Lux Calibre 3 09-15-2021 12:10 PM
Operating system to use best ChrisEhv General Discussions 7 09-01-2018 02:22 PM
Operating system karpomatic Barnes & Noble NOOK 3 02-06-2013 01:40 PM
Help - Operating System - GONE! MCF3KIDS Amazon Fire 1 01-10-2013 10:17 PM


All times are GMT -4. The time now is 03:41 AM.


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