Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: menu: add continue option #469

Merged

Conversation

NekoCWD
Copy link
Contributor

@NekoCWD NekoCWD commented Dec 21, 2024

IMG_20241221_143847

shakaled.mp4

@wonderfulShrineMaidenOfParadise
Copy link
Contributor

What's the difference when you can press reboot and boot by partition boot or extlinux?

@NekoCWD
Copy link
Contributor Author

NekoCWD commented Dec 22, 2024

What's the difference when you can press reboot and boot by partition boot or extlinux?

You can continue boot from fastboot. Useful if you built lk2nd with force fastboot option

@wonderfulShrineMaidenOfParadise
Copy link
Contributor

You can continue boot from fastboot.

Can I just fastboot reboot?

@NekoCWD
Copy link
Contributor Author

NekoCWD commented Dec 27, 2024

You can continue boot from fastboot.

Can I just fastboot reboot?

Yes, you can. But only if lk2nd built without LK2ND_FORCE_FASTBOOT=1

@NekoCWD
Copy link
Contributor Author

NekoCWD commented Dec 28, 2024

Change to draft. I need to modify fastboot continue cmd

@NekoCWD NekoCWD changed the title Feature: menu: add continue option Draft Feature: menu: add continue option Dec 28, 2024
@wonderfulShrineMaidenOfParadise
Copy link
Contributor

only if lk2nd built without LK2ND_FORCE_FASTBOOT=1

Fair enough. So we need this option only when LK2ND_FORCE_FASTBOOT=1 and it's not useful when LK2ND_FORCE_FASTBOOT=0.

@TravMurav
Copy link
Member

FTR: I'd generally prefer as few changes to the original CAF code as possible. In this case I too wonder why just using fastboot continue doesn't work?

@NekoCWD
Copy link
Contributor Author

NekoCWD commented Dec 31, 2024

FTR: I'd generally prefer as few changes to the original CAF code as possible. In this case I too wonder why just using fastboot continue doesn't work?

It won't use lk2nd boot(from extlinux conf)

@TravMurav
Copy link
Member

FTR: I'd generally prefer as few changes to the original CAF code as possible. In this case I too wonder why just using fastboot continue doesn't work?

It won't use lk2nd boot(from extlinux conf)

well, it's supposed to... https://github.com/msm8916-mainline/lk2nd/blob/main/app/aboot/aboot.c#L4676

@NekoCWD
Copy link
Contributor Author

NekoCWD commented Dec 31, 2024

FTR: I'd generally prefer as few changes to the original CAF code as possible. In this case I too wonder why just using fastboot continue doesn't work?

It won't use lk2nd boot(from extlinux conf)

well, it's supposed to... main/app/aboot/aboot.c#L4676

Oh, my bad. Sorry.

I think the GUI menu can be used in different scenarios. For example, you can continue booting without a PC.

I understand your point. But I think it is rational to reuse the code

@TravMurav
Copy link
Member

I don't mind adding a menu item for "continue" as long as it ends up just calling the same cmd_continue in aboot, and works the same way. I think in this case the change should be fairly trivial

@NekoCWD
Copy link
Contributor Author

NekoCWD commented Dec 31, 2024

I don't mind adding a menu item for "continue" as long as it ends up just calling the same cmd_continue in aboot, and works the same way. I think in this case the change should be fairly trivial

Thanks. I will edit my changes

@NekoCWD NekoCWD force-pushed the nekocwd/fastboot-continue-boot branch from f597507 to d433519 Compare January 4, 2025 20:23
@NekoCWD
Copy link
Contributor Author

NekoCWD commented Jan 4, 2025

Do i need to add LK2ND_FORCE_FASTBOOT=1 check?

@NekoCWD NekoCWD changed the title Draft Feature: menu: add continue option Feature: menu: add continue option Jan 4, 2025
@NekoCWD NekoCWD force-pushed the nekocwd/fastboot-continue-boot branch from d433519 to 930f0fb Compare January 5, 2025 18:32
@TravMurav TravMurav merged commit 659854f into msm8916-mainline:main Jan 6, 2025
42 checks passed
@TravMurav
Copy link
Member

Thanks!

Also just in case would like to clarify that this "extern" pattern as was suggested is generally bad but we make an exception here since we want to avoid touching code outside of /lk2nd dir as much as possible :)

@NekoCWD NekoCWD deleted the nekocwd/fastboot-continue-boot branch January 6, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants