lk2nd icon indicating copy to clipboard operation
lk2nd copied to clipboard

lk2nd 0.11.0 broke support for htc-m8qlul

Open Newbytee opened this issue 3 years ago • 3 comments
trafficstars

Some change between lk2nd 0.10.0 and 0.11.0 broke htc-m8qlul. With lk2nd 0.11.0, it boots into HTC's fastboot mode right on boot. I haven't bisected this yet, but I'm making this for tracking purposes.

Edit: A previous version of this post said it boots into EDL mode. I cannot reproduce this any more. It might have been the result of me not doing clean builds. Now, it boots into HTC's fastboot mode instead.

Newbytee avatar Sep 17 '22 14:09 Newbytee

I got this:

5f03ceed84a95be6283343c0fbf0ec813557c9b0 is the first bad commit
commit 5f03ceed84a95be6283343c0fbf0ec813557c9b0
Author: Minecrell <[email protected]>
Date:   Thu Oct 28 17:22:40 2021 +0200

    makefile: Drop -fno-builtin
    
    This allows gcc to inline standard calls like strlen("constant string").

 include/stdio.h   | 1 +
 lib/libc/printf.c | 6 ++++++
 makefile          | 2 +-
 3 files changed, 8 insertions(+), 1 deletion(-)

I can also confirm that its parent, 9d9c3abca539c6ef3be625e61ec489fbef490d3c, kind of works. The phone repeatedly vibrates on the HTC splash, but if I hold down the power and volume down buttons down for a moment it somehow makes it to a functional lk2nd.

However, reverting 5f03ceed84a95be6283343c0fbf0ec813557c9b0 on top of 0.11.0 does not work. The phone just goes to its own fastboot if I do that, even with the non-m8qlul dtbs removed from the build.

Newbytee avatar Sep 19 '22 09:09 Newbytee

Honestly I'm not sure what to make of this. Previously the device went into EDL mode when I built 5f03ceed84a95be6283343c0fbf0ec813557c9b0, but now it goes into fastboot mode with that commit.

Newbytee avatar Sep 19 '22 09:09 Newbytee

22:27 <minecrell[m]> "makefile: Drop -fno-builtin" is broken with some gcc versions until https://github.com/msm8916-mainline/lk2nd/commit/1b36977eb809e36c3d6439f22bf9c95cbf824ced 22:27 <minecrell[m]> so that may be a false positive

stephan-gh avatar Jan 11 '23 21:01 stephan-gh