**** BEGIN LOGGING AT Sat Aug 03 02:59:57 2019 Aug 03 16:53:22 Hi guys! Anyone here that has an idea as how I shoud proceed? I'm looking into halium for Sony Z3 Tablet Compact and I got stuck at a relatively early point, this one: https://docs.halium.org/en/latest/porting/get-sources.html#sync Aug 03 16:54:31 Whenever I try to run setup I get fatal: remove-project element specifies non-existent project: android_system_sepolicy Aug 03 16:55:42 I tried deleting that part of the .mk file, but then I get GitError: remote lnj does not have refs/heads/halium-7.1-legacy Aug 03 16:55:50 Any help appreciated Aug 03 16:56:49 show your full manifest (pastebin/similar) Aug 03 16:56:56 Will do Aug 03 16:59:02 My version is here: https://pastebin.com/6YTrEF13 Aug 03 16:59:29 The original only has 2 lines of difference: https://github.com/Halium/halium-devices/blob/halium-7.1/manifests/sony_scorpion.xml Aug 03 17:04:01 I took a look and the branches referenced exist, so no idea whats up Aug 03 17:14:11 your remote `github.com/beidl` is gone, idk how you'd deal with that tbh Aug 03 17:15:04 Oh yeah, I changed that later too, I found the user, but the error is not aobut that really Aug 03 17:15:14 lnj still exists on gitlab Aug 03 17:17:26 Sorry, just coming here was pretty much a last effort, as I have been trying for quite some time now, and what I sent you is just the latest iteration so I can peresnt it better than with a completely messed up manifest Aug 03 17:17:50 `beidl` != `lnj`, you may have to go hunting for that as an account under the same name is not registred on gitlab Aug 03 17:19:39 I know, lnj is a differnet user and the error is to with him, not beidl, btw beidl's new acc is here https://github.com/fredldotme Aug 03 17:20:10 For him I can just change beidl to fredldotme, but not for lnj Aug 03 17:21:19 If I delete some lines form the manifest I can reproduce this error (GitError: remote lnj does not have refs/heads/halium-7.1-legacy) with sony instead of lnj and master instead of halium-7.1-legacy Aug 03 17:27:56 maybe attempt manual clone in the root of your device source tree: `git clone https://gitlab.com/lnj/device-sony-common.git -b halium-7.1-legacy device/sony/common/` Aug 03 17:29:10 I'll try, but where is that exactly? I'm fucking stupid Aug 03 17:29:22 halium/device? Aug 03 17:30:10 sorry, worded it bad: `cd ~/halium` assuming you followed the instructions, and run it there Aug 03 17:30:22 will do Aug 03 17:33:38 Great, that worked, now I'll just have to do this for every single error that is the same as this one :) Aug 03 17:33:49 So most stuff with sony Aug 03 17:37:53 wonder if that has something to do with it using the "git://" protocol instead of "https://" for some of the remotes, or the name parts of gitlab projects not ending in ".git" as I don't know exactly how repo / older git versions handle that Aug 03 17:38:21 Me niether, but it's worth a try instead of cloning every single thing by hand Aug 03 17:43:44 well, changing them out for https worked, wow, now I have another problem it seems... Aug 03 17:44:34 If you would stil lbe willing to help Aug 03 17:44:35 https://pastebin.com/6SzeXjsv Aug 03 17:45:03 This device does have a lineage OS build, just not one strictly official Aug 03 17:45:39 So any idea where to change what to the correct repository for the source? Aug 03 17:45:56 or even what file I'm looking for Aug 03 17:46:56 Does your device directory have a file similar to "full_scorpion.sh" it would be in the device repo Aug 03 17:47:40 Doesn't seem like it Aug 03 17:47:47 @Deathmist1337 [maybe attempt manual clone in the root of your device source tree: git clone htt …], Hmmm … I will try it Aug 03 17:48:57 @Tygerpro basically these are all the .sh files I have in my deivce folderhttps://pastebin.com/qXw0ifG8 Aug 03 17:49:40 try `breakfast scorpion_windy` Aug 03 17:50:00 The result is basically the same Aug 03 17:50:17 just with scorpion_windy instead of just scoprion Aug 03 17:51:36 ^^ Aug 03 17:55:39 you'll likely have to take a look in some makefiles and shell scripts to find the building codename for your device, try e.g. `egrep -rnw ~/halium/device -e "(TARGET_DEVICE|PRODUCT_DEVICE)"` and see if any of them work Aug 03 17:56:59 I think the vendorsetup.sh files should specify what the codename is Aug 03 18:01:14 That had the solution, nice, now I'll justhave to figure out where the kernel config is Aug 03 18:01:41 since the command in the help fo course doesn't work :D Aug 03 18:04:42 `grep -rnw ~/halium/device -e TARGET_KERNEL_CONFIG` ^^ Aug 03 18:10:41 Thanks :) thats a lot of errors and warning though, I'll start going through them, thanks for all the help, I'll try not to be back with more problems but I'm a bit of a noob, so I might be back Aug 03 18:12:26 It should give you the file name (without the extention) first time you do mka Aug 03 18:13:14 Good practice is to try and build without modification first, ensures you got everything and ensures it even builds Aug 03 18:16:17 Will do that than Aug 03 18:20:10 hmm, I get this error on trying to make hybris-boot Aug 03 18:20:11 ninja: error: '/home/kuvesz/halium/out/target/product/scorpion_windy/kernel', needed by '/home/kuvesz/halium/out/target/product/scorpion_windy/obj/ROOT/hybris-boot_intermediates/hybris-boot.img', missing and no known rule to make it Aug 03 18:20:43 how does that happen? the mka mkbootimg worked just fine Aug 03 18:28:57 you sure you sourced envsetup.sh and ran breakfast before? seems ninja doesn't know how to build your kernel Aug 03 18:29:27 I'll try again, see what happens Aug 03 18:31:52 Kuvesz have you fixed the issue already? you have to pull the newest halium-devices repo and setup again Aug 03 18:33:02 seems like it Aug 03 18:36:26 @fredldotme Sorry I don't have notifications on for my irc client Aug 03 18:36:58 I'm trying to fix it and it seems to be working, I remembered, that for some reason at one point I switched for using scorpion to using scorpion_windy Aug 03 18:37:25 so I restarted from the beginning and now hybris_boot seems to be making Aug 03 18:37:43 Kuvesz: was about to tell you :p be sure to update your manifest too Aug 03 18:38:38 Deathmist1337 updated it, well dewleted the sepolicy part and reran it Aug 03 18:39:39 I see now, the scorpion manifest pulls from my repos. A PR would be nifty :) Aug 03 18:40:38 on the other hand, the entries in the manifest shouldn't be needed anymore, I've merged the sepolicy changes into Halium Aug 03 18:41:42 @fredldotme I have close to zero idea about how git works (I'm basically just tinkering about), but if that pull request is something I shoud do than I'll loook into how to go about that Aug 03 18:42:21 it's good to learn git anyway, it's a good tool for multiple usecases other than software development Aug 03 18:43:17 fredldotme, yea, I know, I know the basics, but really just the basics, but since those lines are not needed wouldn't it be easier to just delete them? Aug 03 18:46:07 exactly Aug 03 18:47:45 Fml, system image build failed... Aug 03 18:47:47 flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed. Aug 03 18:48:21 oh I'll just make a pastebin, I have no idea whats going on here Aug 03 18:48:44 Check out the docs — there's a fix for errors with Flex Aug 03 18:48:50 Oh nice, thanks Aug 03 18:48:57 :D Aug 03 19:05:52 Here we go again... Aug 03 19:06:03 https://pastebin.com/CP9WJnZz Aug 03 19:06:08 any ideas? Aug 03 19:06:27 I tried setting it to python 2.7, didn't really help Aug 03 19:06:36 what Aug 03 19:12:08 kumarayush2104 I tried changing the header of the file I get the error to use python2.7 instead of just pythin which defaults to python 3 Aug 03 19:12:58 It's possible that the build system is running it instead Aug 03 19:13:03 I'd recommend the virtualenv route Aug 03 19:14:17 especially on Arch I have a python2 virtualenv setup, refer to https://wiki.archlinux.org/index.php/Python/Virtual_environment#virtualenvwrapper Aug 03 19:14:20 UniversalSuperBox, could you elaborate on that? Aug 03 19:14:30 oh thanks Aug 03 19:15:13 @Nightwal [Sorry for the dumb question], there are no dumb questions is what father always used to say Aug 03 20:46:00 Okay, so I almost managed to build my systme image ( got to 50%), but I ran into another error that I'm not sure what to do with: https://pastebin.com/aA4W3jLc Aug 03 20:46:22 If anyone has any idea I would be grateful Aug 03 20:50:04 Most likely I'm just missing something from my computer Aug 03 20:59:54 try replacing `RMNET_NETLINK_NEW_VND_WITH_NAME` with `RMNET_NETLINK_NEW_VND_WITH_PREFIX` in that `librmnetctl.c` file as it seems thats what my device has Aug 03 21:17:57 Yea, tried that, and it seems to have worked Aug 03 21:18:04 Just ofrgot to wirte here Aug 03 21:18:34 Now the only thing standing between me and the reference rootfs is the install script, sigh Aug 03 21:19:15 yeah I had issues with that too, it really sucks bad :/ try https://gitlab.com/JBBgameich/halium-install instead as it worked ok for me Aug 03 21:19:28 oh wait, that's the wrong one isn't it? Aug 03 21:19:35 That's the one Aug 03 21:19:38 I'm trying that right now Aug 03 21:19:44 oh, was thinking of something else then, cool :) Aug 03 21:19:48 The original dodnt work Aug 03 21:20:01 MEaning the one on github in halium scripts repo Aug 03 21:20:35 also I hope I'll be ok if I flash boot after system, since if I flash that first I can't get into recovery Aug 03 21:23:06 should be a-ok Aug 03 21:42:09 well shit Aug 03 21:42:19 I only get a loop of the sony logo Aug 03 21:42:43 interestingly enouh if I dont flash boot it just loads into lineage os Aug 03 21:45:56 yeah that's what is meant to happen, it doesn't touch your android partitions at all, iirc it uses another image for the actual rootfs and does a switch-root to it in early init when you use the hybris-boot image Aug 03 21:46:40 about bootloop, you could got to recovery (crucially without shutting down!) when it's restarting to see last_kmsg in /proc or the kernel_ramoops on newer devices Aug 03 21:48:25 Ah no, I can't get into there, I can get into fastboot and thats it Aug 03 21:51:01 check your `.config` for any major errors using the kernel checker, something might be not set properly there / requires more options to be set due to dependencies Aug 03 21:51:29 yea, thats what I'm guessing, I'll take a look Aug 03 22:30:02 okay so what the actual fuck. I somehow managed to get a boot to gecko logo appear? Aug 03 22:32:45 well that's interesting 😂 didn't get this far myself so cannot comment on that, but do you have telnet yet? Aug 03 22:33:12 nope, and the boot ot gecko logo was because I flashed the wrong boot image, opps Aug 03 22:34:12 r.i.p, well I think I'll go as it's nearing 2 AM here, gn :p Aug 03 22:34:25 yea its almost 1 here, gn :) Aug 03 22:56:54 Okay, well I'm gonna go sleep too, if meanwhile anyone has an idea as to why I get a bootloop (can't get into recovery, not even hybris-recovery), can't get kernel logs, since I nreed to restart in fastboot to flash a normal boot image so I can get into even recovery. I don't get telnet either, maybe there is a way to get that at least for sure? Aug 03 23:11:30 Check your kernel defconfig, most bootloops are gonna be from that **** BEGIN LOGGING AT Sun Aug 04 01:59:21 2019 Aug 04 02:18:11 Nate Edwards was added by: Nate Edwards Aug 04 02:23:27 Trying to build mkbootimg for Nexus6 got "multiple rules generate" error from ninja https://paste.ubuntu.com/p/FvjS6VV6Hb/ Aug 04 02:24:41 Sorry screwed up link for my previous post https://paste.ubuntu.com/p/FvJS6VV6Hb/ **** ENDING LOGGING AT Sun Aug 04 02:59:57 2019