Talk:PocketBook Touch Lux 2 (626)

From linux-sunxi.org
Jump to: navigation, search

If anyone is interested, let's discuss it.

Contents

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.

eInk driver

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

LED

The device tree must be modified, from:

		power {
			gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>;
			default-state = "on";
		};

...

	led_pins_olinuxino: [email protected] {
		pins = "PG9";
		function = "gpio_out";
		drive-strength = <20>;
	};

to:

		led0 {
			gpios = <&pio 4 8 GPIO_ACTIVE_LOW>;
			default-state = "on";
		};

...

	led_pins_olinuxino: [email protected] {
		pins = "PE8";
		function = "gpio_out";
		drive-strength = <20>;
	};

Then:

echo 0 > /sys/class/leds/led0/brightness # shuts off the led
echo 255 > /sys/class/leds/led0/brightness # bring on the led

network

enable staging driver eu8188eu in kernel menuconfig.

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:

&i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c1_pins_a>;
	status = "okay";
};

to

&i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c1_pins_a>;
	status = "okay";
	pcf8563: [email protected] {
		compatible = "nxp,pcf8563";
		reg = <0x51>;
	};
};

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.

Personal tools
Namespaces

Variants
Actions
Navigation
Tools