Thread: HD3 dev
View Single Post
Old 03-14-2020, 07:54 AM   #3
Marco77
Connoisseur
Marco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipseMarco77 can illuminate an eclipse
 
Posts: 55
Karma: 8430
Join Date: Mar 2016
Device: PW3, Clara HD, PB740
SDK-A13 # A13-based devices (626, 627, 641, 840)
SDK-B288 # B288-based (632, 740)
SDK-iMX6 # 631
(thanks)

PocketBook Touch HD3 has codename 632.
PocketBook InkPad 3 Pro has codename 740-2 IIRC, same SoC as 740.
B288 is sun8iw10 by manufacturer Allwinner.

cat /proc/version to get the cross compiler, e.g. Linux version 3.10.65 (jenkins@bsp-builder) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #2 SMP Fri Mar 29 11:59:01 EET 2019. See /proc/config.gz for kernel compilation env

In each of the SDK_6.3.0/SDK-* directories, there's a config.cmake file with flags, dunno if it's what you need?
SET (GENERAL_FLAGS "-mcpu=cortex-a8 -march=armv7-a -mfpu=neon -mfloat-abi=softfp")

It targets an ARMv7 ISA with soft floating point and uses the GNU EABI (Linux, not the bare metal ARM one), therefore a lot of compiled binaries work out of the box.

The reader app for epub and PDF relies on closed-source ReaderLib (libpbrdlib.so). It is cross-compiled using clang and uses libraries such as Qt, SQLite 3, DjVu and probably others. This dynamic module relies on libadobe_rmsdk.so for DRM and libinkview.so for interacting with the device (for IPC, etc.).
AFAICT, it is a custom-made renderer and sadly cannot be patched for QML stylesheet rules like Kobo eReader (or provide a better alternative).

OTOH, eink-reader.app which is the main GUI relies heavily on Qt and should be customizable with enough research.
e.g. binwalk --dd='gzip:gz:gunzip %e' -C _outdir ebrmain-cramfs/bin/eink-reader.app

see https://github.com/dennwc/inkview for a Go implementation of SDK, it may help with porting stuff in pure Rust

Last edited by Marco77; 03-14-2020 at 08:38 AM.
Marco77 is offline   Reply With Quote