Saturday, 2022-07-30

EleventhLasthell, I didn’t notice and every time I sewed a recovery hybrid .............................................. ................................................. ...................00:01
EleventhLastneed sleep00:01
EleventhLaststill the problem is that i can't connect via telnet00:39
ElevemthLastwhen installing a zip image, errors appear in twrp , warning: No file_contex copying filesystem archive copying installation script ,runing installation skript , and failed to extract filesystem. process update ERROR 707:43
ElevemthLastand having applied almost all the patches, and having assembled the kernel, I was able to enter telnet, and there is an initlog07:49
ElevemthLastunderstandable .... about cyporivation error "out of memory"08:08
ElevemthLasttar out of memory....08:09
ElevemthLastwhat should I do with out of memory?08:51
T42<TheVancedGamer> get more :P08:51
T42<elros34> actually not a bad idea, I wonder whether anybody with this issue tried to enable swap:)08:52
T42<elros34> like few more GB08:52
ElevemthLastso it's not about the internal memory, it's 18 gigabytes there, I don't understand why the archiver swears, does it lack RAM08:52
T42<TheVancedGamer> can you try to use verbose flag?08:53
ElevemthLastok, I'll create a swap)08:53
T42<TheVancedGamer> wait, 18GB of RAM?08:53
T42<TheVancedGamer> that number seems a bit.......odd08:53
T42<elros34> just try older version of twrp, IIRC somewhere around 3.008:54
ElevemthLastno, i'm talking about internal storage08:54
T42<TheVancedGamer> ah08:54
T42<TheVancedGamer> how much RAM does the device have?08:54
EleventhLastI have 3 gigabytes of ram08:59
EleventhLastadded a 2 gig swap, but it didn't help, it stops in the same place as without the swap file09:29
T42<TheVancedGamer> try to manually untar it09:30
T42<TheVancedGamer> or unzip it on your host and use adb push09:30
T42<TheVancedGamer> with the recursive flag09:30
T42<elros34> manual unpacking will not help, on this not so new device downgrading twrp may be easier than any trick09:32
T42<TheVancedGamer> isn't the rootfs pushed to /data/.stowaways?09:33
T42<TheVancedGamer> you could unzip/untar the rootfs and manually push it09:33
EleventhLastI'd better lower the version of the recovery, but about manual repacking, file permissions and their rights can fly off09:34
T42<elros34> sure ther many ways: using hybris-boot/recovery to unpack, pushing static busybox and using that tar but if you can find working twrp then go ahead09:35
EleventhLaston the off site twrp there is any version for my device09:40
EleventhLastswap does not solve the problem, for this purpose it is almost never used, so I don’t know how to solve this problem09:56
EleventhLastI'll try to unpack myself, and then through adb push09:57
T42<elros34> bad idea, better boot to hybris-boot with formated data partition then you will get telnet at 23 port and you can unpack image10:02
T42<elros34> I can also give you some commits witch you would need to apply to use busybox from out/ automatical during installation but it requires few changes. There is aslo hybris-installer or something like that which IIRC also do similar thing10:04
EleventhLastand the data section must be formatted? maybe just cleaning?10:05
T42<elros34> it should be, unless you know that you have no any encryption enabled which will cause issues later10:07
EleventhLastand so, in the end, do I need to unpack the image through the hybrid boot?10:08
EleventhLastCan I share the archives into a couple of archives and unpack them one by one?10:37
T42<elros34> you can do everything but I do not understand why you want to complicate it so much if you have easier methods10:47
EleventhLastok, let's make it simpler, but I don't understand how?11:04
T42<elros34> which method do you choose and which part do you not understand?11:04
EleventhLastI don't understand how to do it through hybrid boot11:05
EleventhLastit seems that nothing is mounted in it, and there is no date directory, do you need to manually mount it?11:06
T42<elros34> use 'mount' command, it will tell you that userdata is mounted11:07
T42<elros34> do you see it?11:07
EleventhLastI also wanted to say that in order for telnet to work, it was necessary to make an IP link up11:08
EleventhLastyes, I see, the data partition is mounted11:14
EleventhLastdev/mmcblk0p26 on /data type ext4 (rw,relatime,data=ordered) /dev/mmcblk0p26 on /target/data type ext4 (rw,relatime,data=ordered)11:14
T42<elros34> so mkdir /data/.stowaways/sailfishos/; busybox tar --numeric-owner -xvjf /data/<yousfos> -C /data/.stowways/sailfishos/11:16
T42<elros34> obviously typo: .stowaways11:17
EleventhLastit worked for me without busybox11:17
T42<elros34> ok added it just in case symlinks is missing11:17
EleventhLasteverything is unpacked more slowly, which means that it is written one by one without keeping it in memory11:18
EleventhLastWhy didn't I go down this path...11:19
EleventhLastcopying completed11:19
T42<elros34> quiet fast, sync and reboot -f11:20
EleventhLaststrange, I can no longer connect to it via telnet, and the port has also changed to 232311:26
EleventhLastdhclient -v eth0 can’t ping, everything seems to be a bootloop, the system pops up some kind of notification every minute, and disappears, sort of like connected to the device11:32
EleventhLastyeah. I managed to see, every minute the network is disconnected11:33
*** amccarthy_ is now known as amccarthy11:34
*** amccarthy is now known as Guest646011:35
*** Guest6460 is now known as amccarthy_11:36
*** amccarthy_ is now known as amccarthy11:37
EleventhLastand so, I can no longer connect to telnet, but the phone just shows the bootloader logo12:09
EleventhLastI did everything as you said, and the firmware of the same version as the base for the assembly was also flashed into the systems section12:10
EleventhLastShould I give him access to the network?12:11
EleventhLast[ 1891.966683] dhcpcd[783]: segfault at 28 ip 0000556b5f155ccf sp 00007ffd19e05340 error 4 in dhcpcd[556b5f13f000+33000]12:19
EleventhLastI'm completely confused and don't understand what's going on...12:20
EleventhLasti have init log12:20
EleventhLastEverything looks like it should work, but it doesn't.12:23
EleventhLasti think i missed something12:23
T42<elros34> not really, you need to debug further: read hadk-hot/faq, it has section with instruction what to do if you can't telnet/no gui and so on12:26
T42<elros34> at this point you are debugging sailfish itself, previously it was only twrp/kernel/initramfs issues12:27
EleventhLasttoday, unfortunately, I also didn’t get enough sleep, but I’ll go read, it seems that if it continues like this, then I’ll completely ruin myself :)12:27
T42<elros34> then don't, there more important things than getting sfos running on device12:31
EleventhLastI don't have CONFIG_SECURITY_SELINUX but I remember that I added it12:32
EleventhLastwhat value should it be set to?12:33
EleventhLastof no?12:34
T42<elros34> check in 'zcat /proc/config.gz'. Very unlikely it's disabled unless you did CONFIG_AUDIT=n too12:34
EleventhLastI do not quite understand where I have this path12:35
EleventhLastmore precisely not so, this directory is empty12:35
T42<elros34> on device12:36
EleventhLastat the device root, or /data/.stowaways/sailfishos?12:38
T42<elros34> device ony with sfos kernel, it's virtual file12:40
EleventhLasteverything seems to be fine12:46
EleventhLastand so, I was able to enter the device, judging by the mount paths, /system is not mounted13:14
EleventhLastwhat is the password for devel-su?13:30
T42<elros34> there is no default password you set it in gui, in telnet you are already root13:47
EleventhLastI don't know, connection restarts every minute, there is no jornual log, I don't know what to do....13:59
T42<elros34> did you create init_enter_debug2 file according to instruction? Then get dmesg -w in 1 window, journalctl -f --no-tail in another and continue booting according to instruction you will see on terminal14:04
EleventhLastApparently I looked at the wrong manual.14:05
EleventhLastbut no, telnet works, but the system does not boot14:06
EleventhLastsystem partition is not mounted, only rootfs14:07
T42<elros34> with that file in place system will not but until you will execute special command14:07
EleventhLastI'm confused, I don't understand what to do and what I'm doing, and I don't understand what's going on at all14:12
EleventhLastlet's start all over14:12
EleventhLasttelnet works, lets me into rootfs, but then I don’t understand what to do14:13
T42<elros34> did you have to create mentioned file or no?14:14
EleventhLastgiven that telnet works, I think it's not necessary, it was just necessary to set the IP route addresses14:15
EleventhLastnow I have access to telnet along with rootfs14:15
T42<elros34> so reboot now and then as soon as possible telnet again and execute dmesg/journal commands I was talking about14:20
EleventhLastshould i send the logs?14:21
T42<elros34> crazy idea: read it and search for errors then yeah you can upload them to some paste service14:24
EleventhLastclear, this is for a long time14:27
T42<elros34> old kernel, looks like some defconfig changes are missing or some patches14:30
EleventhLastI think this is important, but yesterday I removed all the changes in init/initramfs.c, that is, it is native from android14:30
T42<elros34> irrelevant14:31
EleventhLastdefconfig mer_verify_kernel_config14:34
T42<elros34> looks good, search here for any similar or even same kernel you use, he may have some patches to kernel which you need14:37
EleventhLastthere is nothing for my device14:39
T42<elros34> yeah then other kernel, search for stat or statfs.c related patches or ping the user here14:39
EleventhLastI don't understand what to look for and why...14:55
T42<elros34> statfs.c in github search, then commits. Why: because you have error in logs: /sys Bad file descriptor14:58
EleventhLastShould I get this file from any github? Or you need to find a comment with a fix for this error?15:02
T42<elros34> search for commits which change that file in edp17 repo, if not search in this chanel logs or ask him directly, maybe he remember fix15:14
EleventhLastI didn't find anything else15:29
EleventhLastthere are no more errors with mounting, but the behavior is the same16:11
EleventhLastthere are only errors16:25
EleventhLasthooray, I found a fix in a newer version of the kernel16:46
EleventhLastthe LED on the phone started to glow, as well as an omnipresent mount list appeared16:46
EleventhLastbut no interface16:47
T42<elros34> would be nice to share fix for others17:03
EleventhLastdmesg shows that the touchscreen is working, but there is no picture, it still hangs on the holotype of the bootloader17:04
EleventhLastthis line should be replaced17:05
EleventhLastand now I want to solve the problem of missing graphics17:06
EleventhLastI don't have a picture and I don't know what's going on.17:11
EleventhLastDo I still have to collect a zip image of the android itself?17:28
T42<elros34> these undefined instruction errors could be important but anyway follow no gui manual tips to figure out what is wrong17:43
EleventhLastI turned to a friend who has been collecting firmware for my device for a long time, maybe they will say something17:46
T42<elros34> getting from journal is not that hard also reading common mistakes gui17:47
EleventhLastand in the log there are some problems with the encoding17:49
EleventhLastcan turn it on?18:00
EleventhLastthere are no errors in the log on the display, everything should work, but it does not work, give a full log?18:05
EleventhLastThis is the reason ?18:34
T42<elros34> you need to check in logs whether droid-hal-init works. Did you copy needed files mentioned faq?18:34
EleventhLast droid-hal-init.service    Loaded: masked (/dev/null; masked)    Active: inactive (dead)18:37
EleventhLastplease specify which files18:38
T42<elros34> masked? Did you mask it? About files: hadk-faq hybris15 section18:38
EleventhLastand the truth is, I did not copy files from there18:40
EleventhLastI just cloned the repository from the point above, I need to copy the files, and then what?18:41
EleventhLastyeah, got it all, my fault18:43
T42<elros34> then you will sse what fails but first answer my qusetion, did you masked any service? Do you see droid-hal-init in dmesg?18:43
EleventhLastas far as I remember, I entered systemctl mask droid-hal-init systemctl mask user@10000018:46
T42<elros34> and you expect to get gui with that:)18:47
EleventhLastbro, I'm 16 hours a day at a laptop, and 5 hours of sleep every day, and it's been like this for 5 days, I don't understand what I'm doing at all, just completely18:48
EleventhLastI am very grateful for your help, but better tell me how to fix it18:49
T42<elros34> you should take a breake then, you will fix issue faster. systemctl unmask <service name>18:51
EleventhLastul 08 09:20:47 localhost sh[4082]: /bin/sh: can't open '/usr/bin/droid/': No such file or directory18:55
T42<elros34> do you have /system/system/? and files there18:57
T42<elros34> ah my bad, this error is irrelevant18:58
EleventhLastthere are no files or directory18:58
EleventhLastJul 08 09:20:47 localhost systemd[1]: Failed to start droid-hal-init.18:59
EleventhLasthas the meaning18:59
EleventhLastwell, so what should I do?19:04
EleventhLastdirectory /system/system/ does not exist19:05
T42<elros34> still same, copy rc files and get fresh logs19:07
ThaodanIf /usr/bin/droid/ is missing there's something wrong in droid-config.20:44
ThaodanIf he doesn't have system as root then system is mount directly as /system.20:45
ThaodanIf you use you can skip mounting /system20:46
EleventhLastand so, I added those files to the specified path, and rebuilt everything, but the graphics still do not start20:47
malThaodan: early init is optional20:47
malThaodan: note the - at the beginning meaning failure is not fatal20:48
EleventhLastok, that's not the reason20:49
EleventhLastbut the problem is that i get nothing but startup error20:59
EleventhLast   what should I do with the wait?21:04
EleventhLastand no I don't use it21:07
EleventhLastdid I have to use it?21:09
T42<elros34> have you check dmesg/journal? it must contains droid-hal-init logs21:13
EleventhLastthere are only start errors, without the reason log itself21:14
EleventhLastJul 08 07:24:08 localhost systemd[1]: droid-hal-init.service: Main process exited, code=exited, status=1/FAILURE Jul 08 07:24:08 localhost systemd[1]: droid-hal-init.service: Failed with result 'exit-code'. Jul 08 07:24:08 localhost systemd[1]: Failed to start droid-hal-init.21:15
T42<elros34> what you have in dmesg?21:15
EleventhLast[   13.649226] droid-hal-init: init first stage started! [   13.649277] droid-hal-init: Skipped setting INIT_AVB_VERSION (not in recovery mode) [   13.650590] droid-hal-init: init second stage started! [   13.654337] droid-hal-init: Failed to initialize property area21:18
T42<elros34> is that all or you just picked some lines?21:18
EleventhLastthat's all the logs21:19
T42<elros34> do you have something in /vendor/?21:20
EleventhLastno such directory21:20
T42<elros34> what about /system/vendor?21:20
EleventhLast# ls /system/vendor/ bin                       cameradata                etc                       lib build.prop                compatibility_matrix.xml  firmware                  manifest.xml21:21
T42<elros34> create /vendor symlink and reboot. If that will not help hetting more logs then you will need to strace /sbin/droid-hal-init21:22
EleventhLastexactly the same log21:26
T42<elros34> did you flash lineage15 image before installing sailfish? Did you had some errors about unpackaged files  when building droid-hal?21:35
EleventhLastthe lineage15.1 image is flashed, and the files were not packed21:36
T42<elros34> why?21:37
EleventhLastwhat "Why"?21:38
T42<elros34> you have even instruction in hadk pdf about unpackaged files and this not how you handle it21:38
T42<elros34> why you exclude them21:38
EleventhLastok, I'll do it as in the instructions, I probably did it because it was not going to be different21:39
T42<elros34> as you can see it makes a huge difference21:39
EleventhLastI am redoing everything, you yourself could view these files before21:40
EleventhLastdid everything right and got this21:52
deathmist1EleventhLast: please just start grepping logs for your issues, there is a very high chance someone already had a problem related to "ofono-configs-binder"
deathmist1including even yourself from 2 days ago
EleventhLaststop. there was a search in the archive ... I did not know22:01
T42<elros34> so you did not read hadk-hot...22:02
Thaodanread the hadk-faq and not hadk-hot22:25
EleventhLastI made the correct spec file but the error is still22:27
ThaodanThere something wrong with your spec still22:30
EleventhLastbecause everything is fine, but it does not want to gather22:35

Generated by 2.17.1 by Marius Gedminas - find it at!