lk2nd
lk2nd copied to clipboard
Added more details about creating a new dts file
Currently does not seem to flash properly or boot properly.
$ fastboot flash boot build-msm8916-secondary/lk2nd.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
(bootloader) has-slot:boot: not found
target reported max download size of 268435456 bytes
sending 'boot' (472 KB)...
OKAY [ 0.019s]
writing 'boot'...
OKAY [ 0.428s]
finished. total time: 0.447s
$ fastboot continue
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
resuming boot...
OKAY [ 0.007s]
finished. total time: 0.007s
@Minecrell I still get no success on booting. When I try to fastboot boot lk2nd.img I get
$ fastboot boot build-msm8916-secondary/lk2nd.img
(bootloader) slot-count: not found
(bootloader) slot-suffixes: not found
(bootloader) slot-suffixes: not found
downloading 'boot.img'...
OKAY [ 0.018s]
booting...
FAILED (remote failure)
finished. total time: 0.396s
I'm pretty sure the slot-count, slot-suffixes stuff is "normal" and not a problem from internet reading.
I am quite certain the device is oem unlocked as I just flashed a kernel earlier today with no problem. I also tried exporting the pmos bits and doing fastboot boot boot.img-motorola-surnia and that worked fine.
@Minecrell interestingly, when I startup lk2nd on my xt1607 harpia it says BOARD_ID - <0x4e 33200>. Wasn't sure if that was interesting/important or not.
@Minecrell interestingly, when I startup lk2nd on my xt1607 harpia it says
BOARD_ID - <0x4e 33200>. Wasn't sure if that was interesting/important or not.
At the moment, the code is not designed to handle multiple board-ids in one device tree. Can you post the lk_log from that harpia (fastboot oem lk_log && fastboot get_staged <output file>)
At the moment, the code is not designed to handle multiple board-ids in one device tree. Can you post the lk_log from that harpia (
fastboot oem lk_log && fastboot get_staged <output file>)
I can put each board-id in a separate file and name them similar to the files in downstream. Lemme know and I'll get it done.
At the moment, the code is not designed to handle multiple board-ids in one device tree. Can you post the lk_log from that harpia (
fastboot oem lk_log && fastboot get_staged <output file>)I can put each board-id in a separate file and name them similar to the files in downstream. Lemme know and I'll get it done.
Yes, that's basically it.
Sadly, I can't seem to get surnia booting lk2nd.img at all now, regardless of what I do. I'll poke at it again soon.
@craigcomstock i have surnia, and based on harpia file, i created one that boots on RETEU device
Hey everyone, are plans to continue with this fix?
Hitting this same issue on a XT1607, not flashing properly nor booting. Is there any known workaround, like using an older build?
@craigcomstock I added one additional harpia board-id (0x4D 0x81B0) for @tchx84. I think it would be good to only add the ones that we have actually verified to work (many of them might only be development prototypes), so maybe you can check which board-id your harpia has?
@craigcomstock I added one additional harpia board-id (
0x4D 0x81B0) for @tchx84. I think it would be good to only add the ones that we have actually verified to work (many of them might only be development prototypes), so maybe you can check which board-id your harpia has?
I will re-work this PR to be "clean and minimal". I'll confirm that the PR works with only devices that I have :+1:.
I am looking at this again. Currently with master I can boot lk2nd.img and it seems to work, but flashing it ends in a bootloop. I checked fastboot getvar all with my xt1526 surnia and it said 0x8300. I didn't see any obvious information about the 0x4x part of the board-id but when I collected all the options previously from downstream I didn't see any other combo than what is in master: 0x46 0x8300.
Any ideas on debugging?
Can you post the lk_log from the lk2nd you managed to boot? See https://github.com/msm8916-mainline/lk2nd#troubleshooting
Flashing boot image works, but flashing system or userdata hangs at
Sending sparse 'userdata' 1/7 (262143 KB) OKAY [ 8.270s]
Writing 'userdata'
My board-ID is 0x46 33536 on my XT1524
I do intend on completing this PR by re-testing all of my various surnia devices and fixing up this PR. :)
@stephan-gh @linuxgorl amended this PR finally. Only docs. :) I tested 0.12.0 lk2nd.img release and it worked fine to flash and such on two surnia's of the 206 0x46 0 0x8300 variety. Tried installing postmarketos and that fails to boot but maybe that's another issue unrelated to lk2nd. So will pursue that another time. Thanks!
Hi, sorry that this PR hanged for such a long time. Lately we were slowly working on a major rewrite of lk2nd which would cause the DT bindings to change too. Given that and the fact that I don't completely like the current state of the added details (i.e. it's a bit to specific to moto, which is an exception and not a rule) I'm closing it as to not ask you to respin the change. Thanks for the work though!