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 08-11-2020, 05:20 AM   #1
OrangeWindies
Junior Member
OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.
 
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
Has anyone tried doing a Yocto build for Kobo?

I'm wondering if anyone here has done any work on using Yocto to build a system image for a Kobo reader.

I'm kind of interested in having a clean and relatively modern base to develop on for the Clara HD, since I'm not interested in preserving the e-reader functionality.

NXP's Yocto BSP is based on Yocto 3.0 (Zeus) and Linux kernel 5.4, which is much more recent that the kernels shipped by Kobo. That BSP should contain all the necessary support for the i.MX6SLL processor in the Clara HD and readers with similar hardware.

It seems that someone has added device tree configuration for the Clara HD in mainstream Linux kernels (on the 5.7 branch) but mainstream kernels will be lacking support for NXP's special hardware. The particular problem there would be the EPDC e-ink controller.

I've got a fair amount of experience with Yocto but that's on our own hardware where we have all the schematics and data sheets. I fear it might be tricky to get all the relevant information to get the Clara HD's hardware working, unless it's sufficiently similar to the NXP evaluation kit design.
OrangeWindies is offline   Reply With Quote
Old 08-11-2020, 09:14 AM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I know of *one* eReader based on a semi-recent Yocto + NXP image: that's the reMarkable, and it runs on Linux 4.9 (which is what the official NXP+EPDC tree jumped to after the 4.1 used on Kobo).

That may be worth looking into, as the SDK is pretty much what Yocto's buildsystem outputs, IIRC (I'm, err, not necessarily a fan of Yocto, then again, not particularly familiar with it either, as I've never really had cause to use it ).

(Also, the rM's app also runs on Qt5 like Kobo's Nickel).

----

TL;DR: Getting the userland up-to-date should be "trivial". The kernel, eeeh, might be trickier. Especially since Kobo themselves apparently barely touch it, AFAICT, that's left entirely at the mercy of NTX, their OEM.

Last edited by NiLuJe; 08-11-2020 at 09:17 AM.
NiLuJe is offline   Reply With Quote
Advert
Old 08-11-2020, 10:11 AM   #3
OrangeWindies
Junior Member
OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.
 
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
Quote:
Originally Posted by NiLuJe View Post
I know of *one* eReader based on a semi-recent Yocto + NXP image: that's the reMarkable, and it runs on Linux 4.9 (which is what the official NXP+EPDC tree jumped to after the 4.1 used on Kobo).
Interesting...

Quote:
Originally Posted by NiLuJe View Post
(I'm, err, not necessarily a fan of Yocto, then again, not particularly familiar with it either, as I've never really had cause to use it ).
Yocto is a complicated beast, in my experience it either makes things very easy or very difficult. Pretty good for just getting kernels and normal software built and installed though.
OrangeWindies is offline   Reply With Quote
Old 08-11-2020, 11:57 AM   #4
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,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by OrangeWindies View Post
Yocto is a complicated beast, in my experience it either makes things very easy or very difficult. Pretty good for just getting kernels and normal software built and installed though.
I personally prefer buildroot for most projects.
geek1011 is offline   Reply With Quote
Old 08-14-2020, 05:32 AM   #5
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yup, my first instinct would be to turn to BR, too .

(FWIW, Amazon also ended up moving to a Yocto-ish setup (from a completely custom workflow, AFAICT) when they started tightening the screws on the Kindle ).
NiLuJe is offline   Reply With Quote
Advert
Old 09-01-2020, 10:36 AM   #6
andi45
Junior Member
andi45 began at the beginning.
 
Posts: 5
Karma: 12
Join Date: Sep 2020
Device: Kobo Clara HD
If you want more recent kernels for the Kobo Clara HD,

there is basically
https://github.com/akemnade/linux
branches kobo/merged-5.X
currently kobo/merged-5.8

The EPD works.
There is also the fork of xf86-video-fbdev which handles refreshes here:
https://github.com/akemnade/xf86-video-fbdev
andi45 is offline   Reply With Quote
Old 09-01-2020, 11:16 AM   #7
OrangeWindies
Junior Member
OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.
 
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
Quote:
Originally Posted by andi45 View Post
If you want more recent kernels for the Kobo Clara HD,

there is basically
https://github.com/akemnade/linux
branches kobo/merged-5.X
currently kobo/merged-5.8

The EPD works.
There is also the fork of xf86-video-fbdev which handles refreshes here:
https://github.com/akemnade/xf86-video-fbdev
Thanks for the info, I might give that a try when I get some time to work on this stuff again.
OrangeWindies is offline   Reply With Quote
Old 09-26-2020, 12:06 PM   #8
OrangeWindies
Junior Member
OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.
 
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
Quote:
Originally Posted by andi45 View Post
If you want more recent kernels for the Kobo Clara HD,

there is basically
https://github.com/akemnade/linux
branches kobo/merged-5.X
currently kobo/merged-5.8

The EPD works.
There is also the fork of xf86-video-fbdev which handles refreshes here:
https://github.com/akemnade/xf86-video-fbdev
After spending a while looking getting the NXP kernel to work it seems like it will involve backporting quite a few drivers from 5.7 to 5.4. Not a lot of fun.

So maybe it would be better to go with the newer kernels that you suggested. What bootloader are you using? Is it the existing U-boot from the Kobo or are you building a newer u-boot-imx from NXP's sources?
OrangeWindies is offline   Reply With Quote
Old 10-02-2020, 02:30 AM   #9
andi45
Junior Member
andi45 began at the beginning.
 
Posts: 5
Karma: 12
Join Date: Sep 2020
Device: Kobo Clara HD
Quote:
Originally Posted by OrangeWindies View Post
After spending a while looking getting the NXP kernel to work it seems like it will involve backporting quite a few drivers from 5.7 to 5.4. Not a lot of fun.

So maybe it would be better to go with the newer kernels that you suggested. What bootloader are you using? Is it the existing U-boot from the Kobo or are you building a newer u-boot-imx from NXP's sources?
I am using the plain kobo bootloader. It has some pitfalls, but you can work around them or patch them away. Basically, you have to call load_ntxkernel and then overwrite that using the standard load command.

There is also the branch e60k02 at git://git.goldelico.com/letux-uboot.git
which has some of the pitfalls removed. I need to check which configuration was used. I think it is mx6sll_ntx_lpddr2_512m_defconfig
My setup (including dualboot) is described at https://misc.andi.de1.cc/kobo
andi45 is offline   Reply With Quote
Old 10-02-2020, 02:54 AM   #10
andi45
Junior Member
andi45 began at the beginning.
 
Posts: 5
Karma: 12
Join Date: Sep 2020
Device: Kobo Clara HD
just one note:
there is a kobo_defconfig for these kernels which includes the necessary drivers
andi45 is offline   Reply With Quote
Old 03-28-2021, 09:18 AM   #11
OrangeWindies
Junior Member
OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.OrangeWindies knows what's going on.
 
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
Months later, I finally got this finished.
OrangeWindies is offline   Reply With Quote
Reply

Tags
clara hd, yocto


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
issue with build kobo-update-4.6.9960 on Kobo touch original lohtse Kobo Developer's Corner 15 04-05-2018 08:13 PM
Build my own dictionary petervdb PocketBook 1 01-26-2012 08:00 AM
Mac Build pdurrant Sigil 1 08-10-2009 11:31 AM
Build help needed Elsi Upload Help 14 06-13-2008 03:38 PM


All times are GMT -4. The time now is 09:00 AM.


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