**** BEGIN LOGGING AT Thu Mar 01 03:00:00 2018 **** ENDING LOGGING AT Thu Mar 01 04:44:32 2018 **** BEGIN LOGGING AT Thu Mar 01 04:46:03 2018 **** ENDING LOGGING AT Thu Mar 01 04:54:46 2018 **** BEGIN LOGGING AT Thu Mar 01 04:55:11 2018 **** ENDING LOGGING AT Thu Mar 01 05:02:41 2018 **** BEGIN LOGGING AT Thu Mar 01 05:05:00 2018 Mar 01 06:35:55 Morning! Mar 01 06:36:06 Herrie: yes, these fixes are welcome Mar 01 07:02:47 Tofe: WEll there are other issues introduced it seems... Mar 01 07:03:32 I.e. https://github.com/Herrie82/electrablue_mido/commit/039d82b81d068b1127783f2beab1be81b8ea2a63 which requires curl and ca-certificates and then still isn't happy.... Mar 01 07:03:35 So reverted that one :P Mar 01 07:03:47 But now issues with some cgroups bits where they've been messing around with Mar 01 07:04:08 https://bpaste.net/show/3db804b9b5dd Mar 01 07:04:11 So that's next to cover Mar 01 07:04:19 Android doesn't use cgroups I think Mar 01 07:04:32 So for them it isn't an issues, but for us with systemd it is... Mar 01 07:29:52 ah yes indeed Mar 01 08:03:18 Herrie: I've been working on halium's init script; I'm now trying to integrate some udev tool in the initramfs, and I'm struggling with the old issue of recipe dependencies Mar 01 08:04:02 The dependency loop here is cause (if I understand correctly) by the fact that our kernel image builds itself into boot.img, integrating the initramfs Mar 01 08:04:23 so we have systemd(udev) -> kernel -> initramfs -> udev Mar 01 08:04:59 I think we should split the kernel recipe and the build of boot.img somehow Mar 01 08:05:28 I'd like to do that in a simple way, if possible Mar 01 08:39:54 Tofe: I guess I could also just try some other kernel. I'm not bound to electrablue in general. It has a lot of fancy things we don't need anyway Mar 01 08:40:15 CM 14.1 is outdated 3.18.31 or so... There are some other repos with 3.18.94/95/96/97 out there Mar 01 08:40:21 So I guess I'll try those Mar 01 09:03:55 Tofe: For the splitting, that probably gets deep into OE/Yocto territory Mar 01 09:04:09 Might be good to ping JaMa when he's around. He's been dealing with this for the past decade or so Mar 01 09:04:13 He might have some thoughts Mar 01 09:05:29 Yes, I was also thinking the same Mar 01 09:07:56 Tofe: Seems it's created here? https://github.com/shr-distribution/meta-smartphone/blob/pyro/meta-android/classes/kernel_android.bbclass Mar 01 09:11:14 yes Mar 01 09:11:33 So far I don't see how to avoid creating a separate recipe Mar 01 09:12:49 That would probably work fine, though Mar 01 09:27:02 Tofe: All this low level linux stuff is a bit over my head ;) Mar 01 09:27:08 So better to ask JaMa :P Mar 01 09:32:19 Though I'm getting more familiar with it while playing Mar 01 09:39:58 I think I'll be able to put something in place for this case, let's see Mar 01 12:35:30 Tofe: Hmmz got another kernel to build after some hacking, but lxc fails to start now Mar 01 12:35:42 I guess I should double check the defconfig Mar 01 12:37:21 try lxc-check-config or something like that Mar 01 12:40:03 Ah found some it seems :) Mar 01 12:40:52 Turned out that the kernel tried had borked BFQ stuff Mar 01 12:41:05 NEeded to patch KConfig.iosched to get it to build. Mar 01 12:46:40 Ok another kernel build :P Mar 01 12:52:53 :) Mar 01 12:55:16 Tofe: They were in the #anbox section from piggz defconfig so I didn't add them yet Mar 01 12:55:20 Seems LXC needs them too :P Mar 01 13:16:05 Ok now it boots, still have same issues though it seems Mar 01 13:16:50 hello everyone. is it possible to run LuneOS on top of Halium yet? Mar 01 13:17:02 vanyasem[m]: Partly Mar 01 13:17:29 vanyasem[m]: What target device you have? Mar 01 13:17:54 tell me more :P Mar 01 13:18:03 i have a lot of devices actually. Nexus 4, Nexus 5, Nexus 5x and HTC 10 Mar 01 13:18:11 all of them are capable of running Halium (and Plasma Mobile) Mar 01 13:18:16 vanyasem[m]: Well we have 4 and 5 ports Mar 01 13:18:27 i want to play with halium Mar 01 13:18:36 We basically flash our rootfs to data partition using CWM and overwrite the boot.img with ours Mar 01 13:18:40 that's why i ask in the first place Mar 01 13:19:01 So you can go back to Android by flashing the android boot.img basically ;) Mar 01 13:19:17 i don't use android on any of my devices Mar 01 13:19:25 We build the Android bits for our rootfs using Halium minus halium/hybris-boot Mar 01 13:19:47 And then build device specific rootfs using Yocto/OpenEmbedded Mar 01 13:19:55 Slightly different approach from Halium Mar 01 13:20:08 makes sense. and how do i build the boot img? do i just add it in the local manifest? Mar 01 13:20:20 well, i mean, the luneos one Mar 01 13:20:28 vanyasem[m]: Well it's not that easy :P Mar 01 13:20:40 we are actually considering to stop using hybris-boot Mar 01 13:20:56 and switch to halium-boot as proposed my UniversalSuperBox (Dalton Durst) Mar 01 13:21:06 to maintain compatibility with Ubuntu Touch Mar 01 13:21:28 vanyasem[m]: We're also looking into using hybris-boot as per https://github.com/Halium/projectmanagement/issues/61 Mar 01 13:21:37 But it's not for now yet Mar 01 13:22:00 Basically the biggest difference is that we build the kernel and therefore boot.img with Yocto using newer GCC 6.3 toolchain Mar 01 13:22:03 i will subscribe to the issue, thanks Mar 01 13:22:13 Which requires some patches at times to work Mar 01 13:22:19 Mainly for 3.4 and 3.10 kernels Mar 01 13:22:23 3.18 seems to work fine for me Mar 01 13:22:47 HTC10 = pme right? Mar 01 13:22:51 yep Mar 01 13:23:31 it has 3.18 kernel Mar 01 13:25:40 Great Mar 01 13:25:49 Halium = 5.1 or 7.1? Mar 01 13:26:03 I got a semi working 7.1 for my mido (Xiaomi Redmi Note 4x with 3.18 kernel) Mar 01 13:26:14 I.e stuff works except for sensors so far Mar 01 13:26:21 Audio works, graphics too Mar 01 13:26:43 vibrator, leds Mar 01 13:26:52 LuneOS UI starts Mar 01 13:27:52 Ah 7.1 it seems you have too Mar 01 13:28:04 halium 7.1 Mar 01 13:28:23 https://github.com/Halium/projectmanagement/issues/28 Mar 01 13:32:28 vanyasem[m]: Well it basically comes down to following our build instructions similar to http://webos-ports.org/wiki/Build_for_Mako Mar 01 13:32:46 However in order to do that there would need to be some layer in meta-smartphone for htc and pme device Mar 01 13:33:20 Something similar to this like I quickly mocked up for Huawei Angler (Nexus 6P): https://github.com/shr-distribution/meta-smartphone/commit/fa9d11eccc7f837e0253f17c84a0167f52930afd Mar 01 13:33:43 I could do this for the HTC pme too Mar 01 13:33:58 Done 5 or so targets in the past month, so comfortable with it Mar 01 13:34:44 i will head to the docs now, so i understand how it works. thanks. this step is documented, right? Mar 01 13:34:57 i would like to attempt doing it myself to gain experience, but i will ask you for help if i fail Mar 01 13:37:22 Well our build guide needs updating Mar 01 13:37:43 But basically replicating what I did for the Angler Mar 01 13:38:02 The Rootfs will be aarch64 as well :) Mar 01 13:38:11 And have QT 5.9.4 :) Mar 01 13:38:39 I'm around here most of the time, so if you have any questions, feel free to ask Mar 01 13:38:47 I'll try to update the documentation as well a bit Mar 01 13:39:29 i would really appreciate that Mar 01 13:39:59 Tofe's rough porting guide: https://gist.github.com/Tofee/f3a65d5ea391da20817d3746f0031357 Mar 01 13:40:58 In general if the kernel config works for Mer/UBPorts/Plasma it should be fine for us too Mar 01 13:41:09 I used Piggz mer defconfig from SFOS without issues on the mido Mar 01 13:42:01 Did you et the CONFIG_SECURITY_ANDROID_GID_CAPABILITIES working? Mar 01 13:42:14 I had issues with it, but could be my patch was faulty Mar 01 13:42:24 I guess you might have tweaked the 3.10 one somewhat? Mar 01 13:45:36 i have not tweaked it at all Mar 01 13:45:47 Ah OK because with me it didn't work Mar 01 13:45:50 it was purely copied from the bullhead tree Mar 01 13:45:58 how? Mar 01 13:46:29 what's the issue you were facing? Mar 01 13:46:45 patch had no effect Mar 01 13:47:17 makes sense. it worked for pme, which means i'm lucky Mar 01 13:47:38 vanyasem[m]: You have caf kernel? Mar 01 13:47:46 I ended up disabling CONFIG_IPC_ROUTER_SECURITY Mar 01 13:47:48 yep, the device is caf Mar 01 13:56:15 Well anyway your defconfig should be fine normally Mar 01 13:56:34 Only challenge might be compiling the kernel with GCC 6.3 but that shouldn't be rocket science normally either Mar 01 14:03:23 With 3.18 that should be fine Mar 01 14:04:02 Only thing we add to kernel for LuneOS is export si_swapinfo as per: https://github.com/Herrie82/android_kernel_xiaomi_msm8953/commit/154357bba583889378648ebd096d7973c8ae96d3 Mar 01 14:04:08 This is used for memnotify module Mar 01 14:13:42 vanyasem[m]: You want to add https://github.com/shr-distribution/meta-smartphone/blob/pyro/meta-xiaomi/conf/machine/mido.conf#L25 to your pme.conf in meta-htc ;) Mar 01 14:25:17 This make sure that all gets build with the right flags (libhybris, pulseaudio etc) Mar 01 14:49:52 Tofe: https://github.com/webOS-ports/android/pull/2 Mar 01 15:04:01 Tofe: I want to put our jenkins script for building the Halium bits somewhere Mar 01 15:05:43 Should I put it here? https://github.com/webOS-ports/meta-webos-ports/tree/master/meta-luneos/scripts Mar 01 15:17:08 vanyasem[m]: I'm trying to put some instructions together step by step ;) Mar 01 15:32:05 vanyasem[m]: I'm doing a local build of the minimal halium bits that you'll need to add to your meta-smartphone in https://github.com/shr-distribution/meta-smartphone/blob/pyro/meta-xiaomi/recipes-core/android-system-image/android-system-image-mido.bb Mar 01 15:32:21 This is basically the same as for Halium, we just remove the hybris-boot Mar 01 15:32:41 And only use the created rootfs not the kernel Mar 01 15:32:50 Since the kernel will be build in our chain for the rest Mar 01 15:35:41 Basically I run https://bpaste.net/show/d5dc97645975 Mar 01 15:35:52 Which pulls in https://github.com/webOS-ports/android/tree/herrie71 Mar 01 15:36:04 And then does the magic to do the minimal build Mar 01 15:36:29 You'll still need to patch the vendor and other repos to kill the .apk and .jar stuff Mar 01 15:36:42 We keep those patches in https://github.com/webOS-ports/android_luneos_hal/tree/halium-7.1/patches Mar 01 15:36:54 This is a bit prone for errors but works in general Mar 01 15:37:15 You could also simply use a forked themuppets repo with them disabled in the manifest Mar 01 15:37:47 Herrie|Laptop: we already have some repository for jenkins scripts, isn't it ? Mar 01 15:38:30 Tofe: I think here? https://github.com/webOS-ports/webos-ports-setup/tree/master/scripts Mar 01 15:38:49 yes exactly Mar 01 15:39:55 OK can add them there Mar 01 15:51:14 nice idea with patches Mar 01 15:51:17 we still remove everything manually and we don't fork vendor repos Mar 01 15:52:51 vanyasem[m]: Well it's a bit tedious with patches when they update upstream Mar 01 15:52:58 Because repo is just apain to deal with Mar 01 15:53:30 i agree. there got to be a better solution for that Mar 01 15:58:10 Well in general once you have the android bits sorted out they don't change much usually Mar 01 15:59:54 vanyasem[m]: I guess I'll have a rootfs quick enough that I could upload Mar 01 16:00:03 It's building locally now Mar 01 16:08:34 in the meantime i have installed webos on mako (nexus 4) Mar 01 16:08:37 i like it Mar 01 16:10:05 how do i navigate back? Mar 01 16:10:22 The white bar at the bottom Mar 01 16:10:34 Is swipe back, not available in first use Mar 01 16:10:38 First Use App Mar 01 16:13:15 is it okay that there are no apps in the store? Mar 01 16:13:17 only 6 webapps Mar 01 16:13:48 vanyasem[m]: There aren't many currently ;) Mar 01 16:13:57 You can enable the PivotCE feed, you should have some more then Mar 01 16:14:28 where do i enable it? that's my first time with the OS Mar 01 16:14:29 There's a FTP with 5000+ apps that could be sideloaded :P Mar 01 16:14:39 Top bar left, manage feeds ;) Mar 01 16:14:41 Something like that Mar 01 16:15:57 oh, so it has a mac-like menu. nice! Mar 01 16:16:16 There's not a whole lot there either, but at least something ;) Mar 01 16:16:58 The FTP has a lot ;) https://pivotce.com/2016/07/14/public-ftp-for-webos-app-rescue-effort-available-now-torrent-soon/ Mar 01 16:17:05 Not all work due to PDK bindings we don't have Mar 01 16:17:26 And legacy JS framework Mojo that was never open sourced, but the Enyo JS apps should work Mar 01 16:17:54 We have a very small dev team, so things are quite bare still compared to UBPorts & Mer but well Mar 01 16:17:57 Basics are there in general Mar 01 16:18:09 i am a bit sad because it lags on this phone Mar 01 16:18:34 N4 is a bit slow yes Mar 01 16:18:38 On the N5 it's a lot quicker Mar 01 16:19:20 It's the ram & CPU power mainly Mar 01 16:19:28 my N5 is my main phone with Ubuntu Touch, can't reflash that :P Mar 01 16:19:43 Ah ok Mar 01 16:19:55 N4 = work phone with work email & whatsapp ;) Mar 01 16:20:00 N5 = tinker phone, Mar 01 16:20:24 Halium Android build for PME @ 60% ;) Mar 01 16:23:12 what do you run on n4? Mar 01 16:25:06 Just some CM Mar 01 16:25:15 Need to have certain stuff in Android for work :( Mar 01 16:27:43 i can set up an FTP mirror of these packages Mar 01 16:27:51 if you need that Mar 01 16:29:10 i am located in Moscow, Russia Mar 01 16:29:26 vanyasem[m]: FTP mirror of apps you mean? Mar 01 16:29:59 yep Mar 01 16:30:14 i have a small datacenter in my apart with 100mbit bandwidth Mar 01 16:30:24 i can share some resources Mar 01 16:30:46 :D Mar 01 16:34:41 It's about 20GB there I think Mar 01 16:34:55 30Gb Mar 01 16:52:32 vanyasem[m]: Got the Android rootfs from Halium ;) Mar 01 16:52:37 Will upload it shortly for you Mar 01 16:53:30 nice! thanks Mar 01 16:53:48 It's the Halium part, so you're familiar with creating that anyway :P Mar 01 16:55:21 Not the quickest connection it seems today, but it'll be here in 10 or so minutes: http://build.webos-ports.org/halium-luneos-7.1/ Mar 01 17:04:00 vanyasem[m]: Did you have sensors working for you? Mar 01 17:04:11 my test_sensors tells me it cannot find any sensors Mar 01 18:29:40 https://github.com/webOS-ports/android_luneos_hal/pull/4 Mar 01 18:30:15 have i done it the right way Mar 01 18:41:01 vanyasem[m]: not exactly, it needs to be understood by "git am", so it needs to be generated using git format-patch Mar 01 18:41:24 So it's just a matter of committing the change and do git format-patch -1 Mar 01 18:42:00 Otherwise the location and the content looks fine Mar 01 18:45:34 check again Mar 01 18:45:36 the contents are fine, they were tested with UT and PM :) Mar 01 18:46:46 yes, looks good ! Mar 01 19:01:45 I deleted them in my patch but same result ;) Mar 01 19:41:09 Tofe: Seems I have luna-sysservice crashing which is not very useful Mar 01 19:41:24 Any suggestions on how to debug that? Mar 01 19:42:19 I.e. I get no wallpaper and other bits because of that. I'm not sure that's aarch64 or another cause. I guess when pme port is ready we might be able to confirm. Mar 01 19:42:44 With new kernel seems I got rid of the cpuset errors in journal for a large part though :-) Mar 01 19:43:15 Sensors still a mystery though.... Mar 01 19:44:52 There are some things in logcat regarding sensor diag stuff but not a whole lot Mar 01 19:45:08 My search for that so far hasn't given me much clues Mar 01 20:06:35 Tofe: Can you merge the PR in Android repo or no access? Mar 01 21:04:39 https://github.com/Halium/android_kernel_htc_msm8996/commit/6eae5f2a2801e8cb0142d2eddca70e9bf0354fc3 Mar 01 21:04:49 pathed my kernel for webOS **** ENDING LOGGING AT Fri Mar 02 03:00:02 2018