Tuesday, 2021-08-17

T42<Walid> i'm working to port sfos for lg v20 h910 based on hybris-16.0, system boot, but bo GUI, and /vendor folder is broken, ther is no /system_root folder08:27
T42<elros34> Walid  Che10:22
T42<elros34> *check whether your fstab have / entry: http://collabedit.com/kr9xx10:23
T42<Walid> there is no / entry, i have /system,  /data, /boot (re @elros34: *check whether your ...)10:45
T42<elros34> so on device /system is now mounted. If your device use system as root then change that /system to / and then make hybris-hal and package droid-hal again10:47
T42<Walid> i noticed that there is no fstab.qcom file in out/.../root folder, (re @elros34: so on device /system...)10:58
T42<elros34> yeah so that first think to fix, there is simple instruction what to do in link you got10:59
mal@elros34 usually no need to change /system in fstab, vendor is indeed sometimes missing11:34
T42<elros34> some devices have /system in fstab for recovery only but still use system as root mounted /  according devicetree11:47
T42<Walid> yes, i just added fstab in root folder, its work /system and /vendor contains right files , but no gui, (re @SailfishFreenodeIRCBridgeBot: <mal>@elros34 usuall...)11:54
T42<elros34> you have search for /system_root previously, do you have it now? Is your device really system-as-root?12:00
T42<Walid> there is no /system_root folder; only /system and /vendor (re @elros34: you have search for ...)12:07
T42<Walid> Unable to read config file '/init.qcom.rc'12:08
T42<Walid> i must copy init.*.rc files in root folder ?12:09
mal@Walid those .rc files should come from droid-hal packages, are you sure you build everything correctly? did you apply the patches as instructed in faq?12:13
T42<Walid> yes i have applied the patch in faq, but im my device tree thoses files will be copie in /system/vendor/etc folder (re @SailfishFreenodeIRCBridgeBot: <mal>@Walid those .r...)12:21
T42<Walid> https://irc.thaodan.de/.imgstore/b0a81d18/file_2485.jpg18:18
T42<Walid> Sort for image, got black screen18:18
T42<Walid> Sorry for image, got black screen (edited)18:18
T42<Walid> i must set19:00
T42<Walid> do_skip_initramfs = 0;19:00
T42<Walid> in initramfs.c ?19:01
malsome devices need to revert the kernel commit adding support for that do_skip_initramfs19:17
malusually bootloader adds the option to kernel commandline and there is no simple way to handle it other ways19:17
T42<elros34> Walid  you wouldn't able to telnet to device if you would need it but as far I understand you have already telnet to device19:20
malah, I didn't know telnet was up19:21
T42<elros34> i only assume it is otherwise he wouldnt ask about mount units19:22
T42<elros34> on device19:23
malgood point, I didn't really think about it at all19:25
malso logs are probably needed to figure out why it fails19:26
T42<Walid> i will explain what i have do, i have ubuntu 20.04 LTS, i installed HABUILD_SDK, but can't install anything sudo don't work, so i build hybris-boot under my current system (i have started port ubuntu touch halium-9 so many thing is installed), i got kernel size 19.9mb,19:38
T42<Walid> after fix error on HABUILD_SDK (add user in etc/shadow file), i builded hybris-hal, got kernel size 18.9, that means they will use system as root at boot (re @elros34: Walid  you wouldn't ...)19:38
T42<Walid> i will explain what i have done, i have ubuntu 20.04 LTS, i installed HABUILD_SDK, but can't install anything sudo don't work, so i build hybris-boot under my current system (i have started port ubuntu touch halium-9 so many thing is installed), i got kernel size 19.9mb,19:39
T42<Walid> after fix error on HABUILD_SDK (add user in etc/shadow file), i builded hybris-hal, got kernel size 18.9, that means they will use system as root at boot (edited) (re @elros34: Walid  you wouldn't ...)19:39
T42<Walid> so i have two version of hybris-boot.img , one got telent work but no gui size 19.9mb, other got black screen size 18.9mb19:40
T42<Walid> i'm trying now to use HABUILD_SDK chroot, i will regenrate zip file and see if there any change19:41
T42<elros34> not sure why is 1MB size difference, maybe you changed defconfig but anyway next step is getting logs like journalctl and dmesg.19:46
T42<elros34> with 18.9MB image do you had telnet or there was no sign of life and black screen?19:48
T42<Walid> no, black screen with this error : unable to mount root fs on unkown block(0,0à (re @elros34: with 18.9MB image do...)19:58
T42<Walid> i think that initramfs is builded in sailfish rootfs19:59
T42<elros34> sailfish initramfs is in hybris-boot.img20:01
T42<elros34> about mentioned error it's hard to guess without full log20:02
T42<Walid> this what i have see in phone screen, no telnet (re @Walid: )20:04
T42<elros34> on phone screen? that is unexpected. So dmesg in host could help to understand what happend.20:07
T42<Walid> its first time i saw error like this20:08
mal@Walid but did you have telnet at some point earlier?20:29
T42<Walid> no, now i used the hybrus-boot that have large size and  builded under ubuntu system installed in my pc, got telnet i will give you le log (re @SailfishFreenodeIRCBridgeBot: <mal>@Walid but did ...)21:53
T42<Walid> dmesg with some command21:54
T42<Walid> https://pastebin.ubuntu.com/p/RjpG7jGf79/21:54
T42<Walid> https://pastebin.ubuntu.com/p/pgGWyrKY7D/21:55
maldid you do the ld.config.28.txt changes mentioned in faq?21:56
T42<Walid> no (re @SailfishFreenodeIRCBridgeBot: <mal>did you do the ...)21:57
maldoes /usr/libexec/droid-hybris/system/bin/logcat work?21:57
T42<elros34> so it's clear now that this is NOT systam-as-root device. line 109 [    0.001980] Security Framework initialized21:58
malyeah, droid-hal-init seems to be mostly ok, some android side process still fail though21:58
T42<Walid> yes (re @SailfishFreenodeIRCBridgeBot: <mal>does /usr/libex...)21:58
malwondering if selinux is correctly disabled21:59
T42<elros34> it's not, I just posted that line21:59
malah21:59
malkernel commandline seems to have selinux=0 so could be some kernel config issue then22:00
T42<Walid> selinux is disabled, i removed it from defconfig to get hybris-boot work22:01
T42<elros34> ah I posted wrong, sorry line but anyway it's not disabled correctly22:01
T42<Walid> zcat /proc/config.gz |grep SELINUX22:01
T42<Walid> CONFIG_SDFAT_VIRTUAL_XATTR_SELINUX_LABEL="u:object_r:sdcard_external:s0"22:01
T42<Walid> # CONFIG_SECURITY_SELINUX is not set22:01
T42<elros34> do not follow mer-kernel-check advices about audit, selinux, and fw_loader: https://github.com/mer-hybris/mer-kernel-check/pull/27/files. IT's in the notes you got22:04
mal@Walid that is not the way we disable it, we keep CONFIG_SECURITY_SELINUX=y and add CONFIG_SECURITY_SELINUX_BOOTPARAM=y and then add selinux=0 to kernel commandline (which you seem to have already), also make sure you have CONFIG_AUDIT=y in defconfig22:04
T42<Walid> ok i will test it now (re @SailfishFreenodeIRCBridgeBot: <mal>@Walid that is ...)22:05
mal@elros34 I need to check that PR more closely and see if it's ok, too many issues because of the not so clear instructions22:10
T42<elros34> mal: definitely, feel free to to even close it and open yourself new PR if you think my descriptions are not clear but this needs to be fixed22:13

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