Wednesday, 2022-02-09

T42<HengYeDev> @elros34 Boot header version is same, but lineage has BOARD_DTB_SIZE and BOARD_DTB_OFFSET that hybris-boot doesn't01:02
T42<HengYeDev> also, lineage flashes a dtbo, does that change01:04
T42<elros34> what if you will recreate boot.img, will it boot? If yes then replace only initramfs and see if that fails01:12
T42<HengYeDev> it works if I reflash boot.img, hopefully thats what you mean by "recreate" (re @elros34: what if you will rec...)01:17
T42<elros34> I just wondering whether there is something wrong in abootimg because of: "dt table header check fail". If that would be the case then lineage's boot.img with hybris initramfs should work. By recreate I mean create new boot.img with mkbotimg01:20
T42<dcmmc> from dmesg of host, i got usb 3-3: Manufacturer: Oneplus and SerialNumber: af315f7805:19
T42<dcmmc> any tips for solving this? plz05:19
T42<dcmmc> usb_moded[1822]: /config/usb_gadget/g1/functions/rndis.usb0/ethaddr: can't open for writing: No such file or directory05:24
T42<dcmmc> I manually linked /usr/lib/systemd/system/usb-moded.service to /dev/null.05:40
T42<dcmmc> But telnet still not work 🙁05:40
deathmist@dcmmc set CONFIG_USB_CONFIGFS_RNDIS=y and CONFIG_USB_CONFIGFS_F_QCGSI=n iirc in kernel defconfig05:51
deathmistassuming if05:51
deathmistit's not an ancient device*05:51
T42<dcmmc> it’s oneplus 6 with sdm84505:52
T42<dcmmc> i have CONFIG_USB_CONFIGFS_RNDIS=y in defconfig05:53
T42<dcmmc> but missing CONFIG_USB_CONFIGFS_F_QCGSI=n05:53
T42<dcmmc> i will try to add this one05:53
T42<dcmmc> btw, what’s the mean of iirc?05:53
Thaodan@dcmmc: https://www.urbandictionary.com/define.php?term=iirc06:33
T42<dcmmc> got it now06:37
T42<elros34> @dcmmc  you got telnet?10:49
T42<elros34> @dcmmc your usb connection is working otherwise you wouldnt boot to sailfish so defconfig changes are not needed. Try "touch /data/.stowaways/sailfishos/init_enter_debug2" if that will help then probably some /init*rc script mess up with usb otherwise issue is with your pc/usb10:54
T42<dcmmc> Elros: thank you for this tip10:55
T42<dcmmc> will try it now10:55
T42<dcmmc> Elros: u r a genius!11:29
T42<dcmmc> after touch /data/.stowaways/sailfishos/init_enter_debug2, I finally got ``Serial Number: Mer Debug telnet on port 2323 on rndis0 192.168.2.15 - also running udhcpd”11:30
T42<dcmmc> but i still cannot connect it, maybe issue with my pc11:39
T42<dcmmc> cannot found 192.168.2.15 on host11:40
T42<elros34> firewall, different usb port?12:01
T42<dcmmc> ifconfig shows the usb network is on enp0s4u312:07
T42<dcmmc> but not assign ipv4 address12:08
T42<dcmmc> I manually assign an ip via ifconfig enp0s4u3 192.168.2.15 up12:09
T42<dcmmc> ping 192.168.2.15 works but telnet 192.168.2.15 2323 not work12:09
T42<elros34> oh so mac have all these tools, how about using instruction from halium-boot: ip address/route add12:11
T42<dcmmc> will try it. ps, i’m now using debian via qemu12:13
T42<elros34> nice instruction: https://docs.halium.org/en/latest/porting/debug-build/early-init.html12:15
T42<dcmmc> it’s a very helpful instruction!12:21
T42<dcmmc> now i can finally telnet to sfos12:21
T42<dcmmc> Elros: export EGL_PLATFORM=hwcomposer && stace test_hwcomposer12:27
T42<dcmmc> hwcomposer.default.so no such file12:27
T42<elros34> just get logcat from normal boot when lipstick fails12:28
T42<dcmmc> Elros: before normal boot should I change some /init*rc script to fix the usb telnet issue?12:29
T42<elros34> if you are sure that caused issues because I am not12:30
T42<elros34> just continue booting now according to instruction you see in terminal and you will see12:30
T42<dcmmc> okay12:31
T42<dcmmc> when normal boot, i cannot see the network device from `ip a`12:34
T42<dcmmc> and in init_enter_debug2 mode, grep -r ‘import’ /*.rc shows that no import usb stuff12:36
T42<elros34> so you lost connection after running "echo continue  > /init-ctl/stdin"?12:36
T42<dcmmc> oops, i misunderstood your advice (re @elros34: so you lost connecti...)12:37
T42<dcmmc> i just removed  /data/.stowaways/sailfishos/init_enter_debug2 and reboot12:38
T42<dcmmc> Elros: you are right. after running "echo continue  > /init-ctl/stdin" i lost the connection12:42
T42<dcmmc> and the device in `ip a` disappeared12:43
T42<elros34> so if you msaked usb-moded then find anything usb releated in all init*rc/sh files: / and in /system or /vendor12:43
T42<dcmmc> Elros: can you tell me how to mask usb-moded12:47
T42<dcmmc> echo ‘systemctl mask use-moded’ > /init-ctl/sbin12:47
T42<dcmmc> ?12:47
T42<elros34> just "systemctl mask usb-moded"12:49
T42<dcmmc> okay12:49
T42<dcmmc> i have init.usb.configfs.rc in /12:50
T42<dcmmc> /system and /vendor are empty12:51
T42<elros34> they are empty because you stop booting at /init-debug script, you must mount them manually12:52
T42<dcmmc> okay12:52
T42<dcmmc> after mount them, what should I found? import usb sutff?12:55
T42<dcmmc> in /system/init.rc, i found `import /init.usb.rc` and `import /init.usb.configfs.rc`12:56
T42<dcmmc> shoud i comment then?12:57
T42<dcmmc> *them12:57
T42<elros34> I am not sure /system/init.rc is used, don't you have /init.rc. Import is most common way but anything can call function even in .sh script12:58
T42<dcmmc> yes i have /init.rc, and i found that import /init.usb.rc is already commented12:59
T42<dcmmc> oh i found /init.rc import /vendor/etc/init/hw/init.qcom.rc and init.qcom.rc import /vendor/etc/init/hw/init.*.usb.rc13:02
T42<dcmmc> does this lead problem?13:03
T42<elros34> depends on what it contains but it might13:03
T42<dcmmc> shoud i comment the usb import things in  /vendor/etc/init/hw/init.qcom.rc?13:04
T42<dcmmc> i think these will conflict with sf’s usb config13:04
T42<dcmmc> after comment these, the telnet connection now is not lost after continue13:09
T42<elros34> so you need to create bind mount unit in systemd to overwrite that *.rc file13:12
T42<dcmmc> okay13:17
T42<dcmmc> logcat: https://pastebin.com/UwUtiB0A13:27
T42<dcmmc> Elros: could you plz help me13:27
T42<dcmmc> test_hwcomposer running without segfault but the screen is black13:30
T42<elros34> so which line in this enormous log is when lipstick starts?13:35
T42<dcmmc> according to the journalctl, it started at 22:48:3213:37
T42<elros34> btw did you disable selinux?13:40
T42<elros34> touch /mnt/vendor/mnt/vendor/persist/sensors/registry/temp.json to get rid of spam13:41
T42<dcmmc> i set selinux=0 in cmdline13:41
T42<elros34> but is it disabled according to early dmesg?13:41
T42<elros34> same for "/data/.layout_version"13:42
T42<dcmmc> from dmesg, i can found `selinux: loaded file_contexts`13:43
T42<dcmmc> this is the only selinux related stuff in dmesg13:43
T42<elros34> then its either too late or you did not disable it correctly13:44
T42<dcmmc> so what’s the right way to disable selinux?13:45
T42<elros34> its explained in collabedit.com/kr9xx you got: disabling/enabling selinux and checking whether is disabled14:00
T42<dcmmc> I can canfirm that selinux is disable14:06
T42<dcmmc> dmesg -w I got SELinux: disabled at boot14:06
T42<dcmmc> my base is lineage-1614:07
T42<dcmmc> Elros: could you plz provide some tips for debuging lipstick crash?14:55
T42<dcmmc> strace lipstick I saw some no such file of /data/vendor/gpu/esx_config_lipstick.txt14:56
T42<dcmmc> is this important?14:56
T42<elros34> do not strace lipstick, it's too noisy and requires more steps to do this correctly. If you want to strace then do it with minimer but  I do not see anything hwcomposer related in logcat and that is important. Did you get rid of these spam messages I was talking about? Try to get all logs: dmesg, journalctl again and mark in logcat where lipstick is started/crashed15:06
T42<dcmmc> okay, i will try15:08
T42<dcmmc> dmesg: https://pastebin.com/YhqpYysG journalctl: https://pastebin.com/Ux176ex7 logcat: https://pastebin.com/YcF7XgBt15:33
deathmistmal: have you tried running build_packages.sh in a while? it appears pulseaudio-modules-droid-hidl builds fails 100% of the time the first time around due to seemingly not being able to find audiosystem-passthrough package which is built before it16:46
deathmistrunning build_packages.sh again lets it get past pulseaudio-modules-droid-hidl though :/16:47
maldeathmist: it's been a while since I used it last time, need to test16:50
T42<elros34> same strange dependencies issues started to happen for me together with snapshots introduction then I disable snapshots in scripts and didn't notice it anymore but could be just an accident. Could be related: https://github.com/mer-hybris/droid-hal-device/pull/32016:53
deathmistmal: fwiw apparently just nuking droid-local-repo from my repo wasn't enough to trigger it again though17:02
T42<elros34> @dcmmc journal log is partial only but anyway at least now you can see hwcomposer logs in logcat. There is nothing obvious. Do you see animation when you run /system/bin/surfaceflinger? If yes then stop it and try "systemctl restart user@100000"18:18
T42<HengYeDev> @elros34 : When I replace the initramfs, it boots, shows a dark screen for a second or so, then enters the strange fastboot mode present on samsung devices22:49
T42<HengYeDev> nothing in dmesg about hybris initramfs booting22:49
T42<HengYeDev> i think this suggests that the dtb is whats wrong with the hybris-boot.img,  are params like https://github.com/LineageOS/android_device_samsung_gta4xl-common/blob/7256dfa8a7acfdfd7d906e3c978cceecd735023d/BoardConfigPlatform.mk#L81 not applied in hybris-boot?22:59
T42<elros34> sounds good at least you do not have that vbmeta errors.  You can recreate boot.img now but with sailfish kernel and you will see if that is the case23:00
T42<elros34> I think you should see full command used to create hybris-boot.img in make-hybris-boot output23:01
T42<elros34> hmm interesting commit, did you see it?https://github.com/LineageOS/android_device_samsung_gta4xl-common/commit/aa86dbf022596d141df0c0059cc5a28f16c1e2f723:03
T42<HengYeDev> yeah, that flashes the vbmeta which allows lineage to boot, lineage wont boot without that23:03
T42<elros34> btw did you apply also skip_initramfs required changes to kernel?23:07
T42<HengYeDev> no, where is that (re @elros34: btw did you apply al...)23:08
T42<elros34> grep for skip_initramfs here https://collabedit.com/kr9xx23:08
T42<HengYeDev> i only have Image in out, no Image.gz.dtb for aik (re @elros34: sounds good at least...)23:14

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