T42 | <Barnett %lastname%> (Photo, 471x539) https://irc.thaodan.de/.imgstore/CDut823Ixs.png [1]高仿鞋出售[2]微信群电报群群活跃度管理,水军[3]电报微信群推[4]电报/potato土豆/微信/Facebook/Twitter增粉[5]非小号,mytoken关注 [私聊][private]: @hyint | 03:23 |
---|---|---|
Mister_Magister | mal: on my moto x2 /dev/block/platform/msm_sdcc.1/mmcblk* is all broken symlink. | 07:53 |
Mister_Magister | what if it's not relative symlink problem but the symlink itself is broken? | 07:54 |
Mister_Magister | SYMLINK+="block/platform/$env{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/$name" two times platform? | 07:56 |
Mister_Magister | oh wait platform_device is prably by_name and stuff | 08:00 |
Mister_Magister | mal: absolute symlink: ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", RUN+="/bin/ln -s /dev/$name /dev/block/platform/$env{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/$name" | 08:16 |
r0kk3rz | KALUBE: did you request to join on gitlab? | 08:20 |
T42 | 翁迪荔 %lastname% was added by: 翁迪荔 %lastname% | 08:42 |
Mister_Magister | why do we put .tar.bz2 inside zip? what sense does it make? could we just put .tar and then change unpack script to unpack it? would remove bzip2 requirement | 14:33 |
Mister_Magister | that current twrp doesn't meet | 14:33 |
Mister_Magister | mal: update, on my 5z the symlink is proper | 16:07 |
Mister_Magister | aka valid | 16:07 |
mal | Mister_Magister: maybe should show output of ls -lR /dev/block so I can how things were broken | 16:14 |
Mister_Magister | mhm later | 16:14 |
Mister_Magister | mal: that should be enough even :P https://imgur.com/a/lm0gEaB | 16:15 |
mal | so then find out which line in the udev rule causes that | 16:16 |
Mister_Magister | i know which line i even gave you line that makes absolute symlink :3 | 16:17 |
Mister_Magister | ah yes | 16:19 |
Mister_Magister | by-name is broken | 16:19 |
Mister_Magister | every single file :D | 16:19 |
mal | can you show the config git repo for the device | 16:27 |
Mister_Magister | config… droid-config you mean? sure | 16:27 |
mal | yes of course | 16:28 |
Mister_Magister | bootcontrolhal: update_slot_attribute: Failed to get pentry/pentry_bak for xbl_a OHH WHAT NOW :< | 16:28 |
Mister_Magister | mal: http://github.com/verdanditeam/droid-config-victara | 16:28 |
Mister_Magister | this one had /dev/block/platform/blablabla/mmc* broken | 16:28 |
Mister_Magister | on the 5z both are good (By name too i was wrong) | 16:28 |
mal | you need to give more information otherwise I cannot debug this, what is so different in that one device, udevadm might tell something | 16:30 |
Mister_Magister | yay got bootctl working! :3 | 16:39 |
Mister_Magister | mal: it doesn't matter anyway don't trouble yourself | 16:39 |
Mister_Magister | mal: got udev rules that fix bootctl! ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", RUN+="/bin/mkdir -p /dev/block/platform/$env{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/by-name" ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", RUN+="/bin/ln -s /dev/block/$name /dev/block/platform/$env{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/by-name/$env{ID_PART_ENTRY_NAME}" ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_ | 16:41 |
Mister_Magister | PART_ENTRY_NAME}=="?*", RUN+="/bin/ln -s /dev/block/$name /dev/block/platform/$env{PLATFORM_FOLDER}/$env{PLATFORM_DEVICE}/$name" | 16:41 |
Mister_Magister | that didn't work too well :/ | 16:41 |
mal | which lines do those replace in the original udev rules | 16:42 |
Mister_Magister | Here fix for bootctl Error marking as having booted successfully (for logs reference) https://paste.opensuse.org/33941155 | 16:42 |
Mister_Magister | replace this two lines https://paste.opensuse.org/69005099 | 16:43 |
Mister_Magister | mal: ^ | 16:43 |
mal | the real question is why did the original ones fail | 16:44 |
mal | is either PLATFORM_DEVICE or PLATFORM_FOLDER empty? | 16:45 |
mal | which would lead to something//something in the path and then automatic symlinking would understand it incorrectly and add wrong relative path | 16:45 |
mal | hmm, but that cannot really happen I think | 16:46 |
mal | you should verify that | 16:47 |
Mister_Magister | mal: original ones are relative | 17:07 |
Mister_Magister | relative don't work | 17:07 |
Mister_Magister | they are correct, bootctl just can't read them properly | 17:08 |
Mister_Magister | there is nothing we can do about it except for hacking it but what's the point | 17:08 |
mal | I'm confused now, so the original file created working symlink and it was some modifications you made that broke those? | 17:11 |
Mister_Magister | no | 17:12 |
mal | I'll ask in another way, does this file https://github.com/mer-hybris/droid-hal-configs/blob/master/sparse/lib/udev/rules.d/998-droid-system.rules create symlinks that point to non-existent targets? | 17:13 |
Mister_Magister | no | 17:13 |
mal | that is what I asked in the above line | 17:13 |
Mister_Magister | same answer :P | 17:14 |
Mister_Magister | sec | 17:14 |
mal | but different question | 17:14 |
mal | those questions were opposite ways of asking the same thing, you answered no to both | 17:14 |
mal | so what broken symlinks were you then talking about earlier | 17:15 |
mal | I don't understand where those come from | 17:15 |
Mister_Magister | just give me second writting explanation | 17:15 |
Mister_Magister | mal: on devices with hybris 15/16 there is bootctl to mark if slot is sucessfull or not. default binary reads symlink at /dev/block/platform/something/by-name/xbl_a which with relative symlink gives ../../blabla/sdXX (which is proper working symlink) and it returns error (it's a directory or something). android has absolute symlinks and those are working. Some people patched their gpt-utils but you said to make absolute symlink so | 17:16 |
Mister_Magister | that's what i did. so now with absolute symlink bootctl is happy | 17:16 |
Mister_Magister | no broken symlinks | 17:17 |
mal | then what was this about 09:53 < Mister_Magister> mal: on my moto x2 /dev/block/platform/msm_sdcc.1/mmcblk* is all broken symlink. | 17:18 |
Mister_Magister | but that's for hybris 15/16 my moto z and asus 5z. The broken symlink i was talking about is different story and you don't need to worryt about it. my moto x2 which has 12.1 base i believe has broken every symlink under /dev/block/platform/ with default rules (absolute symlinks fix them ofc) | 17:18 |
mal | I was talking about that x2 case all the time | 17:18 |
Mister_Magister | oh sorry then | 17:18 |
Mister_Magister | but it doesn't matter as phone is working fine | 17:19 |
mal | I was talking about broken symlinks | 17:19 |
Mister_Magister | it gives one .. too many | 17:19 |
Mister_Magister | but it seriously doesn't matter | 17:19 |
mal | so did you check if either PLATFORM_DEVICE or PLATFORM_FOLDER is empty? | 17:19 |
mal | if it doesn't matter then why did you even talk about it, I wasted my time trying to figure it out | 17:20 |
Mister_Magister | mal: told you not to worry about it | 17:20 |
Mister_Magister | u have no idea what platform_device is but yes one of them always on every device has to be empty because rule is /dev/block/platform/platform_folder/platform_device/mmcetc which on every device gives /dev/block/platform/xxxx/mmcetc | 17:20 |
Mister_Magister | i have no idea* | 17:20 |
Mister_Magister | you can check on your own fairphone | 17:22 |
mal | you only now said not to worry about it | 17:23 |
Mister_Magister | mal: if i didn't annoy you enough can you tell me what i have to do to fix audio on hybris 16 or you don't know | 17:23 |
Mister_Magister | mal: yes right, forget it | 17:23 |
Mister_Magister | just in case you will be curious ;P | 17:24 |
mal | without logs i cannot help with audio issues, you should know it | 17:24 |
Mister_Magister | no i thought there is something necessary that needs to be done i order to get audio | 17:25 |
Mister_Magister | like binder plugin or something | 17:25 |
mal | normal or call audio? | 17:25 |
Mister_Magister | normal | 17:25 |
mal | nothing special afaik | 17:25 |
Mister_Magister | audioflinger-glue maybe? shouldn't be needed right. there was even somethnig replacing it | 17:26 |
Mister_Magister | maybe symlinks | 17:26 |
mal | some need this for call audio https://github.com/mer-hybris/pulseaudio-modules-droid-hidl | 17:27 |
mal | it depends on what kind of setup your device has | 17:28 |
Mister_Magister | ye ye that replaced audioflinger-glue | 17:28 |
Mister_Magister | maybe i will ask jusa when he is around | 17:28 |
mal | LOGS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 17:29 |
Mister_Magister | sorry sorry | 17:29 |
Mister_Magister | sorry again | 17:29 |
* Mister_Magister is annoying as hell | 17:30 | |
mal | Mister_Magister: fp2 also has some broken symlinks in /dev/block/platform/msm_sdcc.1/mmc* | 17:36 |
Mister_Magister | mal: :) | 17:49 |
Mister_Magister | see it's not important as phones are working | 17:49 |
Mister_Magister | just interesting thing | 17:49 |
Mister_Magister | if your perfectionism on fp2 requires it you can fix it :P | 17:50 |
Mister_Magister | mal: sorry here are logs :3 https://gist.github.com/Michal-Szczepaniak/06a3758f8d73ade082830e9f099534aa | 17:56 |
Mister_Magister | even got pa log :3 | 17:56 |
mal | my assumption is firmware loading issue | 17:58 |
mal | you need to show your device config repo again | 17:58 |
Mister_Magister | sure | 17:58 |
Mister_Magister | https://github.com/verdanditeam/droid-config-Z01R let me update it | 17:58 |
Mister_Magister | mal: here, updated :) | 18:01 |
mal | which android base? | 18:01 |
Mister_Magister | 16 | 18:03 |
mal | you seem to have some different set of .rc files than the faq mentions | 18:08 |
Mister_Magister | yeah because when i was porting it that entry didn't exist | 18:10 |
Mister_Magister | i was waaay ahead of time :P | 18:10 |
Mister_Magister | mal: if you don't have any idea then i'm gonna move everything to droid-config repo and try clean image | 18:12 |
Mister_Magister | ah right mal! new TWRPs don't have bzip2 so sfos installation fails. You can either build your own twrp or fix it. I was thinking… putting bz2 inside zip makes almost no sense so we could put just .tar and then unpack it using tar without bzip2 (gonna be faster even), or we can put bzip2 prebuild inside zip and then use it to unpack | 18:13 |
Mister_Magister | wondering what's your opinon | 18:13 |
mal | Mister_Magister: first try the .rc files suggested in faq | 18:14 |
Mister_Magister | i need couple additional ones but i can remove some of my scripts sure | 18:14 |
mal | Mister_Magister: your config submodule is quite old | 18:16 |
Mister_Magister | ye whole port is :P | 18:16 |
mal | missing some firmware loading fix for example because of that submodule | 18:17 |
Mister_Magister | oh | 18:17 |
Mister_Magister | interesting | 18:17 |
Mister_Magister | i wanna move everything to obs anyway | 18:17 |
mal | and many audio related things, mostly audio routing but still | 18:17 |
Mister_Magister | lemme rebuild it real quick | 18:18 |
mal | so better update the whole thing, including dhd submodule (use upgrade-3.2.1 branch) | 18:18 |
mal | just to be sure | 18:18 |
Mister_Magister | yes i want to move all my fixes from device to configs repo then i will push it to obs and then rebuild whole image freash okay? | 18:19 |
Mister_Magister | and what do you think about zip fix? | 18:19 |
mal | what zip fix? | 18:19 |
Mister_Magister | the long message above | 18:20 |
mal | well it might work that way | 18:21 |
Mister_Magister | but which way would be better? | 18:21 |
Mister_Magister | i think dropping bzip2 | 18:22 |
Mister_Magister | or you have better idea? | 18:22 |
Mister_Magister | ohh my configs fixed modem | 18:24 |
mal | what configs? | 18:26 |
Mister_Magister | dcd | 18:28 |
Mister_Magister | i updated it | 18:28 |
Mister_Magister | and now my ofono starts fine | 18:28 |
mal | so as usual updating submodule is a good idea | 18:29 |
Mister_Magister | yeah | 18:30 |
Mister_Magister | but still no audio | 18:30 |
Mister_Magister | tfa98xx_container_loaded(): Firmware init complete seems like it loads just fine | 18:31 |
Mister_Magister | yeah same thing. will debug it later | 18:32 |
mal | new logs needed | 18:35 |
deathmist | Mister_Magister: no audio in general from pulseaudio or just calls that don't work? | 18:48 |
mal | deathmist: no audio at all, logs suggested adsp failure but that was before the latest fixes so not sure what the logs say now | 18:50 |
deathmist | I wonder if he looked at https://github.com/libhybris/libhybris/commit/d27c1a85703db8dea4539ceb4d869792fd78ee37 yet, that fixes all audio for me | 18:50 |
mal | maybe not | 18:55 |
mal | I should finish some libhybris things I have been doing and then we could update the submodule | 18:55 |
KALUBE | mal: Mister_Magister: just tested that udev fix and it works for me too! Bootctl is the last thing I needed to fix :D | 19:01 |
Mister_Magister | KALUBE: nice! | 19:04 |
Mister_Magister | mal: you can assume nothing changed | 19:05 |
Mister_Magister | deathmist: 2 dec is way too new so no i don't have that one. Thanks! | 19:05 |
Mister_Magister | i should add that udev fix to faq | 19:06 |
Mister_Magister | nah it's too much to bother | 19:07 |
deathmist | I even forked mer-hybris' libhybris and updated the submodule :p https://github.com/sailfishos-oneplus5/libhybris | 19:07 |
Mister_Magister | deathmist: oh nice | 19:07 |
Mister_Magister | hmm when i was making it it was empty… now 83 repos… damn… https://github.com/verdanditeam | 19:16 |
KALUBE | Mister_Magister: I'm happy to make a PR for the faq if you want | 19:34 |
Mister_Magister | feel free | 19:34 |
rinigus | mal: when you'll be looking at libhybris, would you mind also to look into https://github.com/libhybris/libhybris/pull/433 ? | 19:39 |
mal | rinigus: I'll need to check that | 21:55 |
T42 | <edp_17> Good evening. | 22:05 |
T42 | <edp_17> I have a question before I continue my S7 attempt. | 22:05 |
T42 | <edp_17> I have applied these changes to my kernel (CM14.1) https://github.com/edp17/hero2lte_CONFIG_MODULES_patch | 22:06 |
T42 | <edp_17> Can be these the reason why the gui doesn't start? | 22:06 |
T42 | <edp_17> My other question is about the dhd sub-module. I had to update them for my hammerhead build and for dhd I needed to use the 'upgrade-3.2.1 branch'. Is this what I need for my S7 too or I can use the master? | 22:17 |
r0kk3rz | use the upgrade branch | 22:40 |
T42 | <edp_17> @r0kk3rz: Many thanks! | 22:52 |
r0kk3rz | also worth trying removing that patch | 22:55 |
r0kk3rz | minimal changes is usually best for early stage porting | 22:55 |
T42 | <edp_17> This what I am also thinking about. I didn't find those in Driim's kernel, so probably I don't need (at this stage for sure). But when I found and it said was for loading modules, it was really tempting because I remember in hammerhead I needed to use the wifi driver as module otherwise it didn't remember the network. | 22:58 |
T42 | <edp_17> You are probably right, so I remove it and use the upgrade branch. Fingers crossed. | 22:59 |
T42 | <edp_17> Is there a way to remove a commit from the middle? Or I can only go back to the last right commit, skit the one I do not need and apply the rest? | 23:06 |
r0kk3rz | at this stage the only mods you should do is the kernel config and fixup mountpoints | 23:13 |
r0kk3rz | you can do a rebase -i HEAD~6 and drop any commits you dont want | 23:14 |
r0kk3rz | the 6 is how many commits you want to go back | 23:14 |
T42 | <edp_17> Yeah, but I applied those commits at very early stage, so almost all defconfig and removing debug messages stuff were added after. | 23:15 |
T42 | <edp_17> Well, I have 9 commits and would like to keep the first 2, then skip 1 and keep the rest also. I don't think there is an easy way. I think the best if I go back to the last one prior that patch and manually apply the rest. | 23:16 |
r0kk3rz | or | 23:17 |
r0kk3rz | you do what i said | 23:17 |
T42 | <edp_17> Yeah, I think there is no way to drop a commit somewhere in the middle but keep everything else. So, watch out, here I come. 😁 | 23:20 |
T42 | <edp_17> Thanks. | 23:20 |
r0kk3rz | there is | 23:20 |
r0kk3rz | like i said | 23:20 |
r0kk3rz | the -i brings up a file, where you can tell it what to do | 23:21 |
r0kk3rz | like drop 2 commits in the middle, or squash, or rename, or whatever | 23:21 |
T42 | <edp_17> I see. Is the 6 includes the last commit or I need to count from there? | 23:22 |
r0kk3rz | you dont need to be super precise, go HEAD~11 if you want | 23:23 |
T42 | <edp_17> Ok, I did a git rebase -i HEAD~9 and dropped that commit. Now, how can I come out of that screen? | 23:26 |
r0kk3rz | its vi, unless you changed the default editor | 23:27 |
r0kk3rz | which i suggest you do if you dont know vi | 23:27 |
r0kk3rz | so :wq | 23:27 |
T42 | <edp_17> No, not really. | 23:27 |
T42 | <edp_17> Ok, thanks. | 23:27 |
r0kk3rz | you can change it to nano if you want | 23:28 |
T42 | <edp_17> Thanks. Not now, because I go some conflicts to solve manually. | 23:28 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!