*** Ischwitch is now known as Ingvix | 06:34 | |
*** Daaanct12 is now known as Danct12 | 12:56 | |
T42 | <dani551> Hey guys, I need some help trying to port SfOS to Samsung beyond1lte (Android 10). | 15:31 |
---|---|---|
T42 | <dani551> I have followed the HADK and now at this step when I run `make -j$(nproc --all) hybris-hal droidmedia`, I get the following errors. I tried by setting the `ALLOW_MISSING_DEPENDENCIES=true` and without it too. | 15:31 |
T42 | <dani551> Please see my log output here: https://www.toptal.com/developers/hastebin/folocuceso.yaml | 15:31 |
Thaodan | @dani551: You can skip audiofingerglue it is not used anymore on newer Android version. | 15:34 |
Thaodan | s | 15:34 |
Thaodan | Make sure you have enough ram for make -j$(nproc --all) | 15:36 |
T42 | <adampigg> i dont ... and ive 16gb | 15:37 |
T42 | <TheVancedGamer> how many cores? | 15:38 |
T42 | <Mister_Magister> should be enough | 15:38 |
Thaodan | 16gb isn't enough if you have more than 16 cores I'd say | 15:38 |
T42 | <TheVancedGamer> I usually do this: | 15:38 |
T42 | <TheVancedGamer> number of cores + 2 additional if you have more than 4 cores | 15:38 |
T42 | <Mister_Magister> don't do that | 15:39 |
T42 | <TheVancedGamer> I said cores, not threads | 15:39 |
T42 | <adampigg> even if i try and build hybris-hal with nice, and -j2, it kills my laptop! | 15:39 |
T42 | <Mister_Magister> the hell | 15:39 |
T42 | <TheVancedGamer> sad, I have 4GB of RAM | 15:39 |
T42 | <TheVancedGamer> -j2 works fine | 15:39 |
T42 | <adampigg> ive a 4core 6thgen core i5 | 15:39 |
T42 | <Mister_Magister> wait, new build system uses ninja | 15:39 |
Thaodan | I have 32 cores times 2 (smt) if I do nproc --all with 32gb of ram it kills my system. | 15:39 |
T42 | <Mister_Magister> and ninja ignores -j | 15:39 |
T42 | <Mister_Magister> it just goes with nproc --all | 15:40 |
Thaodan | Ninja also has -j | 15:40 |
T42 | <Mister_Magister> yes but he's using make | 15:40 |
T42 | <Mister_Magister> not ninja directly | 15:40 |
T42 | <Mister_Magister> i've ran into this issue | 15:40 |
Thaodan | Also the make -> ninja converter that google uses consumes a hell lot of memory | 15:41 |
T42 | <TheVancedGamer> Google should use something else than that converter | 15:41 |
T42 | <TheVancedGamer> or make it more efficient | 15:41 |
Thaodan | I'm getting extra 32gb of ram just for stuff like this and llvm | 15:41 |
T42 | <dani551> Thanks | 15:53 |
T42 | <dani551> But I did not manually include audioflinger glue, so please tell me how I am to remove it? (re @SailfishFreenodeIRCBridgeBot: <Thaodan>@dani551: Y...) | 15:53 |
T42 | <dani551> kati? Is that what hogs the mem like no tomorrow? (re @TheVancedGamer: Google should use so...) | 15:54 |
T42 | <TheVancedGamer> kati and ninja | 15:54 |
Thaodan | yes | 15:54 |
Thaodan | Kati | 15:54 |
Thaodan | but it only runs once unless the makefiles don't change | 15:55 |
T42 | <dani551> So Thaodan, how should I remove the audioflinger glue? | 15:57 |
Thaodan | Did you ran it exactly like this `make -j$(nproc --all) hybris-hal droidmedia`? Unless you also pass audiofingerglue it will not it. | 15:59 |
Thaodan | ah the error is from this: hardware/samsung/hidl/keymaster/Android.mk: error: "android.hardware.keymaster@4.0-service.samsung (EXECUTABLES android-arm64) missing libskeymaster4device (SHARED_LIBRARIES android-arm64)" | 15:59 |
Thaodan | /bin/bash: external/audioflingerglue/detect_build_targets.sh: No such file or directory is harmless | 16:00 |
T42 | <dani551> yeah, I ran it exactly like that (apart from the no of threads part) (re @SailfishFreenodeIRCBridgeBot: <Thaodan>Did you ran...) | 16:01 |
T42 | <dani551> shall I comment out the `android.hardware.keymaster@4.0` related parts in `hardware/samsung/hidl/keymaster/Android.mk`? | 16:04 |
T42 | <dani551> or shall I clone https://github.com/mer-hybris/audioflingerglue to `external/audioflingerglue`? | 16:09 |
Thaodan | you need to fix the keymaster errors | 16:32 |
Thaodan | /bin/bash: external/audioflingerglue/detect_build_targets.sh: No such file or directory is harmless it just tries to detect if you're would use it | 16:34 |
T42 | <dani551> damn, guess I need to clone the `audioflingerglue` and `av` (re @SailfishFreenodeIRCBridgeBot: <Thaodan>you need to...) | 16:39 |
Thaodan | no | 16:39 |
T42 | <dani551> that fixes those errors, but I keep getting a bunch of errors like `error: cannot assign to readonly variable: PLATFORM_BASE_OS` | 16:39 |
Thaodan | you need to fix the keymaster error | 16:40 |
T42 | <dani551> damn haha (re @SailfishFreenodeIRCBridgeBot: <Thaodan>you need to...) | 16:40 |
T42 | <dani551> ok | 16:40 |
T42 | <dani551> lets see if I can do that | 16:40 |
T42 | <dani551> I have been grinding my two braincells together on this since then and I cannot seem to understand this completely (re @SailfishFreenodeIRCBridgeBot: <Thaodan>you need to...) | 17:06 |
T42 | <elros34> @dani551 did you apply hybris patches before first make attempt? | 17:28 |
T42 | <dani551> I followed the steps exactly as in the HADK, I did not do anything else (I dont think hybris patches are mentioned there?), although the kernel I am using has been used with UT and droidian (re @elros34: @dani551 did you app...) | 17:33 |
T42 | <dani551> so I am not aware of any patches that are needed outside of the kernel (re @dani551: I followed the steps...) | 17:39 |
T42 | <dani551> do you mean this? https://github.com/mer-hybris/hybris-patches | 17:44 |
Thaodan | The kernel could become an issue later if not checked. However right not it somehow tries to build keymaster | 17:45 |
Thaodan | dani551: https://www.reddit.com/r/LineageOS/comments/ow5r75/help_lineageos_on_galaxy_note_10/ | 17:53 |
Thaodan | You need to have the blobs extracted | 17:53 |
piggz | had to force reboot after another attempt at building android side :/ | 17:53 |
piggz | on android 10, i could wrap make with nice ... on android 11, the stop you using make directly so that doesnt work! | 17:54 |
T42 | <dani551> I see, I am gonna try to replace the vendor then | 17:54 |
T42 | <dani551> thanks - will try this tomorrow, getting a bit late here now (re @SailfishFreenodeIRCBridgeBot: <Thaodan>You need to...) | 17:54 |
T42 | <nephros> Anyone know what "rich-core" is or does? | 18:00 |
T42 | <nephros> When I run minimer I get this in logcat: | 18:01 |
T42 | <nephros> | 18:01 |
T42 | <nephros> root[4438]: rich-core: arguments: --pid=4127 --signal=11 --name=qmlscene | 18:01 |
T42 | <nephros> root[4441]: rich-core: privacy notice not accepted - not dumping | 18:01 |
T42 | <b100dian> A core dump/crash reporyer I think | 18:09 |
T42 | <b100dian> Do you also have /tombstones | 18:10 |
T42 | <nephros> No /tombstones, but /bugreports | 18:10 |
T42 | <b100dian> But the crash has to be somewhere, maybe in logcat? | 18:20 |
T42 | <nephros> It appears to catch the qmlscene segfault (signal 11 ;) ) and logs that message. probably debuggerd which is running. | 18:21 |
T42 | <elros34> @dani551 unfortunately hadk pdf do not contains important informations so you need to read github.com/mer-hybris/hadk-faq hybris-<x> section in the middle of build. Next you need to read also collabedit.com/kr9xx | 18:25 |
T42 | <nephros> are minimediaservice and minisfservice supposed to be 32-bit applications on an aarch64 (hybris) userland? | 18:29 |
T42 | <elros34> AFAIK it's device specific | 18:32 |
T42 | <nephros> Ah, detect_build_targets.sh in droidmedia. I see. | 18:34 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!