**** BEGIN LOGGING AT Sun Jul 15 03:00:02 2018 Jul 15 06:01:55 Darkimmortal, did you confirm that glTexSubImage2D is the bottleneck in glamor? Jul 15 06:06:21 I could try substituting it with gralloc-allocated buffer and EGLImage Jul 15 10:45:43 I tried commenting it out completely and running gtkperf or LibreOffice, it doesn't improve it much in terms of benchmark's time/scrolling performance in Lo Jul 15 12:03:39 Hi people. Is there someone here who can help me setup the linux kernel building process and guide me through replacing the kernel on an Android device? I'm so very annoyed by the out of phase speakers, and I'd like to hack up the polarity of one channel in the audio driver. I'm an embedded linux developer so I know most of what to do, except for the android-specific parts... Jul 15 12:05:00 So its mostly about picking up the right toolchain, figuring out the proper kernel source and .config, and how to build a kernel image. The driver and code related stuff I should be able to figure out by myself Jul 15 12:24:24 linux mint machine has a borked keyboard (TAB, a refuse to work; what kind of problem is that...) in any case, seems I need a kernel with USB_CDC_ACM to talk to my Gemini. But I need more, flashtool for NVRAM backup now says: "BROM Exception! ( ERROR : STATUS_ERR (-1073676287) , MSP ERROE CODE : 0x00. Jul 15 12:25:28 that is, linux mint backed it up; other machine with void linux returns this error. Would like to figure out the difference, so other people can use that information. Jul 15 12:37:06 hm, running with strace and redirecting output - suddenly it works. Seems repeatable - feels like a weird timing issue... Jul 15 12:57:17 what's the NVRAM supposed to look like? ^@/data/nvram/APCFG/APRDEB/BT_Addr^@s_support_ecci_c2k 1 Jul 15 12:57:28 ^@erty get fail : Jul 15 12:57:57 Kero: my first few bytes: (sorry for the dump) Jul 15 12:57:57 00000000 1c 2f 02 00 b8 b7 1d 00 ff ff ff ff 92 70 a7 9f |./...........p..| Jul 15 12:58:00 several hundreds of times with small variations does not look like a sensible format Jul 15 12:58:01 00000010 33 00 00 00 19 00 00 00 04 00 06 00 01 00 95 03 |3...............| Jul 15 12:58:04 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| Jul 15 12:58:07 00000030 00 00 03 00 5b 00 00 00 da 02 00 00 00 00 00 00 |....[...........| Jul 15 12:58:10 00000040 07 00 00 00 00 00 00 00 42 00 00 00 2f 64 61 74 |........B.../dat| Jul 15 12:58:13 00000050 61 2f 6e 76 72 61 6d 2f 41 50 43 46 47 2f 41 50 |a/nvram/APCFG/AP| Jul 15 12:58:16 00000060 52 44 45 42 2f 42 54 5f 41 64 64 72 00 73 5f 73 |RDEB/BT_Addr.s_s| Jul 15 12:58:19 00000070 75 70 70 6f 72 74 5f 65 63 63 69 5f 63 32 6b 20 |upport_ecci_c2k | Jul 15 12:58:22 00000080 31 0a 00 65 72 74 79 20 67 65 74 20 66 61 69 6c |1..erty get fail| Jul 15 12:58:25 seems similar to your ascii snippet Jul 15 12:59:44 yup. OK. will assume that readback actually worked. Jul 15 13:02:03 the same, except for bytes 13-16 Jul 15 13:03:53 for all I know, NVRAM could be up to 76 bytes and the rest is garbage remaining from something else during manufacturing. Jul 15 13:17:23 I really need the strace and redirect on this laptop. FUNKY. Additionally, as root, and best luck when simply switching off the Gemini, not restarting, no need to press any button. Jul 15 14:47:35 Zevv, kernel for Linux or Android? Jul 15 14:49:03 https://github.com/gemian/gemini-keyboard-apps/wiki/KernelCompilation Jul 15 14:52:32 Android kernel Jul 15 14:52:59 I've followed the Gemian instructions with notes from https://www.oesf.org/forum/index.php?showtopic=35235&hl=kernel Jul 15 14:53:03 but I still end up with an unbootable image Jul 15 14:57:46 command looks correct to me Jul 15 14:57:58 do you get adb or anything from Android? Jul 15 15:02:43 Let me check Jul 15 15:03:30 I'm pretty linux savvy but an absolute android noob Jul 15 15:03:50 'adb logcat' does not do more then 'waiting for device' Jul 15 15:07:05 Booting is 'bzzz', planet screen, black screen, planet screen Jul 15 15:07:10 Having a true serial console would be nice Jul 15 15:09:14 so it reboots for some reason, ok Jul 15 15:09:40 did you try only repacking stock kernel at first? Jul 15 15:10:11 Good idea, let me try Jul 15 15:12:05 boots just fine Jul 15 15:12:43 My kernel is a half a MB bigger then the original as well Jul 15 15:12:56 which is quite a lot, given it should have been built with the same configuration Jul 15 15:17:20 gcc-4.9 toolchain? Jul 15 15:17:31 yes Jul 15 15:17:51 also, you used defconfig from Android, not from Gemian repo? Jul 15 15:18:02 first tried with own standalone ndk toolchain, later with the one from gemian Jul 15 15:18:06 defconfig is also from gemian Jul 15 15:18:14 just as per gemian instructions Jul 15 15:18:20 it may not work with Android Jul 15 15:18:59 That's what I figured, but in the camera oesf thread I linked above there's an update by 'shuntcap' indicating a different defconfig and initrd cpio is needed Jul 15 15:19:03 which I tried as well Jul 15 15:27:25 do you have Linux partition, just to check if your kernel can boot to Gemian? Jul 15 15:28:15 Not yet, but I can put that on Jul 15 15:28:46 flashing... Jul 15 15:34:40 oh dang that's the wrong image, I'll have to download a dualboot from planet Jul 15 15:34:43 sloooow downloads there Jul 15 15:37:05 ow look there, it seems I got it. I *did* mess up default configs in my earlier builds I guess! Jul 15 15:40:11 was it SELinux or something like this? Jul 15 15:40:54 I'm just messing stuff up I guess, but this kernel is not mine Jul 15 15:41:07 it's built by 'builder2004@server #1' Jul 15 15:41:13 that's no me Jul 15 15:41:43 I'll get my stuff together first Jul 15 15:43:49 yeah, double --kernel in my args Jul 15 15:43:54 too hot, one beer to many Jul 15 15:45:53 Yeah, now I got it, my kernel is booting Jul 15 15:46:17 cool Jul 15 15:46:22 keymappings are not all ok, though Jul 15 15:48:05 they should be not related to kernel Jul 15 15:48:21 unless you used Gemian sources for Android Jul 15 15:48:23 that's what I'd guess, but still it is messed up somewhere Jul 15 15:48:33 Well, i used the gemini *sources* for android, yes Jul 15 15:48:37 but not the config Jul 15 15:48:47 https://github.com/gemian/gemini-linux-kernel-3.18/commit/cb9730c5eccefca943fd12fec103aca6ae330487, https://github.com/gemian/gemini-linux-kernel-3.18/commit/0826922099cfac508dc919cd3c754b23b195d6f4 Jul 15 15:49:17 Fn to Meta was needed as xkb ignored keycodes > 255 Jul 15 15:49:19 yeah, that' explains Jul 15 15:50:25 patch -R, rebuild Jul 15 15:50:48 great help dude, thanks a lot Jul 15 15:54:30 no problem, good luck the with audio hacks :) Jul 15 15:55:01 thanks Jul 15 15:55:23 one more: is there a way to flash using adb instead of going through flashtool every time? Jul 15 15:56:32 if you have bootloader from Android only or Debian TP1, boot partition is write-protected unless you're in recovery mode Jul 15 15:56:41 clear Jul 15 15:56:42 I think this was removed in TP2 lk.bin Jul 15 15:57:09 another way is to use xflash and fastboot Jul 15 15:57:34 ok, I'll look into that. thanks so far! Jul 15 15:58:16 https://drive.google.com/file/d/1GUJ0GclA3pvkzjZzmisR9BmVxefv6lCA/view?usp=sharing - this one works with Gemini Jul 15 16:36:28 finally got kwin_wayland on buster - well, it's fast, really fast compared to what we have with Xorg Jul 15 16:36:30 if only it was a bit more stable and didn't require hacks here and there... Jul 15 17:09:35 Flashed. "powered by Android"; "powered by linux"; friggin' libreoffice packages broken, took a while to purge the bloat; keyboard mapping is actually correct! Jul 15 17:15:57 Kero, is it buster or stretch? Jul 15 17:24:53 stretch Jul 15 17:25:22 there is a buster image somewhere, too? Jul 15 17:29:37 no image, but it can be built with multistrap Jul 15 17:32:56 https://puu.sh/AWR8A/f509bc43ae.jpg - Plasma looks nice on Gemini though, stabilizing it would be cool Jul 15 17:34:39 hm... sailfish demoes me some stuff... must now swipe from bottom edge, but I cannot (prolly miscalibrated touch screen, since it seemed slightly off in android already) Jul 15 17:35:16 try tapping in four courners clock-wise starting from top-left Jul 15 17:35:18 or perhaps it's just confusing up because the device rotation is taken into account Jul 15 17:35:32 it works to skip tutorial, but probably only in the beginning of it Jul 15 17:45:01 tutorial finished; can gesture from bottom. sailfish seems very much not ready (no surprise). Jul 15 17:51:50 Is there (any/all OSes) a way to emulate F1 up to F12? Jul 15 20:10:13 NeKit: Got my audio phase 'fixed' (with awful hack), thanks again Jul 15 20:11:23 is it potentially useful for others or particular device specific? Jul 15 20:11:59 wel, now the phase is reversed on headphones, so I don't think that would make too many people happy :) Jul 15 20:12:25 I'll try to fix things up a bit better, and maybe and can fix the crackle-when-no-audio-playing-issue as well Jul 15 20:12:48 while I'm already digging through the propriatary audio analog frontend Jul 15 20:13:08 speaking of audio, is there any volume control under debian Jul 15 20:13:45 pavucontrol Jul 15 20:20:30 tried it already, that didn't have any effect; neither did alsamixer Jul 15 20:23:09 what control did you change? look for speaker Jul 15 21:16:12 possibly null output. That's not to say I can find and/or manipulate the correct speaker thing Jul 15 21:16:51 if I get mpd to play, pavu to run and connect to pulseaudio, in the first place Jul 15 21:55:50 using smplayer, all is fine. **** ENDING LOGGING AT Mon Jul 16 03:00:01 2018