08-11-2020, 06:20 AM | #1 |
Junior Member
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. |
08-11-2020, 10:14 AM | #2 |
BLAM!
Posts: 13,497
Karma: 26047188
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 10:17 AM. |
08-11-2020, 11:11 AM | #3 | |
Junior Member
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
|
Quote:
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. |
|
08-11-2020, 12:57 PM | #4 |
Wizard
Posts: 2,790
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
08-14-2020, 06:32 AM | #5 |
BLAM!
Posts: 13,497
Karma: 26047188
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 ). |
09-01-2020, 11:36 AM | #6 |
Junior Member
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 |
09-01-2020, 12:16 PM | #7 | |
Junior Member
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
|
Quote:
|
|
09-26-2020, 01:06 PM | #8 | |
Junior Member
Posts: 8
Karma: 25128
Join Date: Aug 2020
Location: Sweden
Device: Kobo Clara HD
|
Quote:
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? |
|
10-02-2020, 03:30 AM | #9 | |
Junior Member
Posts: 5
Karma: 12
Join Date: Sep 2020
Device: Kobo Clara HD
|
Quote:
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 |
|
10-02-2020, 03:54 AM | #10 |
Junior Member
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 |
Tags |
clara hd, yocto |
|
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 09:13 PM |
Build my own dictionary | petervdb | PocketBook | 1 | 01-26-2012 09:00 AM |
Mac Build | pdurrant | Sigil | 1 | 08-10-2009 12:31 PM |
Build help needed | Elsi | Upload Help | 14 | 06-13-2008 04:38 PM |