-
Notifications
You must be signed in to change notification settings - Fork 414
Add support for setting OS version and patch level and add new Palm Phone device #579
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
Open
xc-racer99
wants to merge
2
commits into
msm8916-mainline:main
Choose a base branch
from
xc-racer99:pepito
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| #include <skeleton64.dtsi> | ||
| #include <lk2nd.dtsi> | ||
|
|
||
| /* | ||
| * There are a few quirks to be aware of | ||
| * | ||
| * - Fastboot is not available on this device, lk2nd must be flashed via EDL. | ||
| * Some EDL programs (or versions thereof) do not work properly with available | ||
| * firehoses (or else need responses ignored). QDL is a known working implementation | ||
| * | ||
| * - The stock bootloader checks the OS version and the OS patch level in the boot.img as | ||
| * well as ensuring there is a signature in the boot.img (it does not matter the signature). | ||
| * When compiling lk2nd, set MKBOOTIMG_OS_VERSION=8.1.0 MKBOOTIMG_OS_PATCH_LEVEL=2020-09-01 | ||
| * and SIGN_BOOTIMG=1 | ||
| */ | ||
|
|
||
| / { | ||
| qcom,msm-id = <QCOM_ID_MSM8940 0>; | ||
| qcom,board-id = <0xaa000008 0x00>; | ||
| }; | ||
|
|
||
| &lk2nd { | ||
| model = "Palm Phone (pepito)"; | ||
| compatible = "palm,pepito"; | ||
|
|
||
| lk2nd,dtb-files = "qcom,msm8940-mtp", "qcom,msm8940", "qcom,mtp"; | ||
|
|
||
| lk2nd,single-key-navigation; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should define a dtb filename for this device, not a list of compatibles (especially downstream ones), which would be used for booting a generic linux image with extlinux.conf. If you have some work to run linux on this device, please put the name of your dtb here
lk2nd/Documentation/dt-bindings.md
Lines 67 to 69 in 4801a1e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I misinterpreted what this line was for - thanks! I haven't (yet) had a chance to do a mainline linux port. Since that's the case, should the property just be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you believe you know what the dtb name should be, you can add it, and we can fix it later if upstream wants the filename changed. Otherwise some devices define it as a comment with a best guess (can grep for FIXME in the dts dir)