**** BEGIN LOGGING AT Sun Nov 18 03:00:00 2018 Nov 18 21:30:23 'evening, can I specify a custom mkbootimg to build hybris-boot? Nov 18 21:30:56 my devices requires signing the boot image to boot Nov 18 21:31:47 I could do it manually afterwards, just wondering if there was a way like in lineageos Nov 18 21:32:12 @ankaos, Hmm Nov 18 21:32:27 Well idk lol Nov 18 21:33:40 it's LG btw, using bump! to sign Nov 18 21:34:05 @YoDevil, what's the lineageos way of doing it? Nov 18 21:34:52 @dohniks BOARD_CUSTOM_BOOTIMG := true BOARD_CUSTOM_BOOTIMG_MK := device/lge/g2-common/releasetools/mkbootimg.mk Nov 18 21:35:25 it seems it's not being picked up by halios build system Nov 18 21:42:13 aleasto was added by: aleasto Nov 18 21:42:14 this is in your device/VENDOR/DEVICE/BoardConfig.mk ? Nov 18 21:42:40 correct. Nov 18 21:47:27 mhm don't know ... sorry. but if you do it manually it works? Nov 18 21:48:25 will find out i guess. Nov 18 21:53:49 in hybris-boot/Android.mk I see a variable BOARD_CUSTOM_MKBOOTIMG Nov 18 21:57:49 @Thespartann, ı dont found hardvare/qcom/wncss Nov 18 22:05:31 now i'm stuck at installing the system image. when using halium-install: Nov 18 22:05:37 adb: error: failed to copy '' to '/recovery/': remote couldn't create file: Is a directory Nov 18 22:05:38 : 0 files pushed. 67.1 MB/s (2555904 bytes in 0.036s) Nov 18 22:07:00 i guess i'll try the other script Nov 18 22:17:18 ok what do I do with rootfs.img and system.img ? Nov 18 22:20:03 pastebin the complete output Nov 18 22:20:27 i'm done generating the images and they've been pushed to /data/ Nov 18 22:20:48 ah, then taht is done Nov 18 22:20:55 flash your bootimage and boot Nov 18 22:21:19 doest it read system from /data/system.img?? Nov 18 22:21:37 yes Nov 18 22:21:53 @YoDevil, you just said they're there .... Nov 18 22:22:34 yea I thought it had to expand them to a block or something Nov 18 22:22:48 nope. it expects image files Nov 18 22:22:57 ok. well no boot :d Nov 18 22:23:23 last_kmsg Nov 18 22:23:29 wish I had one.. Nov 18 22:24:14 why dont you have it? Nov 18 22:24:34 idk, i guess i'm not even booting the kernel Nov 18 22:25:27 anything shows in `dmesg -w` on your host machine while the device boots? Nov 18 22:26:30 nope, no USB at all Nov 18 22:26:54 hold on, do I need to have some android installed in /system? Nov 18 22:29:09 no, /system is ignored Nov 18 22:29:44 ok. then I have no clue what to debug Nov 18 22:29:59 whats your kernel config? Nov 18 22:36:40 sec, i'll push to github, need to unshallow first Nov 18 22:36:56 but it's the defconfig i'm using on lineageos plus changes from mer_verify_kernel_config Nov 18 22:40:14 https://github.com/YoDevil/android_kernel_lge_msm8974/tree/halium Nov 18 22:41:38 and which config do you use? Nov 18 22:42:36 arch/arm/configs/lineageos_d802-defconfig Nov 18 22:45:27 CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE=y Nov 18 22:47:21 I'm pretty sure you need that one for last_kmsg Nov 18 22:47:44 and mer checker also says FW_LOADER_USER_HELPER=n Nov 18 22:50:07 still no last_kmsg Nov 18 22:50:30 which recovery? Nov 18 22:50:43 twrp Nov 18 23:00:06 note sure :( ... stupid question: do you get a last_kmsg when you boot and then reboot twrp? Nov 18 23:00:31 it's should be the first twrp's kernel log Nov 18 23:01:01 I do Nov 18 23:02:05 mhm. how are you flashing? Nov 18 23:02:20 boot image? dd Nov 18 23:02:31 with dd? Nov 18 23:02:36 yep Nov 18 23:02:48 why not with fastboot? Nov 18 23:03:02 hehe welcome to LG where they don't give you access to fastboot Nov 18 23:03:27 there are sketchy ways to get there but dd is what we use for LG devices Nov 18 23:04:00 ok hold on, i'm definitly getting rid of any last_kmsg by forcing shutdown and booting into recovery Nov 18 23:04:04 I see. so what's the exact command? Nov 18 23:05:41 heh actually i'm using TWRP's Install Image function which relies on dd Nov 18 23:06:34 so you manufacture some kind of zip file that contains a script? show the details Nov 18 23:06:45 nono twrp has built in image flashing Nov 18 23:07:18 ah, so you point twrp to an .img and say put it into boot partition Nov 18 23:07:24 yes Nov 18 23:07:30 but whatever, I could just adb shell dd if=/path/to/hybris-boot.img of="whatever block it is" Nov 18 23:07:55 does it work when you tell twrp to install twrp.img into boot? does that boot successfully? Nov 18 23:08:21 i've used twrp to install boot images multiple time, no issues with that Nov 18 23:09:12 I wonder how could I reboot into recovery without forcing shutdown? Nov 18 23:10:14 https://wiki.lineageos.org/devices/d802 "With the device powered off, hold..." thats gonna be difficult Nov 18 23:10:31 what was it about the signing of the boot image that you spoke about earlier Nov 18 23:10:47 how does that work? what do you need to do there? how do you do it? Nov 18 23:10:48 lg bootloader requires boot image to be signed Nov 18 23:10:57 we use bump! Nov 18 23:11:09 link? Nov 18 23:11:10 https://github.com/LineageOS/android_device_lge_g2-common/blob/lineage-16.0/releasetools/open_bump.py Nov 18 23:12:33 could it be that something about the signing is not working well? Nov 18 23:12:57 nope, bootloader would error out if image is not signed correctly Nov 18 23:12:58 you said the device doesn't show up on usb at all? Nov 18 23:13:10 yea no usb Nov 18 23:13:17 i'd say no services are running at all Nov 18 23:13:22 what does that look like if the bootloader errors out? Nov 18 23:14:58 https://img.xda-cdn.com/HmSqtNhvVEhx7KS4MHVVxgu1QE0=/https%3A%2F%2Fs28.postimg.org%2Fxtglkbhml%2FIMG_4315_3.jpg Nov 18 23:15:37 LG... Does that one have the power off download mode? Nov 18 23:16:02 yes? Nov 18 23:16:18 "DemiGod crash handler" Nov 18 23:17:34 never heard of that but seems fun xd Nov 18 23:18:22 Fwd from UniversalSuperBox: You can test by adding `msm_poweroff.download_mode=1` and then causing a kernel panic Nov 18 23:18:38 That goes in the cmdline Nov 18 23:19:18 ok let's try Nov 18 23:19:33 also i'll move to telegram. it's me, YoDevil Nov 18 23:19:50 A doppelganger! Nov 18 23:19:54 heh Nov 18 23:20:46 uhm but doesn't linux already reboots itself when it panics? Nov 18 23:20:54 i wouldn't say i'm panicing Nov 18 23:21:02 it's just hanging there Nov 18 23:21:17 Well we don't know what's happening Nov 18 23:21:32 it would loop if it was panicing Nov 18 23:21:48 Is there a console in your cmdline Nov 18 23:22:02 And are you using hybris-boot or halium-booy Nov 18 23:22:11 hybris-boot Nov 18 23:22:35 i do have a console in cmdline Nov 18 23:23:07 Well it shouldn't bother hybris-boot anyway Nov 18 23:24:33 Y'know... You could put a kernel panic into hybris-boot's init script to see if you're even getting there Nov 18 23:25:10 and maybe switch the roles of the images. flash twrp to boot and hybris-boot to recovyer Nov 18 23:25:18 Init should never exit so... `exit` should do. Nov 18 23:25:30 uh boy don't let me lose recovery or it's a nightmare Nov 18 23:25:41 when it panics it should boot into twrp and if your lucky you have last_kmsg Nov 18 23:25:49 ohhhh Nov 18 23:25:57 right, no fastboot Nov 18 23:26:01 yep. Nov 18 23:26:03 mhm. Nov 18 23:26:10 well you have one try Nov 18 23:26:20 sorry. not funny ;) Nov 18 23:26:22 Lol Nov 18 23:26:23 heh Nov 18 23:26:33 ok where do i locate hybris-boot init? Nov 18 23:26:51 halium/hybris-boot/ Nov 18 23:29:15 is there a way to kexec hybris-boot from twrp? Nov 18 23:29:56 i dunno Nov 18 23:30:48 ok i do reach init-script Nov 18 23:30:54 i made it panic. Nov 18 23:31:51 you could trial/error how deep into init-script you get Nov 18 23:32:15 yea i guess i could do that.. Nov 18 23:32:15 maybe you can blink? Nov 18 23:32:15 https://github.com/doniks/crashandburn/blob/master/crashandburn.sh#L6 Nov 18 23:33:27 meh panic is fine Nov 18 23:33:52 I guess the classical problems would be a) mounting rootfs, b) checking configs and c) switch_root Nov 18 23:36:56 alright thank you very much for the help, i'll go sleep and debug this tomorrow Nov 18 23:37:24 👋 **** ENDING LOGGING AT Mon Nov 19 03:00:00 2018