-
Notifications
You must be signed in to change notification settings - Fork 26
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/imx6qdl leave ecc to gpmi nand #32
Open
leiflm
wants to merge
14
commits into
nxp-imx:master
Choose a base branch
from
KLSMartin:feature/imx6qdl_leave_ecc_to_gpmi_nand
base: master
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
Feature/imx6qdl leave ecc to gpmi nand #32
leiflm
wants to merge
14
commits into
nxp-imx:master
from
KLSMartin:feature/imx6qdl_leave_ecc_to_gpmi_nand
Conversation
This file contains 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
Make the BCB handling (BCB, LDLB, FCB, DBBT) configurable. Some SoCs, like the i.MX6, might use the modern gpmi-nand. This moved error code implementation and some bad block handling to the hardware or, at least, driver. This is preparatory work to leverage these interfaces. Signed-off-by: Leif Middelschulte <[email protected]>
Signed-off-by: Leif Middelschulte <[email protected]>
Signed-off-by: Leif Middelschulte <[email protected]>
Signed-off-by: Leif Middelschulte <[email protected]>
Signed-off-by: Leif Middelschulte <[email protected]>
Query the boot fuses to determine the search area count. Signed-off-by: Leif Middelschulte <[email protected]>
Warn the user if she targets a multiarea chip. The i.MX manual does not explicitly mention those in the FCB context. Signed-off-by: Leif Middelschulte <[email protected]>
It is eventually used by dbbt _and_ fcb. On the i.MX 6 it is documented to be only used by the fcb. Signed-off-by: Leif Middelschulte <[email protected]>
Signed-off-by: Leif Middelschulte <[email protected]>
The LDLB is not supported on many platforms. So, eventually, skip its update. Signed-off-by: Leif Middelschulte <[email protected]>
Signed-off-by: Leif Middelschulte <[email protected]>
Adds switch to select on of the two firmware slots. This allow to safely update on slot while the other slot is still valid. Behavior taken from barebox. Signed-off-by: Jan Remmet <[email protected]> Taken from: https://git.phytec.de/meta-phytec/tree/recipes-bsp/imx-kobs/imx-kobs/0001-Slot-switch.patch?h=zeus&id=72ef16bdeef886e9939ef25b66ad68bc50810a78
The slot feature allows to switch the two boot streams. So we can write the "unused" slot first. But in mtd_commit_structures first the FCB is written and thereafter the boot streams. If a power cut occurs, the FCB may point to a partial written boot stream. Now first the "unused" bootstream is written, than the FCB table and the "actual" boot stream. Making the update is power cut tolerant. Taken from: https://git.phytec.de/meta-phytec/tree/recipes-bsp/imx-kobs/imx-kobs/0001-mtd-write-boot-streams-separately.patch?h=zeus&id=72ef16bdeef886e9939ef25b66ad68bc50810a78
The search exponent as passed by the user shall not be overwritten.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
These changes add/fix support for:
Furthermore does this changeset a cover boot switch mechanism, courtesy of jan Remmet and Bernd Westermann