Repository navigation
hi3518ev200_lite_baolian-11r6w25-hx20y: build and publish the split NOR image - #221
Merged
Merged
Conversation
…OR image The #2675 camera could not install its own image. Like every hi3518ev200 on the generic image since OpenIPC/firmware#2668, it runs the split NOR layout (the uImage and squashfs in one "firmware" partition the kernel divides at boot), and sysupgrade refused the device's plain package: This camera runs the split NOR layout and upgrades from firmware.bin (openipc.hi3518ev200-nor-lite-split.tgz), not a separate kernel and rootfs. Nothing was written. Aborting. The device was cloned from a profile that predates the split layout, so it had neither half: the post-image script that makes firmware.bin and the -split package, nor the kernel options that divide the partition at boot. Both are added as firmware#2668 has them for hi3518ev200_lite: the two defconfig lines, and CONFIG_MTD_SPLIT_* with CONFIG_MTD_ROOTFS_ROOT_DEV in the device's kernel config. The fixed-slot package is still made while it fits. The workflow publishes <device>-nor-split.tgz (#220), and sysupgrade looks for it beside the plain one (firmware#2743).
openipc-ai
requested review from
cronyx,
flyrouter and
viktorxda
as code owners
November 2, 2026 09:21
2 tasks done
PR Summary by QodoBuild split NOR firmware for the Baolian 11R6W25-HX20Y
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
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 copy the agent prompt from any finding and feed it to your IDE agent |
openipc-ai
added a commit
that referenced
this pull request
Nov 2, 2026
…ery device (#222) Since OpenIPC/firmware#2668 the generic hi3516cv200_lite, hi3518ev200_lite, hi3518ev200_ultimate and gk7201v200_lite images use the split NOR layout: uImage and squashfs in one "firmware" partition the kernel divides at boot. A camera on that layout takes only a -split package; offered a device's plain one, sysupgrade refuses ("This camera runs the split NOR layout ... Nothing was written"), which is how the #2675 camera met it (fixed for its own device in #221). None of the eleven devices built on those four profiles had the split layout. Each gets what #221 gave the Baolian and firmware#2668 gave the profiles: the post-image script and BR2_OPENIPC_NOR_FIXED_PACKAGE in the defconfig, and, for the four that ship their own kernel config (trassir, lenovo-snowman lite and ultimate, vstarcam), CONFIG_MTD_SPLIT_* with CONFIG_MTD_ROOTFS_ROOT_DEV; the other seven take firmware's, which has them. The fixed-slot package is still made while it fits, and a NOR+NAND ultimate still packages its NAND image either way. The workflow publishes <device>-nor-split.tgz (#220); sysupgrade finds it beside the plain one (firmware#2743).
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.
Problem
The #2675 camera (Baolian 11R6W25-HX20Y, #218) could not install its own image:
Since OpenIPC/firmware#2668, the generic hi3518ev200 image uses the split NOR layout: the uImage and the squashfs sit back to back in one
firmwarepartition, which the kernel divides at boot. The camera runs the generic image, so it's on that layout. #218 cloned this device from a profile that predates the split, and it has neither half:firmware.binand the-splitpackage isn't set.Change
Exactly what firmware#2668 did for
hi3518ev200_lite:hi3518ev200.generic.confighas them; the last six lines are now identical to it:The fixed-slot package is still made while it fits, for cameras whose sysupgrade predates the split layout. The workflow publishes
<device>-nor-split.tgzbeside it (#220), and sysupgrade looks for it next to the plain package named inupgrade(firmware#2743). The default firmware offset0x50000matches this camera's partitions (256 KBboot+ 64 KBenv).The other hi3518ev200 lite devices here (qtech-qvc-ipc-136w, smartwares-cip-37210, switcam-hs303, switcam-hs303-v2, vstarcam-c8892wip) have the same gap. They're proven devices, so they're left to a separate change.
Tested
-splitpackage from this build. The refusal above shows sysupgrade wrote nothing, so the camera is untouched.python3 .github/scripts/ci-matrix.py --self-test→self-test ok (130 devices, 16 smoke, 39 cases). The selector narrows this PR to the device.