**** BEGIN LOGGING AT Sun Apr 11 02:59:56 2021 Apr 11 05:42:46 uselessspersonn was added by: uselessspersonn Apr 11 10:03:55 prasad_dash was added by: prasad_dash Apr 11 15:45:11 HyperN00B was added by: HyperN00B Apr 11 15:45:35 Hi everyone. Is it possible to port Halium to Redmi Note 8? Apr 11 15:45:55 I mean Erfan did it to Redmi Note 7 and i want to try and make it to Redmi Note 8 Apr 11 15:52:11 willow? Apr 11 15:53:31 UBports / Community Ports / android9 / Xiaomi Redmi Note 8T / xiaomi-willow · GitLab … https://gitlab.com/ubports/community-ports/android9/xiaomi-redmi-note-8t/xiaomi-willow Apr 11 15:54:00 first try installing it from there. 8T image should be compatible with normal Note 8 Apr 11 15:57:38 Yeah. It should theoretically be compatible Apr 11 15:58:00 But is there a way to make such community builds? I want to torture my nerves by trying to boot it and fix stuff in it. Apr 11 15:58:31 For some reason i see a lot more potential in Linux4Arm64 than Android. (Let's face it, Android is a heavily limited Linux) Apr 11 16:14:04 Is Halium 10.0 compilable? Apr 11 16:17:05 not yet Apr 11 16:21:05 Good 2 know. Apr 11 16:21:42 Cause my ginkgo is released with Pie, so it should work with Halium 9.0, but it's pretty hard to find Pie trees for it nowadays when everyone is compiling R Apr 11 16:33:10 @HyperN00B [But is there a way to make such community builds? I want to torture my nerves by …], see the scripts in repo Apr 11 16:33:17 it is CI-built Apr 11 16:33:39 Willow kernel is dead for some reason. Apr 11 16:33:51 "/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here" Apr 11 16:34:10 search for this error message here Apr 11 16:34:19 too new tooling :) Apr 11 16:35:08 @NotKit [too new tooling :)], What does this mean? Apr 11 16:35:46 I just meant that you're likely running Arch or Ubuntu 20.04+ Apr 11 16:36:48 but that error is fixed by little change, and have been discussed lot of time Apr 11 16:36:49 (Document) https://irc.ubports.com/ef64tgXi.png Apr 11 16:37:14 @NotKit [but that error is fixed by little change, and have been discussed lot of time], So i should search here in chat for yylloc right? Apr 11 16:37:16 [Edit] but that error is fixed by little change, and have been discussed lot of times, so just search in chat history Apr 11 16:38:57 @HyperN00B ["/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of ` …], https://lkml.org/lkml/2020/4/1/1206 Apr 11 16:40:08 @SebaUbuntu [https://lkml.org/lkml/2020/4/1/1206], Thank you. Now only one single question. Where does build.sh save the kernel source? Apr 11 16:40:52 @HyperN00B [Thank you. Now only one single question. Where does build.sh save the kernel sou …], Kernel source or kernel output? Apr 11 16:41:01 @SebaUbuntu [Kernel source or kernel output?], source itself Apr 11 16:41:20 @HyperN00B [source itself], I don't know, never built Halium Apr 11 16:41:35 in tmp directly, but you can edit the script Apr 11 16:41:41 @SebaUbuntu [I don't know, never built Halium], Usually in Android sources they are in kernel/vendor/device Apr 11 16:41:50 [Edit] in tmp dir, but you can edit the script Apr 11 16:41:54 @SebaUbuntu [Usually in Android sources they are in kernel/vendor/device], But I would guess it doesn't apply here Apr 11 16:42:25 @NotKit [in tmp dir, but you can edit the script], Probably this will be the solution Apr 11 17:45:36 Is the build method mentioned in build-sources.rst for Halium-7.1 working with Halium-9.0 as well? Apr 11 17:49:14 not suggested Apr 11 17:58:07 So the method is trial-error basically? Apr 11 18:16:25 At least my custom ROM is almost done compiling so at least i will have sth i can fall back to in case sth goes haywire Apr 11 18:33:15 Hey, all! I'm afraid that I will ask a very specific question, but does anyone have any idea about libEGL returning EGL_BAD_DISPLAY if I try to call eglCreateWindowSurface from /usr/lib/libhybris-egl/libEGL.so.1? Apr 11 18:33:51 * nergzd723 < https://matrix.org/_matrix/media/r0/download/matrix.org/tyUPJMziqIGmStrxsLErrRHP/message.txt > Apr 11 18:34:25 I run an X.org server with xf86-video-hwcomposer backend, and it works just fine Apr 11 18:34:40 is there anything I'm doing wrong? Apr 11 18:40:36 @nergzd723 [is there anything I'm doing wrong?], Maybe you need to chmod that file. I think some system-process doesn't have the proper access right to that file and thus it fails Apr 11 18:41:59 @HyperN00B [Cause my ginkgo is released with Pie, so it should work with Halium 9.0, but it' …], Check lineage os Apr 11 18:42:03 They usually have Apr 11 18:42:05 I don't think that's quite what's wrong here :( Apr 11 18:42:23 just as I said, it's very specific, it's probably a very simple issue Apr 11 18:42:35 @nergzd723 [I don't think that's quite what's wrong here :(], I might be wrong, but the Permission Denied from cutils-trace seems like a missing chmod to me. Apr 11 18:43:02 * nergzd723 < https://matrix.org/_matrix/media/r0/download/matrix.org/aBJLNlCXLUNgrudQISKIWXgg/message.txt > Apr 11 18:43:10 @amyosx [Check lineage os], Probably that's going to happen cause there's no way MiuiCamera for Android will work on Halium Apr 11 18:43:15 @nergzd723 [I don't "> it doesn't work even if I launch it as root Apr 11 18:43:30 @HyperN00B [Probably that's going to happen cause there's no way MiuiCamera for Android will …], You can revert mini camera stuff anyway Apr 11 18:43:35 @HyperN00B [Probably that's going to happen cause there's no way MiuiCamera for Android will …], [Edit] You can revert miui camera stuff anyway Apr 11 18:44:02 @amyosx [You can revert miui camera stuff anyway], I know. I will probably have to delete like half the device tree stuff cause it's pretty heavily Droid dependant Apr 11 18:45:38 @ubports_bot [* nergzd723: < https://matrix.org/_matrix/media/r0/download/matrix.org/aBJLNlCXL …], Does this libgui.so even exist? Apr 11 18:47:14 no, it doesn't Apr 11 18:47:25 I suspect it might be causing this issue Apr 11 18:47:49 but I'm not sure, RTLD_NOLOAD prevents it from being loaded Apr 11 18:48:09 @nergzd723 [I suspect it might be causing this issue], Yeah. Missing libs can cause various problems even on desktop platform Apr 11 18:52:08 libgui.so is there Apr 11 18:52:21 but RTLD_NOLOAD prevents it from being loaded Apr 11 18:52:29 I don't know what am I doing wrong :( Apr 11 18:52:47 * nergzd723 < https://matrix.org/_matrix/media/r0/download/matrix.org/QVxrRIqePVsHWSQuUwiSTxkb/message.txt > Apr 11 18:52:53 how do I even make it work? Apr 11 18:54:29 @nergzd723 [how do I even make it work?], Segmentation fault? I can't help with that, i couldn't even fix those in Android source code Apr 11 18:55:28 I mean, it's probably a simple issue, test_egl must wokr Apr 11 18:55:31 * I mean, it's probably a simple issue, test_egl must work Apr 11 18:55:40 I think maybe some of my libs are wrong? Apr 11 18:55:48 or I don't even know :( Apr 11 18:56:29 @nergzd723 [I think maybe some of my libs are wrong?], It could be a corrupted so file. Maybe try downloading it from somewhere. Though i'm not sure if that would help or just make matters worse. Apr 11 19:09:59 @amyosx [You can revert miui camera stuff anyway], There isn't Pie tree for ginkgo on Lineage github Apr 11 19:44:36 ahh Apr 11 19:50:51 Is there Halium support for android 6? Apr 11 19:51:05 There is not Apr 11 19:51:58 Damn, I wanted to port an Android 6 device to ubports, but it then wouldn't work Apr 11 21:10:47 Also, test_hwcomposer_7_caf is able to use eglCreateWindowSurface Apr 11 21:10:54 I'm really curious about this Apr 11 21:14:40 @OpenWebdesignGer [Damn, I wanted to port an Android 6 device to ubports, but it then wouldn't work], port 7.1 first Apr 11 21:36:36 @HyperN00B https://gitlab.com/ubports/community-ports/android9/xiaomi-redmi-note-8t/xiaomi-willow/-/jobs/1170237287/artifacts/browse/out/ Apr 11 21:37:06 @NotKit [@HyperN00B https://gitlab.com/ubports/community-ports/android9/xiaomi-redmi-note …], You are a lifesaver Apr 11 21:37:17 I haven't tested if that boots yet though Apr 11 21:38:18 @NotKit [I haven't tested if that boots yet though], You can be sure i will. And probably mess my entire partition table up while trying to fix it if it's not so just in case, i downloaded a complete miui zip to have a plan B Apr 11 21:39:18 Is it possible to compile Halium 9.0 with Q trees? Ginkgo doesn't seem to have any usable Pie tree left. Apr 11 21:40:04 you don't really need device-specific Android tree for 9.0 and ginkgo Apr 11 21:41:24 @NotKit [you don't really need device-specific Android tree for 9.0 and ginkgo], Then what kind of tree do i need? Cause using willow build will surely have one thing in it and one thing broken. Notification LED will be broken cause willow don't have it and NFC will surely be in it even though ginkgo doesn't have NFC Apr 11 21:57:09 @HyperN00B what do the have different from our perspective? Apr 11 21:57:14 dts in kernel? Apr 11 21:57:36 [Edit] @HyperN00B what do they have different from our perspective? Apr 11 21:57:39 They probably have like 2 different lines Apr 11 21:57:53 ginkgo has for led and willow has for nfc Apr 11 21:58:05 @NotKit [I haven't tested if that boots yet though], also kernel booted Apr 11 21:58:25 @NotKit [also kernel booted], Dont know. still downloading. Apr 11 22:10:11 beware that once you boot it, there seems to be some bug with screen brightness control leading to display burnout Apr 11 22:22:26 @NotKit [beware that once you boot it, there seems to be some bug with screen brightness …], It has a cheapo tianma panel. It has ghost image even on android Apr 11 22:23:06 Ginkgo and Willow already has a pretty $hitty display Apr 11 22:23:51 I got some used device to test that port, but didn't have much time to actually do anything with it besides installing Apr 11 22:24:16 I have plenty of time to mess around with it. Apr 11 22:31:35 make sure you have stock Android 9 installed before flashing Apr 11 22:31:39 at least for /vendor Apr 11 22:42:24 @NotKit [make sure you have stock Android 9 installed before flashing], Then i have to find a miui 9 vendor for it? Apr 11 22:43:46 Found it. Miui 11 Pie Apr 11 22:44:10 Do i have to flash anything other than the system and boot image? Apr 11 22:45:22 https://xiaomifirmwareupdater.com/miui/ginkgo/stable/V11.0.11.0.PCOMIXM/ Apr 11 22:45:45 @HyperN00B [Do i have to flash anything other than the system and boot image?], regarding UT - no, but make sure to `fastboot format:ext4 userdata` Apr 11 22:46:16 @NotKit [regarding UT - no, but make sure to fastboot format:ext4 userdata], Is it okay if i format data in recovery? Apr 11 22:46:22 yes Apr 11 22:46:32 Then let me do it real quick Apr 11 22:49:24 Lets hope flashing Pie fw+vendor back from R wont hurt this poor thing. Apr 11 22:50:12 wait Apr 11 22:50:19 so i can flash JUST vendor? Apr 11 22:50:21 to get Halium? Apr 11 22:50:50 What do you mean? Vendor package from xiaomifwupdater also contains the firmware Apr 11 22:51:23 @HyperN00B [What do you mean? Vendor package from xiaomifwupdater also contains the firmware], my Mi A3 rom is a fastboot rom Apr 11 22:52:15 @TheOldNewGuy [my Mi A3 rom is a fastboot rom], Both are available Apr 11 23:00:52 @NotKit [yes], Recovery died. Apr 11 23:00:56 Have to reflash Apr 11 23:07:00 Nope. Have to reflash completely stock MemeUI Apr 11 23:14:52 so you flashed stock MIUI for Android 9, then the files I sent, formated userdata and it doesn't boot? Apr 11 23:15:13 (I meant format, not wipe, to remove encryption) Apr 11 23:35:42 @NotKit [(I meant format, not wipe, to remove encryption)], I always format it even though ginkgo don't need encryption to work Apr 11 23:36:05 @NotKit [so you flashed stock MIUI for Android 9, then the files I sent, formated userdat …], Stock miui for Android 9 Vendor. Apr 11 23:36:32 But when i tried to reboot to recovery, the good old "The system has been destroyed" message welcomes me Apr 11 23:37:51 no idea about recovery in this setup Apr 11 23:39:36 @NotKit [no idea about recovery in this setup], I think i'll just download Miui11 Pie complete fastboot zip and flash it back to complete stock from Windows Apr 11 23:39:57 Btw did you face this error when trying to mainlineify? … unknown register name 'r1' in asm Apr 11 23:39:58 I think fastboot works same no matter OS Apr 11 23:40:19 @NotKit [I think fastboot works same no matter OS], Sadly that's not the case with most xiaomi phones. Apr 11 23:40:29 pretty sure it works for me :) Apr 11 23:41:02 @NotKit [pretty sure it works for me :)], I think i'll go with MiFlash cause i can easily forget a partition that might make matters worse. Apr 11 23:41:12 @HyperN00B [Btw did you face this error when trying to mainlineify? … unknown register name 'r …], Any idea about this? Apr 11 23:41:28 It happens in: /arch/arm64/include/asm/archrandom.h:66:3 Apr 11 23:41:40 And this file doesn't even exist in 4.14 Apr 11 23:41:57 no, but if you're trying to build mainline kernel, learning arm64 ASM syntax would be least of your worries Apr 11 23:42:15 @NotKit [no, but if you're trying to build mainline kernel, learning arm64 ASM syntax wou …], This is the first error i got :D Apr 11 23:48:27 anyone got a way to disable anti rollback in Mi A3? Apr 12 01:21:56 "porting" fastboot package's flash_all.bat to flash_all.sh is very f*cking boring and monotonic. **** ENDING LOGGING AT Mon Apr 12 02:59:56 2021