Wednesday, 2024-11-13

rinigus@b100dian: morning! Looks like you forgot to make SDK target with sdk-assistant05:01
rinigusLooked at config changes and I think we need to adjust dynpart setup. It's currently using sda10 which is tz partition. I guess it's a typo05:03
rinigusAlso not sure if makes sense to use before in systemd dmsetup service for mounts. Instead, I would suggest to use after in mounts.05:08
rinigus@b100dian: we also need to add parse-android-dynparts to patterns. I have pushed "requires" to nolvm branch"06:36
rinigus@b100dian: I have also fixed super partition setup in droid-config. checked in fp4 repos - they had super on sda10; we have on sda9307:58
T42<b100dian> Oops yup, forgot to change that.08:06
*** Ischwitch is now known as Ingvix08:26
T42<b100dian> rinigus: I did add Requires to patterns/patterns-sailfish-device-adaptation.inc, it was on a lower line (90-ish)08:31
T42<b100dian> rinigus: you're right, I had the target with nagara instead of xqcq5408:34
rinigus@b100dian: sorry, missed your requires. will remove mine08:51
rinigusactually, I would keep the one closer to hybris as it is more related to overall android-sfos glue08:52
T42<b100dian> Sure, but no rush, we can edit with the next fix anyway08:58
rinigusdone already - otherwise it will slip09:08
rinigusobs rebuilds triggered as well09:09
rinigus@b100dian: do we need parse-android-dynparts in hal? or should it be just one more package at OBS?09:12
T42<b100dian> just the one package at OBS should work, I was thinking to use hal as a checkout-everything-needed don't feel strong about it09:13
rinigus@b100dian: here our styles are different. I would prefer to keep there only those packages that need android bits. rest can be done at obs and we don't have to worry about keeping submodules in sync with updates09:16
rinigusI'll add it to OBS as well. otherwise mic image building will be problematic09:16
*** phlixi is now known as Guest928809:58
*** phlixi_ is now known as phlixi09:58
*** phlixi is now known as Guest930012:27
*** phlixi_ is now known as phlixi12:27
rinigus@b100dian: fyi mic create fs fails to make zip file if we ask it to pack root into tar.gz . it works for tar.bz2 :)14:45
T42<b100dian> Ah, that may require a hyvbis-boot change. But maybe bzip2 unpacking works on our devices?14:46
T42<b100dian> *hybris-boot14:47
T42<b100dian> This change if bzip2 doesn't work: https://github.com/sailfishos-on-sake/hybris-boot/commit/85b3bdb68ae2029400ffc184c0ad4a4ad3caded314:48
rinigus@b100dian: let's keep generating tgz and failing on the last step. maybe we will go back to lvm anyway - so no need to start fixing it :)14:54
rinigusalso, your sake "alternative" flashing instructions are handy in this case14:54
T42<b100dian> Yeah, these days recovery is not what it used to be:D14:56
rinigus@b100dian: turns out I don't know how to get /data mounted in adb. please instruct17:52
rinigus(in recovery)17:53
rinigusreading back the logs, looks like I just need to format userdata (sda94)17:57
rinigus@b100dian: flashed the latest image. it gets stuck on sony logo (no sfos logo appears anymore) and reboots after some time. will see if there are some logs/traces on device18:07
rinigushave init.log with sleep 60 and reboot after that.18:08
rinigusand have no rndis btw. same in that log18:09
T42<b100dian> Which boit inage are you using?18:34
T42<b100dian> *boot18:34
T42<b100dian> Just mkfs.ext4 /dev/block/sda9418:35
malwhy not use fastboot to format userdata?18:45
rinigus@b100dian: hybris-boot. but now which in particular, would have to trace down. just a sec18:49
rinigusmal: as I was not sure :) . will use it next time18:49
rinigus@b100dian: added this flashing procedure as far as I understood into our docs (end of hadk)18:50
T42<b100dian> Try a fresh build of hybris-recovery18:50
rinigusbtw, for me, fastbootd disappears when I flash hybris boot (and hybris dtbo + vendor_boot). to get back to it, have to flash all 3 from aosp.18:51
rinigusis that expected?18:51
malknown issue18:52
malfastbootd lives split in vendor_boot and boot, hybris-boot.img doesn't support it, yet18:52
rinigusmal: thanks!18:54
rinigus@b100dian: do you tahe your hybris-boot from RPM or from hadk/out/target/product/pdx224/hybris-boot.img18:55
T42<b100dian> The latter18:55
rinigus@b100dian: hybris-recovery does show up rndis in dmesg. and shows sfos logo after which all goes dark and rndis disappears. will try once more with -recovery after removing init.log (not sure whether its old or new)19:45
T42<b100dian> Chroot from recovery into sailfishos and mask usb-moded19:46
T42<b100dian> Or mask it very fast:)19:47
rinigus@b100dian: doesn't look like possible. lots of permission denied in init.log: https://paste.mozilla.org/O4CUzRPp/raw19:57
rinigusthat's with hybris-recovery, dtbo, and vendor_boot from sfos hadk19:57
rinigusfrom out/target/product/pdx22319:57
rinigusand there is also journal, will try to pull that19:58
malwhy is that trying to use android_usb and not configfs?20:00
rinigusno idea. would have to find the corresponding init20:03
malis seems to find /sys/class/android_usb/android0 folder and then tries to use it20:05
malsome mistake in kernel config changes?20:05
T42<elros34> change if/else order so script will use configfs20:06
rinigusmal: re config mistakes, don't know. would have to look probably20:09
rinigus@elros34: can try, thanks20:09
T42<elros34> my wild guess is  something initialize usb (but what?) that is why android0 is available but why b100dian didn't have this issue20:12
rinigus@elros34: I hope we have the same builds, but cannot be 100% sure. also I don't know if b100dian flashed vendor_boot and dtbo. also, its all while booting using hybris-recovery. no idea if it has any impact20:20
riniguswhile we do have different devices (1iv vs 5iv), platform is the same and it shouldn't matter20:20
rinigusgoing through the journal to see if there is something obvious20:21
T42<b100dian> rinigus: I have only flashed boot not anything else, over aosp15 r67.20:22
T42<b100dian> Do you have the defconfig changes in kernel repo and did you manually build it? Because it picks some prebuilt otherwise20:23
rinigus@b100dian: OK, so flashing is different. re kernel - did build it manually using ./build-kernels-clang.sh20:26
rinigusI wonder if I can check config from hybris-recovery image20:26
T42<b100dian> Should be possible, some proc/zConfig if I remember correctly20:27
T42<elros34> sure zcat /proc/config.gz20:27
rinigusyes, but that's while booted. probably can extract that from image as well20:29
rinigusone of the first things in journal: dmsetup.service: Main process exited, code=exited, status=1/FAILURE20:30
rinigusso, dynamic partitions are bust20:30
rinigusnot configured during boot20:30
T42<b100dian> Hmm.. Ok, so you are using a build I have not yet tried20:31
T42<b100dian> But still you did have *some* telnet access?20:31
rinigusre telnet: not really, didn't had a chance to configure it on pc side. and if you look into init.log above then its not very promising either20:34
rinigusre dyn partitions: they somehow are still on as I have "Found device /dev/mapper/dynpart-odm_a." and later its mounted20:34
T42<b100dian> Ok, so that is log from android recovery. Ok, then Elros suggestion of switching the if/else could do it.   I have a static IP on my laptops usb interface since.. 2021 probably, first port:)20:35
T42<elros34> wait do you flash regular hybris-recovery.img? Why not hybris-boot.img?20:40
rinigustowards the end of a journal I do get lots of "Dependency failed for Droid mount for /vendor" due to failed dmsetup I think.20:40
rinigusre hybris-boot: can try that again as well. that ended up just rebooting.20:41
riniguswill test again20:41
T42<elros34> create /init_enter_debug220:41
T42<elros34> it's all little strange, you shouldn't be able to boot to real rootfs when using hybris-recovery20:43
rinigusit still gets stuck on sony and reboots on 60s20:47
riniguslog coming up20:47
T42<elros34> maybe I am wrong and if recovery init usb and doesn't findy any issue it just continue booting to second stage and then it fails with usb initialization20:49
rinigushttps://paste.mozilla.org/x3b0r2Ah/raw20:50
rinigusnot sure it matters, but there is no usleep (usleep: not found) in these init.logs20:51
T42<b100dian> usleep: not found20:51
T42<b100dian> Wow20:51
T42<b100dian> Change it to sleep 1, but I am really curious how it worked for me now20:52
rinigusI have no idea. rather strange20:54
T42<b100dian> I mean, I didnt have telnet without one pause there  but I'm confuses how did I have one with usleep if it is not defined20:54
T42<b100dian> *confused20:55
T42<b100dian> Still away from my keyboard, maybe in 10 mins I'll check..20:55
rinigusthat helped, now shows sfos logo that blanks out later. so, similar to recovery20:59
rinigusand rndis disappears21:00
T42<elros34> if you would have init_enter_debug2 then you shouldn't see sfos log and have persistent telnet21:01
rinigus@elros34: I see. that would have to wait for tomorrow - rather late over here. sorry21:01
T42<elros34> sure thing, of course you can create it in recovery21:02
rinigusyes, that's a plan. unless @b100dian will fix everything meanwhile :)21:05
T42<b100dian> well, I also have the usleep: not found, so I was just lucky in a race with a kernel. gonna set back to 1s, and yes, I'm going to continue creating mic again myself, hopefully with more brainpower left than yesterday21:06
T42<b100dian> There's another usleep 500000 usb_setup_android_usb and I haven't introduced that one21:08
T42<b100dian> I _think_ that this init script is ran twice, once in ramfs and once in real rootfs, and in ramfs there's usleep21:09
malyes, both are run21:10
T42<elros34> it is but usb init part is not21:10
rinigusOK, that's good. some progress is there even without telnet for me - can pull journal using adb from recovery. better than empty boots21:10
T42<elros34> I wonder if this strange android_usb behavior is because of using hybris-recovery. I saw something similar in past and now I think it was because porters tried recovery (usually nobody uses it)21:13
T42<b100dian> I did manage to get telnet on hybris-boot with empty ext4 /data partition, but not with unpacked rootfs21:14
malwhy are you using hybris-recovery?21:14
T42<b100dian> So I assumed you were correct in saying that hybris-boot does not have kernel access on aosp, but really didn't check21:14
T42<b100dian> And that's why I switched to hybris-recovery21:14
T42<elros34> but init_enter_debug2 should work in your case21:15
T42<b100dian> It may just be that I added that usleep instead of sleep, it didn't work, and I lost the kernel race one time randomly and won it another time, still randomly21:15
T42<b100dian> Yeah, gonna try again now, first without init_enter_debug221:15
T42<b100dian> then with21:16
T42<b100dian> *kernel access = telnet access21:16
T42<elros34> people seems to try to avoid it like it would break something but it only save time, you can easily continue booting with it21:16
malyeah, I add init_enter_debug2 when do testing on new device21:18
maland also always at first disable droid-hal-init and usb-moded21:18
malto prevent losing telnet and possible boot loops21:18
T42<b100dian> so with hybris boot no init.log and no telnet, reboot in 60 seconds, with  init_enter_debug2 in root nothing either. Looks like /data is not mounted. Aaand of course21:28
T42<b100dian> /boot appears to live on21:28
T42<b100dian> sounds like fixup-mounpoints again, where we have boot_a :D21:28
T42<elros34> most likely you don't have /boot defined in fstab21:29
malyeah, many new devices don't have it in fstab21:30
malbut build should complain about it21:30
T42<b100dian> but that doesn't explain why recovery has telnet and boot doesnt , right?21:33
malassuming those are otherwise the same21:56
T42<b100dian> cp: cannot stat './out/target/product/pdx224/hybris-updater-script'23:38
T42<b100dian> I see that this needs the /boot entry in fstab, but what to rebuild? hybris-boot would be my first guess, but doesn't make it23:39
T42<b100dian> the error is on `rpm/dhd/helpers/build_packages.sh -d`23:39
T42<elros34> build hybris-hal, it t should build everything needed23:43
T42<b100dian> hmm I did23:44
T42<elros34> so you still have errors about /boot?23:45
T42<b100dian> not sure, just found this missing hybris-updater-script and searched the logs here that it may be related to boot23:52
T42<b100dian> to be fair, I have not built this nagara repos locally, rinigus did all that on OBS :) so I'm doing this now23:53
T42<elros34> see Android.mk from hybris-boot. If you don't have b23:53
T42<elros34> boot entry in fstab then there will be missing hybris-updater-script23:54

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