Repository navigation
Erase a NAND camera's UBI partition by name, so chips bigger than 128 MiB install too - #393
Merged
Merged
Conversation
… MiB install too The UBI-only NAND install erased a fixed 0x7f00000 from 0x100000, which is the end of a 128 MiB chip. The partition is -(ubi) and runs to the end of whatever chip there is, so on a bigger one stale blocks were left behind, which UBI counts as corrupted PEBs when it attaches. - The Linux step now erases with `nand erase.part ubi`, which the u-boot-xmedia NAND build carries (OpenIPC/u-boot-xmedia#12) and the U-Boot step installs first. - The full-flash image, written from whatever U-Boot the camera has, erases with `nand erase.chip`. - Both keep write.trimffs. Also gofmt on catalogue.go, which #392 left unformatted.
PR Summary by QodoErase NAND UBI partitions to the end of the chip
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can describe a rule in plain language on the Rules page and Qodo drafts it for you |
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
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.
Follows #392, using OpenIPC/u-boot-xmedia#12.
The UBI-only NAND install erased a fixed
0x7f00000from0x100000, which is the end of a 128 MiB chip. The partition is-(ubi)and runs to the end of whatever chip there is, so on a bigger one stale blocks were left behind. UBI counts those as corrupted PEBs when it attaches.Linux step. It now reads:
mtdparts.erase.partcomes with the u-boot-xmedia NAND build that the U-Boot step installs first (Fixed some translation errors about zh_CN #12, published from master).Full-flash image. It is written from whatever U-Boot the camera already has, so it erases with
nand erase.chipand still writes withwrite.trimffs.Verified on a hi3516ev300 (W25N01GV, 128 MiB) with the published-to-be u-boot-xmedia build:
nand erase.part ubiresolved to offset 0x100000, size 0x7f00000./boot/fitImage.service/run.sh testpasses. Thedocuments.jsonhashes changed only for the seven UBI-only SoCs. The commit also gofmt'scatalogue.go, which #392 left unformatted.