Friday, 2019-12-13

T42<BusterBg_18> DHI does finish, gets killed tho00:01
r0kk3rzshow journal00:03
T42<BusterBg_18> And my strace of hwcomposer00:16
T42<BusterBg_18> I notice enter in a loop of nanosleep00:16
r0kk3rzsort through those init errors before going anywhere near hwcomposer00:20
T42<BusterBg_18> I hate to be that kind of guy but can you help me? This is proving to be a lot harder than hybris-14.100:44
T42<edp_17> Just in case somebody would like to check. Here is my 'systemctl list-units -t service --all':
T42<edp_17> It is interesting because I did the 'systemctl list-unit-files' and it says system.mount state is disabled.00:49
T42<edp_17> How can I change this to enabled?00:49
r0kk3rzsystemctl enable system00:52
r0kk3rzbut thats fairly weird00:52
T42<edp_17> I have loads of them disabled.00:53
r0kk3rzdouble check your fixup mountpoints then00:53
T42<edp_17> And the 'systemctl enable system' doesn't return the prompt. Seemingly it cannot enable the system service.00:54
T42<edp_17> yeah, the droid-hal-init.service is also disabled.00:55
T42<edp_17> The previous output of systemctl list-units -t service --all was not the final because I deleted all *.mount files and only kept the system.mount. (As Elros suggested.) As it didn't make any difference and /system is not mounted I put all .mount files back. Here is the systemctl list-units -t service --all:
T42<edp_17> and the systemctl list-unit-files:
T42<edp_17> dbus.service is failed. When I do a 'systemctl status sshd.service', I get:
r0kk3rzi think you should rebuild your image and go from there01:41
r0kk3rzmake sure you're using the right env vars, since you also did some nexus5 stuff01:42
T42<edp_17> You are probably right. I have just deleted and created from scratch the rpm, hybris/droid-configs and hybris/droid-hal-version-herolte sub modules.01:51
T42<edp_17> Hope this will be enough to rebuild an image that boots up.01:51
r0kk3rzit wont, but with any luck it might break somewhere else01:52
r0kk3rzfor good measure take note of all the steps you do01:52
T42<edp_17> I pushed these new sub modules into github. As the hadk suggested. This also fixed the broken dhd url there that I mentioned to Elros yesterday.01:54
r0kk3rzyes double check those things01:54
r0kk3rzwhats your git repo?01:54
T42<edp_17> Now, there is no copied over blobs from hammerhead. Only the pure code that hadk added. So, fingers crossed.01:55
T42<edp_17> These are the repos:01:56
T42<edp_17> The new stuff I have done are in the master. (There is an edp17 branch but ignore that!)01:56
r0kk3rzi would make new repos using the method in the hadk rather than forking old ones01:57
T42<edp_17> I tried but when I wanted to push, git was moaning about the repo didn't exist. So I decided to fork an existing one and push my stuff into it. (I had to start learning git too, that is too kind of new to me.)01:59
T42<edp_17> Yeah, so many things I have already learnt so far during my hammerhead build and much-much-much more still to learn to complete this S7 then my planned next one. :)02:01
r0kk3rzyeah git has its own learning curve02:02
T42<edp_17> :) I feel it on my own skin, if you know how I mean. :)02:03
T42<edp_17> To avoid confusion, I have deleted the edp17 branches from those repos.02:04
T42<edp_17> The packaging is running... Fingers crossed.02:10
T42<edp_17> Do you know whether the S7 is a Broadcomm device?02:11
r0kk3rzfor bluetooth? no idea02:23
T42<edp_17> The reason I am asking is the hadk-faq.
T42<edp_17> I am not sure whether I need to apply these or not.02:24
r0kk3rzignore that for now02:24
T42<edp_17> Well, currently I am far from this, but hopefully I'll get there.02:25
T42<edp_17> Yeah, I know. I am just forward thinking.02:25
T42<edp_17> You know the hope dies out the last. :)02:25
T42<edp_17> The build has finished without error. Now I am pushing to the device, flashing and trying to boot.02:27
r0kk3rzlooks like it does indeed have a broadcomm bt interface02:28
T42<edp_17> Thank you for checking. How did you look for that? I googled it but didn't find. :(02:29
r0kk3rzthings like that will be part of the android device repos02:31
r0kk3rztheres configs and make files and all kinds of clues in there as to what the device actually has02:32
T42<edp_17> I see. Thanks.02:32
T42<edp_17> Now I flashed this new one to my S7 and it is doing the same thing. Stuck on Samsung logo, no mac, no IP, no /system.02:33
T42<edp_17> 😭02:33
T42<birdzhang> you really shoule check fixup mountpoint02:34
T42<birdzhang> ^should02:34
T42<edp_17> Hi Bird Zhang.02:34
T42<birdzhang> boot to android, and do HADK 5.3 part02:36
T42<edp_17> I have added the necessary mount points into hybrys-boot/fixup-mountpoints but I agree, it is time to double check those. 👍02:41
T42<edp_17> Thanks.02:41
r0kk3rzshow us what you got02:41
T42<edp_17> This is what I have for herolte in fuxup-mountpoints:
T42<edp_17> It seems right to me. The /system is on sda14 indeed.02:43
r0kk3rzcheck the first part as well02:45
T42<edp_17> first part?02:45
r0kk3rzdo you know what this script does?02:46
T42<edp_17> No, not really.02:46
r0kk3rzits a sed command, that replaces the first string with the second one02:46
r0kk3rzin a target file02:47
r0kk3rzso the block/platform/whatsit .etc needs to match02:47
T42<edp_17> I see.02:50
T42<birdzhang> can you manually mount /system ?02:51
T42<edp_17> Now I booted into the android base and tried all 3 commands in the hadk 5.3 part to get the list, but none of them works.02:51
T42<edp_17> I get permission denied for ls /dev/02:52
T42<edp_17> Yes I could manually mount the /system. I tried.02:54
T42<edp_17> f... that command from hadk I need to run on the DEVICE not on host. Aaaaa02:55
r0kk3rzyes that helps02:56
T42<birdzhang> so, add /lib/systemd/system/system.mount02:56
T42<birdzhang> maybe need a symbolink to /lib/systemd/system/
T42<edp_17> I tried those on the device. All of them say No such file or directory. The 'ls -l /dev/' gives me permission denied. On the device too. Stupid android. 😡03:00
T42<nitin_3> enter su before doing it03:01
T42<edp_17> when I enter su: '/system/bin/sh: si: not found'03:01
T42<edp_17> In the developer options for the root access I only have 'Disabled' and 'ADB only' options.03:02
T42<birdzhang> 'su - ' will switch to root03:02
T42<edp_17> I know, it will, if I have su on the device.03:03
T42<birdzhang> so mount /system first03:03
T42<edp_17> on android?03:03
T42<birdzhang> no, on sailfish03:04
T42<nitin_3> did you try ls -l command in twrp recovery termina it should be working in it03:05
T42<edp_17> Now I am doing hadk 5.3. Checking the mount points. For this, I needed to flash the android base on the device.03:05
T42<birdzhang> if you can manually mount /system, do what i told you should auto mount /system after reboot03:05
T42<edp_17> @nitin03 Thanks!03:05
T42<edp_17> Okay, I got the list of the block devices.03:08
T42<edp_17> Here they are:
r0kk3rzthats interesting03:11
T42<edp_17> What is interesting? It seems the same that I have in the fixup-mountpoints.03:12
r0kk3rznot quite03:12
T42<edp_17> What is the difference?03:13
T42<edp_17> This: 155a0000.ufs03:13
T42<edp_17> ?03:13
r0kk3rzyou're replacing it with /dev/sdaX not dev/block/sdaX03:13
r0kk3rzwhich is probably equivalent anyway, but its a change03:14
T42<edp_17> I got those fixup values from here:
T42<edp_17> If the current is wrong, what should be the correct fixup-mountpoints?03:21
r0kk3rzremove block/ from the start03:22
T42<edp_17> Thank you. Do I need to create a new build or somehow I can transfer this change to the device?03:23
T42<edp_17> Do I need to re-build packages or I can just run the MIC?03:24
T42<birdzhang> just rebuild hybris-boot, and flash it03:25
T42<edp_17> How can I rebuild hybris-boot?03:25
T42<birdzhang> make hybris-boot03:26
T42<edp_17> While I am in Platform $ANDROID_ROOT?03:26
T42<birdzhang> no, not in Platform SDK03:27
T42<edp_17> No, in ubuntu chroot. I guess.03:28
T42<edp_17> Yes, I just found it out. Thank you.03:28
T42<edp_17> Error: *fstab* not found.03:29
T42<edp_17> hybris/hybris-boot/ ***************** /boot appears to live on ERROR: *fstab* not found03:29
T42<edp_17> hybris/hybris-boot/ ***************** /data appears to live on ERROR: *fstab* not found03:29
T42<edp_17> hybris/hybris-boot/ *** There should be a one and only one device entry for HYBRIS_BOOT_PART and HYBRIS_DATA_PART.03:29
T42<edp_17> make: *** [/home/s7/mer/android/droid/out/] Error 103:29
T42<edp_17> I think need that block/ at the beginning.03:31
T42<edp_17> Sorry guys, now I need to sleep some. Thank you very much for your help so far! Have a good night.03:32
artur_0000000Came to ask what's the current status of SFOS support on Fairphone and/or Shiftphone?07:31
Mister_Magistermal: ^07:32
Mister_Magisterokay guys serious problem we got codename conflict moto z and xperia 108:03
Mister_Magisterboth are griffin08:03
Mister_Magisteralso mal
deathmist@BusterBg_18 from your log "gatekeeper" droid service dying constantly is a big issue, I think you may be missing some udev rules as was the case recently on the OnePlus 609:11
T42<elros34> (Document)
T42<elros34> @edp_17: if you want to confirm your fixup without android, here is busybox with fdisk gpt partitions name support enabled. Just put it in sfos rootfs and run: ./busybox fdisk -l09:14
Mister_Magistermal: mkdir is missing here should i make PR?09:23
Mister_Magisterwhat is this new package droid-hal-device-user? should i install it?09:39
malartur_0000000: what do you want to know about Fairphone support?09:51
malMister_Magister: move the mkdir out of this then ?09:53
Mister_Magisterokay i can09:53
Mister_Magistershoudl i make pr?09:53
artur_0000000Hi, mal! I'd like to know if everything will work out of the box on either of the phones, once SFOS is installed. Specifically, if and how android apps are working -- are there any issues?09:54
malno android app support in fairphone09:56
Mister_Magistermal: should i make pr?09:59
malMister_Magister: if you want10:00
Mister_Magistercan you have a look at my pr above mal?10:00
malMister_Magister: or add mkdir also to that way it won't create a useless folder10:01
Mister_Magisterye that's what i wanted to do in the first place10:03
artur_0000000Thanks for clarifying, mal! I'm guessing there won't be any plans to include Android support in the SFOS port due to licensing issues?10:09
Mister_Magistermal: in free time could you merge that fixup-mountpoints pr? ^^ thanks10:10
malartur_0000000: it's only available on devices officially supported by jolla so not going to be added for fp210:12
artur_0000000Gotcha. Thank you for your time, mal!10:13
Mister_Magister(not that it's not working i guess :P)10:14
T42<elros34> @edp_17 do you have some errors when running mic? I think  about: /dev/null: Permission denied10:33
T42<elros34> I think that will explain your dbus errors10:33
Mister_Magistermal: my lipstick is segfaulting :/
Mister_Magistermore info, device osprey, base 12.1 freshly built, other packages recently updated, latest submodules11:00
malMister_Magister: do you have latest libhybris, it's known to break on some 11.0 and 12.1 devices11:01
Mister_Magistermal: can you give me commit i should use?11:02
malprobably 20bcd5be11fcd82aa9e2e995c4bb37af9c94cbad11:04
Mister_Magistermal: yay everything seems to be working12:13
malneed to debug why that happens12:13
Mister_Magisterexcept for this messages
Mister_Magisterit's 12.1 base so i think i know how to fix audiopolicy12:14
malMister_Magister: you do know that you can enable audio policy easily now, it's in droidmedia12:14
Mister_Magisterit's in droidmedia?12:15
Mister_Magisteri didn't know12:15
malcat env.mk12:15
malso add that one line to and rebuild12:15
Mister_Magistermhm i get it12:16
vknechtfingertips away from gui it seems... strange ngfd and invoker errors about gstdroid, and lipstick/wizard crash...
vknechtwhat does one have to rebuild exactly after changing/updating libhybris ?15:08
malvknecht: does "EGL_PLATFORM=hwcomposer test_hwc2" work?15:20
vknechtcan't test, didn't solve the usb problem yet15:21
malmaybe you just need some usb-moded config as mentioned in channel logs earlier15:22
T42<edp_17> Hi @Elros, thanks for the busybox. Finally I managed to check the partitions in recovery.15:24
T42<edp_17> I don't remember that error during the Mic but today I will run it to double check and will report. Thank you.15:24
vknechthmm, gotta check if firewall is in the way, getting an ip but no open port on device after adding usb-moded configfs config like on tama...15:44
vknechtdoes official-style init even run telnet ?16:29
* vknecht tries masking dhi and user@100000, hoping ssh will run and device won't reboot16:33
T42<BusterBg_18> deathmist: hi, can I see your udev commit? That explains why I saw that gatekeeper-3 spam17:37
KALUBEmal: Deathmist and I have been working on a better dual boot solution, especially on treble devices where the only common partitions between Android and SFOS are /persist and /data. Currently on a clean system booting into SFOS breaks wifi on LOS completely, we looked at logcat ( but couldn't find the cause. I've17:43
KALUBEjust patched SF to use it's own copied of /persist and /data and that let wifi work on LOS again!17:43
KALUBEI think it makes sense to separate these partitions as well - it would mean Android on Slot B and SFOS on Slot A would be completely independent so you could effectively dual boot with any ROM17:44
KALUBEWould be good to know why SFOS breaks wifi though17:45
T42<edp_17> @Elros, I have checked the MIC (fortunately I kept open the console so all lines were still available there).18:28
T42<edp_17> You are right, it is full of that permission denied errors. I have uploaded here:
T42<edp_17> I have put back the remove block/ part into the fixup-mountpoints file.18:28
T42<elros34> ok so you need to remove nodev (maybe also nosuid) from partition you use dor android sources18:29
T42<elros34> for*18:30
T42<elros34> btw take a look at --help, it has option to create image. Be aware it recreates ks file everytime18:34
T42谭渊轸 %lastname% was added by: 谭渊轸 %lastname%19:23
T42<edp_17> @Elros, you were right. The partition I used for building the S7 image had the nodev parameter. The other partition, used for the hammerhead project, hadn't have that. I remove and retry. Is it enough to re-run the mic or I need to do re-build packages too? Thanks.19:27
T42<elros34> I think running mic again is enough19:32
mal@adampigg I'm not as good as I thought, I updated fp2 to android 7 base and it only booted to UI on 3rd boot because I had missed small things and had to reboot it twice to test some fixes, I was hoping it would have booted to UI directly but no :(20:10
Mister_Magistermal: so can you help me with those symlinks?20:11
Mister_Magisteroh my mal used emote :o20:11
Mister_Magistermal: if you got it to gui you are already super good :D20:11
malthose mistakes were stupid, missed property_contexts file from straggler_files and then forgot to add symlinks to libexec20:12
Mister_Magisterhappens to best of us i guess20:13
malwlan and bt won't work, I knew wlan wouldn't work because for some yet unknown reason the driver won't build as module20:15
Mister_Magistermal: lol in my 5z like nothing works but wlan works ootb :P20:16
malthe wlan driver in fp2 android7 sources is strange, it has two ways to build either via android build or kernel build20:17
Mister_Magistermal: do you have time now by any chance?20:18
malI was just about to eat something20:18
Mister_Magisteroh sad20:18
masya_Hi. Trying to port for Xiaomi Mi A2 (jasmine_sprout) with LOS-16.0. After "make hybris-hal" get this error: FindEmulator: find: `tools/metalava/manual': No such file or directory20:44
T42<adampigg> Mal: good to know you are a fallible as the rest of us20:49
Mister_Magister@adampigg mal is a god he never fails20:52
Mister_Magisterexcept for one bug with gui from 201420:52
Mister_Magistermal: i'm back to myself. Now supporting 6 phones and one more incomming + 4 apps21:44
Mister_MagisterI/ServiceManager( 2859): Waiting for service AtCmdFwd... any idea what is that21:45
malnow building new image, hopefully everything works now22:42
Mister_Magistermal: found problem in fixing mountpoints22:59
Mister_Magisterif fstab is in -common directory then it's detected but it also gets fstab from any other device22:59
malfstab finding is not perfect23:06
malyay, bt and wlan works23:06
Mister_Magistermal: good job! Can i count on you tomorrow with helping with udev?23:07
Mister_Magistermal: quickly workarounded it with copying it to device directory so it's selected first and doesn't search for more23:08
Mister_Magisterdevice i'm building now has some sick random reboot (that even reverts saved data) so… debugging is waiting for me23:08
maldoes last_kmsg or pstore tell anything23:11
Mister_Magisterleave that for me for now as i can't provide anything yet :P barely built initial zip23:11
Mister_Magisteri'm more interested in udev :P23:11
Mister_Magistermal: will you have time tomorrow?23:14
Mister_Magisteri will ping you tomorrow then okay?23:15
mallooks like everything works in this image, well one small bug which is trivial to fix23:15
malforgot the audio policy23:16

Generated by 2.17.1 by Marius Gedminas - find it at!