T42 | <Spidey24Z> @elros34 hey bro | 00:02 |
---|---|---|
T42 | <edp_17> @Spidey24Z : please don't post logs as text files or screen-shots. Upload to somewhere like paste.ubuntu.com and post the link only. | 06:03 |
T42 | <elros34> @Spidey24Z you have decon driver for display, there was somebody with samsung device which didn't like mce's framebuffer power control. Try to systemctl mask mce and reboot too see if hwcomposer also crash in that case | 06:21 |
T42 | <elros34> or more correctly check if lipstick/minimer still crash | 06:22 |
T42 | <edp_17> @elros34 : Hi. I've compared the /system/etc/ld.config.txt against sparse-10/usr/libexec/droid-hybris/system/etc/ld.config29.txt. Well, the ld.config.txt is much smaller and has stuff that ld.config29.txt doesn't and vice versa. | 07:34 |
T42 | <edp_17> You said, adjust droid-hal-early-init.sh. It is currently grepping the word hybris in /system/etc/ld.config.29.txt and if doesn't find, bind mounting /usr/libexec/droid-hybris/system/etc/ld.config.29.txt to /system/etc/ld.config.29.txt. What should I change in here? | 07:34 |
T42 | <edp_17> Should I bind mount /system/etc/ld.config.txt into /system/etc/ld.config.29.txt? (/system/etc/ld.config.txt doesn't have hybris either.) | 07:34 |
T42 | <edp_17> Should I see /system/etc/ld.config.29.txt file? Or the bind mount works differently? | 07:42 |
T42 | <elros34> but do you still have in logcat error: something "is not accessible for the namespace"? If yes then you could make similar changes like in ld.config.29.txt (lines with libexec/) and then bind mount modified ld.config.txt to /system/etc/ld.config.txt similar to droid-hal-early-init.sh | 08:02 |
T42 | <edp_17> Yes, logcat still shows those errors: https://paste.ubuntu.com/p/YMd4PHXsZH/ | 08:04 |
T42 | <edp_17> The file /system/etc/ld.config.txt exists. Will the bind mounted one "override" the existing one? | 08:08 |
T42 | <elros34> yesmount -o bind <path to modified ld> /system/etc/ld.config.txt | 08:11 |
T42 | <elros34> will override it | 08:11 |
T42 | <edp_17> Thanks. | 08:12 |
T42 | <edp_17> One more thing. The line "namespace.default.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" does exist at two places in ld.config29.txt, at section [system] and [vendor]. None of these sections exists in ld.config.so. There are two [legacy] and [postinstall]. Won't be a problem if I create a [system] and [vendor] with only that line in there? | 08:16 |
T42 | <edp_17> There are much more defined in ld.config29.txt at section [system] and [vendor] not only that *libexec* line | 08:16 |
T42 | <edp_17> Or I don't need to create [system] and [vendor] sections just add that *libexex* line into the existing [legacy] section? | 08:19 |
T42 | <elros34> I would not add any new sections, just append libexec to existing | 08:19 |
T42 | <edp_17> Okay. Thanks. | 08:20 |
T42 | <edp_17> In droid-hal-early-init.sh, why we need to bind mount ld.config29.txt? | 08:25 |
T42 | <edp_17> Should I keep the part that bind mounts ld.config29.txt or just simply replace it with bind mount the modified ld.config.so? | 08:26 |
T42 | <edp_17> Can somebody please explain me what do these two error means? (I guess the second one is a result of the first, but I don't know what that means exactly.) https://paste.ubuntu.com/p/dkwp5jJycC/ | 08:31 |
T42 | <b100dian> @edp_17 I changed the script to cp --remove-destination so basically the same as yours | 09:15 |
T42 | <b100dian> For the above, maybe add the libexec path outside a section too? In ld.config29 I mean | 09:21 |
T42 | <edp_17> @b100dian : Will try this. Thanks. | 10:12 |
T42 | <edp_17> @elros34 : I've cloned /system/etc/ld.config.txt to /usr/libexec/droid-hybris/system/etc/ld.config.txt, added the missing *libexec/droid-hybris* line into the cloned one and amended droid-hal-early-init.sh to bid mount the clone into /system/etc/ld.config.txt. Result is the same: https://paste.ubuntu.com/p/C4StRqgZRw/ (re @elros34: but do you still hav...) | 10:16 |
T42 | <Spidey24Z> @elros34 after masking mce > https://pastebin.ubuntu.com/p/pZ4tWkrQjF/ | 10:47 |
T42 | <edp_17> @elros34 , @b100dian : I've tried all sort of combination. Results are here: https://paste.ubuntu.com/p/nMGbvKgctC/ | 12:20 |
T42 | <edp_17> I don't have this file "/system/etc/ld.config.29.txt" is this expected? | 12:21 |
T42 | <b100dian> I am not an expert - I do have it. Maybe there are some android build flags that disable vndk namespaces used in your build? Boardconfig maybe? | 12:50 |
T42 | <Fred Fisher> 𝙔𝙤𝙪𝙧 𝙘𝙤𝙢𝙥𝙖𝙣𝙮 𝙞𝙨 𝙍𝙚𝙖𝙡 𝙩𝙧𝙪𝙨𝙩𝙚𝙙 𝙩𝙤 𝙢𝙖𝙠𝙚 𝙞𝙣𝙫𝙚𝙨𝙩𝙢𝙚𝙣𝙩 𝙤𝙣, 𝙄 𝙢𝙮 𝙨𝙚𝙡𝙛 𝙞𝙣𝙫𝙚𝙨𝙩𝙚𝙙 $400 𝙖𝙣𝙙 𝙄 𝙢𝙖𝙙𝙚 𝙖 𝙥𝙧𝙤𝙛𝙞𝙩 𝙤𝙛 $4,900 𝙞𝙣 𝙟𝙪𝙨𝙩 24𝙝𝙤𝙪𝙧𝙨, 𝙄 𝙬𝙖𝙨 𝙨𝙤 𝙝� | 15:06 |
T42 | <Fred Fisher> 𝙍𝙚𝙨𝙪𝙡𝙩𝙨 𝙄𝙨 𝙎𝙪𝙧𝙚, 𝙟𝙪𝙨𝙩 𝙘𝙡𝙞𝙘𝙠 𝙤𝙣 𝙩𝙝𝙚 𝙡𝙞𝙣𝙠 𝙗𝙚𝙡𝙤𝙬 𝙩𝙤 𝙘𝙤𝙣𝙩𝙖𝙘𝙩 | 15:06 |
T42 | <Fred Fisher> 𝘾𝙤𝙢𝙥𝙖𝙣𝙮 𝙡𝙞𝙣𝙠 | 15:06 |
T42 | <Fred Fisher> https://t.me/joinchat/0C0xxJ3JI0YyMjQ0 | 15:06 |
T42 | <edp_17> It looks like need to manually add ld.config.29.txt. Like Verevka did: https://github.com/SailfishOS-sagit/droid-config-sagit/commit/d2b7890ac47b03c796af0f4aa8a1a8cb6ac42494 (re @b100dian: I am not an expert -...) | 15:22 |
T42 | <edp_17> Oh, I see. So, droid-hal-early-init.sh is doing the same thing. So I don't need that service. | 15:35 |
T42 | <edp_17> Therefore, back to the original problem, why I don't have /system/etc/ld.config.29.txt | 15:35 |
T42 | <b100dian> What's your device tree repo? | 15:48 |
T42 | <edp_17> I have two. This: https://github.com/edp17/android_device_samsung_treltexx/tree/lineage-17.1 | 15:55 |
T42 | <edp_17> and this: https://github.com/edp17/android_device_samsung_trelte-common/tree/lineage-17.1 | 15:55 |
T42 | <edp_17> Based on this I should have BOARD_VNDK_VERSION and? PRODUCT_TREBLE_LINKER_NAMESPACES defined in BoardConfig.mk: https://source.android.com/devices/architecture/vndk/linker-namespace#linker-namespace-creation | 15:56 |
T42 | <edp_17> I don't have any of them defined anywhere. | 15:56 |
T42 | <edp_17> I do have the following in $ANDROID_ROOT/system/core/rootdir/etc : https://paste.ubuntu.com/p/MvDmdQJDqH/ | 15:59 |
T42 | <edp_17> Yeah, based on this, I should add BOARD_VNDK_VERSION=current into BoardConfig.mk: https://source.android.com/devices/architecture/vndk/enabling | 16:03 |
T42 | <edp_17> I think. | 16:04 |
T42 | <edp_17> When added BOARD_VNDK_VERSION := current into BoardConfig.mk and tried build hybris-hal, I got: https://paste.ubuntu.com/p/npcFnDPnH7/ | 16:11 |
T42 | <Spidey24Z> @elros34 that's weird I remove init.extraenv.armeabi-v7a.rc now boot ui but no WiFi no camera no sim no sound | 17:43 |
T42 | <b100dian> @edp_17 sounds like a full rebuild is needed. But to the point, if you dont have vndk, I _thought_ things should actually be simpler linker wise..:( | 18:04 |
T42 | <Spidey24Z> @elros34 logcat after boot successful : https://irc.thaodan.de/.imgstore/709e6dc8/logcat.txt | 18:21 |
T42 | <edp_17> I am happy to do a full rebuild but don't know what to change in local repos to get that vndk support. On device I have created an empty ld.config.29.txt in /system/etc/ then droid-hal-early-init.sh bind mounted the one from /usr/libexec/droid-hybris/* but it didn't solve the issue. (re @b100dian: @edp_17 sounds like ...) | 19:19 |
T42 | <elros34> @Spidey24Z what was in this rc file which gives you idea to remove it? | 19:50 |
T42 | <Spidey24Z> export 32bit LD_LIBRARY_PATH | 19:53 |
T42 | <Spidey24Z> This file somehow make droid hal failed to initialize property area | 19:59 |
T42 | <b100dian> @Miklos can you try editing vndk_lite on device? Before making a full rebuild with full vndk enabled, yoi might want to pursue other ld.config files changes | 20:02 |
T42 | <elros34> @Spidey24Z how is that possible if your previous logs had failing lipstick | 20:03 |
T42 | <Spidey24Z> also now if I add armeabi-v7a lipstick fail | 20:04 |
T42 | <elros34> How your ld.config.txt looks like? Is it only ld.config*.txt you have on device? | 20:31 |
T42 | <elros34> @edp_17 ^ | 20:32 |
T42 | <edp_17> @elros34 : These are the ld.config* files on device: https://paste.ubuntu.com/p/W2dR34VhnF/ | 21:29 |
T42 | <edp_17> and here is the content of /system/etc/ld.config.txt: https://paste.ubuntu.com/p/rWbk3JBYCm/ | 21:29 |
T42 | <elros34> try /system/etc/swcodec/ld.config.txt | 21:30 |
T42 | <edp_17> The other one in /usr/libexec/droid-hybris/system/etc/ld.config.txt is a clone of /system/etc/ld.config.txt that I manually created today. | 21:30 |
T42 | <edp_17> /system/etc/swcodec/ld.config.txt: https://paste.ubuntu.com/p/BmzgrRFV8d/ | 21:31 |
T42 | <elros34> yeah in swcodec section | 21:32 |
T42 | <edp_17> What's in there? | 21:34 |
T42 | <elros34> add libexec path | 21:35 |
T42 | <edp_17> Okay. | 21:35 |
T42 | <elros34> if it's not enough then "namespace.media.permitted.paths += ...." in ld.config.txt | 21:41 |
T42 | <edp_17> Yeah, :) wasn't enough: https://paste.ubuntu.com/p/34NMd9wn4C/ | 21:46 |
T42 | <Spidey24Z> @elros34 log with init.extraenv.armeabi-v7a.rc added https://pastebin.ubuntu.com/p/NYgTnjvbdm/ | 21:53 |
T42 | <Spidey24Z> without init.extraenv.armeabi-v7a.rc https://pastebin.ubuntu.com/p/pSyd4z7rgk/ | 21:53 |
T42 | <edp_17> @elros34 : Both, "namespace.default.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" and "namespace.media.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" have added into /system/etc/swcodec/ld.config.txt, but still the same error is reported. | 21:53 |
T42 | <elros34> I meant /system/etc/ld.config.txt | 21:54 |
T42 | <edp_17> Sorry, wasn't clear. So, "namespace.default.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" -> /system/etc/swcodec/ld.config.txt and "namespace.media.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" -> /system/etc/ld.config.txt | 21:56 |
T42 | <edp_17> or both into /system/etc/ld.config.txt at [swcodec] section? | 21:56 |
T42 | <elros34> namespace.media.permitted.paths or/and namespace.media.link.default.shared_libs in /system/etc/ld.config.txt | 21:58 |
T42 | <edp_17> Thanks. Will try this. | 22:04 |
T42 | <edp_17> Both added into /system/etc/ld.config.txt but still the same error appear. :( | 22:06 |
T42 | <edp_17> namespace.media.permitted.paths += /usr/libexec/droid-hybris/system/${LIB} | 22:06 |
T42 | <edp_17> namespace.media.link.default.shared_libs += /usr/libexec/droid-hybris/system/${LIB} | 22:06 |
T42 | <edp_17> Thanks for your help today, I've to go now. Gnite! | 22:07 |
T42 | <elros34> shared_libs is for libs not paths, you hhave severall examples in that file | 22:11 |
T42 | <edp_17> Okay, will try again when I am not this tired. :) Thanks again. | 22:14 |
T42 | <edp_17> So basically every lib are reported in logcat I have to add one by one into namespace.media.link.default.shared_libs. Right? | 22:20 |
T42 | <elros34> I have only noticed libcutils.so in error, is there anything else there? | 22:24 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!