Wednesday, 2023-05-10

T42<MaxRegnerasif> Hi Guys, ist there a Port for Xperia 10 iv? Thanks09:10
CaffeineHeya peoples, I'm currently porting the Pixel XL and I've hit a roadblock. I'm at "5.4 Building Relevant Bits of your Android base" in the HADK documentation where I'm currently building hybris-hal and droidmedia. I run "make -j$(nproc --all) hybris-hal droidmedia" and basically it gives me an error saying this "FAILED: ninja: 'ueventd.qcom.rc', needed by 'hybris-hal', missing and no known rule to make it".21:48
CaffeineIt's looking for a file that currently doesn't exist cause it's been renamed by the lineage porters21:49
malare you sure you have all needed device repos and correct branches of those21:49
CaffeineLineage-18.1 device, and kernel21:50
malcan you link to the device repo21:50
CaffeineOf course, give me a second please21:50
maldid you apply patches?21:50
CaffeineI did.21:50
Caffeinethese are the repos in question21:51
malyeah, seems those are only ones needed21:51
Caffeine(again, both using the "lineage-18.1" branch21:51
CaffeineVery strange then, it's still looking for "ueventd.qcom.rc"21:52
CaffeineThis is the renamed file21:53
CaffeineI renamed it back to see what would happen, but it still gives me the same thing21:53
CaffeineThe annoying thing is is that it's not telling me where it's looking for it.21:54
malhmm, do you have vendor repo? assuming your device needs one21:54
CaffeineOh! I have an entire story to tell you about that.. :skull:21:55
CaffeineIt has a script called "" which extracts all of the vendor files from a device.21:56
CaffeineWhich is what I did obviously21:56
Caffeinebut it didn't pull a lot of them21:56
Caffeinegive me a second21:56
malusually easier to use
CaffeineI was unaware of this, thanks for showing me that.21:57
CaffeineI'll save it21:57
malthemuppets is the usual place to find vendor repos21:57
T42<elros34> maybe this line breaks it:
CaffeineI feel like I've seen it before21:57
CaffeineOh wow! That was quick21:58
malyeah, change that to ueventd.commom.rc21:58
CaffeineI'll see what happens if I change that21:58
CaffeineWill I have to reclone?21:58
maljust change it in your local copy and then try building21:59
Caffeinelets see if it works22:00
CaffeineFAILED: ninja: 'ueventd.common.rc', needed by 'hybris-hal', missing and no known rule to make it22:02
Caffeinedamn :P22:02
CaffeineI need to read this file again22:02
malyou said you renamed the file22:03
CaffeineI changed it back before compiling22:03
malgrep for ueventd in device repo22:03
CaffeineThis'll take a while22:05
CaffeineI don't use grep often, is it just "grep ueventd"?22:07
Caffeinefound it22:09
T42<elros34> more like 'grep -rn ueventd $ANDROID_ROOT/device/'22:09
CaffeineThis is what it showed up with22:10
T42<elros34> you were supposed to change: += ueventd.qcom.rc to > 'ueventd.common.rc22:12
CaffeineOh this is a seperate one that I cloned22:12
CaffeineI should've done the one in hadk22:12
Caffeinemy bad22:13
T42<elros34> so it still complain now when you make hybris-hal?22:15
CaffeineIt does22:16
T42<elros34> so remove that line and let's see what will blow up22:16
CaffeineThat's an idea.22:16
CaffeineI started a clean build before you sent that, the build didn't get far before getting to the same point again. Worth a try.22:18
CaffeineWell, it hasn't blown up so far22:19
CaffeineFAILED: ninja: 'fstab.common', needed by 'hybris-hal', missing and no known rule to make it22:19
CaffeineAlright, something different22:20
CaffeineIt's in the root of the marlin device folder22:22
malCaffeine: I think maybe remove the two lines from base.mk22:28
malbecause those end up in PRODUCT_PACKAGES list and that is checked in hybris-boot Android.mk22:28
CaffeineOkay, remove fstab.common?22:29
Caffeineall good, thanks22:30
CaffeineI feel like this is going to end up being a lot of removing lines22:30
CaffeineFAILED: ninja: 'vendor/google/marlin/proprietary/bin/', needed by 'out/target/product/marlin/system/bin/', missing and no known rule to make22:30
maljust be sure those files really still end up in out22:30
malso clone the repo I linked to vendor/google22:31
malfor that latest issue22:31
CaffeineWhere should I clone it to22:32
CaffeineOh I see22:33
T42<elros34> look at repo url and error then try to guess :)22:33
CaffeineJust gotta wait for it to clone lol22:34
Caffeinethen I think I put the marlin folder where the old one was in hadk/vendor/google/marlin22:35
T42<elros34> I have impression that marlin was one of the first problematic device with very early bootloop because of broken tty kthread commit in kernel and I still see this commit in lineage-18.. after all these years22:36
CaffeineOh dear22:36
CaffeineThis shouldn't deter me, right22:36
T42<elros34> not at all. Didn't you find some old sailfish image or nobody ever released it?22:37
CaffeineI didn't find one22:37
CaffeineSo I'm going to pick it up, hopefully.22:37
CaffeineI'm new to porting Sailfish you see, so I'm only just getting my start22:37
CaffeineI've ported PostmarketOS to one of my phones, but this is a lot different.22:38
CaffeineAlso, may I just say thanks for the help so far. I very much appreciate it :)22:42
T42<elros34> "move tty_port workqueue to be a kthread " Maybe also "tty: add tty_port_set_policy function" for clean git revert22:42
CaffeineWhat does this mean22:44
T42<elros34> revert it otherwise you will have bootloop without any logs except via uart22:45
CaffeineOh, okay22:46
CaffeineFAILED: ninja: 'libhwc2_compat_layer', needed by 'hybris-hal', missing and no known rule to make it22:48
Caffeinethis is weird22:48
CaffeineI can't seem to find "libgwc2_compat_layer"22:48
T42<elros34> you didn't clone libhybris according to hadk-faq22:49
Caffeinebut it's here22:49
Caffeineoh well22:49
Caffeinehow do I mess that up!22:50
CaffeineI'll do that now!22:51
T42<elros34> more sketchy notes to read:
CaffeineMan, I messed up again22:57
CaffeineI cloned master and realized it wasn't the android11 branch22:58
Caffeinefatal: previous rebase directory .git/rebase-apply still exists but mbox given.22:58
Caffeineand I deleted it and cloned it again22:58
Caffeine(should've switched branch)22:58
malwhat are you talking about android11 branch?22:58
maluse master22:59
malandroid11 is some old leftover from development22:59
malI should cleanup the old branches22:59
Caffeinemy tree is a mess22:59
CaffeineI hate this22:59
T42<elros34> hadk is not walk in the park:)23:00
CaffeineI will survive23:01
CaffeineI changed branch23:01
Caffeineand it's doing it!23:01
malI think I will cleanup the libhybris branches tomorrow, found several old ones23:01
T42<elros34> but what are you patching? you only needed to clone libhybris23:02
malyeah, libhybris should just work23:02
maljust recursively clone master branch from
Caffeineoh well, then this is just gonna be a messy thing then *shrug*23:03
Caffeineit's compiling now, so I'm not complaining23:03
CaffeineOh I didn't revert that thing23:03
T42<elros34> don't worry you will build kernel many times:)23:04
CaffeineWell at least I ain't hurting anyone else by hurting myself23:05
Caffeine> Maybe also "tty: add tty_port_set_policy function" for clean git revert23:10
Caffeineso try reverting to this commit?23:10
Caffeine#### build completed successfully (16:30 (mm:ss)) ####23:17
CaffeineLets goo!23:17
T42<elros34> IIRC yes revert these 2  commits23:17
Caffeinehow do I revert two :thinking:23:17
Caffeinewait, how do I do that when it's using repo?23:19
T42<elros34> git revert <commit hash>23:25
CaffeineOkay, reverted both23:27
CaffeineI think this worked?23:27
Caffeineyeah it did23:28
CaffeineI'll just recompile the kernel rq23:28
CaffeineOops, forgot to fix the merge conflict :sob:23:31

Generated by 2.17.1 by Marius Gedminas - find it at!