**** BEGIN LOGGING AT Tue Oct 22 03:00:24 2019 Oct 22 03:18:30 sejaeshycuvepi63 was added by: sejaeshycuvepi63 Oct 22 03:18:41 nagazhaejopiqu5911 was added by: nagazhaejopiqu5911 Oct 22 03:41:49 @UniversalSuperBox @NotKit ^^ couple of spambots joining Oct 22 06:05:16 @Shakendo [Java isnt used at all, if your getting an error for java or apk issues you have …], ```~/device/xiaomi/whyred# grep -r "java" * … device.mk:# android.hidl.manager@1.0-java … gps/gnss/GnssAdapter.cpp: // framework expects it as it is. See GnssStatus.java. … gps/gnss/GnssAdapter.cpp: * status, even tho Oct 22 06:05:16 ugh the OEM layer in java does not do so. … gps/utils/loc_gps.h: * constants in GpsLocationProvider.java. */ … gps/utils/loc_gps.h: * constants in GpsLocationProvider.java. */ … gps/utils/loc_gps.h: * constants in GpsLocationProvider.java. */ … gps/utils/loc_gps.h: * constants in GpsLocationProvider.java. */ … gps/utils/loc_gps.h: * constants in Gp Oct 22 06:05:16 sLocationProvider.java. */ … overlay/packages/apps/CarrierConfig/res/xml/vendor.xml: blocks for various filters. For more info visit DefaultCarrierConfigService.java … overlay/packages/services/Telephony/res/values/config.xml: CarrierConfigManager.java. Please consider whether new variables belong … overlay/frameworks/base/core/res/res/ Oct 22 06:05:16 values/config.xml: policy/src/com/android/internal/policy/impl/PhoneWindowManager.java``` Oct 22 06:12:41 @Shakendo [Java isnt used at all, if your getting an error for java or apk issues you have …], https://paste.ubuntu.com/p/VgZfFZcmbt/ what to delete? device.mk hidl-java is commented. But in sources .cpp and .h it is what to delete? Also, can I delete the overlay directory? This tree https://github.com/LineageOS/android_device_xiaomi_w Oct 22 06:12:41 hyred Oct 22 07:54:32 @Shakendo [Could be a thumb drive maybe or a optical drive?], Ok, GM. If you are asking me, then what I have plugged in my host, is a mouse, the target obviously. And I do have a CD drive.. And that is it. Oct 22 08:36:23 @Akatsu . [What is an output of lsusb?], Too late for that, I know. Here is the output: "Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub … Bus 001 Device 004: ID 04f2:b52b Chicony Electronics Co., Ltd … Bus 001 Device 005: ID 13d3:3423 IMC Networks … Bus 001 Device 008: ID 18d1:d001 Google Inc. … Bus 001 Device 007: ID 1d Oct 22 08:36:23 57:fa20 Xenta … Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub" I think, that this was not that long, so that is why I posted it into the chat. Oct 22 08:40:09 And the "while : ; do lsusb -v 2>/dev/null | grep -Ee 'iSerial +[0-9]+ +[^ ]' ; done | uniq" return was " iSerial 4 Mer Debug telnet on port 23 on rndis0 192.168.2.15 - also running udhcpd" Oct 22 08:40:19 You have telnet Oct 22 08:40:24 Just connect to it Oct 22 08:40:56 Yeah, but how. Oct 22 08:41:12 Sorry, if I am not as experienced. This is my first port. Oct 22 08:41:16 telnet 192.168.2.15 Oct 22 08:41:22 From command line Oct 22 08:41:41 Welp, that failed. Oct 22 08:41:41 If it fails then card isn't configured and you have to do it by hand Oct 22 08:41:43 Trying 192.168.2.15... … telnet: Unable to connect to remote host: No route to host Oct 22 08:41:45 Ok. Oct 22 08:41:54 Look at halium docs Oct 22 08:42:02 ip link set USBNETWORK address 02:01:02:03:04:08 This one? Oct 22 08:42:10 Yes Oct 22 08:42:15 There more lines Oct 22 08:42:33 dmesg did not return the network. Oct 22 08:42:34 Usb network need to be replaced with this en something string Oct 22 08:43:01 If config maybe? Oct 22 08:43:40 iSerial 4 Mer Debug telnet on port 23 on rndis0 192.168.2.15 - also running udhcpd (could rndis0 be the network?) Oct 22 08:43:41 ifconfig Oct 22 08:43:52 Rndis0 is interface Oct 22 08:44:02 Okay. Thank you for letting me know that. Oct 22 08:44:43 Try ipconfig in cmd Oct 22 08:45:02 `ip addr` Oct 22 08:45:17 @dohniks [ip addr], Run it in the terminal? Oct 22 08:45:22 yes Oct 22 08:45:25 @Akatsu . [Try ipconfig in cmd], Then I have to reboot. Oct 22 08:45:29 ? Oct 22 08:45:37 @dohniks [yes], Alright. What am I looking for here? Oct 22 08:46:02 your en.... device Oct 22 08:46:27 enp0s20u2? Oct 22 08:46:34 sounds good Oct 22 08:46:43 Alright! Let me configure it. Oct 22 08:48:05 Yup Oct 22 08:48:08 Sounds good Oct 22 08:48:16 I'm not really into linux Oct 22 08:48:22 Well Oct 22 08:48:36 I am dualbooting Windows and Linux. Oct 22 08:48:36 It should be ifconfig anyway xD Oct 22 08:48:44 Not ip Oct 22 08:48:59 That is the best DB I have ever had. Oct 22 08:49:27 OH MY. Oct 22 08:49:31 oh. I see. I'm not that familiar with windows. halium docs are based on linux. `ip` command is linux Oct 22 08:49:31 WE HAVE TELNET. Oct 22 08:49:45 tadaaa :) Oct 22 08:49:51 "Welcome to the Mer/SailfishOS Boat loader debug init system." AAAAAAAAa Oct 22 08:50:01 I bet he have dummy set to Y xD Oct 22 08:50:10 Exciting 😁 Oct 22 08:50:14 cat Init.log Oct 22 08:50:19 The device is stuck in Samsung. But. Oct 22 08:50:31 I cannot believe I did this. Oct 22 08:50:44 But this must be done until I have PM or UT. Oct 22 08:50:45 This is easiest thing to get Oct 22 08:50:53 yeah, you will see stuff on the screen later, for now it's telnet, next goal is ssh Oct 22 08:51:15 Alright. Thank you for the support and troubleshoot. Atleast we have something. :) Oct 22 08:51:28 We need first rootfs and lxc, no lxc will probably lead to no screen Oct 22 08:51:36 @Akatsu . [cat Init.log], cat: can't open 'Init.log': No such file or directory Oct 22 08:51:49 ls? Oct 22 08:52:09 @Akatsu . [I bet he have dummy set to Y xD], LMAO. "CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y not found in /proc/config.gz … CONFIG_DEVTMPFS=y not found in /proc/config.gz … CONFIG_VT=y not found in /proc/config.gz … CONFIG_DUMMY=y found in /proc/config.gz, must be disabled" (cat diagnosis.log) Oct 22 08:52:21 I told ya xD Oct 22 08:52:23 XD Oct 22 08:52:29 Fix them Oct 22 08:52:35 ...How? xD Oct 22 08:52:37 Inside defconfig Oct 22 08:52:50 Then rebuild the image and flash again or what? Oct 22 08:53:05 Then rebuild hybris-boot and flash it Oct 22 08:53:21 The funny thing is, the docs didn't say to disable the dummy. Oct 22 08:53:29 Yes Oct 22 08:53:40 I am starting to like OS development. Oct 22 08:53:42 Even UT halium boot checker miss on it Oct 22 08:53:52 Hah. Oct 22 08:54:02 @dohniks do hybris boot uses lxc? Oct 22 08:54:45 CONFIG_BL_SWITCHER_DUMMY_IF=y ? Oct 22 08:54:52 Set to "N"? Oct 22 08:54:54 well, the boot img itself doesn't care, but once you want some kind of useful userspace (pm, ut, whatever) that can actually properly use your hardware, you need the android lxc container Oct 22 08:54:57 You can run lxc-checkconfig too Oct 22 08:55:11 Because you will need to fix lxc anyway Oct 22 08:55:16 Me? Oct 22 08:55:19 Ye Oct 22 08:55:30 Do it under telnet Oct 22 08:55:32 Ok, but should I switch this to "n"? CONFIG_BL_SWITCHER_DUMMY_IF=y Oct 22 08:55:45 Probably nope Oct 22 08:55:57 Nvm. There was another keyword found. Oct 22 08:55:58 Just config_dummy alone Oct 22 08:56:07 Yup, Ubuntu found it. Oct 22 08:56:17 Rebuilding image... Oct 22 08:58:43 Flashing it rn... Oct 22 08:59:47 WOAH. Oct 22 08:59:57 Wait, Oct 22 09:00:04 Let me reconnect the USB. Oct 22 09:00:14 That scared me af. Oct 22 09:00:23 Heimdall wasn't detecting the device. Oct 22 09:00:29 Phew. Oct 22 09:00:41 You flash it with heimdall? Oct 22 09:00:48 Yup. I am on Ubuntu. Oct 22 09:01:03 Cannot you flash image to boot partition with twrp? Oct 22 09:01:04 Flashed! Oct 22 09:01:26 @Akatsu . [Cannot you flash image to boot partition with twrp?], Does it make any difference? I mean I have TWRP installed, so I can do it. Oct 22 09:01:37 Lemme connect to telnet. Oct 22 09:01:38 No Oct 22 09:01:42 No diff Oct 22 09:01:51 Alright. Oct 22 09:02:21 Do I really have to configure the IP and MAC again? Oct 22 09:02:33 Yup Oct 22 09:02:37 Aw man. Oct 22 09:02:41 BRB. Oct 22 09:02:54 On Windows it works bettet Oct 22 09:02:55 Just do it once Oct 22 09:03:22 Well, I have Windows on my HD, but it is meant more for school work and it is a bit slow, even on SSD. Oct 22 09:03:31 That is why I use Ubuntu more for develop. Oct 22 09:05:54 Alright, I am connected. Oct 22 09:06:32 Do it again? Oct 22 09:06:32 Output of cat diagnosis.log is "CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y not found in /proc/config.gz … CONFIG_DEVTMPFS=y not found in /proc/config.gz … CONFIG_VT=y not found in /proc/config.gz" Oct 22 09:06:47 Well, now the dummy is disabled. Oct 22 09:06:49 Yay. Oct 22 09:06:54 Add rest Oct 22 09:07:01 Wdym. Oct 22 09:07:06 All are about defconfig Oct 22 09:07:20 So I need to replace them with all the values? Oct 22 09:07:27 Which are in the above or what? Oct 22 09:07:50 Find these config lines and set to what it says Oct 22 09:07:59 Like, I need to replace CONFIG_YT=y? Oct 22 09:08:05 And like that. Yeah? Oct 22 09:08:09 Vt Oct 22 09:08:52 Search for config_vt if it's =n set it to =y Oct 22 09:09:19 If you see # before then remove entire line and paste it in spot Oct 22 09:10:10 The config_vt was "# config_vt is not set" I changed it to "config_vt=y" Oct 22 09:10:15 Yup Oct 22 09:10:19 Exactly like that Oct 22 09:10:47 Ok, help. I cannot find "CONFIG_DEVTMPFS_MOUNT" in defconfig. Oct 22 09:10:50 Take care to not have double lines with same option as it will assign it to last appearing one Oct 22 09:10:59 Just make new line with that Oct 22 09:11:06 Alright, thanks! :) Oct 22 09:11:37 The line can be in any spot or it should be pasted on the end of the file? Oct 22 09:11:55 I would put it on top and separate from others Oct 22 09:12:04 So you will know what was added by you Oct 22 09:12:28 Oh, I just wanted it to place under "CONFIG_DEVTMPFS" since it was not set too. Oct 22 09:12:55 Placement doesn't really matter Oct 22 09:13:01 Alright. Oct 22 09:13:09 Thank you. Oct 22 09:17:53 Does this count as a critical error. "build/core/binary.mk:37: provisioningagent uses kernel headers, but does not depend on them! … build/core/binary.mk:37: libcommonpawrapper uses kernel headers, but does not depend on them!"? Oct 22 09:18:01 Im building hybris-boot. Oct 22 09:18:15 Not critical Oct 22 09:18:20 Alright. Oct 22 09:18:29 Building Kernel. Oct 22 09:21:27 Hm, kernel is taking a lot more time to build. Oct 22 09:21:38 I am just going to leave it longer. Oct 22 09:27:41 arch/arm/configs/lineageos_chagalllte_defconfig:626:warning: unexpected data o,O Let me look. Oct 22 09:33:12 Alright, build and flash done. Will configure telnet now. Oct 22 09:33:20 I will make a script for that. Oct 22 09:38:08 @stefanomelchior [Herrie, I am still having issue in building halium-8.1, especially because I fou …], , Idk how, but now it could build system.img for bardockpro (BQ X Pro) as you can see here (https://paste.ubuntu.com/p/g9qmqJ43Zr/), apart from some errors Oct 22 09:38:10 Device "enp0s20u2" does not exist. Oct 22 09:38:15 Oh-oh. Oct 22 09:39:20 Maybe you booted to rootfs Oct 22 09:39:28 Do lsusb once again Oct 22 09:39:30 But nothing's on the screen.. Oct 22 09:39:34 Alright. Oct 22 09:39:46 Only lsusb or the whole thing from the docs? Oct 22 09:39:52 Whole Oct 22 09:39:58 This one. while : ; do lsusb -v 2>/dev/null | grep -Ee 'iSerial +[0-9]+ +[^ ]' ; done | uniq Oct 22 09:40:09 Nothing returns. Oct 22 09:40:15 To get screen you need lxc container running, rootfs can run just fine Oct 22 09:40:30 Plug out and plug in Oct 22 09:40:32 And revolt Oct 22 09:40:39 [Edit] And reboot Oct 22 09:40:50 Wait let me try the cable first. Oct 22 09:40:57 Booting into TWRP. Oct 22 09:41:19 Cable's fine. Oct 22 09:41:54 Wait. Oct 22 09:42:16 I think I know something. After some time, the device starts mounting bunch of drives on my host PC. Oct 22 09:42:28 So, maybe then it normally booted up, and then telnet works. Oct 22 09:42:34 Let me wait until the drives are mounted. Oct 22 09:42:43 It should be called something like Init in real-rootfs Oct 22 09:42:56 That's what I got on sailfishos Oct 22 09:43:09 Let me wait until the drives are mounted. Oct 22 09:43:21 Akatsu you got sfos on top of halium? Oct 22 09:43:24 Still not mounted. Oct 22 09:43:41 Usually on telnet it says somethung about salfishos, Oct 22 09:43:47 @dohniks [Akatsu you got sfos on top of halium?], Nope, I followed hadk Oct 22 09:44:14 Hybris is thing developed by mer/sailfishos devs Oct 22 09:44:19 ah Oct 22 09:46:22 Still nothing. Oct 22 09:46:40 Myb I edited something in defconfig that prevents this? Oct 22 09:46:59 During Init telnet is cut out from what I know Oct 22 09:47:21 So you might to just wait long for it to bring ssh up Oct 22 09:47:33 From what I know, as I said. When bunch of drives are mounted, then telnet works. Those are device's drives. Oct 22 09:47:49 And they usually mount right away. Oct 22 09:48:04 Go into twrp and rename android image and rootfs Oct 22 09:48:05 But it is been 5 mins and they aren't still mounted on the host. Oct 22 09:48:06 http://docs.halium.org/en/latest/porting/debug-build/early-init.html#the-device-reboots-after-leaving-hybris-recovery Oct 22 09:48:15 @Akatsu . [Go into twrp and rename android image and rootfs], Alright. Oct 22 09:48:20 In /data? Oct 22 09:48:25 Yes Oct 22 09:48:41 If it shows telnet then it try to mount and is stuck in it Oct 22 09:49:49 Just in case the /data contains rootfs.img, .layout_version, system.img and init-stderrout. Oct 22 09:50:07 @Akatsu . [Go into twrp and rename android image and rootfs], System.img should be renamed and rootfs.img? Oct 22 09:50:51 Yup Oct 22 09:51:22 Wait. Oct 22 09:51:25 It is rebooting now. Oct 22 09:51:30 For some reason.. Oct 22 09:55:09 Alright, got it on TWRP now. Oct 22 09:55:49 Akatsu What do you have to say about this? Is it like device's looking for system and rootfs, and it cannot find it anywherem so that is why it reboots? Oct 22 09:57:13 If you get telnet you can try to CD to data Oct 22 09:57:21 I don't. Oct 22 09:57:36 After renaming you still get no telnet? Oct 22 09:57:44 Nope, the device just reboots. Oct 22 09:58:03 Reboots after 5 seconds in a loop. Oct 22 09:58:10 (Sticker, 512x422) https://irc.ubports.com/MkyUjFSv.webp Oct 22 09:58:22 Same. Oct 22 09:59:23 Maybe someone clever can help with that Oct 22 09:59:28 Getting no telnet, should I try this? docs.halium.org/en/latest/porting/debug-build/logging-in.html Oct 22 09:59:37 Have you made proper mount points? Oct 22 09:59:41 Yup. Oct 22 10:00:06 Should I paste them into pastebin? Oct 22 10:00:27 I have no device so I cannot verify anyway Oct 22 10:00:33 Okay.. Oct 22 10:01:27 @rixchy [Getting no telnet, should I try this? docs.halium.org/en/latest/porting/debug-bu …], I feel like if I am going to try this, this is not going to work. Oct 22 10:04:32 Didn't work. Oct 22 10:04:41 Get last_kmsg and check what makes it reboot Oct 22 10:05:01 Sorry, I do not understand. I am not that experienced for now. Oct 22 10:05:12 @dohniks [Get last_kmsg and check what makes it reboot], Is that a file? Oct 22 10:05:23 Can he get it without telnet working? Oct 22 10:05:24 It's in the docs Oct 22 10:05:50 In general, I'd suggest you read through the whole guide once Oct 22 10:06:06 @dohniks [In general, I'd suggest you read through the whole guide once], I am, but I got stuck at certain point. Oct 22 10:06:16 No need to understand every detail, but then you will have come across a lot of things Oct 22 10:06:35 Ok, thanks. But I have not heard a single time of such file. Oct 22 10:06:51 Search for last_kmsg in the docs Oct 22 10:07:11 @Akatsu . [Can he get it without telnet working?], Yes, from twrp Oct 22 10:07:14 while : ; do lsusb -v 2>/dev/null | grep -Ee 'iSerial +[0-9]+ +[^ ]' ; done | uniq Oct 22 10:07:17 Oops. Oct 22 10:07:42 http://docs.halium.org/en/latest/porting/debug-build/dmesg.html Oct 22 10:08:23 "Reboot the device into a working system." Can I boot into TWRP? Oct 22 10:08:29 Jup Oct 22 10:08:30 Since it uses ADB, right? Oct 22 10:08:36 Alright. Oct 22 10:10:09 What bringed my attention un last_kmsg was "[ 62.566952] [L1: kworker/1:0: 9] SRP_ERR: Failed to requset firmware[srp_vliw.bin]" Oct 22 10:10:22 [Edit] What bringed my attention on last_kmsg was "[ 62.566952] [L1: kworker/1:0: 9] SRP_ERR: Failed to requset firmware[srp_vliw.bin]" Oct 22 10:10:29 I will paste the whole log on pastebin. Oct 22 10:10:52 Here. https://pastebin.com/pbnBnkTp Oct 22 10:13:28 @rixchy [LMAO. "CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y …], Telnet stopped working after fixing this. btw. Oct 22 10:16:24 @rixchy [Since it uses ADB, right?], Anything that boots and let's you connect should be fine Oct 22 10:16:36 Ok. Oct 22 10:16:56 But at this point, I really don't know what to do. Oct 22 10:17:10 @rixchy [Telnet stopped working after fixing this. btw.], I would maybe unset those values again to get telnet. Oct 22 10:18:44 @rixchy [Here. https://pastebin.com/pbnBnkTp], Doesn't look like hybris/hallum boot. How did you get that Oct 22 10:18:56 Wdym? Oct 22 10:19:18 I built and flashed hybris-boot. Oct 22 10:19:31 And then... Oct 22 10:19:52 And that is it. Oct 22 10:20:08 I also fixed some values. Oct 22 10:20:14 @rixchy [LMAO. "CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y …], These. Oct 22 10:20:18 Well, somehow you got the file that you pastebin'd .... Oct 22 10:20:27 ? Oct 22 10:20:51 So, I think you let the device boot, you observe that it keeps rebooting ... what's next Oct 22 10:21:34 What I did, is I renamed the system and rootfs back to their original names. Oct 22 10:21:56 Then I rebooted the system, and it stopped bootlooping. Tho no telnet yet. Oct 22 10:22:08 Why would these values interfere? Oct 22 10:22:53 lsusb doesn't return anything. Oct 22 10:23:58 My hypothesis is that changing the config values FIXED something and as a result your device boots further (good) in to rootfs, however rootfs fails to provide you with a network/ssh connection Oct 22 10:24:26 Hm, alright. Oct 22 10:24:30 Good hypothesis. xD Oct 22 10:24:32 So, one approach would be to get a kernel log from hybris+rootfs booting Oct 22 10:24:50 Alright, but I do not have any idea how to do that. LMAO. Oct 22 10:24:58 However, the one you pastebind doesn't look right Oct 22 10:25:13 But it is the last_kmsg file... Oct 22 10:25:39 So here my hypothesis is that you didn't do it right, that's why I was asking how IN DETAIL you got it Oct 22 10:25:54 Oh. Oct 22 10:26:44 Maybe there is one value who prevents telnet? Oct 22 10:26:58 Because that happened when I did fix, those values. Oct 22 10:27:17 But what value would do that? Oct 22 10:27:42 Losing telnet is normal and desired Oct 22 10:27:48 It's just a stepping stone Oct 22 10:27:53 Believe it or not, but I am looking at this value only because it includes a keyword mount. CONFIG_DEVTMPFS_MOUNT=y Oct 22 10:28:14 Telnet would work, when my device would start mounting drivers on my host pc over USB. Oct 22 10:28:20 *drives Oct 22 10:28:41 @dohniks [Losing telnet is normal and desired], Oh, alright. I didn't know that. Oct 22 10:29:20 @dohniks [So here my hypothesis is that you didn't do it right, that's why I was asking ho …], Sooo, care to help me help you and give some details ??!?! Oct 22 10:29:37 Sure! You just needed to say that!!! Oct 22 10:31:37 Aha, .... and? We made it until device boots and just sits there .... ... and the the story ends with pastebin Oct 22 10:32:13 No, the st Oct 22 10:32:17 OOps. Oct 22 10:33:50 Alright, let's retrace our steps... Oct 22 10:33:57 👍 Oct 22 10:34:16 First, I build the hybris-boot. (Not the first time, I was in this chat joined.) Oct 22 10:34:27 Then, you told me how to connect to telnet. Oct 22 10:34:41 I connected, and you told me to cat diagnostic.log. Oct 22 10:34:53 I did it, and it returned those unset and expected values. Oct 22 10:35:27 At that time, device mounted bunch of drives, and could connect to telnet, however it was still stuck at Samsung logo, which was expected. Oct 22 10:35:43 Akatsu Suggested that I fix those values in defconfig. Oct 22 10:35:52 @rixchy [LMAO. "CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y …], These. Oct 22 10:36:01 I fixed them. Oct 22 10:36:14 Built the hybris-boot again, and flashed the image with heimdall. Oct 22 10:36:51 Then, I rebooted and the device was still stuck at Samsung, but the telnet, nor the drives were mounted and worked. Oct 22 10:36:59 The cable was fine, as I tested in TWRP. Oct 22 10:37:24 Then someone suggested in this chat, that I should rename rootfs.img and system.img to something else, I did it. Oct 22 10:37:48 Then the device would reboot. (Turn on, wait approx. 5 sec and reboot) in a loop. Oct 22 10:38:08 Then, I rebooted the device into TWRP, and renamed the files back. Oct 22 10:38:18 But the drives weren't still mounting. Oct 22 10:38:38 I adb cat'd the kernel log through TWRP, and pasted into PasteBin. Oct 22 10:38:46 And now, we're here. Oct 22 10:39:15 @rixchy [I adb cat'd the kernel log through TWRP, and pasted into PasteBin.], How, EXACTLY? cmd? Oct 22 10:39:23 No, terminal. Oct 22 10:39:38 adb shell cat /proc/last_kmsg > ~/last_kmsg this in Terminal. Oct 22 10:39:46 👍 Oct 22 10:40:02 Tried to explain as much as possible. Oct 22 10:40:36 It's clear no. Thx Oct 22 10:40:39 http://docs.halium.org/en/latest/porting/debug-build/dmesg.html Oct 22 10:40:51 Do you have those two configs? Oct 22 10:41:37 But do I really need to write them? I mean, it is written that they need to be pasted in defconfig only if you can't find then last_kmsg. But no. Oct 22 10:41:55 Not sure Oct 22 10:42:02 Try with them Oct 22 10:42:06 Okay.. Oct 22 10:43:17 The CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE wasn't set. Going to set it and rebuild. Oct 22 10:45:19 Ok, so. Oct 22 10:46:57 Ok, I flashed the boot again. Should I dump the last_kmsg again? Oct 22 10:47:50 @rixchy [Ok, I flashed the boot again. Should I dump the last_kmsg again?], Are you in telnet or ssh? Oct 22 10:48:15 I am trying to get telnet, but after fixing values in defconfig, I cannot connect to telnet again. Oct 22 10:48:34 Not detected by lsusb either. Oct 22 10:48:36 @rixchy [I am trying to get telnet, but after fixing values in defconfig, I cannot connec …], Did you use the script to check the defconfig? Oct 22 10:48:43 What script? Oct 22 10:49:05 The mer-kernel thing? Oct 22 10:49:54 @rixchy [The mer-kernel thing?], http://docs.halium.org/en/latest/porting/build-sources.html#modify-the-kernel-configuration Oct 22 10:50:10 @rixchy [The mer-kernel thing?], Are you building halium-boot or hybris-boot? Oct 22 10:50:17 Hybris-boot. Oct 22 10:50:25 @Mattia990 [http://docs.halium.org/en/latest/porting/build-sources.html#modify-the-kernel-co …], So use this Oct 22 10:50:38 @Mattia990 [So use this], I did, but let me run the script again. Oct 22 10:50:58 @rixchy [I did, but let me run the script again.], Did you build also systemimage? Oct 22 10:51:05 Yes. Oct 22 10:51:10 @rixchy [Yes.], Ah ok, right Oct 22 10:51:11 @rixchy [Ok, I flashed the boot again. Should I dump the last_kmsg again?], Yes Oct 22 10:51:24 Issue is that he probably looses telnet due to rootfs Init but at same time rootfs crashes Oct 22 10:51:37 Can you post fixupmountpounts? Oct 22 10:51:41 Sure. Oct 22 10:51:50 WHERE WAS IT AGAIN. Oct 22 10:51:55 Gosh, I keep forgetting. Oct 22 10:52:01 Hybris boot Oct 22 10:52:09 Found it, aha! Oct 22 10:52:49 Here. https://pastebin.com/3MXDcDdH Oct 22 10:53:22 @rixchy [Here. https://pastebin.com/3MXDcDdH], How is called your device? Oct 22 10:53:34 Last one Oct 22 10:53:36 Samsung Galaxy Tab S 10.5 LTE [chagalllte]. Oct 22 10:53:45 Or exynos5420-common. Oct 22 10:53:50 You pasted fixmountpoints :) Oct 22 10:53:55 ? Oct 22 10:54:11 @dohniks [You pasted fixmountpoints :)], So? Oct 22 10:54:17 Oh sorry Akatsu asked for it :) Oct 22 10:54:24 Oh, yeah. :) Oct 22 10:54:28 I was hoping for new last kmsg Oct 22 10:54:43 Oh, yeah! Let me paste that for you! Oct 22 10:55:18 Any idea where firmware is stored? Oct 22 10:55:42 Maybe u lack partition Oct 22 10:56:01 @dohniks [I was hoping for new last kmsg], https://pastebin.com/4me7KWXf Oct 22 10:56:23 @Akatsu . [Any idea where firmware is stored?], For telnent I think it is useless Oct 22 10:56:46 He rekt on rootfs Init Oct 22 10:56:53 Reboot Oct 22 10:56:59 I do not understand anything. xD Oct 22 10:57:17 Pretty same like I do on j5 when I try to Init adsp Oct 22 10:58:01 Ok, I ran mer-kernel-check. Oct 22 10:58:10 I feel like he miss partition mounts Oct 22 10:58:12 @rixchy [https://pastebin.com/4me7KWXf], Dammit. This is not much more helpful Oct 22 10:59:02 https://pastebin.com/LBnwhHnf mer-kernel-check output. Oct 22 10:59:19 @dohniks [http://docs.halium.org/en/latest/porting/debug-build/early-init.html#the-device- …], Try this. Disable lxc Oct 22 10:59:27 @dohniks [Try this. Disable lxc], How. Oct 22 10:59:35 @rixchy [https://pastebin.com/LBnwhHnf mer-kernel-check output.], You are wrong here Oct 22 10:59:45 Have you read the link? Oct 22 11:00:01 This is why it doesn't boot Oct 22 11:00:19 @Mattia990 [This is why it doesn't boot], Ok.? Oct 22 11:00:23 What should I fix? Oct 22 11:00:42 The errors are displayed because it the defconfig path is wrong "Can't open lineageos_chagalllte_defconfig: No such file or directory at ./mer_verify_kernel_config line 99" Oct 22 11:00:59 So it displays all possible errors it knows. Oct 22 11:01:47 @rixchy [What should I fix?], The file is in … kernel/Samsung/.../arch/ (idk if it is arm or arm64)/configs/lineageos_chagalllte_defconfig Oct 22 11:01:54 It is arm. Oct 22 11:02:03 @Mattia990 [The file is in … kernel/Samsung/.../arch/ (idk if it is arm or arm64)/configs/lin …], Yup. Oct 22 11:02:19 @rixchy [Yup.], Use the script with that file and fix the errors Oct 22 11:02:40 I did, as you saw the output. Oct 22 11:02:45 @rixchy [https://pastebin.com/LBnwhHnf mer-kernel-check output.], . Oct 22 11:02:47 @rixchy [I did, as you saw the output.], No, you are wrong Oct 22 11:02:55 You didn't put that file Oct 22 11:03:03 What file? Oct 22 11:03:15 @rixchy [What file?], Where is located mer script? Oct 22 11:03:18 He did it already Oct 22 11:03:35 @rixchy [https://pastebin.com/LBnwhHnf mer-kernel-check output.], Akatsu read the first lines Oct 22 11:03:42 @Mattia990 [Where is located mer script?], ~/halium/mer-kernel-check/ Oct 22 11:04:03 Basically you need to use the full path to where the defconfig file is actually located. Oct 22 11:04:31 SO. /mer_verify_kernel_config /path/to/arm/configs/defconfig ?? Oct 22 11:04:42 Sounds good. Oct 22 11:04:49 Alright. Oct 22 11:04:52 Let me try. Oct 22 11:05:21 @rixchy [~/halium/mer-kernel-check/], ./mer-kernel-check ~/halium/kernel/samsung/(kernel name)/arch/arm/configs/lineageos_chagalllte_defconfig Oct 22 11:06:02 He got into telnet already and fixed errors preventing from booting rootfs Oct 22 11:06:31 rixchy_@ubuntu-asus:~/halium/mer-kernel-check$ ./mer_verify_kernel_config ~/halium/kernel/samsung/exynos5420/arch/arm/config/lineageos_chagalllte_defconfig … Can't open /home/rixchy_/halium/kernel/samsung/exynos5420/arch/arm/config/lineageos_chagalllte_defconfig: No such file or directory at ./mer_verify_kernel_config line 99. Oct 22 11:06:54 I found the mistake. Oct 22 11:07:03 *configs I apologize. Oct 22 11:07:43 @Akatsu . [He got into telnet already and fixed errors preventing from booting rootfs], If the systems related errors are not fixed as well, it will be able to boot beyond the inititramfs but not actually boot up the rootfs completely. Oct 22 11:07:44 @Mattia990 [./mer-kernel-check ~/halium/kernel/samsung/(kernel name)/arch/arm/configs/lineag …], I wrote the command here😅 Oct 22 11:08:11 So it found the kernel file. First couple of lines: "WARNING: CONFIG_WATCHDOG_NOWAYOUT is invalid … It is unset … Allowed values : y, ! … Comment says: If device uses watchdogs with dsme (https://github.com/nemomobile/dsme), this option should be enabled or watchdog does not protect the device in case dsme crashes.". Oct 22 11:08:59 @rixchy [So it found the kernel file. First couple of lines: "WARNING: CONFIG_WATCHDOG_NO …], Open the defconfig and put CONFIG_WATCHDOG_NOWAYOUT=y Oct 22 11:09:12 Wait, that is not the whole return/ Oct 22 11:09:23 There is a very long output of the command Oct 22 11:09:32 @Mattia990 [Open the defconfig and put CONFIG_WATCHDOG_NOWAYOUT=y], I know, but follow this Oct 22 11:09:40 Alright. Oct 22 11:09:46 @rixchy [So it found the kernel file. First couple of lines: "WARNING: CONFIG_WATCHDOG_NO …], And follow the allowed values Oct 22 11:10:06 If there is y put y and if there is n put n Oct 22 11:10:22 Uhm. o.O That is going to take a lot of time. Oct 22 11:10:30 @JBBgameich you are brainy one rite? Oct 22 11:10:32 @rixchy [Uhm. o.O That is going to take a lot of time.], Yess😂 Oct 22 11:10:58 @rixchy [Uhm. o.O That is going to take a lot of time.], And in the end check with the script if you did right Oct 22 11:11:11 BRB. Here is the output. https://pastebin.com/ywrzUmm1 Oct 22 11:12:08 @rixchy [BRB. Here is the output. https://pastebin.com/ywrzUmm1], Put all these in the defconfig with the allowed values (y or n) Oct 22 11:12:26 Fix ERROR Oct 22 11:12:38 Fhandle is error Oct 22 11:13:23 CONFIG_NETFILTER_XT_MATCH_MULTIPORT Oct 22 11:13:42 If systemd fails then it's not good sign Oct 22 11:14:43 Exactly Oct 22 11:14:52 @Akatsu . [CONFIG_NETFILTER_XT_MATCH_MULTIPORT], What line? Oct 22 11:14:58 Exactly this one Oct 22 11:15:07 And config_fhandle Oct 22 11:15:22 @rixchy [What line?], At what line it is written? Oct 22 11:15:35 (Photo, 720x1280) https://irc.ubports.com/R1k82TRU.png Oct 22 11:16:27 @Akatsu . [], O.t. … Xiaomi phone Oct 22 11:16:42 Mido Oct 22 11:16:46 Note 4x Oct 22 11:17:10 @Akatsu . [Note 4x], I've got mi3 mi5 and mi9(daily phone) Oct 22 11:17:44 @Akatsu . [CONFIG_NETFILTER_XT_MATCH_MULTIPORT], So I will fix this one and.. Oct 22 11:17:53 @Akatsu . [And config_fhandle], this one. Oct 22 11:18:08 Then I will rebuid the hybris-boot and flash it. Oct 22 11:18:12 Is that okay? Oct 22 11:18:19 For now? Oct 22 11:18:26 @rixchy [For now?], For now yes Oct 22 11:19:29 @rixchy [For now?], I would have also fixed the warnings, but it's the same Oct 22 11:19:49 Meh Oct 22 11:19:57 Warnings are not so important Oct 22 11:21:36 @Akatsu . [Warnings are not so important], My philosophy is fix all and don't think about it😂 Oct 22 11:21:56 haha Oct 22 11:22:50 Ok, fixing the errors now. Oct 22 11:27:40 Still no dice, no telnet, no lsusb. Oct 22 11:31:01 @rixchy [Still no dice, no telnet, no lsusb.], does your device use CONFIGFS USB? the `hybris-boot` used in halium doesn't support that which I found out as I was trying it. see if your defconfig / .config has `CONFIG_CONFIGFS_FS=y` Oct 22 11:31:19 Alright, lemme look. Oct 22 11:31:58 Yup, found it. CONFIG_CONFIGFS_FS=y Oct 22 11:32:05 It is there. Oct 22 11:34:11 But, what do I do then? Oct 22 11:36:49 as I was personally working towards getting Ubuntu Touch working I just started working on that and used `halium-boot` instead which got me quite far. then I only needed a patched hybris-usb package installed before booting the rootfs and I got device in dmesg, SSH via USB etc Oct 22 11:37:36 @Deathmist1337 [as I was personally working towards getting Ubuntu Touch working I just started …], So, should I just flash the halium-boot from out folder into the boot partition? Oct 22 11:37:43 @rixchy [But, what do I do then?], Is your device not showing up with hybris-boot? Oct 22 11:37:58 @Shakendo [Is your device not showing up with hybris-boot?], It was before I fixed some values in defconfig. Oct 22 11:38:03 But not anymore. Oct 22 11:38:09 oh well then you can make it work Oct 22 11:38:17 Alright. Oct 22 11:38:44 My note 4 takes 20 minutes to boot reference rootfs with hybris-boot, maybe its similar for your device? Oct 22 11:39:10 If my note 4 fails it shows telnet almost immediately Oct 22 11:39:11 You said that yesterday, before sleep I tried the same, didn't work. Oct 22 11:39:13 @Shakendo [My note 4 takes 20 minutes to boot reference rootfs with hybris-boot, maybe its …], With my old mi3 it took 5m Oct 22 11:39:36 @Shakendo [If my note 4 fails it shows telnet almost immediately], Telnet works only after my device mounts drives on host pc. Oct 22 11:39:50 It didn't mount anything for now, and the lsusb isn't detecting it either. Oct 22 11:40:12 [Edit] oh well then you can make it work (probably) Oct 22 11:40:58 As I said your device might be actually booting, just not bringing up the network interface yet, what does kmsg/ramoops say? Oct 22 11:41:21 Uhm, wait. I dumped them. Let me paste that on pastebin. Oct 22 11:41:39 https://pastebin.com/4me7KWXf Oct 22 11:43:58 That seems rather short, but I see it failed to mount mmcblk0p21 at the end, do you know which partition that is? Oct 22 11:44:11 Let me look in mountpoints. Oct 22 11:44:55 "chagalllte") … sed -i \ … -e 's /dev/block/platform/dw_mmc.0/by-name/HIDDEN /dev/block/mmcblk0p20 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/SYSTEM /dev/block/mmcblk0p18 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/PERSDATA /dev/block/mmcblk0p16 ' \ … -e 's /dev/block/platf Oct 22 11:44:56 orm/dw_mmc.0/by-name/EFS /dev/block/mmcblk0p3 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/CACHE /dev/block/mmcblk0p19 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/USERDATA /dev/block/mmcblk0p21 ' \ … "$@" … ;; Oct 22 11:45:03 Userdata. Oct 22 11:45:30 Theres your problem, its failing cause it cant mount the partition it needs Oct 22 11:45:44 But now we need to know, why won't it mount. Oct 22 11:46:31 That is the tricky bit, try removing the /dev/block part from your fixup_mountpoints Oct 22 11:46:33 @rixchy [https://pastebin.com/4me7KWXf], The log stops in ext3 mounting so probably it can Oct 22 11:46:56 I doubt it cause it also fails to mount loop0 and loop1 Oct 22 11:48:08 @Shakendo [I doubt it cause it also fails to mount loop0 and loop1], We can't know, the log is incomplete Oct 22 11:48:31 But that is the log the cat gave me. Oct 22 11:48:49 Using TWRP. Oct 22 11:49:13 @Mattia990 [We can't know, the log is incomplete], Well for now, thats what my money is on Oct 22 11:49:22 @rixchy [But that is the log the cat gave me.], I know but it is strange Oct 22 11:49:45 @Shakendo [Well for now, thats what my money is on], I'll give you 5000k€ Oct 22 11:50:10 Is there any info I can give so you can dive deeper into this issue? Oct 22 11:50:49 Just try what I suggested Oct 22 11:51:04 @rixchy [Is there any info I can give so you can dive deeper into this issue?], Did you put the script errors in the defconfig and rebuilt the hybris-boot? Oct 22 11:51:11 Not yet. Oct 22 11:51:13 Fwd from Shakendo: That is the tricky bit, try removing the /dev/block part from your fixup_mountpoints Oct 22 11:51:22 @rixchy [Not yet.], Do it when you want Oct 22 11:51:41 Oh, alright. Let me try @Shakendo Solution first. Then I will try yours. Oct 22 11:51:52 @rixchy [Oh, alright. Let me try @Shakendo Solution first. Then I will try yours.], Okk Oct 22 11:52:21 @Mattia990 did you notice the /dev/block/mmcblk0p21 in the fixup mountpoints he posted? Oct 22 11:52:51 That is userdata. Oct 22 11:52:54 Most devices dont need the /dev/block/ portion Oct 22 11:53:10 Just the mmcblk0p21 should suffice Oct 22 11:53:23 Brb gotta get kiddo off to school Oct 22 11:53:24 So I should change /dev/block//platform/dw_mmc.0/by-name/USERDATA to /platform/dw_mmc.0/by-name/USERDATA and rebuild the hybris? Oct 22 11:53:35 @Shakendo [Brb gotta get kiddo off to school], All right. Oct 22 11:56:10 @Shakendo [@Mattia990 did you notice the /dev/block/mmcblk0p21 in the fixup mountpoints he …], Yeah you are right Oct 22 11:56:38 @rixchy [So I should change /dev/block//platform/dw_mmc.0/by-name/USERDATA to /platform/ …], Is this right? Oct 22 11:56:54 I should just remove the /dev/block part? Oct 22 11:56:54 @rixchy [Is this right?], No, wait Oct 22 11:57:49 @rixchy [I should just remove the /dev/block part?], "chagalllte") … sed -i \ … -e 's /dev/block/platform/dw_mmc.0/by-name/HIDDEN mmcblk0p20 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/SYSTEM mmcblk0p18 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/PERSDATA mmcblk0p16 ' \ … Oct 22 11:57:49 -e 's /dev/block/platform/dw_mmc.0/by-name/EFS mmcblk0p3 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/CACHE mmcblk0p19 ' \ … -e 's /dev/block/platform/dw_mmc.0/by-name/USERDATA mmcblk0p21 ' \ … "$@" … ;; Oct 22 11:58:17 Should I paste this into the file? Oct 22 11:58:25 Let me check if I write it right Oct 22 11:58:42 Ok. Oct 22 11:59:36 @rixchy [Ok.], "chagalllte") … sed -i \ … -e 's block/platform/dw_mmc.0/by-name/HIDDEN mmcblk0p20 ' \ … -e 's block/platform/dw_mmc.0/by-name/SYSTEM mmcblk0p18 ' \ … -e 's block/platform/dw_mmc.0/by-name/PERSDATA mmcblk0p16 ' \ … -e 's block/platform/dw_mmc.0/by-name/EFS mmcblk0p3 Oct 22 11:59:36 ' \ … -e 's block/platform/dw_mmc.0/by-name/CACHE mmcblk0p19 ' \ … -e 's block/platform/dw_mmc.0/by-name/USERDATA mmcblk0p21 ' \ … "$@" … ;; Oct 22 11:59:52 So, I should paste it. Oct 22 12:00:02 @rixchy [So, I should paste it.], Put this and also fix the errors from the mer script Oct 22 12:06:32 I can't find this. CONFIG_LOCKD_V4 Oct 22 12:07:59 Add it in the defconfig … CONFIG_LOCKD_V4=y Oct 22 12:20:13 Ok, Im back Oct 22 12:34:48 Mhm. Oct 22 12:34:48 Fixing the errors from mer script. Oct 22 12:34:48 Line 137. Oct 22 12:34:48 This better be worth it when the Halium is ported to my device. xD Oct 22 12:34:48 @rixchy [Line 137.], What? Oct 22 12:34:48 In the log. Oct 22 12:34:48 I have fixed errors. Oct 22 12:34:48 Until line 137. Oct 22 12:34:48 In the output I had. Oct 22 12:34:48 @rixchy [This better be worth it when the Halium is ported to my device. xD], Well that is a matter of your opinion, I will tell you though, theres no greater feeling than when you get that first GUI to show Oct 22 12:34:48 @rixchy [In the output I had.], Ah ok, fix mounpoint and rebuild hybris-boot Oct 22 12:34:48 @Shakendo [Well that is a matter of your opinion, I will tell you though, theres no greater …], Yess Oct 22 12:34:48 @Shakendo [Well that is a matter of your opinion, I will tell you though, theres no greater …], I am already imagining it. Oct 22 12:34:48 @rixchy [I am already imagining it.], but That's not easy Oct 22 12:34:48 @Mattia990 [but That's not easy], I kind of understand that. Sigh. Oct 22 12:34:48 I recall it was almost as great as watching my daughter being born, YMMV of course, but thats how I felt when my note 4 gave me that Ubuntu Touch Spinner (moving dots) **** BEGIN LOGGING AT Tue Oct 22 12:36:10 2019 Oct 22 12:36:28 I remember how, I was like so young, I installed Linux on my PC, but it didn't boot anymore, so we trashed it. The real issue was, the PC couldn't find the OS, cause I installed it incorrectly. Oct 22 12:37:01 It was a good PC. Even better than mine PC which I have now. Oct 22 12:37:13 Samsung RV520, Intel Core i3. Oct 22 12:39:45 Today it's Caps Lock day.. So.... Oct 22 12:40:31 Lol, I have 3 servers that I made from old PCs (I get them free from my job) Oct 22 12:40:59 @Shakendo [Lol, I have 3 servers that I made from old PCs (I get them free from my job)], Lucky. Oct 22 12:41:29 Lol, did you port boot? Oct 22 12:41:49 @Shakendo [Lol, did you port boot?], Not yet, driving home, cannot use PC for now. Oct 22 12:42:03 Ok Oct 22 12:50:55 Back home, will fix errors, then I will rebuild the boot. Oct 22 12:53:45 Ok, I need help. Oct 22 12:54:08 What should I change this to? "WARNING: CONFIG_UEVENT_HELPER_PATH is invalid … Value is: "/sbin/hotplug" … Allowed values : "", ! … Comment says: should be empty, if you want to use systemd without initramfs. Also systemd: http://cgit.freedesktop.org/systemd/systemd/commit/README?id=713bc0cfa477ca1df8769041cb3dbc83c10eace2" Oct 22 12:54:13 Should I change this to ""? Oct 22 12:55:38 Sure, its one of the two valid options, if it doesnt work then try the othet Oct 22 12:59:39 I fixed all the warnings. That took a lot of time, but I have done it. Will run mer script again. Oct 22 13:00:22 It returned nothing.. So, that is a good sign, right? Oct 22 13:02:21 It is building now... Oct 22 13:03:01 Everytime I make changes to defconfig and rebuild hybris-boot, system doesn't need to be built again.. right? Oct 22 13:05:08 @rixchy [It returned nothing.. So, that is a good sign, right?], Yep Oct 22 13:05:17 @rixchy [Everytime I make changes to defconfig and rebuild hybris-boot, system doesn't ne …], No, only boot image Oct 22 13:06:08 Uh, oh. Oct 22 13:06:14 #### make failed to build some targets (03:38 (mm:ss)) #### Oct 22 13:07:03 Pastebin the log Oct 22 13:07:11 Okay.. Oct 22 13:08:13 Not the full log, but this caught my attention. Oct 22 13:08:13 Need the full log to see whats going on Oct 22 13:08:13 Full log. https://pastebin.com/Um12wsAX Oct 22 13:10:37 Hmm ... Oct 22 13:11:22 Yeah? Oct 22 13:11:49 Line 101 is your initial fail Oct 22 13:11:56 Let me look. Oct 22 13:12:33 Alright, I see it. But now I need to determine what is the cause. Oct 22 13:13:02 Im confused cause to me it looks like a big if statement Oct 22 13:13:27 Should I mka it in verbose? Oct 22 13:13:37 I feel like it is not going to help anyways. Oct 22 13:13:47 Try adding -i to the end and see what happens Oct 22 13:14:09 What is the -i option? Oct 22 13:19:22 Hm, now it is stuck. Usually hybris-boot builds in 3 minutes. It is been 6. Oct 22 13:19:44 NVM, it just finished. Oct 22 13:19:48 Build successful. Oct 22 13:20:08 What was the -i option anyways? Oct 22 13:21:04 The -i tells mka to ignore errors and keep going, how many errors were ignored? Oct 22 13:21:31 Where can you see that? At the end? Oct 22 13:22:12 Correct, there shoukd be a line that says "x errors were ignored" Oct 22 13:22:32 1 error. Oct 22 13:23:04 Hm, still no telnet! What is going on?! Oct 22 13:24:04 Ok, you likely didnt get a new hybris-boot using -i, try changing the line that you made ="" to =! Oct 22 13:24:14 Ok.. Oct 22 13:24:46 Done, rebuilding... Oct 22 13:26:03 Still error, again with -i? Oct 22 13:26:34 If its the same error then no need Oct 22 13:26:56 Same error. Oct 22 13:27:49 I guess change that back then just change one at a time to =! That you added and see what fixes it, if it doesnt change then change the previous one back Oct 22 13:28:53 I feel like I should just do everything back as it was from all the beginning, because when I ran telnet when I had it, a cat'd diagnostic.log and it showed some values that I needed to fix. Oct 22 13:29:00 After fixing them, telnet didn't work. Oct 22 13:29:14 So... Oct 22 13:31:29 Thats why Im suggesting what I am, one of the things you added is causing your error, welcome to port build debugging lol Oct 22 13:31:57 LOL. But one of those 4 values, that I fixed are the culprit, so let me try THEM instead first, alright? Oct 22 13:33:23 Thats what Im saying, you had a successful build before fixing those, so naturally one of those is causing it Oct 22 13:34:19 Finally, found them!! Oct 22 13:34:20 CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y not found in /proc/config.gz … CONFIG_DEVTMPFS=y not found in /proc/config.gz … CONFIG_VT=y not found in /proc/config.gz … CONFIG_DUMMY=y found in /proc/config.gz, must be disabled Oct 22 13:34:42 Maybe you would know what would be the culprit? Oct 22 13:35:55 Hmm, i have a feeling it might be the first one, only way to know is to switch it, once you figure that out it will make it easier to figure out whats going on Oct 22 13:36:06 Let me try that. Oct 22 13:36:29 If it fails, change it back and try the next one Oct 22 13:37:15 In case you were wondering, changing the value from =y to =! Tells mka to treat the error as a warning Oct 22 13:38:19 Ok, let's see if we get telnet... Oct 22 13:38:51 Nope, didn't work. Oct 22 13:40:48 It compiled successfully? Oct 22 13:41:05 Nope. The first value didn't change anything. Oct 22 13:41:12 No telnet, no successful compiling. Oct 22 13:41:27 Compiling problems started when I fixed those later values. Oct 22 13:41:33 From the mer script. Oct 22 13:42:18 Ok, so as I said, change those later values one at a time from =y to =! And see which one yields a successful compike Oct 22 13:42:46 The one thing, where I am sad is there are a bunch of values waiting to be changed. Oct 22 13:43:32 Well now your working towards getting an ssh connection, telnet is the first step Oct 22 13:44:49 If your end goal is UT you could just skip hybris all together really, but getting hybris-boot to bring up a ssh connection and start the lxc container will save you quite a bit of headache later on Oct 22 13:45:22 That is why I am trying to get hybris-boot. My goal is indeed UT. Oct 22 13:45:34 I want to get atleast something working.. Oct 22 13:46:39 I haven't read all recent messages ... but have you tried disabling kxc container? Oct 22 13:46:42 Lxc Oct 22 13:46:52 Would that make a dice? Oct 22 13:47:30 Might allow ssh from pm/halium rootfs Oct 22 13:47:44 Broken container can break ssh Oct 22 13:47:48 What do you think, @Shakendo ? Oct 22 13:49:05 @dohniks he is having compile errors … https://pastebin.com/Um12wsAX … Thats his full log Oct 22 13:50:36 Oh, ok Oct 22 13:52:59 @rixchy do you have a diff of all your config changes? Oct 22 13:53:18 @dohniks [@rixchy do you have a diff of all your config changes?], A diff? Oct 22 13:53:29 Do we even need btrfs? Oct 22 13:53:31 I can find an original file. Oct 22 13:54:12 `diff ORIGINALCONFIG YOURCONFIG` Oct 22 13:54:40 Uhm, wait my hybris is building, i will do that command after. Oct 22 13:55:11 @Akatsu . [Do we even need btrfs?], Good point. Maybe not. Do you know how to disable? Oct 22 13:56:42 @dohniks [Good point. Maybe not. Do you know how to disable?], What is btrfs? xD Oct 22 13:58:34 A file system type, like ext4, ntfs, fat32, .... Oct 22 13:59:04 How the bits are arranged on the disk Oct 22 14:00:19 @dohniks [Good point. Maybe not. Do you know how to disable?], Or alternatively one of you can help fix these : "error: comparison of distinct pointer types lacks a cast" might just need a cast Oct 22 14:00:33 @dohniks [Good point. Maybe not. Do you know how to disable?], [Edit] Or alternatively maybe one of you can help fix these : "error: comparison of distinct pointer types lacks a cast" might just need a cast Oct 22 14:00:36 Could I know what the difference between halium-boot and hybris-boot? Oct 22 14:01:56 They both start a root file system. But prepare the device a bit differently. Some rootfs expect this one, some that one Oct 22 14:02:16 Alright. Oct 22 14:02:16 Different init systems I think Oct 22 14:02:43 (Gotta go snorkeling:) ) Oct 22 14:02:50 Wot. Oct 22 14:03:11 ;) never mind. Off topic Oct 22 14:04:19 I found the original kernel defconfig. Oct 22 14:05:46 I ran the diff. Oct 22 14:06:11 Here is the output. https://pastebin.com/rse50aUd Oct 22 14:25:42 LMAO. "Firmware upgrade endountered an issue. Please select recovery mode in Kies & try again." IM DYING. Oct 22 14:26:21 I cant boot into TWRP either. I am dying. Oct 22 14:26:39 Heimdall doesnt recognize the device either. Oct 22 14:30:17 Download mode work? Oct 22 14:30:29 Don't think so, let me check fast. Oct 22 14:30:50 Yup. Oct 22 14:31:00 Just won't boot into TWRP. Oct 22 14:32:09 Ok, I flashed the hybris-boot, now it is working. Oct 22 14:32:15 Ok, id say restore twrp in download mode Oct 22 14:32:20 Wait! Oct 22 14:32:25 Nvm. Oct 22 14:32:38 < # CONFIG_BTRFS_FS is not set … --- … > CONFIG_BTRFS_FS=y Oct 22 14:32:58 This is prob BTRFS :) Oct 22 14:33:09 Revert this Oct 22 14:34:43 Alright. Oct 22 14:35:34 It is. Oct 22 14:42:49 And? Does it blend? Oct 22 14:42:53 Build? Oct 22 14:42:57 No. Oct 22 14:43:18 Mhm. Different error? Oct 22 14:43:23 Nope. Oct 22 14:44:04 For now, I put the original defconfig into the kernel folder, built the image again and booted into it. Oct 22 14:44:13 Can you put CONFIG_BTRFS_FS=n Oct 22 14:44:19 Obviously I did connect to telnet again, and it gave me the same errors. Oct 22 14:44:20 CONFIG_AUTOFS4_FS=y not found in /proc/config.gz … CONFIG_DEVTMPFS_MOUNT=y not found in /proc/config.gz … CONFIG_DEVTMPFS=y not found in /proc/config.gz … CONFIG_VT=y not found in /proc/config.gz … CONFIG_DUMMY=y found in /proc/config.gz, must be disabled Oct 22 14:44:53 telnet isn't going to help us now, right? Oct 22 14:45:36 Cause, if we can try something with telnet, then this is the moment, since I got the telnet working. (With the original non-edited defconfig.) Oct 22 14:46:23 Telnet can be a fine tool, but the original kernel config isn't going to get you far Oct 22 14:46:49 You need to at least fix some configs, otherwise you never get further Oct 22 14:46:58 Alright, but just in case, as I said bunch of times, the original defconfig mounted a bunch of drives on my desktop. Oct 22 14:47:11 @dohniks [You need to at least fix some configs, otherwise you never get further], Alright, I hear ya. Oct 22 14:47:51 It mounted 210 MB Volume, 21 MB Volume, "system" Volume, 13 MB Volume and 13 GB Volume. Oct 22 14:47:52 But yeah there can be "too much" config fixes. Where maybe they aren't strictly needed, but can cause some other problem like a compile time error with your kernel sources Oct 22 14:48:02 @dohniks [But yeah there can be "too much" config fixes. Where maybe they aren't strictly …], Alright. Oct 22 14:48:10 The "fun" of porting :) Oct 22 14:48:30 Would you look at the modified defconfig? Oct 22 14:49:06 Just in case, here is the defconfig I edited with the fixes. https://pastebin.com/BGhrwSPh Oct 22 14:49:15 Compile error, no telnet whatsoever. Oct 22 14:49:24 What specifically? Oct 22 14:49:40 Compile error? Let me look, it is somewhere up in this chat. Oct 22 14:50:22 If you are still getting the btrfs compile error, I would trial and error try to find a set of configs that 1 do compile and 2 don't get stuck in telnet Oct 22 14:51:06 @rixchy [/home/rixchy_/halium/kernel/samsung/exynos5420/scripts/Makefile.build:307: recip …], Aha! Found it. Oct 22 14:51:11 @Shakendo [@dohniks he is having compile errors … https://pastebin.com/Um12wsAX … Thats his f …], This one. Oct 22 14:51:44 @rixchy [Nope.], I thought you were saying you still have this Oct 22 14:51:47 No? Oct 22 14:51:59 (Sticker, 453x512) https://irc.ubports.com/9YiK04Kl.webp Oct 22 14:52:27 Actually, you know what. Oct 22 14:52:29 (Sticker, 512x512) https://irc.ubports.com/YSt7X103.webp Oct 22 14:52:35 Hehe Oct 22 14:52:53 Been there :) Oct 22 14:53:05 Oh, my. Oct 22 14:53:25 (Photo, 500x486) https://irc.ubports.com/DpkXCrw5.png Oct 22 14:53:39 (Sticker, 512x512) https://irc.ubports.com/Y6uOF0Sv.webp Oct 22 14:53:52 We are posting memes... Oct 22 14:53:54 You'll get there! Oct 22 15:18:55 Ive done that a couple times actually Oct 22 15:25:27 I feel like this is some kind of fs error. Oct 22 15:31:53 Same one as before. Can you double check whether this helps: Oct 22 15:32:12 @dohniks [Can you put CONFIG_BTRFS_FS=n], This Oct 22 15:32:39 And get rid of the =y line Oct 22 15:33:21 @dohniks [This], It is supposed to get rid of the error, right? Oct 22 15:34:06 I hope Oct 22 15:34:19 It should avoid compiling btrgs stuff Oct 22 15:34:31 Alright. Oct 22 15:34:36 [Edit] It should avoid compiling btrfs stuff Oct 22 15:35:13 I think you saw the XPS 13 Ubuntu edition first boot animation, right? Oct 22 15:35:19 And this was off topic too. Oct 22 15:36:11 @rixchy [I think you saw the XPS 13 Ubuntu edition first boot animation, right?], No, not sure what you mean Oct 22 15:36:22 Wait, let me paste the link. Oct 22 15:36:53 https://youtu.be/apx_HyxFqjA Oct 22 15:37:03 Found this in my recommendation today. Oct 22 15:37:11 Huh, watching Ubuntu too much. Oct 22 15:40:22 I started wondering, If I really will get SSH on my device, is it going to be possible to test the IR blaster? Oct 22 15:41:03 I think there is no middleware for IR blaster at all Oct 22 15:41:19 Oh, alright. Thank you for letting me know that. Oct 22 15:44:35 @dohniks [And get rid of the =y line], Worked! Oct 22 15:44:46 No error, yay! Oct 22 15:45:06 Awesome Oct 22 15:45:15 Flashed it. Oct 22 15:45:26 Good job. Oct 22 15:45:34 Wait!! Oct 22 15:45:37 We have telnet too. Oct 22 15:46:00 Mhm. Well, we *wanted* ssh :-P Oct 22 15:46:16 @dohniks [Mhm. Well, we *wanted* ssh :-P], Well yeah, but even telnet wasn't working with the fixes! Oct 22 15:46:22 This was a push. Oct 22 15:46:43 Let me cat the diagnostic again. Oct 22 15:50:49 CONFIG_DUMMY=y found in /proc/config.gz, must be disabled Oct 22 15:52:52 Rebuilding.. Oct 22 15:52:58 Will flash afterwards. Oct 22 15:53:56 @rixchy [Do I really have to configure the IP and MAC again?], There is the connect.py in the halium install from jbb that takes care of all this Oct 22 15:59:01 So, I edited the dummy, and now the telnet doesn't work. Should I try connecting using SSH or what? Oct 22 15:59:28 By dummy I mean the CONFIG_DUMMY. I edited it's value to N in defconfig. Oct 22 15:59:28 @Akatsu . [He got into telnet already and fixed errors preventing from booting rootfs], [Edit] If the systemd related errors are not fixed as well, it will be able to boot beyond the inititramfs but not actually boot up the rootfs completely. Oct 22 16:01:34 @rixchy [By dummy I mean the CONFIG_DUMMY. I edited it's value to N in defconfig.], Yeah rebuild with it disabled Oct 22 16:01:42 And try ssh Oct 22 16:02:07 I did, Oct 22 16:02:18 But now the telnet doesn't work. Oct 22 16:02:19 SSH? Oct 22 16:02:32 Try with it Oct 22 16:02:37 Ok. Oct 22 16:02:47 http://docs.halium.org/en/latest/porting/debug-build/logging-in.html Oct 22 16:03:16 @rixchy [http://docs.halium.org/en/latest/porting/debug-build/logging-in.html], Are you using connect.py to connect? Oct 22 16:03:25 @rixchy [http://docs.halium.org/en/latest/porting/debug-build/logging-in.html], If yes don't read here Oct 22 16:03:50 Use connect.py -p ssh -u root Oct 22 16:04:11 ~ # chroot /a /bin/bash … bash: groups: command not found … bash: lesspipe: command not found … bash: dircolors: command not found Oct 22 16:04:22 Oh. I did it from docs. Oct 22 16:05:07 @rixchy [Oh. I did it from docs.], Are you using halium-install from jbb? Oct 22 16:05:10 @Mattia990 [Use connect.py -p ssh -u root], In what state should the device be? Recovery? Oct 22 16:05:19 @Mattia990 [Are you using halium-install from jbb?], When you mentioned it, yes. Oct 22 16:05:28 @rixchy [In what state should the device be? Recovery?], When you are booting hybris-boot Oct 22 16:05:37 Alright. Oct 22 16:05:58 @rixchy [When you mentioned it, yes.], So in that folder there is connect.py, open the terminal and put the command I wrote Oct 22 16:06:11 "rixchy_@ubuntu-asus:~/Desktop/halium-install-master$ ./connect.py -p ssh -u root[sudo] password for rixchy_: … * The device seems to be connected as enp0s20u2 … Cannot find device "enp0s20u2" … Cannot find device "enp0s20u2" … * Connecting using ssh" Oct 22 16:06:29 @rixchy ["rixchy_@ubuntu-asus:~/Desktop/halium-install-master$ ./connect.py -p ssh -u roo …], Ok no, ssh is dead Oct 22 16:06:47 @rixchy ["rixchy_@ubuntu-asus:~/Desktop/halium-install-master$ ./connect.py -p ssh -u roo …], And connect.py -p telnet -u root ? Oct 22 16:07:00 Telnet won't work. Oct 22 16:07:37 It works when CONFIG_DUMMY is y. Oct 22 16:07:57 And I do not know why! Oct 22 16:08:26 I can change CONFIG_DUMMY to y, and try the connect.py with ssh again. Oct 22 16:09:22 Should I? Oct 22 16:13:25 basically telnet works because it doesn't start to boot rootfs Oct 22 16:13:45 Oh, so the rootfs works? Oct 22 16:13:53 But the SSH doesn't work! Oct 22 16:14:23 which IP address do you set to the device? Oct 22 16:14:36 As in the docs. Oct 22 16:14:37 it is different in initramfs and rootfs Oct 22 16:14:58 also which rootfs Oct 22 16:15:49 So, I don't understand what do I do. Oct 22 16:18:21 I am just confused for now. Oct 22 16:20:51 @rixchy [It works when CONFIG_DUMMY is y.], When config dummy is y does the device reboot? Oct 22 16:20:58 Nope. Oct 22 16:21:23 @rixchy [Nope.], I'm wrong, when config dummy is n Oct 22 16:21:38 Nope. Oct 22 16:21:48 When dummy is n, device doesn't reboot, telnet works. Oct 22 16:21:55 Means that rootfs doesn't boot, Oct 22 16:22:21 Now, it is Y, and the rootfs boots, because telnet doesn't work. Oct 22 16:22:38 @rixchy [Now, it is Y, and the rootfs boots, because telnet doesn't work.], But the device doesn't reboot, right? Oct 22 16:22:54 Yup. Device doesn't nreboot. Oct 22 16:23:03 Ok, good thing Oct 22 16:24:46 So.? Oct 22 16:26:00 What should I do now? Nor SSH, nor telnet works. Oct 22 16:28:16 @rixchy [What should I do now? Nor SSH, nor telnet works.], I have no idea right now Oct 22 16:29:04 `ip addr` ? Oct 22 16:29:41 rixchy_@ubuntu-asus:~/halium/out/target/product/chagalllte$ ip addr … 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 … link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 … inet 127.0.0.1/8 scope host lo … valid_lft forever preferred_lft forever … inet6 ::1/128 scope host … Oct 22 16:29:41 valid_lft forever preferred_lft forever … 2: enp2s0: mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 … link/ether 38:d5:47:d8:20:8b brd ff:ff:ff:ff:ff:ff … 3: wlp3s0: mtu 1500 qdisc noqueue state UP group default qlen 1000 … link/ether f0:03:8c:11:2e:53 Oct 22 16:29:41 brd ff:ff:ff:ff:ff:ff … inet 192.168.0.183/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp3s0 … valid_lft 6856sec preferred_lft 6856sec … inet6 fe80::bb18:5488:8d19:30da/64 scope link noprefixroute … valid_lft forever preferred_lft forever Oct 22 16:30:18 enp2s0 Is ethernet lan right? Oct 22 16:30:25 Yeah. Oct 22 16:30:32 I have a wireless card too. Oct 22 16:30:37 I see it Oct 22 16:30:38 Bluetooth too. Oct 22 16:31:12 `dmesg -w` when you plug in the device Oct 22 16:32:15 (And pls remember pastebin for long output) Oct 22 16:32:26 Yeah, I know, Oct 22 16:32:29 @dohniks [dmesg -w when you plug in the device], https://pastebin.com/s4XvmhVx Oct 22 16:34:18 @rixchy [https://pastebin.com/s4XvmhVx], Why network manager is denied by apparmor? Oct 22 16:34:20 Mhm. Not sure. Well, actually I would (still/again) suggest to disable lxc Oct 22 16:34:56 How to do that? Oct 22 16:38:08 @dohniks [Try this. Disable lxc], This Oct 22 16:38:24 @dohniks [This], But how do I do that? Oct 22 16:38:38 Have you read the link? Oct 22 16:39:11 What link? Oct 22 16:39:38 http://docs.halium.org/en/latest/porting/debug-build/early-init.html#the-device-reboots-after-leaving-hybris-recovery Oct 22 16:40:45 Should I overwrite hybris-recovery into the recovery partition? Oct 22 16:40:50 TWRP is already there... Oct 22 16:41:21 You can do it from twrp Oct 22 16:41:28 Important steps are Oct 22 16:41:44 Chroot, mask, disable, reboot Oct 22 16:45:34 Alright, I flashed the hybris-recovery.img Oct 22 16:45:37 What now. Oct 22 16:45:53 Telnet works, alright. Oct 22 16:46:00 But, what do I do. Oct 22 16:46:21 TERM=linux HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH chroot target/ /bin/bash systemctl disable lxc@android systemctl mask lxc@android Oct 22 16:46:33 Ok. but where should I input that? Oct 22 16:46:38 (Three commands) Oct 22 16:46:46 When in telnet Oct 22 16:46:54 Aha! Alright! Oct 22 16:47:15 And rootfs must be mounted Oct 22 16:47:30 Not sure whether it is automatically Oct 22 16:51:28 Error: Device for nexthop is not up. Oct 22 16:53:28 Where do you get that? Oct 22 16:55:42 NVM, fixed it. Oct 22 16:58:41 What should I do now, I did it. Should I flash the hybris-boot again? Oct 22 16:59:16 https://safetricks.org/watch-free-live-tv-on-vlc-player/ Oct 22 17:00:57 Yes Oct 22 17:01:08 No Oct 22 17:01:12 Haha sorry Oct 22 17:01:16 Yes or no? xD Oct 22 17:01:21 You still have it right? Oct 22 17:01:24 Yup. Oct 22 17:01:39 Boot and recovery sit next to each other Oct 22 17:01:43 Just reboot Oct 22 17:02:03 Alright. Oct 22 17:02:51 The hybris-recovery had to be flashed to boot right? Oct 22 17:02:58 Or to recovery? Oct 22 17:03:22 Recovery Oct 22 17:03:35 Well too bad, I flashed it on BOOT. xD Oct 22 17:03:46 :) Oct 22 17:04:06 So I have to flash the hybris-boot on the boot then? Oct 22 17:04:11 Yes Oct 22 17:04:18 Or should I flash the hybris-recovery on recovery too? Oct 22 17:04:34 Doesn't matter Oct 22 17:04:45 Alright! Oct 22 17:06:38 Alright, I flashed it. Oct 22 17:06:55 Try ssh again? Oct 22 17:08:53 (Sticker, 512x443) https://irc.ubports.com/82cp3W9a.webp Oct 22 17:09:00 ^ original pack Oct 22 17:09:11 Oh. Oct 22 17:09:21 Found it. Oct 22 17:09:36 👍 Oct 22 17:09:37 (Sticker, 512x443) https://irc.ubports.com/0Pa16yPf.webp Oct 22 17:10:16 @rixchy [Try ssh again?], @dohniks ? Oct 22 17:11:06 Yes Oct 22 17:11:42 Alright. Oct 22 17:11:51 * The device seems to be connected as enp0s20u2 … Cannot find device "enp0s20u2" … Cannot find device "enp0s20u2" … * Connecting using ssh Oct 22 17:12:27 That is the connect.py Oct 22 17:13:17 I'm not too familiar with connect.py Oct 22 17:13:33 Oh. Okay. Oct 22 17:13:42 But it still cannot connect. Oct 22 17:14:51 Yup. ssh: connect to host 10.15.19.82 port 22: Connection timed out Oct 22 17:18:41 But you can `ping 10.15.19.82` ? Oct 22 17:22:36 I'm kinda out of ideas, also going for dinner. Maybe someone else can help. You could try other rootfs' Oct 22 17:22:53 @dohniks [I'm kinda out of ideas, also going for dinner. Maybe someone else can help. You …], That's what I was thinking of trying. Oct 22 17:24:38 @dohniks [But you can ping 10.15.19.82 ?], Nope. Just hangs there. Oct 22 17:25:35 Mhm. Maybe try the docs way of setting up networking instead of connect.py Oct 22 17:26:36 Do you think you got the lxc disabling right? Any strange messages there? Oct 22 17:27:29 @dohniks [Do you think you got the lxc disabling right? Any strange messages there?], Nope no messages. Oct 22 17:27:54 @dohniks [Mhm. Maybe try the docs way of setting up networking instead of connect.py], Let m try that again. Before it didn't work. Oct 22 17:29:47 bash: groups: command not found … bash: lesspipe: command not found … bash: dircolors: command not found Oct 22 17:29:55 After chroot. Oct 22 17:30:28 That's fine, it's because your PATH is not set up Oct 22 17:30:46 Oh, so it is nothing to worry about? Oct 22 17:30:52 Correct, all good :D Oct 22 17:31:07 Alright, thanks. Will run the next command now.' Oct 22 17:31:25 Same here? "root@localhost:/# . /etc/environment … bash: LD_LIBRARY_: command not found … bash: QML2_IMPORT_: command not found" Oct 22 17:31:50 Are you able to do the thing you're trying to do? Oct 22 17:32:08 Not yet. Trying to setup SSH connection, connect.py from JBB failed. Oct 22 17:32:23 @UniversalSuperBox rsyslog is also in halium rootgs/plasma? Oct 22 17:32:40 It may be, but it probably does not need to be disabled Oct 22 17:32:51 in ubuntu it need tho Oct 22 17:33:01 Probably. I haven't tried in a while. Oct 22 17:33:31 I feel like I am stuck at the same point. Oct 22 17:33:40 The device booted into rootfs, but no SSH. Oct 22 17:34:00 And you're running which rootfs? Oct 22 17:34:14 Oh, I just understood my mistake. Oct 22 17:34:23 A dumb mistake obviously. Oct 22 17:34:34 The reference rootfs offers SSH, right? Oct 22 17:34:44 Yes, it should Oct 22 17:34:53 I think I have the Plasma one installed. Oct 22 17:35:02 That is why. Oct 22 17:35:15 Did you use the `-p pm` option to halium-install? I thought that enabled it Oct 22 17:35:23 Nope. Oct 22 17:35:26 Didn't. Oct 22 17:35:30 That'll do it :) Oct 22 17:35:38 Let me try that. :) Oct 22 17:36:15 every rootfs have different switch in halium-install Oct 22 17:37:12 If the incorrect rootfs was the culprit all along, I am going to feel good that I got SSH, but I am going to feel so dumb at the same time. xD Oct 22 17:39:46 Alright, it is pushing the rootfs via ADB. Oct 22 17:40:31 @rixchy [If the incorrect rootfs was the culprit all along, I am going to feel good that …], Maybe it will not work, who knows😂😂 Oct 22 17:41:34 Well, yeah. But I am hoping. 😂🤞 Oct 22 17:51:12 Ok, it is done. Let me try SSH. Oct 22 17:53:19 OMG. Oct 22 17:53:29 W e h a v e S S H. Oct 22 17:53:31 (Sticker, 512x512) https://irc.ubports.com/tkV6N2ng.webp Oct 22 17:53:52 I cannot bElIeVe It Oct 22 17:53:53 you still on samsung logo rite/ Oct 22 17:53:54 ? Oct 22 17:53:56 Yeah. Oct 22 17:53:58 lxc-checkconfig Oct 22 17:54:02 I disabled LXC. Oct 22 17:54:20 i might be wrong but you need lxc to run to use hardware Oct 22 17:54:30 Oh, let me try to connect the ssh. Oct 22 17:54:30 lxc-checkconfig will work anyway Oct 22 17:54:33 Ok. Oct 22 17:54:48 you need to fix all missings only namespaces can be left missing Oct 22 17:56:18 I did the ssh connect but the terminal hangs at a cursor. Oct 22 17:56:27 "rixchy_@ubuntu-asus:~/Desktop/halium-install-master$ ssh root@10.15.19.82" Oct 22 17:57:33 Everything was so fine! And it just stopped, aw man. Oct 22 17:57:36 it takes me like 3 retries Oct 22 17:57:40 to get ssh Oct 22 17:57:45 Oh. Oct 22 17:57:47 ctrl+c and retry Oct 22 18:00:15 It worked!! Oct 22 18:00:38 Oh my.. "rixchy_@ubuntu-asus:~/Desktop/halium-install-master$ ssh root@10.15.19.82 … The authenticity of host '10.15.19.82 (10.15.19.82)' can't be established. … ECDSA key fingerprint is SHA256:FrX+b54aL4ZUYMFx17lQQVwMBLMMKql4M3O377eNlAQ. … Are you sure you want to continue connecting (yes/no)? yes … Warning: Permanently added '10.15.19.82 Oct 22 18:00:38 ' (ECDSA) to the list of known hosts. … root@10.15.19.82's password: … root@localhost:~# … " Oct 22 18:00:46 @Akatsu . [lxc-checkconfig will work anyway], Doing this.. Oct 22 18:01:20 https://pastebin.com/xhVeAATr Oct 22 18:01:27 Here is the checkconfig log. ^ Oct 22 18:01:55 you have to enable these to get lxc running Oct 22 18:02:03 so get hardware to work Oct 22 18:02:04 How? Oct 22 18:02:06 display etc Oct 22 18:02:08 defconfig Oct 22 18:02:19 And rebuild everything? Oct 22 18:03:20 Will I have to configure SSH again? Oct 22 18:03:28 no Oct 22 18:03:32 its just kernel imo Oct 22 18:03:40 so mka hybris-boot and flash Oct 22 18:05:26 Ok, thank you very much. Oct 22 18:05:58 How will I enable "Veth pair device: missing … Macvlan: missing … Vlan: missing"? Oct 22 18:06:43 minute or two Oct 22 18:06:45 pls Oct 22 18:06:54 Sure! Oct 22 18:08:06 Test_vibrator. Works [x]. Oct 22 18:08:14 Gotta check it on GitHub. ;) Oct 22 18:08:23 @rixchy [Test_vibrator. Works [x].], That's plasma or halium reference? Oct 22 18:08:28 Halium. Oct 22 18:08:35 Plasma didn't give me SSH. Oct 22 18:09:10 @rixchy [Plasma didn't give me SSH.], Do you use -p plasma during halium-install? Oct 22 18:09:15 Nope. Oct 22 18:09:21 That is where I went wrong. Oct 22 18:09:28 @rixchy [Nope.], So that's the reason Oct 22 18:09:29 I already know that. Oct 22 18:09:33 @UniversalSuperBox Said so. Oct 22 18:09:57 https://pastebin.com/6CLQzCdR Oct 22 18:10:05 these should work Oct 22 18:10:17 @rixchy [Halium.], The only graphic thing you'll get with halium reference is graphic test😂 Oct 22 18:10:17 search for them if there are not there just add line Oct 22 18:10:27 @Mattia990 [The only graphic thing you'll get with halium reference is graphic test😂], That is literally ok! Oct 22 18:10:30 but still you need lxc for that rite? Oct 22 18:10:37 Yeah, I guess. Oct 22 18:11:25 after you rebuild with these and flash, get into ssh again and run script once again to verify Oct 22 18:11:37 What script. O.O xd Oct 22 18:11:40 lxc Oct 22 18:11:46 checkconfig Oct 22 18:11:49 we are working on lxc rn Oct 22 18:11:50 Oh yeah! Oct 22 18:15:09 No such thing as: "DEVPTS_MULTIPLE_INSTANCES" Oct 22 18:15:13 There is "CONFIG_DEVPTS_MULTIPLE_INSTANCES" Oct 22 18:15:18 Is it the same? Oct 22 18:15:31 yes Oct 22 18:15:38 these can lack CONFIG Oct 22 18:15:44 i mean ones i posted Oct 22 18:15:45 Alright! Gotta build the boot now! Oct 22 18:15:56 they should have CONFIG indeed Oct 22 18:25:19 Hm, it is still building.. Oct 22 18:25:30 will take a while Oct 22 18:25:40 Usually it takes 3-5 mins. Oct 22 18:25:45 Now it is 10 mins. Oct 22 18:31:34 Uh=-oh. Oct 22 18:31:48 fs/built-in.o:(.data.rel+0x444): undefined reference to `pidns_operations' … /home/rixchy_/halium/kernel/samsung/exynos5420/Makefile:905: recipe for target '.tmp_vmlinux1' failed Oct 22 18:32:25 The build failed. Oct 22 18:32:51 probably CONFIG_PID_NS=y Oct 22 18:32:55 is doing that Oct 22 18:33:12 Okay, switch to n? Oct 22 18:33:48 http://docs.halium.org/en/latest/porting/common-kernel-build-errors.html Oct 22 18:33:58 ‘Undefined reference to pidns_operations’ on Linux 3.4 Oct 22 18:37:42 Ok, edited the .c file. Rebuilding now. Oct 22 18:37:45 So exciting. Oct 22 18:41:07 Success! Oct 22 18:42:09 Bad news, it is rebooting. Oct 22 18:42:27 (Sticker, 512x395) https://irc.ubports.com/mD1VpJqs.webp Oct 22 18:42:42 23 seconds, reboot. In a loop. Oct 22 18:42:50 Well, it was nice to meet ya. Oct 22 18:42:55 (Sticker, 512x512) https://irc.ubports.com/W5xZi1s3.webp Oct 22 18:43:02 (Sticker, 512x395) https://irc.ubports.com/uC51Zylp.webp Oct 22 18:43:02 can you get ssh in between? Oct 22 18:43:03 (Sticker, 512x443) https://irc.ubports.com/cdAR5bqz.webp Oct 22 18:43:09 Will try. Oct 22 18:43:48 For 1.5 seconds. Oct 22 18:44:42 http://docs.halium.org/en/latest/porting/debug-build/early-init.html#the-device-reboots-after-leaving-hybris-recovery ? Oct 22 18:53:14 Akatsu What do you think of this situation? I think LXC is messing here. Oct 22 18:55:01 (Sticker, 512x466) https://irc.ubports.com/c9LcaQo2.webp Oct 22 18:55:28 you can try to disable lxc Oct 22 18:55:38 if its boot into rootfs then its indeed lxc Oct 22 18:55:56 Alright, but this is not going to be the end solution. I won't get any graphics, right? Oct 22 18:56:00 if it reboot with lxc disabled then we have issue with kernel Oct 22 18:56:05 yes Oct 22 18:56:16 we want to check if lxc is faulty or kernel Oct 22 18:56:22 Alright. Oct 22 18:56:32 if kernel is ok then we are going to diagnose lxc crashes Oct 22 19:03:27 I am sad. Kernel issue. Oct 22 19:03:38 Well, atleast LXC is alright. (Hopefully.) Oct 22 19:05:12 try to disable PID NS? Oct 22 19:05:17 Did. Oct 22 19:05:32 havent deployed image yet? Oct 22 19:05:44 What image? Oct 22 19:06:08 I have flashed the latest hybris-boot. Oct 22 19:06:36 i mean have you flashed hybris-boot after disabling pid ns? Oct 22 19:06:41 Yes. Oct 22 19:07:55 does it work this time? Oct 22 19:09:05 Nope. Oct 22 19:09:08 Rebooting. Oct 22 19:09:28 Something from here is causing this. https://pastebin.com/6CLQzCdR Oct 22 19:09:40 Those are the changes you suggested. Oct 22 19:10:48 one of these might reboot device Oct 22 19:11:01 maybe try to introduce them in groups Oct 22 19:11:47 at some point you will hit group where it reboot so will select these Oct 22 19:12:43 Yeah, I agree. But maybe try to look at kernel logs at hybris-recovery. Oct 22 19:12:49 yup Oct 22 19:12:58 last time you told this one is annoying:DEVPTS_MULTIPLE_INSTANCES=y Oct 22 19:14:15 When. LMAO. Oct 22 19:20:29 i dont rememebr Oct 22 19:20:31 but hey look Oct 22 19:20:40 (Photo, 624x299) https://irc.ubports.com/CWTH3phE.png Oct 22 19:21:01 Hm. Oct 22 19:21:02 so someone had same issue Oct 22 19:21:05 back in ime Oct 22 19:21:17 But they didn't get LXC working, did they. Oct 22 19:21:53 nope no lxc Oct 22 19:22:04 just try to disable it and check if it bootloop Oct 22 19:22:15 Well, alright. Oct 22 19:22:53 Ok, found it. It is indeed =y. Set to n? Oct 22 19:23:58 yes Oct 22 19:24:09 keep rest sewtting from my pastebin as they are Oct 22 19:24:09 Alright. Building started. Oct 22 19:24:15 @Akatsu . [keep rest sewtting from my pastebin as they are], I am. Oct 22 19:24:49 Do you know what that option is? What does "CONFIG_DEVPTS......." do? Oct 22 19:26:42 Nope. 😩 Still bootloop. Oct 22 19:27:18 I guess the kernel logs? Oct 22 19:27:23 Or what. Oct 22 19:27:33 how fix qcril error? Oct 22 19:30:47 "~ # cat diagnosis.log … cat: can't open 'diagnosis.log': No such file or directory" is this bad Oct 22 19:31:06 this means there is no errors Oct 22 19:31:13 Phew. Oct 22 19:31:23 What should I do while I am in telnet? Oct 22 19:31:36 (Sticker, 512x422) https://irc.ubports.com/AKaJNfva.webp Oct 22 19:31:44 http://docs.halium.org/en/latest/porting/debug-build/dmesg.html#linux-kernel-3-4 Oct 22 19:31:47 ? Oct 22 19:35:19 Compiled with halium 8.1 android-ramdisk system was not found, it said. Oct 22 19:35:48 When I add the device with ssh I can not enter into the saw. Oct 22 19:35:49 hı Oct 22 19:37:46 Here is the latest last_kmesg file: https://pastebin.com/yDQUJrrC Oct 22 19:51:08 Akatsu I don't see anything useful in the above file tbh. Oct 22 19:54:16 enes: 8.1 needs work still Oct 22 19:57:34 @JBBgameich sorry for asking this again, but why is halium install failing while setting a pwd with `chroot: failed to run command ‘chpasswd’: No such file or directory`? My `qemu-user-static` is `1:3.1+dfsg-2ubuntu3.5` Oct 22 19:58:03 [Edit] @JBBgameich sorry for asking this again, but why is halium install failing while setting a pwd with `chroot: failed to run command ‘chpasswd’: No such file or directory`? My `qemu-user-static` is `1:3.1+dfsg-2ubuntu3.5` with ut arm64-rootfs Oct 22 19:59:00 Which version do I need? Oct 22 20:10:01 big xd Oct 22 20:10:07 i have card available Oct 22 20:10:11 but phone reboots Oct 22 20:10:14 halp Oct 22 20:10:31 Ah-ha, the same issue as me? Oct 22 20:10:57 In that case, halp me to. Oct 22 20:11:30 no Oct 22 20:11:31 other Oct 22 20:11:35 i had it booting Oct 22 20:11:39 Oh, okay. Oct 22 20:11:40 now i have no idea why it fails Oct 22 20:11:48 gonna try purge entire init scripts Oct 22 20:11:52 maybe it will make diff Oct 22 20:18:05 @Herrie [enes: 8.1 needs work still], Herrie: I successfully built system.img. The question is: what file to flash into boot partition for halium-8.1? recovery.img? Oct 22 20:18:38 https://paste.ubuntu.com/p/rnMsZ4fKNW/ Oct 22 20:18:42 @stefanomelchior [Herrie: I successfully built system.img. The question is: what file to flash int …], No. Hybris-boot.img Oct 22 20:18:51 In your out directory. Oct 22 20:21:23 @stefanomelchior [Herrie: I successfully built system.img. The question is: what file to flash int …], Does android-ramdisk want it? Oct 22 20:22:13 @rixchy [In your out directory.], i don't have any in my halium-8.1 dir, nor in out Oct 22 20:22:35 There is no out folder in halium folder? Oct 22 20:23:07 halium/out/target/product/[codename]/ Oct 22 20:23:52 @rixchy [There is no out folder in halium folder?], no, I just posted the out dir content and I don't know which file to flash in boot: https://paste.ubuntu.com/p/rnMsZ4fKNW/ I am already in out/target/product/bardockpro Oct 22 20:24:12 ls the directory in the terminal. Oct 22 20:24:15 If android-ramdisk fails, tell me how you did it. I want to learn. Oct 22 20:24:17 NVM. Oct 22 20:24:28 Let me look. Oct 22 20:25:05 @stefanomelchior [no, I just posted the out dir content and I don't know which file to flash in bo …], Only reasonable thing would be to flash boot.img to boot partition. Oct 22 20:31:57 My kernel panics for some reason. Oct 22 20:32:04 @rixchy [Here is the latest last_kmesg file: https://pastebin.com/yDQUJrrC], "[ 6.958603] [B1: init: 1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200" Oct 22 20:32:13 Line 316/ Oct 22 20:33:23 But the file still continues, and it indeed says that the device reboots. BUT, it also says "no errors were detected". Oct 22 20:33:30 How strange is THAT? Oct 22 20:34:38 @Akatsu . [keep rest sewtting from my pastebin as they are], I am going to try this solution. Oct 22 20:48:06 @stefanomelchior [no, I just posted the out dir content and I don't know which file to flash in bo …], there is another trick to get to this folder :) just type `cout` Oct 22 20:48:45 ANd you don't have to flash boot.img but halium-boot.img ;) Oct 22 20:49:00 But he doesn't have that file, does he? Oct 22 20:49:30 I don't see neither halium nor hybris-boot. Oct 22 20:49:36 then he has to do `mka halium-boot` Oct 22 20:49:36 Only boot.img. Oct 22 20:49:41 @stefanomelchior [Herrie: I successfully built system.img. The question is: what file to flash int …], make halium-boot or hybris-boot Oct 22 20:49:49 @nanu a [then he has to do mka halium-boot], Well yeah. Oct 22 20:49:59 boot.img is some random crap produced by breakfast Oct 22 20:50:05 @nanu a [boot.img is some random crap produced by breakfast], Oh, ok. Oct 22 20:50:11 Didn't know that. Oct 22 20:50:32 @rixchy ["[ 6.958603] [B1: init: 1] Kernel panic - not syncing: Attemp …], Can you try to look into this? nanu Oct 22 20:51:47 @rixchy what is on mmcblk0p21? Oct 22 20:51:50 is `mmcblk0p21` ext4? Oct 22 20:52:03 @NotKit [@rixchy what is on mmcblk0p21?], Wait let me look on mountpoints. Oct 22 20:52:22 I think it is userdata. Oct 22 20:52:32 @nanu a [then he has to do mka halium-boot], I sadly forgot this step, sorry for my stupid spam Oct 22 20:52:42 if it is userdata, reformat and reinstall, because fs seems to be corrupted Oct 22 20:53:07 twrp can do this Oct 22 20:53:44 @nanu a [twrp can do this], Can you guide me please? Oct 22 20:54:25 @NotKit [if it is userdata, reformat and reinstall, because fs seems to be corrupted], Wipe on TWRP? Oct 22 20:54:37 *Advanced Wipe Oct 22 20:55:00 @nanu a [is mmcblk0p21 ext4?], Yes, it is indeed ex4. Oct 22 20:55:16 @nanu a [is mmcblk0p21 ext4?], [Edit] Yes, it is indeed ext4. Oct 22 20:57:07 Alright, I am reinstalling it now, Oct 22 20:57:57 There is no way that could be the culprit as to why the device reboots in a loop, right? nanu and @NotKit . Oct 22 20:58:35 The best thing you can do on Ubuntu 18.04, is install the old Unity desktop rom Ubuntu 16.04. Oct 22 20:58:45 [Edit] The best thing you can do on Ubuntu 18.04, is install the old Unity desktop from Ubuntu 16.04. Oct 22 20:59:24 your demsg says it cannot mount userdata because it doesn't support the mounttype Oct 22 20:59:36 Oh. Wait, so. Oct 22 21:00:12 I remember the other file, what was it called again. With which you had to make the entry in mountpoints. Oct 22 21:00:22 Where you saw those partitions and formats. Oct 22 21:00:37 In the docs, let me look. Oct 22 21:01:11 this is only used for reference rootfs and hybris boot Oct 22 21:01:13 The fstab! Oct 22 21:01:29 There were two lines from userdata in two different formats. Oct 22 21:01:35 One was ext4 and the other was.. Oct 22 21:01:44 fs something is not supported Oct 22 21:01:58 so you need to reformat userdata to ext4 Oct 22 21:02:11 if ext4 fails to mount, reformat to ext4 Oct 22 21:02:13 I did, and now I am installing using halium-install. Oct 22 21:02:21 supi dupi Oct 22 21:03:03 But I doubt this is going to fix the rebooting issue. Oct 22 21:03:16 I seriously doubt. Oct 22 21:05:32 Hm, TWRP returned an E:recv error on uevent. I JUST noticed it. Oct 22 21:06:07 Aaand as expected, the device is rebooting again in a bootloop. Defconfig messed up something. Oct 22 21:08:15 Good news! I dived deeper into the issue, and I found 4 statements that were bootlooping my device. Oct 22 21:08:53 I set these all to n on defconfig "CONFIG_CPUSETS=y … CONFIG_NAMESPACES=y … CONFIG_UTS_NS=y … CONFIG_IPC_NS=y" Oct 22 21:09:05 They are n in defconfig. Oct 22 21:09:11 And the device booted. Oct 22 21:09:41 So, uhm. yay. Oct 22 21:17:05 Ok, is it normal, when I am SSHing my device, the WiFi disconnects on host? Oct 22 21:17:46 It connects only when I unplug my device. Oct 22 21:20:39 Sounds like you may have a conflict in network manager Oct 22 21:20:54 On the host or target? Oct 22 21:22:46 yashpalgoyal1304 was added by: yashpalgoyal1304 Oct 22 21:23:22 Host if your host wifi is disconnecting Oct 22 21:23:33 Yup. Oct 22 21:23:42 Do you have any idea how to fix this? Oct 22 21:24:08 Set Network Manager to ignore your device Oct 22 21:24:19 Uhmm.. Hoooowww? Oct 22 21:24:20 xD Oct 22 21:25:04 (Photo, 1280x293) https://irc.ubports.com/kKVQc6Ml.png Hi. How to resolve it? Oct 22 21:25:07 I dont remember actually, I havent had to in awhile, but if you open Network Manager there should be a toggle or something Oct 22 21:25:35 @Roker2 [], You have to find the mention of the apk in your vendor tree and remove it Oct 22 21:25:52 @Shakendo [You have to find the mention of the apk in your vendor tree and remove it], Ok, thank you Oct 22 21:36:27 I narrowed, that one of these are messing with rebooting my device. (CONFIG_CPUSETS=y … CONFIG_NAMESPACES=y) Oct 22 21:54:14 The culprit was CONFIG_NAMESPACES=y Oct 22 21:54:38 Now the device boots successfully, without any reboots. But CONFIG_NAMESPACES is set to n in defconfig. Oct 22 22:01:53 @Shakendo [I dont remember actually, I havent had to in awhile, but if you open Network Man …], Hm, wifi still disconnects when trying to connect using SSH. Oct 22 22:17:01 beware that you will need namespaces for Halium Oct 22 22:17:07 though SSH should start without that Oct 22 22:17:22 I understand, that. But namespaces were bootlooping my device. Oct 22 22:17:35 And SSH doesn't work, because WiFi disconnects. Oct 22 22:17:51 how is Wi-Fi related to SSH? those are different networks Oct 22 22:18:08 @NotKit [how is Wi-Fi related to SSH? those are different networks], I don't know. But here are the steps that are happening: Oct 22 22:18:15 1. Connects to WiFI. Oct 22 22:18:21 2. WiFi disconnects. Oct 22 22:18:25 3. SSH stops working. Oct 22 22:18:30 I really do not know why. Oct 22 22:18:39 I think what happens is that NetworkManager detects cable network and disconnects Wi-Fi Oct 22 22:18:47 @rixchy [3. SSH stops working.], so it works for some time? Oct 22 22:18:55 Yeah. Oct 22 22:19:01 For like 2 seconds. Oct 22 22:23:12 So. Oct 22 22:23:39 Now I really don't know what to do. Oct 22 22:25:30 (Photo, 1280x719) https://irc.ubports.com/9eup6pmY.png Hmph. Oct 22 22:27:11 @nanu a [@JBBgameich sorry for asking this again, but why is halium install failing while …], Not completely sure. It works on my debian testing installation. Maybe you can find a solution on the internet, since it probably also affects all arm64 docker containers and chroots. Oct 22 22:27:40 Should changing a Desktop Environment affect this on Ubuntu? Oct 22 22:28:09 Did youbtry manually setting the IP and MAC of your device in terminal? Oct 22 22:28:24 Yes. Oct 22 22:33:48 So what should i try for now? Oct 22 22:35:26 Honestly dont know, that usually works for me Oct 22 22:36:00 Have you encountered this error before? Oct 22 22:38:26 I am going to try reconfigure it again. Oct 22 22:41:02 So, SSH is showing as a connection in Connections Manager.. Oct 22 22:41:18 If I turn it off, will I still be able to get SSH on Terminal? Oct 22 22:41:59 (Photo, 1280x719) https://irc.ubports.com/0QuJMdoj.png Oct 22 22:47:11 That might be why your wifi disconnects, can always just disable the switch and try it Oct 22 22:48:10 @Shakendo [That might be why your wifi disconnects, can always just disable the switch and …], Tried that. Still no dice. Will try the command many times tmrw, because last time it worked. Does SSH take many commands to get connected successfully? Oct 22 22:48:32 Okay, good night. See you tmrw. (2 in the morning for me.) Oct 22 22:48:55 Ok, night Oct 22 22:49:06 :) Oct 23 00:40:00 What's the status of Halium-8.1? Oct 23 00:40:20 I have a device that only supports lineage-15.1 and would like to get Halium working Oct 23 02:20:58 AFAIK its at a point where it compiles, but doesn't yet boot or anything useful **** ENDING LOGGING AT Wed Oct 23 02:59:58 2019