IRC #olimex 2018-03-23

[01:11:32] <jo0nas> adj_: This looks like the way to go, until dust has settled in Debian proper: https://www.olimex.com/forum/index.php?topic=6092.0
[11:42:49] <leon-anavi> hi
[13:18:04] <jo0nas> hi leon-anavi
[13:18:33] <leon-anavi> jo0nas, how are you?
[13:19:32] <jo0nas> good, thank you - and you?
[13:20:12] <leon-anavi> I'm ok, working
[13:20:32] <leon-anavi> jo0nas, are you working on any interesting projects now?
[13:22:41] <jo0nas> yes - depending on your definition of "interesting" :-)
[13:24:49] <jo0nas> I am refactoring https://metacpan.org/pod/Regexp::Pattern::License to cover more licensing patterns and be more flexible, e.g. limit to only match license grants (skip licenses lacking the "I grant you this license..." part)
[13:26:07] <jo0nas> been fighting with it for a month now - because at the same time I want to streamline the code (yes, I know: I should really first implement working code and only then optimize...)
[13:26:21] <jo0nas> leon-anavi: you?
[13:38:05] <leon-anavi> cool :) perl
[13:38:28] <leon-anavi> me... just work in the past 2-3 weeks, hopefully this weekend I will have some time to catch up.
[13:44:21] <jo0nas> I don't remember which hardware you got - if you have a TERES-I then it can now run Debian with mainline Linux: https://www.olimex.com/forum/index.php?topic=6092.0
[13:45:13] <tbr> mm, should try that on my A64
[13:45:28] <jo0nas> ACTION tested succesfully last night - only briefly the published image, then ran into disk space issue trying to update to the kernel package now in Debian experimental
[13:47:16] <jo0nas> tbr: yes, please do: Try boot the preliminary image referenced from the forum post linked above, extend disk space to have more than 200MB free, add experiemental to /etc/apt/sources.list and "apt update", and try install the 4.16 rc6 kernel from experimental
[13:48:05] <tbr> *nod* let's hope I don't forget before I make it home. :-D
[13:49:31] <jo0nas> tbr: uhm, perhaps use pen and paper :-D
[14:17:53] <leon-anavi> jo0nas, yes, I have TERES-I
[14:20:42] <leon-anavi> what is the status of the mainline u-boot and kernel for A64?
[14:32:01] <BenG83> leon-anavi, it works more or less, you need some out-of-tree patches to make it work
[14:32:18] <BenG83> since not everything needed is upstream yet
[14:32:45] <BenG83> I have a Pinebook with A64 and there are some mainline images you could tweak
[14:33:04] <BenG83> you need a u-boot/atf with the Teres dtb and some tweaks to turn on power for the LCD
[14:33:54] <BenG83> https://github.com/Icenowy/arm-trusted-firmware/tree/lcd-power-teres
[14:34:02] <BenG83> this ATF should turn on the display power
[14:34:33] <BenG83> https://github.com/Icenowy/u-boot/tree/teres-i-mainline
[14:34:38] <BenG83> use it with this u-boot
[14:34:47] <BenG83> then you can probably fix up for example this arch image:
[14:35:08] <BenG83> https://github.com/anarsoul/linux-build/releases
[14:35:16] <BenG83> https://github.com/anarsoul/linux-build/releases/download/20171225/archlinux-xfce-pinebook-20171225-1.img.xz
[14:35:25] <BenG83> build ATF, copy to u-boot
[14:35:29] <BenG83> build u-boot
[14:35:39] <BenG83> then dd it to offset 8k and 40k on that image
[14:35:59] <BenG83> that should at least get you something to boot
[14:36:13] <BenG83> with 4.15.x
[14:36:24] <BenG83> the image also include wip lima driver for Mali
[14:36:58] <jo0nas> if you use Debian, then I believe all above parts are included in unstable/experimental by now
[14:37:21] <BenG83> teres stuff for atf/u-boot/linux should be upstream soon
[14:37:25] <jo0nas> ...meaning you need not compile it all
[14:38:13] <BenG83> there are some small differences between the Pinebook and Teres board, but nothing significant since they are both based on the reference design
[14:38:18] <BenG83> some GPIOs to control stuff mostly
[14:38:24] <BenG83> like the LCD power and audio path
[14:39:14] <BenG83> A64 HDMI drivers are almost there
[14:39:26] <BenG83> audio not yet if you don't take it from anarsoul's kernel branch
[14:40:04] <BenG83> DVFS is missing since thermal driver is not yet upstream
[14:40:10] <BenG83> so mainline is locked at 912Mhz
[14:40:13] <jo0nas> For Debian, the ATF is in package atf-allwinner (with a script install-[forgot the exact name but something with u-boot and/or atf) to handle dd tricks), and you need the 4.6.16-rc6 kernel from experimental
[14:41:21] <BenG83> also the AXP803 driver has no battery support atm
[14:41:22] <jo0nas> thanks a lot for those details, BenG83!
[14:41:35] <BenG83> so the PMIC runs with default settings for charge current and cut-off voltages
[14:42:04] <BenG83> you can theoretically use i2cset to write the registers with more sane values
[14:42:18] <BenG83> the battery gauge will be off if you dont set the right capacity in the PMIC for example
[14:42:32] <BenG83> since the default value is 4800mAh
[14:42:46] <BenG83> and both Teres and Pinebook have more like 10Ah
[14:59:43] <leon-anavi> BenG83 thanks!
[18:31:06] <diego71> there are also some patch for axp803 support, like https://patchwork.kernel.org/patch/9961655/, that are still not in mainline
[18:33:27] <adj__> jo0nas, leon-anavi, diego71, on the lima channel, anarsoul said that yuq's open source mesa and kernel drivers could maybe already be good enough to run weston compositor
[18:33:47] <adj__> I will try this weekend on lime2
[18:35:47] <leon-anavi> really? sounds cool
[18:36:11] <adj__> sound too good to be true
[18:36:33] <adj__> :)
[18:38:00] <adj__> I don't think that gnome-shell or kde compositor will work
[18:38:40] <adj__> gnome is really slow both with compositing like without it
[20:24:50] <APX> hey
[20:24:58] <APX> trying to register to the forum page
[20:25:07] <APX> cand get pass the 1k resistor color cod question
[20:25:13] <APX> what's the correct format ?
[20:25:42] <APX> tried with space and comma
[20:25:44] <APX> Brown, Black, Red, Gold
[20:25:49] <APX> Brown Black Red Gold
[20:26:04] <APX> and gold / yello
[20:26:08] <APX> yellow
[20:28:54] <adj__> APX, I think that it has already been asked before here, search the IRC logs in olimex.com