Wednesday, 2020-12-02

T42<Lewis %lastname%> Fwd from Lewis Day:
T42<Andy %lastname%> @wdehoog [Andy: logo.bin and 1-logo.png must be in the c …], Ok07:47
T42<允棕号 %lastname%> (Photo, 728x542) TG飞机群发,私聊,在线,增粉;三万优质中文群全网监听服务限时特价;需要请咨询08:28
LamisedaxehHello everyone, i'am new in porting. I would try to port sfos to my phone :P. The HADK doc say we can use LineageOS 15.1 or 16.0. I suppose i can use LineageOS 17.1 to or not ?08:55
T42<Herrie1982> @Lamisedaxeh [Hello everyone, i'am new in porting. I would t …], No09:07
T42<Herrie1982> There are currently no patches for that Android base yet that would be required09:08
Lamisedaxehok thanks my phone was also compatible with 15.1 i will try with this ^^09:11
T42<Herrie1982> What is done with porting is basically taking Android build, patching it and only using what's needed to talk to hardware. This is the same for all alternative OS-es really.09:14
T42<ankaos> mal: some bugs remained. It will be available if I can solve them as well.15:44
T42<ankaos> bluetooth volte and sensör15:44
xmnguys is it possible to just change the kernel in sailfish on the pinephone?15:46
T42<peperjohnny> xmn you could build it yourself and put it there instead of the installed one15:46
xmnnever did that before15:47
xmnI was trying to figure out a way to get the battery life of one vers and keep my current setup15:48
xmnI wish I could do some type of backup like the n900.15:48
T42<peperjohnny> Well you can always just clone your sd card15:48
xmnI guess rsync it for now15:48
xmnyeah, true15:49
xmnthanks for the link15:49
T42Těléаgrаm ♀ members Рrivаte and group Рromotio♀ %lastname% was added by: Těléаgrаm ♀ members Рrivаte and group Рromotio♀ %lastname%15:49
T42<peperjohnny> You're welcome15:49
xmn I guess cloning is a good fallback15:49
MTRNordHi I started to try to work on a Samsung Galaxy Note 2 international lte (t0lte) port. I am having trouble with a) bootloops (no telnet as soon as the mounts are correct) b) It seems CONFIG_IKCONFIG_PROC either is not supported due to kernel being 3.0.101 without any backports (I used the cm14.1 one as thats the latest lineageos for it) or I am having some compile bug. It does have a kernel/configs.c file which15:50
MTRNordseems to do what I need but it does not seem to actually get built. The config options CONFIG_IKCONFIG_PROC and CONFIG_IKCONFIG are set to y in the generated .config. So I am since now 3 days trying everything and having no luck with it to get beyond bootloop. Also only sseing randomly the usb Mer device on my host. An advice would be appreciated. It is my first time doing this but I have some linux knowledge and15:50
MTRNordam up to learning this :)15:50
MTRNordIf it matters I made these changes to the relevant device config
MTRNord(I started using the pdf)15:51
T42<elros34> kernel 3.0.101 is not supported by current glibc used on sfos. As jolla phone 1 is dropped now, there might be more such a issues in future. You need this in your sparse:
T42<elros34> this will add repo also to ks file but make sure modified glibc and busybox-static is installed on your image15:53
MTRNordahhh ok I could have searched forever and probably would not have found that :) I will have a look and try that15:54
T42<elros34> for sure you can find something about t0lte in irclogs.sailfishos.org15:56
T42<edp_17> MTRNord: smdk4412? You can take a look into my repo (i9100) it might help with your port.
T42Leonardo %lastname% was added by: Leonardo %lastname%15:59
T42<Andy %lastname%> @peperjohnny [ …], Thanks for providing this. Must have taken ages to write16:00
T42<Andy %lastname%> Very thorough16:00
MTRNordedp_17: yeah smdk4412. I will take a look :)16:01
T42<Andy %lastname%> @xmn [I guess cloning is a good fallback], Think I need to remember to do this when my SFOS build is working just write on my Pinetab and I am about to do something risky. Good call...a straightforward dd would work?16:02
xmnyeah that is my goal as well16:03
xmnyeah learning DD as I'm getting more used to do such thing with my Pinephone16:04
T42<peperjohnny> Yup dd works. That's what I used to create the alpha imgs16:05
xmnyeah, for me the partion part of it is something I need to learn16:05
T42<Andy %lastname%> @peperjohnny [Yup dd works. That's what I used to create the …], I will make a mental note - before stupidity - shut down-remove and clone sd card 😊16:09
T42<Andy %lastname%> then start with stupidity again16:10
xmncouldn't I just backup and replace the home folder?16:11
xmnwell I guess not since the apps might be in var and other places too16:11
T42<Andy %lastname%> I just wish I could make it boot from my emmc - will wait until that works then have a clone - working sd card to reclone16:11
T42<Andy %lastname%> @xmn [well I guess not since the apps might be in va …], yes16:11
T42<Andy %lastname%> There is a back up function for some things in SFOS16:11
xmnyeah used it, but really mostly for settings16:12
T42<Andy %lastname%> Although except for phones messages accounts - not a lot of point. Accounts always need resetting16:12
xmnnot horrible, but does nothing for apps from storeman16:12
T42<Andy %lastname%> Used to be able to save those too16:13
T42<Andy %lastname%> with a log in I thought16:13
xmnI guess you need a jolla account and use the official store maybe?16:13
T42<peperjohnny> Storeman has its own backup feature16:14
T42<Andy %lastname%> no with the storeman there is a back up16:14
T42<Andy %lastname%> @peperjohnny says16:14
T42<Andy %lastname%> worth exploring16:14
T42<Andy %lastname%> if my b uild ever lasts that long!16:14
T42<peperjohnny> That's why I use two cards :D one stable and one to mess around16:15
xmnyeah I did used the storeman backup, but just points to a small text file of what you installed. Maybe I used it wrong16:16
xmnpeperjohnny, yeah I playing with 4 OS and a multi boot card :P16:16
xmnI'm hoping to settle on sailfish, mobian ... but also manjaro, maemo-leste16:17
T42<ot_kurva> Hi! I have a trouble with calls. Xiaomi ido, los-14.1 (Android 7) port. In csd tool it's all good. All speakers and microphones are working. But when I'm calling I don't hear anything and the interlocutor doesnt hear me.16:54
T42<ot_kurva> SMS, USSD, mobile data, dual SIM - it's all works16:59
xmnmms too?16:59
T42<ot_kurva> I don't know because MMS service is not provided by my mobile operator17:01
T42<ot_kurva> MMS in 2020... It's very cool)))17:02
MTRNordI am most likely doing something stupid but I just added some packages from the i1900 config and now I get "repo problem: nothing provides patterns-sailfish-device-porter-tools needed by pattern:sailfish-porter-tools-1-202012021656.noarch," Any hints to resolve this or where I missed a command maybe?17:21
T42<elros34> so remove those changes, i9100 use old patterns. You should only have patterns-sailfish-device-configuration-t0lte in your yaml file. All other packages you want to have installed you need to add to patterns/*.inc17:30
MTRNordah ok :)17:30
MTRNordSo the changes got me uhhh somewhere fun. It now boots and goes into the batter loading screeensaver thingy thats broken by itself? xD18:16
MTRNordit bootloops now on that :D18:16
T42<elros34> did you confirm that modified glibc is installed? Check whether you have /data/.stowaways/sailfishos/init.log. I remember battery screen on some old samsung was due to watchdog manipulation in /sbin/preinit but I don't remember which device was that18:19
MTRNordI will check. That battery sceen was stock broken anyway on this device (never worked :D) So that looping might be it being broken. But the main systems seems to just crash after boot18:20
MTRNordIf I am reading it correct some parts of the kernel are wrong configured (looking at those mount calls)
MTRNordhm not getting that telnet on 2323 or a usb network device18:24
T42<elros34> after touch /data/.stowaways/sailfishos/init_enter_debug2 it should stop booting and you should be able to telnet. Then you can enable persistent journal logging (hadk-faq)18:27
MTRNordok I will do that :)18:27
MTRNordnice got a shell :3 thanks for all your help!18:34
MTRNordsh-3.2# reboot18:38
MTRNordFailed to talk to init daemon.18:38
MTRNordThis seems wrong. or is that normal?18:38
T42<elros34> use reboot -f18:39
MTRNordah ok18:39
T42<elros34> remember it stays now in /init-debug script until you explicitly tell it to continue booting18:40
MTRNordyeah just did that. It immediately crashed. journal logs are totally empty18:42
T42<elros34> you can still get dmesg or  try to comment out that  magic close from /sbin/preinit18:43
MTRNordSo except for this I dont see any obvious error messages . But I dont think thats really an issue?18:49
T42<elros34> not an issue, partition is mounted after all18:51
piggzmal: \o/ less than 2 years
MTRNordJust for reference this is the full dmesg -> but nothing was like screaming that it wont boot. I now will try disabling the watchdog thing in the preinit18:55
piggzmal: now, if i could get my hybris-boot pr merged!18:55
T42<elros34> @MTRNord: this is wrong: SELinux:  Starting in permissive mode, add selinux=0 to kernel bootparams18:59
MTRNordoh I have that but I guess it didnt like it. Let me fix that :)19:00
MTRNordMy device has like 3 places to set the bootparams and I just took 1 of them19:00
piggzcat /proc/cmdline to see what actually got set19:01
MTRNordyeah it is missing. Gonna try some other places where they get set. The is apparently not the right place :D19:02
T42<elros34> try in defconfig directly:
MTRNordyeah I was going to do that :)19:03
MTRNordis reflashing the boot image enough or is kernel part of the rootfs?19:06
T42<elros34> flashing kernel is enough19:08
malpiggz: did I forget that dhv PR again19:08
MTRNordSo now audit=0 and selinux=0 are present in the bootcmd. It now shows the charger icon but for some reason I can telnet into it? :D19:15
MTRNordDid it land into some weird boot mode?19:15
MTRNorddmesg also confirms selinux disabled19:17
MTRNord"[   62.560525] c0 failed to copy MFC F/W during init" this sounds like something that causes crashes. AM I right and if so what does this mean?19:22
MTRNordIt is right at the bottom
T42<elros34> try to get dmesg while it starts booting. So either /proc/last_kmsg or dmesg -w and the continue booting.19:26
T42<elros34> -w switch will probably not working on your kernel so use: while true; do dmesg -c; done19:27
MTRNorddoesnt the telnet die while doing that?19:31
T42<elros34> sure but maybe you will catch error. Also I don't see that c0 error in your latest log19:32
MTRNordyeah it does :D19:32
MTRNord<T42 "<elros34> sure but maybe you wil"> that might be because alicritty or wayland seem to cut of stuff. just realised that while coyping the last_kmsg19:33
MTRNord"[ 1080.924742] c3 EXT4-fs (mmcblk0p16): re-mounted. Opts: (null)" thats the only message before telnet dies. that seems normal19:34
MTRNordlast_kmsg ->  current dmesg ->
MTRNordthose are full this time with some bash netcat magic :)19:40
MTRNordSo it crashes after "<4>[ 1080.975305] c1 preinit: (1080.97) Welcome to Sailfish OS (Pallas-Yllstunturi)"19:41
MTRNordI will try that watchdog thing again19:42
T42<elros34> then it's clearly watchdog issue19:42
T42<elros34> Welcome msg is right before magic close19:43
MTRNordyeah just disabled it now. Still not in the system but lets see what the error now is19:43
MTRNordNow it seems to go beyond systemd but has some errors but crashes on a missing fstab
T42<elros34> fstab is used only during droid-hal rpm build (droid-hal-$DEVICE.log) and yes looks like it's missing because your /system is not mounted19:54
T42<elros34> fstab is used to generate mount units for systemd19:54
MTRNordwhere do I set that one?19:55
T42<elros34> fstab* (and uevent*)  should be copied to out directory during hybris-hal. Sometime it doesn't work19:56
MTRNordat top level of out? I am not seeing either in that case19:58
T42<elros34> no, check droid-hal-$device.log to figure out exact place. Alos read about hybris 14 specifi changes needed in hadk-faq19:59
MTRNordSo that one is as fstab.smdk4x12 in the out folder
T42<elros34> so do you have /usr/lib/systemd/system/system.mount?20:08
MTRNordYes "# /dev/mmcblk0p13        /system           ext4      ro                                                                                 wait"20:09
MTRNordpartition is correct too20:10
T42<elros34> strane there is no sign of that in your journal20:10
T42<elros34> strange*20:11
MTRNordthe journal loggin by the way does not like Storage automatic as told in the faq :)20:11
MTRNordso thats why it is empty20:11
T42<elros34> automatic should be fine but you can try volatile20:12
MTRNordIt says "systemd-journald[13853]: [/etc/systemd/journald.conf:11] Failed to parse storage setting, ignoring: automatic" so automatic seems invalid?20:14
MTRNordoh nvm20:14
MTRNordthat error is missleading20:14
MTRNordbut it is useless as it contains less than dmesg20:17
T42<elros34> ah I mix up, you only posted dmesg no journal so forget about that /system not mounted20:20
MTRNordSo it still prints "droid-hal-init: fs_mgr_mount_all returned an error" and "droid-hal-init: fs_mgr_mount_all returned unexpected error 255". Maybe it is the sdcard. Let me remove that.20:24
T42<elros34> it's irrelevant20:25
MTRNordhm ok20:27
T42<elros34> did you add hybris-14.1 symlinks from hadk-faq?20:27
MTRNordnot in the build on the phone20:27
MTRNordrebuilding it now and doing a clean flash20:28
Umeaboymal: Are you awake and here?23:20
UmeaboyI was wondering, until you have pushed hybris-17.1, how does the HADK then?23:21
MTRNordelros34: With the symlinks nothing seems to have changed. (Sorry first the sd card partition broke and then I had to do other stuff first). Anyway here are the dmesg -> and /proc/last_kmsg ->
T42<elros34> if systemd starts now then journalctl --no-page is more useful23:29
MTRNordah yeah right. Need to set the settings for that again as I wiped the device clean  :D23:30
MTRNordelros34: thats the systemd log23:35
T42<elros34> is that all or you forgot --no-page?23:36
MTRNordthat is all with the --no-page flag23:36
T42<elros34> just to be sure, you removed /init_enter_debug2 and you run journalctl when systemd is running not in init-debug script?23:39
MTRNordno it was with the init_enter_debug2 present -> did continue -> did journalctl23:39
T42<elros34> does it still reboot itself or it's normal that last_kmsg contains bootloader messages?23:40
MTRNordIt did crash and boot back into that recovery mode with telnet on port 2323. (nicely visible as it than shows the battery icon instead of the samsung boot logo)23:42
MTRNordso yes it still did reboot23:42
MTRNordis it normal that without init_enter_debug2 it starts telnet on 2323 but no shell=23:43
MTRNord * is it normal that without init_enter_debug2 it starts telnet on 2323 but no shell?23:43
T42<elros34> no shell?23:44
T42<elros34> maybe it's still watchdog. What options do you have enabled: zcat /proc/config.gz | grep -i watchdog23:44
MTRNordIt had no shell but it came apparently after a bit but in that time it already crashed23:44
MTRNordone sec. bootlooping :D23:45
T42<elros34> not sure, maybe usb-moded or some of /init*rc reconfigure usb23:46
MTRNord <-- grep for watchdog23:46
T42<elros34> I will definitely try without NOWAYOUT23:48
MTRNordThis is systemd without that debug2 file
MTRNordsure will recompile without NOWAYOUT23:49
MTRNordSo with NOWAYOUT unset it doesnt make it any better. No change visible in the logs23:55
T42<elros34> Does it still reboot? If yes then maybe sec_watchdog.sec_pet=5  > to 0 will disable watchdog or you could do it in defconfig.23:57
MTRNordyeah still reboots. So just unsetting the WATCHDOG config in the defconfig or explicit n?23:58
T42<elros34> probably CONFIG_S3C2410_WATCHDOG=n23:59
T42<elros34> there is no crash in your last_kmsg so I see no reason for it to reboot23:59

Generated by 2.17.1 by Marius Gedminas - find it at!