Talk:PocketBook Touch Lux 2 (626)

If anyone is interested, let's discuss it.

Micro SD issue
I cannot get MMC0 (external slot) working properly, neither in u-boot nor in linux. MMC2 is ok: u-boot uses it, properly initializes it, reads partitions etc., starts linux kernel. Linux kernel sees it and runs on it, etc.

With default sun5i-a13-olinuxino settings, external micro SD card inserted/ejection is properly detected, but initializing card does not work (nothing in u-boot, various errors in linux, depending on the inserted card). My hardware does not seem to be faulty since if I boot factory firmware, it is working properly. I tried tweaking various properties in device tree, but at best it does not change anything.

Megous: Extra gpio PE04 needs to be enabled to make MMC0 work. There may be HW mod possible, to cut the PE4 line to the SoC and tie it to 3.3V, which may make external SD card bootable. Without it PE4 is in HiZ after SoC reset, and BROM will not be able to read the MMC0 card. (not verified yet)

eInk driver
There is an EPDC kernel module in default firmware, but it seems it is closed source.

Megous: There's code for epdc module in https://github.com/pazos/linux-3.0.35-kobo/tree/master/drivers/video/mxc. It looks like it has the interface PocketBook reader app uses from a quick decompilation check on the app (same iocts, same interface, as far as I can see). There's also https://github.com/pazos/linux-3.0.35-kobo/blob/master/drivers/video/mxc/lk_tps65185.c for EPD PMIC that's also on the PocketBook. The driver will most probably not be usable in the sunxi tree. Sunxi tree also has a eink driver as a part of display engine code, which is unused on the PocketBook, but may serve as an inspiration.

LED
The device tree must be modified, from: to: Then:

network
enable staging driver eu8188eu in kernel menuconfig.

Megous: WiFi needs a little care during powerup, especially if LDO3 is not brought up by u-boot. There are some patches since 2019 in the mainline axp209 driver to enable slew rate control and soft startup of the regulator. Without using this, the PMIC may shutdown when powering up the wifi.

rtc
enabling driver "Haoyu Microelectronics HYM8563" does not seem to be enough to get /dev/rtc0. Oops... looks like it takes this one instead: "Philips PCF8563/Epson RTC8564". Device tree must also be modified from: to

Status
As of today 2018-07-30, I run a 4.18.0-rc6 kernel. I downloaded an Arch Linux image for A10. I boot my kernel, and use Arch Linux userland with my kernel modules. Kind of working. I have the problems mentioned above.