Tuesday, 2023-06-27

T42<smatkovi> so this file called arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-gcc is a python script and it didn't work well with the os module so i wrote the line differently with the subprocess module. now it works but it wanted a real-arm-linux-androidkernel-gcc, i copied 4.9 and 7.x version of gcc there but now it says real-arm-linux-androidkernel-gcc: error: unrecognized command line option ‘-mshort-load-bytes’00:58
T42<smatkovi> i redownloaded prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 and now it seems to be working01:42
T42<smatkovi> #### build completed successfully (56:29 (mm:ss)) ####02:17
T42<smatkovi> i checked the kernel and now i have to resolve the errors before i can use it as a mb2 build target?02:35
T42<smatkovi> because it says it doesn't know this target. anyway i modified the kernel options and recompiling now03:01
T42<smatkovi> this is the only error i cannot get rid of, although i specified it in the defconfig: ERROR: CONFIG_IKCONFIG_PROC is invalid03:17
T42<smatkovi> and this: Fatal: 'samsung-j5xnlte-aarch64' is not a known build target03:19
T42<smatkovi> i was successful with mb2 -t SailfishOS-latest-armv7hl10:07
T42<elros34> but this target name will not work in build scripts, you must create correct build target, read again that part hadk pdf (Notice)10:22
T42<smatkovi> what do you mean by (Notice)?10:29
T42<smatkovi> good morning btw :)10:30
T42<smatkovi> i used this command sdk-assistant create SailfishOS-latest-aarch64 Sailfish_OS-latest-Sailfish_SDK_Target-aarch64.tar.7z10:33
T42<smatkovi> or do you mean something else?10:33
T42<elros34> morning. Read again that chapter, it has  big warning box about target name10:34
T42<smatkovi> i thought it was to use somewhere else10:35
T42<smatkovi> would you use aarch64 or armv7hl?10:36
T42<smatkovi> i'm trying with aarch64 now and it at least goes without errors10:37
T42<elros34> you can only use arm because like we alread figure out your device is arm. See kernel it's compiled with arm toolchain10:37
T42<smatkovi> unfortunately it failed building the package, i have the feeling that this is because of the CONFIG_IKCONFIG_PROC error, but i don't know where to put it, i already put it at various places in the device  defconfig11:13
T42<smatkovi> this is the full log https://pastebin.com/tu8dKTuS11:13
T42<smatkovi> and this is the defconfig https://pastebin.com/qifRLf6n11:24
deathmist1@smatkovi always look in .config for the actual set of enabled config options, kernel config options have dependencies as in this case seen on https://cateee.net/lkddb/web-lkddb/IKCONFIG_PROC.html both CONFIG_IKCONFIG=y and CONFIG_PROC_FS=y should be set before you can enable that one11:29
deathmist1typically you'd not edit defconfig files directly like you're doing but android builds kinda encourage this kind of crap because there isn't a simple way to bring up https://en.wikipedia.org/wiki/Menuconfig afaik11:30
T42<smatkovi> oh thanks, that one i couldn't know11:31
T42<TheVancedGamer> actually, you could just go into out/target/product/device name/obj/KERNEL_OBJ11:32
T42<TheVancedGamer> and ru n menuconfig there11:32
T42<smatkovi> it says command not found, but i won't bother about that, because i still can edit the file11:37
T42<smatkovi> it complained about an unknown variable compiling the kernel, so i did make clean, now i have to wait 1h again. i will go to uni studying for the exam today, so i will continue working on that in the evening11:39
T42<smatkovi> it was PATH_OVERRIDE_SOONG11:41
T42<edp_17> I use this to manually check dependencies in kernel: https://cateee.net/lkddb/web-lkddb/12:03
T42<neochapay> Who can help me with start /sbin/droid-hal-init ?12:16
T42<neochapay> ```12:16
T42<neochapay> Jun 27 00:52:50 T1100 sh[1399]: CANNOT LINK EXECUTABLE "/sbin/droid-hal-init": invalid ELF file "/system/lib64/bootstrap/libdl.so" load segment[4]: p_offset (0x3000) + p_filesz (0x0) ( = 0x3000) past end of file (0x28e0)12:16
T42<neochapay> Jun 27 00:52:50 T1100 sh[1399]: linker: CANNOT LINK EXECUTABLE "/sbin/droid-hal-init": invalid ELF file "/system/lib64/bootstrap/libdl.so" load segment[4]: p_offset (0x3000) + p_filesz (0x0) ( = 0x3000) past end of file (0x28e0)12:16
T42<neochapay> Jun 27 00:52:50 T1100 systemd[1]: droid-hal-init.service: Main process exited, code=exited, status=1/FAILURE12:16
T42<neochapay> Jun 27 00:52:50 T1100 systemd[1]: droid-hal-init.service: Failed with result 'exit-code'.12:16
T42<neochapay> Jun 27 00:52:50 T1100 systemd[1]: Failed to start droid-hal-init.```12:16
Mister_Magisterfast ball, do i build backports before or after kernel12:29
T42<smatkovi> wow the kernel is built with this option now :)12:36
T42<smatkovi> strange build_packages.sh exits with this error: cp: cannot stat './out/target/product/j5xnlte/system/apex/com.android.runtime.release/lib/bionic/libdl_android.so': No such file or directory12:40
T42<Mister_Magister> sitting here debugging camera on victara because i'm bored and it's fun13:16
T42<Mister_Magister> never thought i would say that13:16
T42<elros34> actually it's not that hard to use menuconfig and even xconfig13:24
T42<Mister_Magister> i really don't know why nobody here is using it13:30
T42<Mister_Magister> make ARCH=arm menuconfig13:30
T42<Mister_Magister> after you're done make mrproper13:31
mal@neochapay you are sure your android side /system and hybris-hal builds are the same version?13:31
T42<elros34> little more than ARCH=arm: https://pastebin.com/vXgWvv2u13:34
T42<Mister_Magister> no srsly you just need ARCH=arm (re @elros34: little more than ARC...)13:35
T42<Mister_Magister> you don't need all that13:35
T42<Mister_Magister> go to kernel directory and run make ARCH=arm or arm64 menuconfig and thats all13:36
T42<elros34> and how it will know which defconfig file to use and where to put .config instead in kernel directory. Of course it's possible but that scripts handle everything13:37
T42<neochapay> same (re @SailfishFreenodeIRCBridgeBot: <mal>@neochapay you ...)13:37
T42<Mister_Magister> you tell it (re @elros34: and how it will know...)13:38
T42<elros34> @neochapay don't you have some bootstrap/libdl.so built in out/? Maybe you need to use these instead13:53
T42<elros34> btw did you remember to rebuild and install droid-config after fixing android_version_major?13:54
T42<neochapay> ```13:55
T42<neochapay> * Building rpm/droid-hal-tb8788p1_64_bsp.spec13:55
T42<neochapay> + echo '%dir /apex'13:55
T42<neochapay> + art_path=./out/soong/.intermediates/art/build13:55
T42<neochapay> + apex_path=apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex13:55
T42<neochapay> + '[' '!' -f ./out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libc.so ']'13:55
T42<neochapay> + art_path=./out/target/product/tb8788p1_64_bsp/system13:55
T42<neochapay> + apex_path=apex/com.android.runtime.release13:55
T42<neochapay> + '[' '!' -f ./out/target/product/tb8788p1_64_bsp/system/apex/com.android.runtime.release/lib/bionic/libc.so ']'13:55
T42<neochapay> + art_path=./out/target/product/tb8788p1_64_bsp13:55
T42<neochapay> + apex_path=apex/com.android.runtime13:55
T42<neochapay> + rm -f /home/neochapay/work/f+/alps/installroot/usr/libexec/droid-hybris/system/lib/libdl.so /home/neochapay/work/f+/alps/installroot/usr/libexec/droid-hybris/system/lib/libdl_android.so /home/neochapay/work/f+/alps/installroot/usr/libexec/droid-hybris/system/lib/libc.so /home/neochapay/work/f+/alps/installroot/usr/libexec/droid-hybris/system/lib/libm.so13:55
T42<neochapay> + cp -a ./out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libdl.so ./out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libdl_android.so ./out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libc.so ./out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libm.so /home/neochapay/work/f+/alps/installroot/usr/libexec/droid-hybris/system/lib13:55
T42<neochapay> cp: cannot stat './out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libdl.so': No such file or directory13:55
T42<neochapay> cp: cannot stat './out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libdl_android.so': No such file or directory13:55
T42<neochapay> cp: cannot stat './out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libc.so': No such file or directory13:55
T42<neochapay> cp: cannot stat './out/target/product/tb8788p1_64_bsp/apex/com.android.runtime/lib/bionic/libm.so': No such file or directory13:55
T42<neochapay> error: Bad exit status from /var/tmp/rpm-tmp.JqZwJE (%install)```13:55
T42<neochapay> hmm13:55
T42<elros34> did you strace droid-hal-init to see which libs it tries to load first? check droid-hal-device.inc, I think it was modified few times to handle correctlythat libc/m copying because different devices/bases use different place13:57
T42<neochapay> https://pastebin.com/B6YJDZGg (re @elros34: did you strace droid...)14:06
T42<elros34> hm, did you found some bootstrap directory in /out to compare that libdl.so with /system/*bootstrap one?14:14
mal@neochapay that looks like some issue with symlink targets being missing?14:34
Mister_MagisterYo, anyone here with hammerhead (not the fish kind)15:52
T42<edp_17> I have a Nexus 5 ( hammerhead). How can I help?16:10
T42<Mister_Magister> when you have camera on do you get messages like "msm_camera_cci_i2c_write_seq_table: number of bytes 16896 exceeding the max supported 256"? (re @edp_17: I have a Nexus 5 ( h...)16:20
T42<edp_17> I'll check that and let you know.17:34
T42<edp_17> Where? In journal, logcat or console?17:34
T42<Mister_Magister> dmesg18:29
Mister_Magisterhmmm… which code would talk to camera's ioctl20:34
Mister_Magistercould be a blob20:52
T42<edp_17> @Mister_Magister : When jolla-camera is on, the dmesg | grep msm_camera_cci_i2c returns with nothing on my hammerhead with sfos 4.420:54
T42<Mister_Magister> okai thank20:54
T42<edp_17> Np20:54
T42<Mister_Magister> so maybe i'm not barking the wrong tree20:54
T42<Mister_Magister> hammerhead is also using imx135 no? (re @edp_17: Np)20:54
T42<edp_17> Idk. How can I check?20:55
T42<Mister_Magister> got link to defconfig?20:56
T42<edp_17> https://github.com/edp17/android_kernel_lge_hammerhead/blob/hybris-12.1-edp17/arch/arm/configs/cyanogenmod_hammerhead_defconfig20:58
T42<edp_17> Imx135 is not set20:59
Mister_Magisterinternet lied to me then21:00
T42<edp_17> What does that imx135 do?21:00
Mister_Magisterit's camera21:00
Mister_Magistercamera sensor/driver21:01
T42<edp_17> I see. Camera works somehow else then. :)21:01
malandroid usually does camera differently and doesn't use kernel drivers, of course depends on the device21:11
T42<Mister_Magister> this one does (re @SailfishFreenodeIRCBridgeBot: <mal>android usually...)21:12
T42<Mister_Magister> mm-qcamera-daemon calls ioctl on kernel's driver21:12
T42<Mister_Magister> and i suppose other devices do the same21:12
T42<Mister_Magister> hmm mm-qcamera-daemon comes from system :/21:14
T42<Mister_Magister> i just hit a dead end21:15
T42<Mister_Magister> if it comes from android then the error must exist on android too21:15
T42<Mister_Magister> so thats not the issue i guess21:16
T42<Mister_Magister> QCamera2HWI: static void* qcamera::QCameraCbNotifier::cbNotifyRoutine(void*) : cb message type 32768 not enabled, this is coming from minimedia…21:50
T42<Mister_Magister> bruhh outta ideas22:03
T42<Mister_Magister> https://paste.opensuse.org/pastes/10e2729b1890 it really looks like it might be the problem22:07
T42<Mister_Magister> i wonder who sets up/sends the callbacks22:08
T42<Mister_Magister> seems that the callbacks end at 0x2000 and 0x1000/0x2000 is some qualcomm special callback, mine is 0x8000 so some motorola proprietary stuff?22:21
T42<Mister_Magister> according to another enum 0x1000 is vendor start and 0x8000 is vendor end so i was close22:42
T42<Mister_Magister> tho that doesn't give it any more sense22:47
malwhat issue are you trying to fix?23:05
Mister_Magistercamera recording xd23:05
malso still pictures work?23:06
Mister_Magisterwell… front camera doesn't work in piggz's camera but work in jolla's23:06
malI remember some devices had issues what maximum reported resolution did not really work when recording videos23:08
mallike xperia x https://github.com/mer-hybris/droid-config-f5121/commit/cfea9265d9ca5509637c01b32c690fbdf9f17f9d23:08
malmaybe try something like that on your device?23:09
Mister_Magisteri tried bumping down the res and it only slighty helps23:09
Mister_Magisterapparently this sensor can do only 15fps at 4k, but iirc stock android can do 4k23:09
Mister_Magisterthere's some issue with setting camera parameters but thats all blobs23:10
maldid you try that 1920x1080 resolution?23:10
Mister_Magistergimme a sec23:12
Mister_Magisteroh i can't change resolution in settings anymore23:13
malonly very limited way23:13
mallike that max resolution for video23:13
malfor jolla-camera app23:13
Mister_Magisternah can just change aspect ratio23:14
Mister_Magistermal: same thing23:26
Mister_Magisterhttps://paste.opensuse.org/pastes/756392b37041 thats all im gettin23:27
malanything in logcat?23:27
Mister_Magisterye mostly what i described already xd23:28
Mister_Magisterbut imma get you log23:29
Mister_Magisterhttps://paste.opensuse.org/b1ae69f38bb3 enjoy the book23:32
Mister_Magisteri've noticed that it might be trying to do 4160x3120 while max res is 3840x216023:36
Mister_Magisterbut i might be reading it wrong23:37
Mister_Magisteryep decided i would sit on it today, learned bunch of stuff about kernel, how camera works23:42
malyeah, it's a bit late now, need to check those more closely later this week23:43
Mister_Magisterdw it's not new port23:43
Mister_Magisterwas jsut bored23:44
Mister_Magistermal: smol question does modules-droid-jb2q have profiles like modules-droid?23:45
Mister_Magisterlike according to this readme https://github.com/mer-hybris/pulseaudio-modules-droid i can use pactl set-card-profile droid_card.primary voicecall to switch to voicecall mic23:46
Mister_Magisteroh nvm jb2q has same readme23:47
Mister_Magistergotta figure out how to reliably switch mic/speaker to earpiece23:47
Mister_Magisterimma also get logcat from newer android on same phone to see what is error and what is not23:49
Mister_Magisteraltho newer android is probably using differne camera api isnt it23:49
Mister_Magisternow why the heck did vibrator stop working lol23:57

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