Friday, 2018-12-07

*** ChanServ sets mode: +v T402:40
*** ChanServ sets mode: +v T408:06
T4<adampigg> So, all BT devices fail to bond/connect with status 4.....12:53
r0kk3rz@adampigg: take a look at krnlyng's patches to sony kernel for bt13:01
r0kk3rzhttps://github.com/mer-hybris/android_kernel_sony_msm/commit/3c1bbedc12aa43525964db5801ac5a6967596b05#diff-89f687683b7191a514dc376b98c9222913:03
PocketCalculatorgood day! I finally managed to build an image14:20
PocketCalculatorbut no gui14:20
PocketCalculatorhwcomposer_test does nothing14:20
PocketCalculatorbut the device seems to boot fine. at least i can telnet and execute commands no problem14:21
PocketCalculatorwhere can i read more about this stuff? the device has an adreno 40514:22
r0kk3rztelnet 2323?14:22
PocketCalculatoryes, already did that14:22
PocketCalculatorinit.log doesnt give anything useful14:23
r0kk3rzno, im asking you which telnet you got into14:23
r0kk3rzwas it 23 or 232314:23
PocketCalculator232314:23
r0kk3rzok good14:23
r0kk3rzlook through journalctl to make sure all the services are starting correctly14:23
*** ChanServ sets mode: +v T414:24
PocketCalculatorbasically everything fails with result "timeout"14:42
PocketCalculatorincluding bluetooth, mce, droid-hal-init14:42
r0kk3rzwell that wont help things14:48
r0kk3rztry to find the first thing that fails14:48
PocketCalculatori think that would be ohmd. its the first one to time out and enter failed state15:10
PocketCalculatorbefore that there are some errors with ofond and i2c15:13
PocketCalculatorthe first error would be "Sailfish kernel: /cpus/cpu@100: Missing clock-frequency property"15:15
PocketCalculatorshould i upload to a pastebin? journalctl is quite extense15:15
r0kk3rzyeah upload the whole log from boot15:17
PocketCalculatorthere it is: https://pastebin.com/GUqZWY6N15:36
r0kk3rzPocketCalculator: can you grab dmesg from boot as well?15:52
r0kk3rzPocketCalculator: ah i see, you need to mask ofono i think16:04
T4<adampigg> R0kk3rz, just noticed my bt adapter comes up even if i remove the FW symlink..so, it eaither doesnt need it, or doesnt load it16:24
r0kk3rzit probably isnt loading it16:27
r0kk3rzbecause it definitely needs it16:27
T4<adampigg> Probably...could it sort of work without it?  how can i check the path is correcr?16:27
T4<adampigg> Or, would it load it from /system/etc without a symlink16:28
r0kk3rzits really annoying that they took the line out in bluez516:28
T4<adampigg> Ah16:28
r0kk3rzit might show up in strace hciattach16:28
r0kk3rzalternatively, you port this line to bluez5 https://git.merproject.org/mer-core/bluez/blob/master/bluez/tools/hciattach_bcm43xx.c#L93https://git.merproject.org/mer-core/bluez/blob/master/bluez/tools/hciattach_bcm43xx.c#L9316:31
PocketCalculatorhere's the dmesg output: https://pastebin.com/EN6CiKf716:31
malwhich android base?16:34
malPocketCalculator: ^16:35
PocketCalculatorlinege 14.116:39
PocketCalculatorlineage16:39
r0kk3rzPocketCalculator: did you run the magic script?16:47
PocketCalculatoryou mean the one on the faq under "LOS14.1 porting"?16:49
PocketCalculatoryes16:49
malwhat device is that?16:52
PocketCalculatorasus zenfone 2 laser16:53
PocketCalculatorZ00T16:53
mallooks like there could be some udev issues16:58
mal@adampigg was your problem that udev somehow failed?17:08
T4<adampigg> R0kk3tz, pairing fails....17:21
T4<adampigg> Scans and.finds ok, but thats it17:21
T4<adampigg> I wonder if the backport drivers work for bcm43xx17:24
r0kk3rz@adampigg: fixed firmware loading?17:56
r0kk3rzfail to pair sounds like that bluesleep issue i linked you to earlier17:56
piggzr0kk3rz: ok, ill try that17:56
piggzi havnt done anything with firmware loading ..... just got home man!!!17:57
r0kk3rzoh ok17:59
r0kk3rzwell do that first17:59
r0kk3rzbut i expect if you're scanning ok then the firmware must be loading17:59
piggzr0kk3rz: by _magic_ i guess .... its weird ... i cant run hciattach manually, it always says it timed out, but seems to run with your script addons, i guess im missing a bit18:10
r0kk3rzby script addons, which bits specifically18:14
piggzr0kk3rz: well, that thing that fires events wrt rfkill18:36
piggzr0kk3rz: did github stop supporting .patch?18:42
piggzr0kk3rz: ah, no it works18:43
r0kk3rzwhich thing though piggz :P18:45
r0kk3rzthe jolla one?18:45
piggzr0kk3rz: ha, no, just getting the .patch...18:45
piggzi havnt even applied it yet!18:45
piggzr0kk3rz: i suppose it would apply if i had a bcm43xx driver in my kernel ... lets check what ive got!18:47
r0kk3rzim confused18:49
piggzas am i .... lets start fromt he start....18:54
piggzr0kk3rz: device is18:57
piggz[    3.768071] rfkill_gpio BCM47521:00: BCM47521:00 device registered.18:57
piggzno, that seems like a gps chi[19:03
piggzbut i didnt think this had gps!19:04
piggzr0kk3rz: so .....19:16
piggzmy firmware is BCM4356A2_001.003.015.0084.0268_ORC.hcd19:16
piggzr0kk3rz: but, regarding the patch you sent, i dont have a drivers/bluetooth/bcm43xx.c19:19
piggzi wonder if its in staging or somthing19:19
piggznope19:21
piggzr0kk3rz: so, is it a combined bluetooth/wifi chip19:34
piggzyes https://www.broadcom.com/products/wireless/wireless-lan-bluetooth/bcm4356/19:35
piggzr0kk3rz: so, that patch from the sony kernel is not applicable, unless i can find equivalent code19:42
malpiggz: what chip does it have?19:45
piggzmalbcm4356 combine wifi/bt19:46
T4Srp3n6u1n was added by: Srp3n6u1n19:54
T4<Srp3n6u1n> is there any port of sailfish os for the xiaomi redmi note 4x ?19:55
malwhich codename is that device?19:57
piggznote 4x is mido iirc, same as note 420:00
piggz(ie, my port ;)20:00
malpiggz: I was wondering is 4 and 4x are compatible20:01
mal*if20:01
piggzi think they are20:01
piggzmal: r0kk3rz: oh, i paired with my computer20:18
piggzr0kk3rz: i have also paired my keyboard ... but the actual input from it is horrible20:30
*** ChanServ sets mode: +v T420:39
mal@adampigg what fixed it?20:46
PocketCalculatorIT WORKS20:47
PocketCalculatorall i had to do was add the ofono thingies from the faq20:48
malPocketCalculator: which ones?20:51
piggzmal: maybe just trying different devices ... I havnt tried my headphones yet.....20:56
piggzthey were failiing20:56
piggzthe keyboard however is unusable20:56
piggzevery keypress results in 2 presses20:56
PocketCalculatormal: the ones under "SIM card not detected" and "Ofono problems"21:00
PocketCalculatoraudio works, haptics work21:00
PocketCalculatorwifi and bluetooth doesnt21:00
PocketCalculatoryet21:01
malPocketCalculator: good21:02
malPocketCalculator: depending on the wlan chip the driver is often built as a module, at least if the uses pronto wlan driver, check faq21:03
malalso check which bluetooth chip the device uses21:04
PocketCalculatorthere are several entries for wlan in defconfing21:07
PocketCalculator"pronto_wlan" and "prima_wlan"21:08
piggzmal: would I be better of building bcmdhd as a module?21:13
malPocketCalculator: which ones are enabled in there21:14
PocketCalculatorall of them21:18
PocketCalculatortheres 5, but i guess most of them are settings or something21:20
malPocketCalculator: what? can you give a link to the defconfig of your device on github21:20
PocketCalculatori havent uploaded anything yet21:21
PocketCalculatorbut it looks like this21:21
PocketCalculator"CONFIG_PRONTO_WLAN=y" "CONFIG_PRIMA_WLAN_LFR=y" "CONFIG_PRIMA_WLAN_OKC=y" "CONFIG_PRIMA_WLAN_11AC_HIGH_TP=y"21:21
piggzr0kk3rz: do you have bcmdhd for BT and wlan?21:21
malPocketCalculator: the first one as module, others you mean as =y21:22
mal*leave as21:22
PocketCalculatorthanks21:34
PocketCalculatorthat'll take a while21:34
malPocketCalculator: note that after rebuilding the kernel you need to only run "build_packages.sh -d" and then rebuild the image21:35
PocketCalculatorthat's a relief21:36
PocketCalculatorthe faq mentions in the ofono section that a couple of lines should be added to the droid-config-$DEVICE21:37
malPocketCalculator: also after build_packages.sh -d run also build_packages.sh -c to build te config package21:37
PocketCalculatorshould i rebuild packages or just build_packahes.sh -c?21:38
mal-c is enough for config package21:38
PocketCalculatorthanks. i'll call it a day for now22:01
PocketCalculatorsee ya22:01
piggzwell, bcmdhd wors as a module22:16
malpiggz: did it work as builtin?22:17
piggzmal: it did22:17
piggzi was just trying it out22:17
piggzeugenio: any sensor joy?22:38
eugenionot yet, but guess I'm close22:56
piggz_mal: eugenio: one oddity with wlan i noticed, when it was connected it was fine, (tetherd to phone) but if phone lost 4g connection, and then regained it tablet was unable to connect until turn off/on wifi23:05
eugenioyup happened to me too (with it being simply attached to the home wifi)23:06
eugeniosuddenly I was unable to ssh in, off/on and it worked23:07
piggz_eugenio: did you say you got pulseaudio working?23:07
eugenionope, got only the card detected by alsa (by manually loading the firmwares)23:08
eugeniothere aren't any UCMs available for the rt5659 (or at least I haven't found any)23:08
piggz_UCM?23:08
eugenioUse Case Manager, should be used to properly set-up the audio routes23:09
eugeniohttps://github.com/plbossart/UCM <--- some UCMs for a bunch of cards on bay trail / cherry trail devices23:10
eugeniounfortunately rt5659 is missing :/23:10
eugeniopiggz_, to load firmwares I use the following: https://pastebin.com/kn48C89423:11
eugenioalthough it would be nice to get the kernel to load them instead of fallbacking to userspace23:11
eugeniobut for now that would do the trick :D23:11
eugenioyou should execute that as soon as possible as the fallback timeout will eventually elapse and the kernel will give up23:12
piggz_eugenio: what are the 3 fw?23:14
eugeniofirst two are for the audio card, last one is to speed-up media decoding I guess23:16

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!