*** ahjolinna_ is now known as ahjolinna | 02:45 | |
r0kk3rz | deathmist: starting over just wastes time | 02:47 |
---|---|---|
T42 | <DrRamm> Hello guys, I got question: according `11.1 Extracting the rootfs via adb` and `11.2 Flashing the boot image via adb` I've unpacked and flashed. But after reboot I booted in lineage (which shows me internal error caused vbmeta coz boot.img has different hash). | 08:24 |
T42 | <DrRamm> @DrRamm [Hello guys, I got question: according 11.1 E …], And journalctl is empty | 08:57 |
T42 | <DrRamm> ,--- | 08:57 |
T42 | <DrRamm> | Sailfish OS 3.3.0.16 (Rokua) | 08:57 |
T42 | <DrRamm> '--- | 08:57 |
T42 | <DrRamm> [root@localhost ~]# journalctl -b | 08:57 |
T42 | <DrRamm> No journal files were found. | 08:57 |
T42 | <DrRamm> -- No entries -- | 08:57 |
ggabriel | DrRamm, at risk of pointing out the obvious... is the journal service started? | 08:58 |
T42 | <DrRamm> @ggabriel [DrRamm, at risk of pointing out the obvious... …], ggabriel, not sure. I rechecked my kernel via mer-config tool and I not sure about these warnings: | 09:14 |
T42 | <DrRamm> Do Not Exist DNE | 09:14 |
T42 | <DrRamm> CONFIG_MEMCG_KMEM -- DNE | 09:14 |
T42 | <DrRamm> CONFIG_SECURITY_SELINUX_BOOTPARAM -- unset AUDIT | 09:14 |
T42 | <DrRamm> CONFIG_ANDROID_LOW_MEMORY_KILLER -- DNE | 09:14 |
T42 | <DrRamm> CONFIG_RTC_DRV_CMOS -- optional | 09:14 |
T42 | <DrRamm> CONFIG_NETPRIO_CGROUP -- DNE | 09:14 |
T42 | <DrRamm> CONFIG_LBDAF -- for 32bits, I have 64bitd | 09:14 |
ggabriel | DrRamm, I meant journalctl status systemd-journal - is that started? I would also check dmesg. I'm not sure how that kernel configuration is related to not having a journal | 09:16 |
deathmist | ggabriel: I've seen that "root@localhost" prompt before, he chrooted into the Sailfish OS rootfs from TWRP and expected to get journalctl logs from a system that never booted to the rootfs in the first place, he probably also needs to revert a commit that skips the ramdisk entirely | 09:33 |
deathmist | afaik he can patch init/initramfs.c in his kernel to only return 0 from the skip_initramfs_param() method | 09:35 |
ggabriel | deathmist: thanks, so it wasn't all that obvious ;) | 09:37 |
deathmist | @DrRamm want to link your kernel? | 09:42 |
T42 | <DrRamm> @deathmist [afaik he can patch init/initramfs.c in his ker …], [hybris-16.0 0bc02edd52ab] init: disable skip_initramfs thx deathmist | 09:43 |
T42 | <DrRamm> 1 file changed, 4 insertions(+), 1 deletion(-) | 09:43 |
T42 | <DrRamm> deathmist, thank you. | 09:44 |
deathmist | there was a better fix I was thinking about, e.g. reverting a commit in your kernel with a similar message as https://github.com/LineageOS/android_kernel_oneplus_sdm845/commit/c3c2e99fcc3ed20ab49b482bdc102ebb8037ebd6 | 09:44 |
T42 | <DrRamm> @deathmist [there was a better fix I was thinking about, e …], Well revert is fine, yeah "return 0" is a little bit dirty, but it's work | 09:45 |
T42 | <DrRamm> Okay, I've tried to solve problem by myself, but seems like I need help again: | 10:28 |
T42 | <DrRamm> I faced with "```[ 5.206086] init: Couldn't open /sys/fs/selinux/null: No such file or directory```" | 10:28 |
T42 | <DrRamm> So seems like disabled AUDIT cause that and my device need keep it enabled. Okay. mer-config tool says | 10:28 |
T42 | <DrRamm> "```if your device needs its support in kernel, set AUDIT=y and SELINUX_BOOTPARAM=y ```" | 10:28 |
T42 | <DrRamm> +CONFIG_AUDIT=y | 10:28 |
T42 | <DrRamm> +CONFIG_SECURITY_SELINUX=y | 10:28 |
T42 | <DrRamm> +CONFIG_SECURITY_SELINUX_BOOTPARAM=y | 10:28 |
T42 | <DrRamm> +CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 | 10:28 |
T42 | <DrRamm> +# CONFIG_SECURITY_SELINUX_DISABLE is not set | 10:28 |
T42 | <DrRamm> +# CONFIG_DEFAULT_SECURITY_SELINUX is not set | 10:28 |
T42 | <DrRamm> my cmdline is ``` | 10:28 |
T42 | <DrRamm> [ 0.000000] Kernel command line: console=ttymxc1,115200 init=/init selinux=0 audit=0``` | 10:28 |
deathmist | @DrRamm send the full log of journal/dmesg, don't just pick random parts and hope that's the issue, in which telnet port is this, 23 or 2323? | 10:51 |
deathmist | and please upload it to pastebin, don't use telegram specific features as most of us use IRC/Matrix | 10:52 |
T42 | <DrRamm> Dear deathmist, defconf + dmesg https://pastebin.com/z4htaFmL | 10:57 |
T42 | <DrRamm> >in which telnet port is this, 23 or 2323? | 10:57 |
T42 | <DrRamm> I use uart | 10:57 |
deathmist | ah, lucky you ;) have you even tried USB though? | 10:58 |
deathmist | it definitely did not even load the hybris initramfs, you need that if you want to boot Sailfish OS btw | 10:58 |
T42 | <DrRamm> deathmist, I do not see sense in USB if I have console via UART | 10:59 |
T42 | <DrRamm> >it definitely did not even load the hybris initramfs | 10:59 |
T42 | <DrRamm> Yes, because missed "`/sys/fs/selinux/null`" | 10:59 |
T42 | <DrRamm> deathmist, there is full defconfig https://pastebin.com/4qKkvA8r | 11:05 |
deathmist | that's not the issue, even if SELinux was enabled it should get to the hybris initramfs and print something more than that dmesg and reboot immediately to bootloader, what even is your device? | 11:05 |
deathmist | SELinux should be disabled either way (SECURITY_SELINUX_BOOTPARAM_VALUE=0), does this kernel even boot LineageOS? I don't really see that as DEFAULT_SECURITY_TOMOYO was set by default for you | 11:05 |
T42 | <DrRamm> deathmist, my mistake, DEFAULT_SECURITY_TOMOYO enabled by default after enable back AUDIT | 11:21 |
deathmist | I still have no clue what device, which kernel source or what hybris version you are trying to use | 11:22 |
T42 | <DrRamm> deathmist, device based on imx8mm (evk), kernel sources https://source.codeaurora.org/external/imx/linux-imx/tag/?h=p9.0.0_2.3.4, hybris 16.0 | 11:31 |
deathmist | @DrRamm maybe try reverting 6a45470bc36a2e59c8f131ffc90bf38f392525ed ("ANDROID: initramfs: Add skip_initramfs command line option") from the kernel instead of doing the ugly return 0 hack I suggested earlier, maybe that is the issue because I don't really see the initramfs coming up | 11:43 |
deathmist | also set SECURITY_SELINUX_BOOTPARAM_VALUE=0 in your defconfig as I suggested earlier | 11:44 |
T42 | <elros34> Did you flash hybris-boot.img or boot.img (android one)? | 11:50 |
T42 | <DrRamm> Elros, | 11:57 |
T42 | <DrRamm> >Did you flash hybris-boot.img or boot.img | 11:57 |
T42 | <DrRamm> hybris-boot.img | 11:57 |
T42 | <DrRamm> deathmist, | 11:57 |
T42 | <DrRamm> >try reverting and set SECURITY_SELINUX_BOOTPARAM_VALUE=0 | 11:57 |
T42 | <DrRamm> ok | 11:57 |
T42 | <DrRamm> Elros, deathmist can you help me https://pastebin.com/94PWmfFj? I make kernel changes from scratch using mer-config tool, reverted skip_initramfs and enable CONFIG_SECURITY_SELINUX_BOOTPARAM (with cmdline in BoardConfig.mk as described in "`9.3.1 Bootloops`" ) but it causes bootloop. Without CONFIG_SECURITY_SELINUX_BOOTPARAM I can bo | 15:04 |
T42 | ot into lineage. Why I can boot in lineage OS if I flashed hybris-boot.img? | 15:04 |
T42 | <DrRamm> btw in SailfishOS-HardwareAdaptationDevelopmentKit-3.1.0.0.pdf at chapter `11.1 Extracting the rootfs via adb` we can see tar arguments ```tar -xvzf``` but it's not correct: according hybris-updater-unpack.sh there should be used ```tar -xvjf``` | 15:13 |
T42 | <elros34> as mentioned by deathmist earlier there is no indication of initramfs in your dmesg. It looks like it init android. https://source.codeaurora.org/external/imx/linux-imx/tree/init/initramfs.c?h=p9.0.0_2.3.4. I still see in your bootparams skip_initramfs. Are you sure you reverted commit which add support for it and then rebuild hybris- | 15:21 |
T42 | hal. | 15:21 |
T42 | <DrRamm> @elros34 [as mentioned by deathmist earlier there is no …], Elros, this link from official sources.... https://github.com/DrRamm/kernel_imx/commits/hybris-16.0 | 15:32 |
T42 | <elros34> You can see that in populate_rootfs() there is printk about unpacking rootfs which should be in your dmesg. I am not 100% sure (somebody need to confirm it) but I think you should not have that skip_initramfs in boot params now | 15:51 |
T42 | <elros34> You never said what kind of device is that so does this device even use abootimg by default or maybe u-boot bootloader + kernel? | 15:59 |
T42 | <DrRamm> @elros34 [You never said what kind of device is that so …], imx8mm, uboot + kernel | 16:38 |
T42 | <DrRamm> @elros34 [You can see that in populate_rootfs() there is …], Dear Elros, I've removed skip_initramfs in u-boot and now cmdline without that (but one more space before rootwait, but it doesnt matter). make installclean and make hybris-hal after that and flashed new uboot and hybris-boot.img. As result I booted into LineageOS and do | 17:07 |
T42 | not see any "Mer Debug" lines in dmesg as described in `9.2 Operating Blind on an Existing Device`. And yes, adb via usb works fine (you can check in my dmesg USB_STATE=CONFIGURED) https://pastebin.com/QF4S1N20 | 17:07 |
T42 | <elros34> @DrRamm so if that device don't use abootimg but regular zImage then hybris-boot.img will not work. What file returns when you run it against your regular android kernel image? | 18:12 |
T42 | <elros34> on mainline (not android) I set: CONFIG_INITRAMFS_SOURCE to out/target/product/$DEVICE/obj/ROOT/hybris-boot_intermediates/initramfs/ and then I put zImage to /boot so u-boot can find it | 18:14 |
T42 | <DrRamm> @elros34 [on mainline (not android) I set: CONFIG_INITRA …], @elros34 Correct me, how I should change lineage_evk_8mm_defconfig:CONFIG_INITRAMFS_SOURCE="" ? | 18:19 |
T42 | <DrRamm> I found example like that CONFIG_INITRAMFS_SOURCE="$$KERNEL_INITRAMFS_SOURCE" | 18:20 |
T42 | <elros34> $ANDROID_ROOT/out/target/product/$DEVICE/obj/ROOT/hybris-boot_intermediates/initramfs/. You can use absolute path if you want | 18:21 |
T42 | Devotee_Of_My_GOD was added by: Devotee_Of_My_GOD | 18:23 |
T42 | <DrRamm> @elros34 [$ANDROID_ROOT/out/target/product/$DEVICE/obj/R …], seems working | 18:26 |
T42 | <DrRamm> ```[ 87% 750/857] Making initramfs : /home/kotsarev/mer/android/droid/out/target/product/evk_8mm/obj/ROOT/hybris-boot_intermediates/boot-initramfs.gz``` | 18:26 |
T42 | <DrRamm> ```CONFIG_INITRAMFS_SOURCE="$$ANDROID_ROOT/out/target/product/$$DEVICE/obj/ROOT/hybris-boot_intermediates/initramfs/"``` | 18:26 |
T42 | <DrRamm> @elros34 can you check my unpacked kernel? I use mkboot for that https://pastebin.com/9dGKkijR | 18:37 |
T42 | <elros34> you sitll did not tell what 'file android_image' returns so I don't know what to expect in that paste | 18:40 |
T42 | <DrRamm> @elros34 [you sitll did not tell what 'file android_imag …], Sorry, didn't get you: are we talking about hybris-boot.img? And Image instead of zImage. At Lineage 16.0 I use boot.img as we get used to. | 18:44 |
T42 | <elros34> ok so take android boot.img and run 'file boot.img'. | 18:46 |
T42 | <elros34> There is nothing sailfish specifig so far, either your device need initramfs packged together with kernel in android bootimg (abootimg) or you use config_initramfs_source. That should be easy to figure out. | 18:48 |
T42 | <DrRamm> @elros34 [ok so take android boot.img and run 'file boot …], boot.img from Lineage 16.0 | 18:51 |
T42 | <DrRamm> $ file boot.img | 18:51 |
T42 | <DrRamm> boot.img: Android bootimg, kernel (0x40480000), ramdisk (0x43600000), page size: 2048, cmdline (init=/init androidboot.console=ttymxc1 androidboot.hardware=freescale cma=800M@0x400M-0xb80M an) | 18:51 |
T42 | <DrRamm> $ file hybris-boot.img | 18:51 |
T42 | <DrRamm> hybris-boot.img: Android bootimg, kernel (0x40480000), ramdisk (0x43600000), page size: 2048, cmdline (init=/init androidboot.console=ttymxc1 androidboot.hardware=freescale cma=800M@0x400M-0xb80M an) | 18:51 |
T42 | <elros34> then I don't know | 18:57 |
T42 | <elros34> I thought CONFIG_INITRAMFS_SOURCE will force kernel to use initramfs. Clearly from dmesg mmcblk2p5 is mounted (which I assume is your /system) and then some init (probably android) is started. | 18:57 |
T42 | <DrRamm> @elros34 [There is nothing sailfish specifig so far, eit …], If I see something like this | 18:57 |
T42 | <DrRamm> ```[ 7.708554] usb0: HOST MAC | 18:57 |
T42 | <DrRamm> [ 7.712917] usb0: MAC | 18:57 |
T42 | <DrRamm> [ 7.722714] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready | 18:57 |
T42 | <DrRamm> [ 8.229095] android_work: sent uevent USB_STATE=CONNECTED``` | 18:57 |
T42 | <DrRamm> Is that mean rootfs is working? `lsusb -v | grep iSerial` don't show me Mer, | 18:57 |
T42 | <DrRamm> @elros34 [I thought CONFIG_INITRAMFS_SOURCE will force k …], Yes, system_a is mmcblk2p5 | 18:58 |
T42 | <elros34> I wouldn't care about rootfs at all because your kernel still doesn't boot initramfs but instead boot from /system | 18:58 |
T42 | <DrRamm> @elros34 [I wouldn't care about rootfs at all because yo …], can you check dmesg? I have blank screen (at least it doesn't boot into lineage) https://pastebin.com/vTKNU0U0 | 19:02 |
T42 | <maffeen> Can I use AOSP instead of Lineage OS? | 19:03 |
T42 | <maffeen> With Pie | 19:03 |
T42 | <DrRamm> @maffeen [Can I use AOSP instead of Lineage OS?], You can switch to Lineage during one day... | 19:04 |
T42 | <maffeen> @DrRamm [You can switch to Lineage during one day...], My device hasn't a Lineage OS and I'm having problems compiling. The only device tree on my device for Pie is experimental | 19:05 |
T42 | <maffeen> All the ROMs are based on Q, there is just BeastROM that is Pie | 19:05 |
T42 | <elros34> @DrRamm looks better but hybris-boot script doesn't print anything to dmesg so it's hard to guess. Do you have /init.log? | 19:05 |
T42 | <DrRamm> @elros34 [@DrRamm looks better but hybris-boot script do …], Wew my host can see that | 19:06 |
T42 | <DrRamm> [344279.827504] usb 1-1.2: Manufacturer: Mer Boat Loader | 19:06 |
T42 | <DrRamm> [344325.390962] usb 1-1.2: Manufacturer: Mer Boat Loader | 19:06 |
T42 | <DrRamm> [344365.839468] usb 1-1.2: Manufacturer: Mer Boat Loader | 19:06 |
T42 | <elros34> so it's good now. What helped? | 19:06 |
T42 | <DrRamm> @elros34 [so it's good now. What helped?], CONFIG_INITRAMFS_SOURCE.... | 19:07 |
T42 | <DrRamm> @elros34 [@DrRamm looks better but hybris-boot script do …], yes telnet works. And I have log. Thank you! | 19:10 |
T42 | Ced %lastname% was added by: Ced %lastname% | 19:50 |
kalube | dummy_netd is failing to build with | 21:31 |
kalube | /srv/mer/toolings/SailfishOS-3.3.0.16//opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: /tmp/ccW1TktK.ltrans0.ltrans.o: undefined reference to symbol 'g_main_loop_unref' | 21:31 |
kalube | /srv/mer/toolings/SailfishOS-3.3.0.16//opt/cross/bin/armv7hl-meego-linux-gnueabi-ld: /srv/mer/targets/oneplus-enchilada-armv7hl/usr/lib/libglib-2.0.so.0: error adding symbols: DSO missing from command line | 21:31 |
kalube | Any ideas? | 21:31 |
T42 | <elros34> maybe clean leftovers from previous build | 21:34 |
kalube | @eros34 it's beena while since I've built sailfish - that was on my first build on a fresh build tree and tooling | 21:35 |
kalube | Forgive me - what should I run to clean up? | 21:35 |
T42 | <elros34> just an idea if there is anything in sources dir from previous build. IIRC: git checkout -- .; git clean -xdf or remove directory and clone it again | 21:38 |
kalube | I ran | 21:39 |
kalube | rm -rf hybris/mw/dummy_netd | 21:39 |
kalube | bp --mw=https://github.com/mer-hybris/dummy_netd | 21:39 |
kalube | got the same error | 21:39 |
T42 | <elros34> Are you sure you use 3.3.0.16 target and tooling? Latest still points to 3.2.1.x | 21:40 |
kalube | sdk-assistant list says 3.3.0.16 | 21:41 |
kalube | Yeah I used the version specifically for tooling not latest | 21:42 |
T42 | <elros34> check what sb2 ssu re returns | 21:42 |
kalube | yeh 3.3 | 21:42 |
kalube | I grep'd logs but couldn't find much | 21:43 |
kalube | Wonder why it won't build | 21:43 |
T42 | <elros34> there wasn't any changes in dummy_netd so it must be something in your build env | 21:44 |
kalube | Yeah that wouldn't surprise me to be honest... | 21:47 |
T42 | <elros34> unless it's too new libgbinder | 21:47 |
kalube | I have built libgbinder | 21:47 |
kalube | oh | 21:47 |
kalube | that could be it? | 21:47 |
kalube | libgbinder version : 1.0.43-0 | 21:48 |
kalube | not sure what version it expects | 21:48 |
T42 | <elros34> >= 1.0.7 | 21:49 |
kalube | could be too new then | 21:49 |
kalube | I grep | 21:49 |
kalube | grep'd libgbinder src for the function it can't find and got no results | 21:49 |
kalube | will try and older version of libgbinder | 21:49 |
kalube | oh wait nevermind the function is in a different subdir | 21:50 |
kalube | libgbinder probably isn't the issue | 21:50 |
kalube | g_main_loop_unref is in glib | 21:52 |
T42 | <elros34> still it's worth to try as there is no other dependencies | 22:10 |
T42 | <kalube> I'll try 1.0.35 - sorry for the late reply matrix decided not to pick up that message for some reason | 22:16 |
T42 | <kalube> huh, older libgbinder fixed it. Cheers | 22:23 |
T42 | <kalube> Will need to figure out what commit breaks it... | 22:23 |
T42 | <elros34> I would test this one: https://github.com/mer-hybris/libgbinder/commit/92cd463b344fd85fb74c9c4040a1175ad4fe9210#diff-4241114e323abe5923c0f9be498eee5f. Especially pkgconfig change | 22:24 |
T42 | <kalube> think line 8 might be it https://github.com/mer-hybris/libgbinder/blame/92cd463b344fd85fb74c9c4040a1175ad4fe9210/libgbinder.pc.in#L8 | 22:25 |
T42 | <kalube> Need to actually get stuff built as I was hoping to mess about with fingerprint today | 22:26 |
T42 | <kalube> I'll try changing that line back and see if that solves it | 22:26 |
T42 | <kalube> > if only there was CI to check this stuff | 22:26 |
T42 | <erfanoabdi> I made another package to build in Android side only, called stub netd and doing same thing as dummy netd but only returning valid values on output https://github.com/erfanoabdi/stub_netd | 22:27 |
T42 | <erfanoabdi> Maybe this can be useful... | 22:27 |
T42 | <kalube> @erfanoabdi cool! What does that do differently exactly? Sorry my understanding of android HAL is pretty... shit | 22:28 |
T42 | <erfanoabdi> @kalube [@erfanoabdi cool! What does that do differentl …], Dummy netd is hal for netd on gnu/linux side and just opening a binder interface and returning not valid values on called functions (netmgrd errors out about this on logcat but bot fetal) | 22:32 |
T42 | <erfanoabdi> But my hal is on Android side no need to deal with libgbinder and opening same interface but returning "OK" on any called functions so netmgrd likes it :) | 22:32 |
T42 | <kalube> haha, right got ya | 22:33 |
T42 | <kalube> Failing on droid-hal-version now... Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /boot/boot-initramfs.gz;5edd6faa: cpio: open failed - File exists | 22:53 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!