T42_ | <Shigenta> Heya! Porting SailfishOS on Redmi 4X, got a problem with building packages https://hastebin.skyra.pw/burigavafi.swift | 09:39 |
---|---|---|
T42_ | <Shigenta> It says that ".mb2/spec" doesn't exist, although it does | 09:41 |
mal | you seem to have the sources on another disc which is not available in all environments? | 10:44 |
mal | how did you mount the disk to sdk? | 10:59 |
T42_ | <Shigenta> yep, cuz i dont have enough space on my ssd (re @SailfishFreenodeIRCBridgeBot: <mal>you seem to hav...) | 11:53 |
T42_ | <Shigenta> sudo mount --bind /media/files /srv/sailfishos/sdks/sfossdk/mnt/files | 11:53 |
T42_ | <Shigenta> sfossdk | 11:53 |
T42_ | <Shigenta> sudo mount --bind /mnt/files/ $PLATFORM_SDK_ROOT/sdks/ubuntu/mnt/files | 11:54 |
T42_ | <Shigenta> and then ubu-chroot (re @SailfishFreenodeIRCBridgeBot: <mal>how did you mou...) | 11:54 |
mal | @Shigenta I have something like this at the end of .hadk.env: sudo mount --bind /parentroot/some_folder "/home/some_user/some_other_folder" | 12:10 |
mal | that is the way it has access to the content from another disk | 12:11 |
mal | then you use that /home/some_user/some_other_folder as $ANDROID_ROOT | 12:11 |
T42_ | <Shigenta> oh, so i should bind it to folder in home and use it as android root? | 12:15 |
T42_ | <Shigenta> alr | 12:15 |
T42_ | <Shigenta> -bash: cd: /home/shigenta/harddrivelink/SailfishSantoni/hadk/: No such file or directory | 12:18 |
T42_ | <Shigenta> its empty in platformsdk | 12:20 |
mal | you are sure all paths are correct? and you don't get any error when entering plaform sdk? | 12:35 |
T42_ | <Shigenta> oh, wait, parentroot (re @SailfishFreenodeIRCBridgeBot: <mal>@Shigenta I hav...) | 12:36 |
T42_ | <Shigenta> now it works | 12:37 |
T42_ | <Shigenta> thanks | 12:38 |
T42_ | <Shigenta> anyway, build still fails https://hastebin.skyra.pw/puramucaje.bash | 12:39 |
mal | do you have this in your spec: %define droid_target_aarch64 1 | 12:41 |
T42_ | <Shigenta> which one spec? (re @SailfishFreenodeIRCBridgeBot: <mal>do you have thi...) | 12:41 |
T42_ | <Shigenta> droid-hal? droid-config? | 12:41 |
mal | droid-hal | 12:41 |
mal | note that it should be added before last line | 12:42 |
mal | that line in the file should be: %include dhd/droid-hal-device.inc | 12:43 |
mal | so add it to any place before that | 12:43 |
mal | *the last line should be | 12:43 |
T42_ | <Shigenta> another error https://hastebin.skyra.pw/farikiyesu.bash | 13:00 |
T42_ | <Shigenta> i see something about dtbo - los 16.0 kernel for my phone doesnt have dtbos (re @Shigenta: another error https:...) | 13:01 |
mal | dtbo is optional when device needs it | 13:01 |
mal | you need to add straggler_files define for the files, something like this but different paths https://github.com/mlehtima/droid-hal-fp2-sibon/blob/master/droid-hal-fp2-sibon.spec#L18 | 13:02 |
T42_ | <Shigenta> what about other errors? (re @SailfishFreenodeIRCBridgeBot: <mal>dtbo is optiona...) | 13:02 |
T42_ | <Shigenta> alr (re @SailfishFreenodeIRCBridgeBot: <mal>you need to add...) | 13:02 |
T42_ | <rosettanongrata> don't reply please | 13:09 |
T42_ | <rosettanongrata> looks bad on the irc side | 13:09 |
T42_ | <Shigenta> oh, alright | 13:09 |
T42_ | <rosettanongrata> same with editing. thanks | 13:09 |
T42_ | <Shigenta> again error https://hastebin.skyra.pw/zewavumate.kotlin | 13:39 |
mal | check the build log mentioned in that | 13:42 |
mal | just to be sure, for which sailfish version are you building? | 13:42 |
mal | check if all of those packages are in droid-local-repo | 13:43 |
T42_ | <Shigenta> latest one (re @SailfishFreenodeIRCBridgeBot: <mal>just to be sure...) | 13:43 |
T42_ | <Shigenta> ig | 13:43 |
T42_ | <Shigenta> https://hastebin.skyra.pw/okejaqogem.less ig thats why it fails | 13:44 |
mal | also make sure you use correct submodule revisions | 13:44 |
mal | from https://etherpad.wikimedia.org/p/hadk-hot there is the part "Recommended revisions: using latest (default) instead following may cause issues" | 13:44 |
mal | add these lines to droid-config spec https://github.com/mer-hybris/droid-config-sony-lena/blob/master/droid-config-common.inc#L14C1-L17C32 | 13:46 |
mal | then "build_packages.sh -c" and then again "build_packages.sh -v" | 13:46 |
T42_ | <Shigenta> https://hastebin.skyra.pw/gugobaseni.prolog now i dont really understand why it fails | 13:58 |
T42_ | <Shigenta> wait, after running it second time, for some reason it didnt fail | 14:01 |
T42_ | <Shigenta> hm | 14:01 |
mal | I think it got confused the first time but later in the builds removed the problematic package on line 82 in that log | 14:04 |
T42_ | <Shigenta> https://hastebin.skyra.pw/ficepuveyi.prolog another error | 14:46 |
mal | what do you have in droid-hal to cause that | 15:36 |
mal | show the droid-hal spec | 15:36 |
T42_ | <Shigenta> https://hastebin.skyra.pw/bahizajeze.shell | 15:37 |
mal | why that _unpackaged_files_terminate_build? | 15:49 |
T42_ | <Shigenta> it fails without it (re @SailfishFreenodeIRCBridgeBot: <mal>why that _unpac...) | 15:49 |
mal | how? | 15:50 |
T42_ | <Shigenta> /sdcard is not packaged | 15:51 |
T42_ | <Shigenta> and /bugreports | 15:51 |
mal | why didn't you add those to straggler_files? | 15:52 |
mal | like the other files | 15:52 |
T42_ | <Shigenta> hm | 15:52 |
T42_ | <Shigenta> alright | 15:52 |
mal | that is the point of straggler_files, if there are extra files that are not packaged by default then you add those to straggler_files so it builds without issues | 15:53 |
T42_ | <Shigenta> alright | 15:53 |
mal | it packages those to a package which can be then included in patterns if needed | 15:53 |
T42_ | <Shigenta> understood | 15:53 |
T42_ | <Shigenta> anyway, it didnt help | 15:55 |
T42_ | <Shigenta> same error | 15:55 |
mal | still not sure how you have /usr/lib/systemd/system in droid-hal | 15:56 |
mal | oh, wait, some issue with droidmedia maybe, did you verify the submodule versions like I suggested earlier? | 15:57 |
T42_ | <Shigenta> oh, i dont even know how lol | 15:57 |
T42_ | <Shigenta> this is my first time doing anything with submodules | 15:57 |
mal | https://etherpad.wikimedia.org/p/hadk-hot there is the part "Recommended revisions: using latest (default) instead following may cause issues" | 15:58 |
mal | btw, you should build 4.5.0.25 | 15:59 |
mal | but back to submodules, you go to for example rpm/dhd folder and there check git log to see which revision it uses | 15:59 |
T42_ | <Shigenta> i guess its b29f356 for dhd | 16:02 |
mal | if it's different from that that hadk-hot says, then in rpm/dhd folder run "git reset --hard 960d6af" also do the similar (using the revisions from hadk-hot) for the other ones mentioned in hadk-hot, like external/droidmedia, hybris/droid-configs/droid-configs-device and hybris/mw/sensorfwd | 16:02 |
T42_ | <Shigenta> alr | 16:03 |
T42_ | <Shigenta> and then just rebuild everything? | 16:03 |
mal | in case of droidmedia, if it's different then you should in HABUILD run make droidmedia (after the usual things before that) to rebuild droidmedia | 16:04 |
T42_ | <Shigenta> alr | 16:04 |
mal | so the env where you ran make hybris-hal before | 16:04 |
T42_ | <Shigenta> also, after reset --hard i should git pull --force? | 16:04 |
mal | no | 16:05 |
T42_ | <Shigenta> also, i dont have hybris/mw/sensorfwd | 16:08 |
mal | anything related to sensors in that hybris/mw folder | 16:11 |
T42_ | <Shigenta> there are only community-adaptation, droidmedia-localbuild, mce-plugin-libhybris, pulseaudio-modules-droid-hidl, pulseaudio-modules-droid-jb2q and qt5-qpa-hwcomposer-plugin | 16:12 |
mal | ok, then skip that | 16:12 |
T42_ | <Shigenta> alr | 16:13 |
T42_ | <Shigenta> also, can i put export RELEASE=4.5.0.25 in .hadk.env? | 16:22 |
mal | I think so | 16:24 |
T42_ | <Shigenta> still fails | 16:34 |
mal | you mean still those /usr/lib/systemd/system in droid-hal ? | 16:35 |
mal | and you did rebuild droid-hal? | 16:36 |
T42_ | <Shigenta> yeah | 16:36 |
T42_ | <Shigenta> yep | 16:36 |
mal | and you are sure rpm/dhd submodule is in correct revision? | 16:36 |
T42_ | <Shigenta> yes | 16:37 |
T42_ | <Shigenta> 960d6af | 16:37 |
mal | can you show the build log for droid-hal-version | 16:42 |
T42_ | <Shigenta> oh wait, should i rebuild everything from 7.2.1? | 16:44 |
T42_ | <Shigenta> or only droid-hal and configs | 16:44 |
mal | depends on what you change | 16:45 |
mal | hmm | 16:46 |
T42_ | <Shigenta> i mean, i only did git reset in droid-hal, configs and droidmedia | 16:46 |
T42_ | <Shigenta> so i rebuild only droid-hal, configs and droidmedia | 16:46 |
mal | check manually the content of droid-hal rpm | 16:46 |
T42_ | <Shigenta> hadk/rpm? | 16:48 |
T42_ | <Shigenta> grepped 'system' in all files in hadk/rpm https://hastebin.skyra.pw/ramodunolo.bash | 17:03 |
T42_ | <Shigenta> and systemd https://hastebin.skyra.pw/fipometequ.bash | 17:03 |
mal | I mean the rpm files you built. those are under droid-local-repo | 17:10 |
T42_ | <Shigenta> oh | 17:10 |
mal | but you can also show droid-hal build log | 17:10 |
mal | it should be in $ANDROID_ROOT | 17:10 |
T42_ | <Shigenta> https://hastebin.skyra.pw/iluridecow.bash | 17:12 |
mal | as a workaround edit this line in droid-hal-device.inc (in rpm/dhd) https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L1080 and make it like this: %{_unitdir}/* | 17:39 |
mal | then rebuild droid-hal rpms and try again | 17:39 |
T42_ | <Shigenta> alright | 17:40 |
T42_ | <Shigenta> should i create fork for that later? | 17:40 |
mal | I'll probably fix that in that repo | 17:40 |
mal | if it helps with your build | 17:41 |
mal | still not sure why nobody else has had such issues, at least I haven't heard of any | 17:41 |
T42_ | <Shigenta> hm | 17:41 |
T42_ | <Shigenta> ig it worked | 17:45 |
T42_ | <Shigenta> since its now "creating droid users and groups" | 17:45 |
T42_ | <Shigenta> ive got zip | 17:52 |
T42_ | <Shigenta> i should just flash it? | 17:52 |
T42_ | <Shigenta> also - for some reason only old twrp works, new ones are failing on installation script | 17:57 |
mal | yes, that is known issue with new twrp versions | 18:09 |
T42_ | <Shigenta> well, got this in dmesg https://hastebin.skyra.pw/etowinexom.csharp | 18:12 |
T42_ | <Shigenta> also, after it reconnects - yellow led is lighting | 18:54 |
T42_ | <elros34> you must telnet toevice and seewhat is going on according to hadk instructions | 19:03 |
T42_ | <Shigenta> yeah, but it doesnt connect | 19:04 |
T42_ | <Shigenta> and i cant even ping 192.168.2.15 | 19:05 |
T42_ | <elros34> did you try relevant for your case advices from following link? https://sailfishos.wiki/books/hadk/page/hadk-hot#bkmrk-2022.07.31%3A-generati | 19:07 |
T42_ | <elros34> do you use correct telnet port? | 19:08 |
T42_ | <Shigenta> 2323 | 19:08 |
T42_ | <Shigenta> i already said that i cant even ping this address | 19:09 |
T42_ | <Shigenta> i see that in ifconfig https://hastebin.skyra.pw/vevuxisihe.yaml | 19:22 |
T42_ | <elros34> did you try init_enter_debug2? | 19:23 |
T42_ | <Shigenta> what is it? | 19:24 |
T42_ | <Shigenta> and how can i try it lol | 19:24 |
T42_ | <Shigenta> oh, i see it on that page you gave me | 19:24 |
T42_ | <Shigenta> gimme a minute, i'll try it | 19:24 |
T42_ | <Shigenta> still the same thing - i cant connect with telnet, ifconfig shows the same thing | 19:27 |
T42_ | <Shigenta> but now it stays on 'init-debug in real rootfs' | 19:28 |
T42_ | <Shigenta> well, configuring usb networking as descibed here(https://docs.halium.org/en/latest/porting/debug-build/early-init.html) worked | 19:32 |
T42_ | <Shigenta> but without init_enter_debug2 it refuses to connect | 19:37 |
T42_ | <elros34> not a big deal, something fails or mess up connection. With that file you can still continue booting | 19:39 |
T42_ | <Shigenta> alr | 19:39 |
T42_ | <Shigenta> well, got that in init.log https://hastebin.skyra.pw/zofecoxate.bash | 19:45 |
T42_ | <Shigenta> and that in dmesg https://hastebin.skyra.pw/yiriwureli.yaml | 19:56 |
T42_ | <Shigenta> and that after 'echo "continue" >/init-ctl/stdin' https://hastebin.skyra.pw/erujupahug.prolog | 19:58 |
mal | you have telnet after that? | 19:59 |
T42_ | <Shigenta> nah | 19:59 |
T42_ | <Shigenta> after that last line in second dmesg telnet dies | 19:59 |
T42_ | <elros34> you need journal logs | 20:05 |
T42_ | <Shigenta> alr (re @elros34: you need journal log...) | 20:05 |
T42_ | <Shigenta> got something | 20:07 |
T42_ | <Shigenta> https://hastebin.skyra.pw/uxiwutucaz.yaml | 20:08 |
T42_ | <elros34> this is only 2 seconds, you need whole boot log. See instruction I linked and enable persistent logging | 20:12 |
T42_ | <Shigenta> alright | 20:12 |
T42_ | <elros34> don't forget about disabling audit, I think it's in same section | 20:13 |
T42_ | <Shigenta> do i need RateLimitInterval=0? | 20:19 |
T42_ | <elros34> maybe you need maybe you don't:), you will see | 20:21 |
T42_ | <Shigenta> anyway, i insert it lul | 20:22 |
T42_ | <Shigenta> well, i got journal logs | 20:26 |
T42_ | <Shigenta> buut, its unreadable | 20:26 |
T42_ | <Shigenta> can i send it as a file? | 20:27 |
T42_ | <Shigenta> even tho i added audit=0 | 20:30 |
T42_ | <elros34> is first 60-90s really that noisy? | 20:30 |
T42_ | <Shigenta> yeah | 20:32 |
T42_ | <Shigenta> https://irc.thaodan.de/.imgstore/0d803157/file_6058.jpg | 20:32 |
T42_ | <Shigenta> oh, i cant post screenshots here | 20:32 |
T42_ | <elros34> check what fails first | 20:33 |
T42_ | <Shigenta> well, how? (re @elros34: check what fails fir...) | 20:33 |
T42_ | <Shigenta> its barely readable lol | 20:33 |
T42_ | <Shigenta> the only thing i can see why it cant boot MESSAGE=/bin/sh: can't open '/usr/bin/droid/droid-hal-early-init.sh': No such file or directory | 20:35 |
T42_ | <Shigenta> but i dunno | 20:35 |
T42_ | <elros34> not a problem, it's optional file, keep searching:) systemctl output could gives some pointers too | 20:36 |
T42_ | <Shigenta> systemd-tmpfiles-setup.service: Failed with result 'exit-code' | 20:39 |
T42_ | <Shigenta> droid-hal-init.service: Failed with result 'exit-code' | 20:39 |
T42_ | <elros34> most important is droid-hal-init, first one is probably because of some missing kernel changes, probably not very important | 20:41 |
T42_ | <Shigenta> Sending signal 9 to service 'hwservicemanager' (pid 4372) process group... HYBRIS: killing PID instead | 20:42 |
T42_ | <Shigenta> critical process 'hwservicemanager' exited 4 times in 4 minutes | 20:43 |
T42_ | <Shigenta> Could not read message from init: Invalid argument | 20:43 |
T42_ | <Shigenta> Could not read message from init: No such file or directory | 20:43 |
T42_ | <Shigenta> ig its cuz of hwservicemanager | 20:46 |
T42_ | <Shigenta> because i cant find anything else lol | 20:46 |
T42_ | <elros34> btw did you add hybris-16 (or whatever version you use) related changes from hadk-hot/faq? | 20:49 |
T42_ | <Shigenta> yep | 20:49 |
T42_ | <Shigenta> you can even check my repo https://github.com/sailfishos-santoni/droid-config-santoni/tree/master | 20:49 |
T42_ | <elros34> another can of worms is logcat | 20:50 |
T42_ | <Shigenta> i should try to get logcat? | 20:50 |
mal | is which android base is what? | 20:51 |
mal | *that | 20:51 |
T42_ | <elros34> you can. Without seeing logs I can not advice you anything better. | 20:51 |
T42_ | <Shigenta> its android 9.0(los 16.0) | 20:51 |
mal | is selinux related things correctly done? | 20:51 |
T42_ | <Shigenta> ig? | 20:52 |
T42_ | <Shigenta> in defconfig? | 20:52 |
mal | did you follow the instructions in https://github.com/mer-hybris/hadk-faq?tab=readme-ov-file#hybris-160 | 20:52 |
T42_ | <Shigenta> yep | 20:53 |
T42_ | <Shigenta> oh, wait | 20:53 |
T42_ | <Shigenta> i should check something | 20:54 |
mal | do you have the hwservicemanager failure mentioned in that? | 20:54 |
T42_ | <Shigenta> i cant even run logcat lol | 20:55 |
T42_ | <Shigenta> /bin/sh: /usr/libexec/droid-hybris/system/bin/logcat: not found | 20:55 |
T42_ | <Shigenta> but yeah, ig i have it | 20:55 |
T42_ | <Shigenta> since it fails as seen in journal logs | 20:55 |
mal | do you now have telnet now after you continue boot? | 20:56 |
T42_ | <Shigenta> no i dont lol | 20:57 |
mal | have you tried masking usb-moded? | 20:57 |
T42_ | <Shigenta> nah | 20:57 |
T42_ | <Shigenta> systemctl mask usb-moded? | 20:58 |
mal | using: ln -s /dev/null /etc/systemd/system/usb-moded.service | 20:58 |
mal | you don't have systemd running yet when you have stopped the boot | 20:59 |
T42_ | <Shigenta> ln: /etc/systemd/system/usb-moded.service: File exists | 21:00 |
T42_ | <elros34> systemctl mask should be good too | 21:00 |
T42_ | <Shigenta> anyway, after systemctl mask usb-moded telnet still dies | 21:00 |
mal | have you tried masking droid-hal-init.service also? | 21:23 |
T42_ | <Shigenta> no | 21:23 |
T42_ | <Shigenta> i'll try it rn | 21:24 |
T42_ | <Shigenta> oh | 21:30 |
T42_ | <Shigenta> only after masking both droid-hal-init and usb-moded telnet didnt die | 21:31 |
T42_ | <Shigenta> got journal logs | 21:33 |
mal | also check output of systemctl and systemctl-user to see which systemd service work and which don't | 21:34 |
T42_ | <Shigenta> alr | 21:35 |
T42_ | <Shigenta> but now i see that it skips files i put like it was said in hadk-faw Unable to read config file '/usr/libexec/droid-hybris/system/etc/init/hwservicemanager.rc': Skipping insecure file | 21:35 |
T42_ | <Shigenta> and in the end it spams binder: 2909:2909 transaction failed 29189/-22, size 0-0 line 3015 | 21:36 |
T42_ | <elros34> what permission you set to that rc file? have you tried removing/commenting out usb*rc files according to same linked instruction instruction | 21:37 |
T42_ | <Shigenta> what permissions i should set to these rc files? | 21:38 |
T42_ | <Shigenta> nah, i havent | 21:38 |
T42_ | <Shigenta> they're all 0777 | 21:40 |
T42_ | <elros34> for sure they shouldn't, nothing set it like that | 21:42 |
T42_ | <elros34> did you copy files manually? | 21:42 |
T42_ | <Shigenta> yeah | 21:44 |
T42_ | <Shigenta> it should be 0644? | 21:45 |
T42_ | <elros34> see /system/ (etc) or something like that | 21:46 |
T42_ | <elros34> but probably like you said 644 | 21:46 |
T42_ | <Shigenta> alr | 21:48 |
T42_ | <Shigenta> ig it should work now | 21:55 |
T42_ | <Shigenta> since droid-hal-init works | 21:56 |
T42_ | <Shigenta> and hwservicemanager too ig | 21:56 |
T42_ | <Shigenta> how can i check is hwservicemanager works? ig it is, since i dont see it crashing in journalctl | 21:59 |
T42_ | <elros34> pgrep -af servicemanager to see whether it's up but whether it works you need logcat | 22:03 |
T42_ | <Shigenta> empty output | 22:04 |
T42_ | <Shigenta> also, now i have logcat, but it says 'logcat read failure' | 22:09 |
T42_ | <Shigenta> logcat https://pastebin.com/kmJLzZKq | 22:18 |
T42_ | <Shigenta> after the last line in logcat it said 'read: unexpected EOF!' | 22:19 |
T42_ | <Shigenta> also, droid-hal-init works for about 10-20 seconds and then crashes | 22:21 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!