**** BEGIN LOGGING AT Tue Sep 10 02:59:58 2019 Sep 10 08:35:52 Michael Eden was added by: Michael Eden Sep 10 09:28:05 hello what is the current version of halium? Sep 10 09:28:55 is it possible to port halium for a android device with 3.4 kernel has lineage 14.1 source and kernels Sep 10 09:29:26 Matthew Good was added by: Matthew Good Sep 10 09:29:32 Hai Sep 10 09:29:55 Halium support this right? Sep 10 09:30:03 (Photo, 1280x622) https://irc.ubports.com/eKZVORR7.png Sep 10 09:54:33 anyone? Sep 10 09:59:54 @sdfn_amrith [is it possible to port halium for a android device with 3.4 kernel has lineage 1 …], possible Sep 10 10:12:15 Wonder if it's possible to get live boot working Sep 10 10:17:57 @Matthew Good [Wonder if it's possible to get live boot working], what are you trying to do? Sep 10 10:17:57 the screenshot doesn't tell much Sep 10 10:23:59 Does halium support the ability to drop to rootfs if mounting the OS fails Sep 10 10:25:16 Well the rootfs contains the os, so I don't see how if should he booted if mounting fails. Sep 10 10:26:04 @JBBgameich [Well the rootfs contains the os, so I don't see how if should he booted if moun …], like what is happening in my screenshot Sep 10 10:27:27 (simplified) It mounts the OS on /new_root and then chroots into it via chroots /new_root /init Sep 10 10:28:21 That's how a normal boot works, just with switch_root instead of chroot. Sep 10 10:28:58 Does halium support doing that Sep 10 10:30:57 Sorry, I still don't understand. Halium boots into the rootfs like this, but of course not if mounting fails, because then it can't access the rootfs at all. Sep 10 10:31:21 Ok Sep 10 10:31:49 I don't understand it either lol Sep 10 10:32:38 it will dropout to telnet shell in this case Sep 10 10:33:06 @NotKit [it will dropout to telnet shell in this case], Ok Sep 10 10:33:25 Is it possible to live boot Sep 10 10:33:47 Eg boot an OS without installing it Sep 10 10:34:58 not exactly, but in theory you could modify halium-boot to pickup sdcard Sep 10 10:35:07 you would still have to flash boot though Sep 10 10:35:23 How come? Sep 10 10:35:42 @NotKit [you would still have to flash boot though], Why? Sep 10 10:36:09 @NotKit [you would still have to flash boot though], [Edit] What do you mean? Sep 10 11:24:53 @Herrie [@stefanomelchior: Seems you're missing the kernel repo in your device manifest s …], Herrie: just added kernel repo (kernel/bq/msm8953), but still having java related errors Sep 10 11:34:43 @Matthew Good [What do you mean?], Phones do not work the same as your PC, no Sep 10 11:37:56 @Matthew Good [What do you mean?], He means that you have to modify the boot partition which means unlocking the phone and flashing over the original one with a modified kernel Sep 10 11:38:07 Or better, modified initrd script Sep 10 11:46:35 @stefanomelchior: Can you let me know the URL for kernel repo and will check @ my side Sep 10 11:47:48 @Herrie [@stefanomelchior: Can you let me know the URL for kernel repo and will check @ m …], Herrie: https://github.com/stefanomelchior/android_kernel_bq_msm8953-1 Sep 10 11:48:30 I used `revision="lineage-15.1` Sep 10 11:56:40 @stefanomelchior: OK trying at my end now, should have some results in a few mins Sep 10 11:57:06 @stefanomelchior: Builder is Threadripper 2990 and have 750/750 fibre, so things fly ) Sep 10 11:57:07 ;) Sep 10 11:59:13 Hmmz it's failing on audio bits, I've seen this before on another target. Is due to API changes somewhere... I'll have a look Sep 10 12:06:18 OK found the source, need to do some patching. Seem mer's frameworks_av is older and doesn't match the API in android_hardware_qcom_audio anymore. I'll for LOS and apply Mer's patch instead and switch repo to allow it to continue. I recall I did this previously, but maybe forgot to push it somewhere Sep 10 12:23:58 @Flohack [He means that you have to modify the boot partition which means unlocking the ph …], Ok Sep 10 12:31:02 @stefanomelchior: My build is now close to a "success". My android and halium-devices repos are up to date now on GitHub, so you should be able to replicate. I just built this from scratch now at my builder and it's "working" at my end. Sep 10 12:31:31 @stefanomelchior: With "success" and "working" I mean that I get an image that completes building Sep 10 12:32:21 @stefanomelchior: Last bits from my log: https://paste.ubuntu.com/p/dz7MmKW9GF/ Sep 10 12:58:18 @Herrie [@stefanomelchior: My build is now close to a "success". My android and halium-de …], so with a `repo sync` I should resync the tree and then build a system.img Sep 10 12:58:30 ops ... `error: Cannot checkout herrie82/android_frameworks_av: ManifestInvalidRevisionError: revision halium-8.1 in herrie82/android_frameworks_av not found … error: in `sync`: revision halium-8.1 in herrie82/android_frameworks_av not found` Sep 10 12:58:55 It's there... https://github.com/Herrie82/android_frameworks_av/tree/halium-8.1 Sep 10 13:04:52 @stefanomelchior: This is the build script we use @ LuneOS to build the minimal android bits using Halium: https://paste.ubuntu.com/p/dtHcFNRfnS/ This will give us a .tar.bz2 which we use as input for our LuneOS build. We build the kernel @ LuneOS end with other toolchain (Latest GCC provided by Yocto project, GCC 8.3 as of now Sep 10 13:05:28 Our kernel config requirements are similar to Mer and we can use their kernel verification script 1:1 for LuneOS. Sep 10 16:37:36 Amrock was added by: Amrock Sep 10 16:40:19 I was going through the documentation and porting a device , I saw that CONFOG_IKCONFIG and CONFIG_IKCONFIG_PROC should be set. When I use check kernel config , those are not shown (means it is not set right?) Sep 10 16:40:30 Where to set it? Sep 10 16:51:47 inside device defconfig Sep 10 16:52:08 Amrock are you going to port ubports? Sep 10 16:52:40 Helium , then ubiports Sep 10 16:52:51 Yes finally I should be Sep 10 16:53:04 Ubports requires different kernel parameters Sep 10 16:53:30 You have to build halium-boot not hybris Sep 10 16:53:37 ubuntu touch is the OS. ubports is the community/foundation Sep 10 16:53:57 By ubports we mean ut Sep 10 16:55:18 But the documentation is for hybris boot right?. Idk I am doing this for the first time. How to build image for halium-boot Sep 10 16:57:01 So if I have to first get a halium port for my device and finally Ubuntu touch os , what path should I take? Sep 10 16:57:20 Is it hybris boot or halium boot? Sep 10 16:58:01 Halium docs are for hybris indeed Sep 10 16:58:16 Look on ubports docs for halium-boot Sep 10 16:58:54 Well what kernel version do you have? Sep 10 17:01:12 3.4 Sep 10 17:01:32 Then it's problematic. Sep 10 17:01:50 Ubports require 3.10 atleast Sep 10 17:02:20 3.4 should be fine Sep 10 17:02:27 Yes but require patching Sep 10 17:02:35 yes, so add the patches Sep 10 17:02:36 *more patching Sep 10 17:02:47 even 4.4 would require patching Sep 10 17:02:56 Every single requires Sep 10 17:03:05 exactly Sep 10 17:03:17 But you have more chance to get it working starting from 3.10 Sep 10 17:03:32 Is it mentioned in the documentation? Sep 10 17:03:36 only way to not need patching is to get mainline working Sep 10 17:03:51 Works for 2 devices xD or more? Sep 10 17:04:45 http://docs.halium.org/en/latest/porting/build-sources.html Sep 10 17:05:27 @Akatsu . [But you have more chance to get it working starting from 3.10], No everyrom uses 3.4 and I don't really know how to upgrade to 3.10 (I would have to compile the kernel 3.10 I guess) Sep 10 17:06:33 But I have seen ubiports in Nexus 5 it's older that the device I am porting and many other devices too Sep 10 17:06:55 Nexus 5 is 3.4 kernel too Sep 10 17:07:33 Yeah Sep 10 17:07:46 It's good idea to look at repos, you can find potential fixes for issues which aren't mentioned in docs Sep 10 17:08:11 OK I will try that Sep 10 17:08:30 And lots of them are not mentioned for ubports, like additional lxc defconfig parameters, Sep 10 17:10:06 @Amrock [No everyrom uses 3.4 and I don't really know how to upgrade to 3.10 (I would hav …], no. only devices which shipped with 3.10 kernel can use 3.10 kernel. Sep 10 17:10:52 Is that valid from technical standpoint? Sep 10 17:11:09 @dohbee [no. only devices which shipped with 3.10 kernel can use 3.10 kernel.], Yeah or compile the kernel with drivers and follow Linus Torvalds (not possible for me) Sep 10 17:12:23 @Akatsu . [Is that valid from technical standpoint?], yes, because the drivers are proprietary and will not work with different kernels because internal API/ABI is broken all the time with kernel. Sep 10 17:12:54 @Amrock [Yeah or compile the kernel with drivers and follow Linus Torvalds (not possible …], well, the only way to get a newer kernel would be to get open source drivers. at which point you could use kernel 5.2 even Sep 10 17:13:12 But it's possible for OEM to upgrade kernel and rewrite drivers Sep 10 17:13:36 @Akatsu . [But it's possible for OEM to upgrade kernel and rewrite drivers], well, you are welcome to go convince said OEM to do that for this device Sep 10 17:13:45 good luck with it Sep 10 17:14:08 Sony once from what I know tried to port 4.x on snapdragon 652, like most stuff was broken Sep 10 17:14:14 also, many OEMs can't do that, because they don't have driver source. they get what the SoC maker gives them Sep 10 17:15:06 MTK won't even let OEMs release vendor/device tree for example Sep 10 17:15:08 So let's say Qualcomm release 4.9 for snapdragon 625 why it's not possible for oems to upgrade from 3.18 Sep 10 17:15:25 Mtk is like worst case scenario for open-source Sep 10 17:16:47 @Akatsu . [So let's say Qualcomm release 4.9 for snapdragon 625 why it's not possible for o …], because OEM hunk lots of code specific to their hardware, and that renders porting nearly impossible if not with big efforts Sep 10 17:16:50 @Akatsu . [So let's say Qualcomm release 4.9 for snapdragon 625 why it's not possible for o …], [Edit] because OEM hunk lots of code specific to their hardware, and that renders porting nearly impossible if not with big effort Sep 10 17:17:14 @Akatsu . [Ubports require 3.10 atleast], still 3.4 currently Sep 10 17:17:33 @Akatsu . [So let's say Qualcomm release 4.9 for snapdragon 625 why it's not possible for o …], why are you talking about theoretical things? Qualcom isn't going to do it. Just like they don't ship firmware updates for no longer supported hardware either. And OEMs probably wouldn't bother even if Qualcom did this when new Android versions Sep 10 17:17:33 were released, because it would be too much work for devices they've already released Sep 10 17:18:31 Akatsu really if you want updated kernel, the only thing that could work is teaming up with postmarketOS folks and mainlining the device Sep 10 17:19:47 Qualcomm/OEMs mostly don't care if it is not for their new shiny product Sep 10 18:24:42 (Photo, 2560x1451) https://irc.ubports.com/A2WToH35.png Sep 10 18:25:36 guess what that means :) Sep 10 18:27:09 @fredldotme [guess what that means :)], camera rotation is wrong? :P Sep 10 18:27:43 well, yeah, that too ^^ Sep 10 18:27:53 but hardware support is 100% complete now Sep 10 18:27:59 @fredldotme [well, yeah, that too ^^], But gst Droid thingie works? Sep 10 18:28:08 Who writes the Python script in build/tools? Sep 10 18:29:09 I literally got an error with missing space . Only 3 space before a statement inside if Sep 10 18:29:10 @fredldotme [but hardware support is 100% complete now], on xperia? Sep 10 18:29:43 @bhushanshah [But gst Droid thingie works?], That's with UTs default gst. But a recent change in the frameworks part has caused codec listing to be loaded correctly. Sep 10 18:29:49 @dohbee [on xperia?], yup Sep 10 18:29:54 Lots of errors in Python including print statement, nothing major atleast Sep 10 18:30:03 @fredldotme [yup], nice! Sep 10 18:31:49 ah, switching to the front camera fails, but soon (tm) Sep 10 19:44:29 I was able to generate system image . But there was a message "fs is not ext4" . Should it be? Where to change it? Sep 10 19:45:31 mountpoints and fstab inside device tree Sep 10 19:45:38 its mentioned in docs Sep 10 20:01:29 OK.thanks Sep 10 20:34:46 @Amrock [Who writes the Python script in build/tools?], Someone at google. Sep 11 00:58:07 Hello Sep 11 00:58:26 I'm looking to port to a non-supported device Sep 11 00:58:32 What is the best approach to this? Sep 11 01:01:37 Starting from here: Sep 11 01:01:38 http://docs.halium.org/en/latest/porting/first-steps.html Sep 11 01:04:03 What is the best version of Ubuntu to compile this all in? Sep 11 01:11:47 It doesn't matter, any should be much the same Sep 11 01:12:47 Okay ty **** ENDING LOGGING AT Wed Sep 11 03:00:21 2019