Saturday, 2019-06-29

mccrearyAre you guys building your own kernels for the F(x)tec Pro1?02:02
mccrearyWe don't have kernel source yet...02:03
r0kk3rzthey would be yeah02:50
r0kk3rzcant make sailfish run on stock android kernel02:50
piggz_mccreary: yes, you dont have the kernel sources ;)07:26
piggz_mal: i'll check that when the device loads again...however...07:45
piggz_as per the dmesg output, this is displayed:07:47
piggz_[ 3179.729987] wlan: driver loaded07:47
piggz_that message comes from07:47
piggz_pr_info("%s: driver loaded\n", WLAN_MODULE_NAME);07:48
piggz_we know that the firmware loading is started off from the the probe function, static int wlan_hdd_probe(07:49
piggz_and, that function, near the top has07:49
piggz_pr_info("%s: %sprobing driver v%s\n", WLAN_MODULE_NAME,07:50
piggz_reinit ? "re-" : "", QWLAN_VERSIONSTR);07:50
piggz_which isnt printed in the kernel07:50
deathmiststill trying to fix call audio on 15.1 and fixing broken symlinks in /etc now: which one of these files in /vendor should I symlink back to /etc/mixer_paths.xml?
T42<adampigg> mal: and yes, /lib/firmware link still exists09:59
deathmistfinally tested camera recording, it doesn't break everything after recording with the audiopolicyservice patch (y)  recording quality is still bad tho with very visible I guess compression artifacts or something while moving even the slightest bit + a video is always completely black/garbled for the first 2 seconds10:58
deathmistthere artifacts ofc aren't visible in the viewfinder which looks perfect11:00
Mister_Magistermal: you can create now repos on obs right?11:44
T42<SALPHA8506> PlatformSDK s-8506@s8506-X556UR:~/Desktop/SAILFISH$ sudo zypper ref11:46
T42<SALPHA8506> error: db4 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery11:46
T42<SALPHA8506> error: cannot open Packages index using db4 -  (-30974)11:46
T42<SALPHA8506> error: cannot open Packages database in /var/lib/rpm11:46
T42<SALPHA8506> Target initialization failed:11:46
T42<SALPHA8506> Rpm Exception11:46
T42<SALPHA8506> @SALPHA8506 [PlatformSDK s-8506@s8506-X556UR:~/Desktop/SAIL …], ??11:46
malMister_Magister: yes12:01
Mister_Magistermal: can you make devel and testing repo for asus Z01R?12:02
malmaybe later tonight, at summer cottage now12:02
Mister_Magisterah sure no hurry12:02
Mister_Magisterjust sayin'12:03
Mister_Magisterhmcp: cannot stat `./out/target/product/Z01R/hybris-updater-script': No such file or directory12:22
Mister_Magistermake hybris-updater-script fixes it12:33
T42<SALPHA8506> HABUILD_SDK [] s-8506@s8506-X556UR:~/Desktop/SAILFISH$ mkdir -p $ANDROID_ROOT12:58
T42<SALPHA8506> mkdir: missing operand12:58
T42<SALPHA8506> Try 'mkdir --help' for more information.12:58
Mister_Magisteryou r $ANDROID_ROOT variable is empty12:59
Mister_Magisteryou entered habuild wrongly12:59
T42<SALPHA8506> how to fix it ?13:00
Mister_Magisterwhats in your .hadk13:00
T42<SALPHA8506> HABUILD_SDK [] s-8506@s8506-X556UR:~/Desktop/SAILFISH$ cat ~/.hadk.env13:01
T42<SALPHA8506> export PLATFORM_SDK_ROOT="/srv/mer"13:01
T42<SALPHA8506> export ANDROID_ROOT="$HOME/hadk"13:01
T42<SALPHA8506> export VENDOR="z2_plus"13:01
T42<SALPHA8506> export DEVICE="zuk"13:01
T42<SALPHA8506> export PORT_ARCH="armv7hl"13:01
Mister_Magisteruse or similar thanks13:01
Mister_Magisterso when you enter sfossdk do you have ANDROID_ROOT set? echo $ANDROID_ROOT13:02
T42<SALPHA8506> @Mister_Magister [so when you enter sfossdk do you have ANDROID_ …], no13:05
T42<SALPHA8506> how to set it ?13:05
Mister_Magisterdon't use reply option13:05
Mister_Magisteryou should have it13:05
Mister_Magisterexport ANDROID_ROOT="$HOME/hadk" clearly sets it13:05
Mister_Magisterjust run echo $ANDROID_ROOT13:05
deathmistSALPHA8506: I see you were in a directory "~/Desktop/SAILFISH", is this your build tree?13:06
T42<SALPHA8506> no13:06
mccrearypiggz_, I guess that means F(x)tec hasn't published kernel source? :-(13:07
deathmistSALPHA8506: check hadk pdf section 4 again to make sure you didn't miss something if this is your first time building13:08
T42<SALPHA8506> ok13:09
Mister_Magistermccreary: they will after release i think13:09
mccrearyOK, thanks for the info. We have been promised pre-release access, but don't have it yet13:10
mccrearyFWIW, TWRP isn't very useful with the prebuilt kernel13:10
Mister_Magisterwho needs twrp xd13:10
mccrearySince you can use it when it is in the ramdisk in a boot partiton13:11
mccrearyI think TWRP is useful ;-)13:11
mccrearyWith kernel source I can make it work from 'flashboot boot boot.img'13:12
Mister_Magisterwhoa what just happend13:12
Mister_Magistermic build only tar.bz213:12
Mister_Magisterno zip13:12
malMister_Magister: if I remember correctly the scripts don't like codename in capital letters, check fp2 repo how I did it13:15
malso rpm_device and device or something in spec13:16
T42<SALPHA8506> repo: command not found13:19
deathmistif you are willing to port you need the patience to read through the document; it states clearly above the command that you need to set it up
T42<SALPHA8506> got it13:21
Mister_Magistermal: after that and building dcd i'm getting rpm2cpio: /home/foidbgen/5z/android//droid-local-repo/Z01R/droid-configs/droid-config-Z01R-ssu-kickstarts-1-1.armv7hl.rpm: No such file or directory13:25
malMister_Magister: so you didn't change it in all repos and also in .hadk.env13:30
malalso target name13:30
Mister_Magistermal: change everything?! lol13:31
Mister_Magisteralso in dvd you have rpm_device but no device is that okay?13:31
malcheck fp2 repos13:32
malI don't remember what I did13:32
Mister_Magisteri'm doing that13:32
Mister_Magisteralso in .hadk.env you have export DEVICE="fp2-sibon" or somthing else13:33
Mister_Magisterok i'm starting to follow13:34
Mister_Magisterdunno if that will work tho13:34
T42<SALPHA8506> how to add repo ?13:36
malMister_Magister: yes, the point is that sfos side uses non-capital letters and device in droid-hal spec tells dhd submodule what the android side codename is13:37
Mister_Magisteri see small problem here13:37
Mister_Magisteroh nvm13:37
deathmistSALPHA8506: what do you mean by that? the device speficic repos in local_manifests? scavenge the LineageOS GitHub repos for your device & manually go through each lineage.dependencies file and add them in the manner specified in the hadk pdf13:40
deathmistor the repo command?13:40
deathmistthe command you can add e.g. by adding ~/bin to PATH in ~/.hadk.env at the end: "export PATH=$HOME/bin:$PATH"13:43
deathmistand then re-entering ubu-chroot13:44
malMister_Magister: remember to replace the codename also inside other files in config repo, like patterns, probably easier to recreate the repo13:46
Mister_Magisteryeah yeah i did that13:46
Mister_Magisterreplace everything13:46
Mister_Magisterit seems to be building13:50
Mister_Magistermal: do you remember where build is stored or something like this? when i'm trying to build dvd it gets old paths or something and is not building because it wants to crete log in /14:36
Mister_Magisterremoving hybris/mw helped for mw14:38
Mister_Magisterah sorry i'm actually retard14:44
Mister_Magisterseems like updater-unpack doesn't work with my twrp15:01
T42<SALPHA8506> HABUILD_SDK [] s-8506@s8506-X556UR:~/hadk$ repo sync --fetch-submodules15:09
T42<SALPHA8506> error: command 'sync' requires repo to be installed first.15:09
T42<SALPHA8506> i installed repo then why it showing like this15:10
T42<SALPHA8506> HABUILD_SDK [z2_plus] s-8506@s8506-X556UR:~/hadk$ repo --version15:29
T42<SALPHA8506> error: repo is not installed.  Use "repo init" to install it here.15:29
deathmistSALPHA8506: did you read the messages I sent before?15:33
deathmistdoing "which repo" right now should give you the path to the command15:34
deathmistif it doesn't, you didn't install it properly15:34
malMister_Magister: recent twrp seems to cause many issues15:40
Mister_Magistermal: i don't have rndis in kernal which causes bootloop error: 'KBUILD_MODNAME' undeclared here (not in a function15:40
T42<SALPHA8506> @deathmist [SALPHA8506: did you read the messages I sent b …], i read and set all the things but not working i create my repo and paste into /Home....../local_manifest/15:47
T42<SALPHA8506> @deathmist [if you are willing to port you need the patien …], and i also installed repo15:48
deathmistplease don't use the reply feature as it doesn't format nice on IRC chat, could we talk in telegram private: add me @Deathmist133715:49
deathmistyou aren't using repo right also, check hadk for the repo init command you need to run15:54
piggzmal: how can we override/disable built in services, that are part of /vendor/etc/init/ and not in individual .rc files?16:33
piggzeg time_daemon from qcom.hw.init.rc16:34
piggzhw/qcom.init.rc even16:36
deathmistthere might be a symlink issue (at least on 15.1): /usr/sbin/udevadm points to ../bin/udevadm (broken) when it should point to ../../bin/udevadm where the binary actually exists16:46
deathmistdoesn't seem to be a big issue as /bin comes before /usr/sbin in PATH, but it's still broken :p16:49
malpiggz: just add some .rc to libexec17:18
malpiggz: the .rc filename is not important, just the service name inside it17:18
piggzmal: cool, i was right then...just turns out i was careless and created it in the wrong place!17:56
piggzmal: except it didnt work....17:58
deathmistmal: could my current ril_subscription.conf cause no audio during a call? I'm still using the Xperia XA2 one18:02
maldeathmist: should not affect that, what device is that?18:50
deathmistcheeseburger (OnePlus 5) on 15.118:51
malpiggz: try removing disabled from last line18:52
malpiggz: btw, typo in the fake binary name18:52
maldeathmist: and miniaf is running?19:10
malI think it's miniafservice19:10
deathmistyeah it's running, grepping for it in journalctl just returns 1 line: "droid-hal-init: starting service 'miniaf'..."19:11
deathmistshould I get new logs during call with my fixed up /etc symlinks for audio codecs etc in-place?19:12
piggzmal: nope, it still tries to start time_daemon over and over19:43
maldeathmist: maybe19:48
malpiggz: check processing order from droid-hal-init startup in dmesg19:49
piggzmal: yup, that got it....19:51
piggz[   76.236484] droid-hal-init: Parsing file /usr/libexec/droid-hybris/system/etc/init/time_daemon.rc...19:51
piggz[   76.237067] droid-hal-init: /usr/libexec/droid-hybris/system/etc/init/time_daemon.rc: 1: ignored duplicate definition of service 'time_daemon'19:51
piggzit finds init.qcom.rc first19:51
malhmm, I though libexec should be first in order, it seems not20:01
malpiggz: is that init.qcom.rc in / on device?20:02
piggzmal: /vendor/etc/init/hw/init.qcom.rc20:03
piggzmodify init to ensure libexec is first?20:03
malcheck how it processes those20:03
piggzmal: ok, it is because it first parses /init.rc ... and that included the /vendor one20:06
piggz        parser.ParseConfig("/init.rc");20:06
piggz        parser.ParseConfig("/usr/libexec/droid-hybris/system/etc/init");20:06
piggzinit.rc contains20:07
piggzimport /vendor/etc/init/hw/init.${ro.hardware}.rc20:07
piggzso, swap the order?  we _always_ want libexec versions first20:08
piggzmal: nope, another way20:19
piggzi bet the other services already do this, i just didnt look....20:21
piggzoh, no they dont, so I just learned a new thing :D20:22
piggzmal: keyword override20:23
piggzi would recommend adding that to the other services in libexec20:23
malnice, didn't know that20:24
piggzmal: found it by looking at the 'ognored' error message....20:25
piggz            if (!service_->is_override()) {20:25
piggz                return Error() << "ignored duplicate definition of service '" << service_->name()20:25
deathmistnice, I managed to break audio routing outside calls by adding the media & codec symlinks from /vendor/etc to /etc; anyways mal here is journalctl and logcat during a call21:53
deathmistand here is before call journalctl and logcat
deathmistr0kk3rz sorry for ping but could you check my PR in hybris-boot for cheeseburger, I'd appreciate it!22:07
deathmistSALPHA8506 could you link me your local device manifest?22:14
T42<SALPHA8506> how22:16
deathmistjust put it in another paste, it is in $ANDROID_ROOT/.repo/local_manifests/22:17
T42<SALPHA8506> (Document)
deathmistthat's one weird manifest, it's ok tho since this is one of the hardest parts in the beginning to get right; lemme check this22:19
T42<SALPHA8506> ok22:20
deathmistsudo apt update && sudo apt install -y imagemagick22:26
T42<SALPHA8506> @SALPHA8506 [], same after installing22:31
deathmistmove your kernel dir from "kernel/zuk/z2_plus" to "kernel/zuk/msm8996" because that's what is should be (also fix in manifest)22:32
deathmistno need to resync, just rename the directory / do mv in terminal22:32
T42<SALPHA8506> ninja: error: 'libsf_compat_layer', needed by 'hybris-hal', missing and no kn22:33
deathmist search for "15.1" and "" a bit later, if you don't find answers to your issues from the FAQ or logs then ask here22:37
T42<SALPHA8506> got it22:37
deathmistyou should probably bookmark them both for easy access ;)  be aware of the dates on logs tho as some of the stuff e.g. android-8-initial branches are very much deprecated now22:46

Generated by 2.17.1 by Marius Gedminas - find it at!