-
-
Notifications
You must be signed in to change notification settings - Fork 490
gk7205v500 NAND: FIT kernel volume, CMA, and sysupgrade for UBI layouts #2526
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4fca103
gk7205v500: CMA media memory, so Linux gets the whole DDR
widgetii f7a95b0
init: a ubiblock root keeps its overlay in rootfs_data, as UBIFS
widgetii b963e7c
gk7205v500: NAND image carries a hashed FIT kernel in a UBI volume
widgetii ad09c41
sysupgrade: UBI NAND layouts, written from a handed-off PID 1
widgetii de9a4d1
gk7205v500 NAND, sysupgrade: address review
widgetii 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,51 @@ | ||
| /dts-v1/; | ||
|
|
||
| /* | ||
| * Kernel volume of the gk7205v500-family NAND image: the zImage and its DTB, | ||
| * each hashed so U-Boot refuses a kernel that NAND has corrupted instead of | ||
| * booting it. Built by general/scripts/rootfs_script.sh (the "NAND FIT" step) | ||
| * from the kernel tree, before ubinize packs it into the `kernel` volume. | ||
| * | ||
| * No fdt load address: u-boot-xmedia relocates the DTB under bootm_size, | ||
| * inside the kernel's lowmem. | ||
| */ | ||
| / { | ||
| /* "OpenIPC <soc>": sysupgrade's SoC check reads it (fit_soc). @SOC@ is | ||
| filled in from OPENIPC_SOC_MODEL when the FIT is built. */ | ||
| description = "OpenIPC @SOC@"; | ||
| #address-cells = <1>; | ||
|
|
||
| images { | ||
| kernel { | ||
| description = "Linux"; | ||
| data = /incbin/("zImage"); | ||
| type = "kernel"; | ||
| arch = "arm"; | ||
| os = "linux"; | ||
| compression = "none"; | ||
| load = <0x40008000>; | ||
| entry = <0x40008000>; | ||
| hash-1 { algo = "crc32"; }; | ||
| hash-2 { algo = "sha1"; }; | ||
| }; | ||
|
|
||
| fdt { | ||
| description = "xm720xxx-demb"; | ||
| data = /incbin/("xm720xxx-demb.dtb"); | ||
| type = "flat_dt"; | ||
| arch = "arm"; | ||
| compression = "none"; | ||
| hash-1 { algo = "crc32"; }; | ||
| hash-2 { algo = "sha1"; }; | ||
| }; | ||
| }; | ||
|
|
||
| configurations { | ||
| default = "conf-1"; | ||
| conf-1 { | ||
| description = "Linux + xm720xxx-demb"; | ||
| kernel = "kernel"; | ||
| fdt = "fdt"; | ||
| }; | ||
| }; | ||
| }; |
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,30 @@ | ||
| # gk7205v500-family NAND: kernel (FIT) + rootfs (UBIFS) + rootfs_data. | ||
| # Boots with u-boot-xmedia's FIT NAND env: `ubi read ${baseaddr} kernel; bootm` | ||
| # and root=ubi0:rootfs. sysupgrade rewrites `kernel` and `rootfs` in place | ||
| # with ubiupdatevol, so their sizes are the ceiling for future images. | ||
| [kernel] | ||
| mode=ubi | ||
| vol_id=0 | ||
| vol_type=dynamic | ||
| vol_name=kernel | ||
| vol_alignment=1 | ||
| vol_size=4MiB | ||
| image=BINARIES_DIR/fitImage | ||
|
|
||
| [rootfs] | ||
| mode=ubi | ||
| vol_id=1 | ||
| vol_type=dynamic | ||
| vol_name=rootfs | ||
| vol_alignment=1 | ||
| vol_size=32MiB | ||
| image=BR2_ROOTFS_UBIFS_PATH | ||
|
|
||
| [rootfs_data] | ||
| mode=ubi | ||
| vol_id=2 | ||
| vol_type=dynamic | ||
| vol_name=rootfs_data | ||
| vol_alignment=1 | ||
| vol_size=2MiB | ||
| vol_flags=autoresize |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.