Skip to content

novatek: enable CONFIG_CMD_TFTPPUT for TFTP flash backups - #220

Merged
dimerr merged 1 commit into
OpenIPC:openipc-novatekfrom
vlw:novatek-tftpput
Nov 28, 2026
Merged

dimerr merged 1 commit into
OpenIPC:openipc-novatekfrom
vlw:novatek-tftpput

Conversation

@vlw

@vlw vlw commented Nov 27, 2026

Copy link
Copy Markdown

Enables CONFIG_CMD_TFTPPUT=y in openipc/openipc_config so Novatek OpenIPC U-Boot builds include the tftpput command.

Motivation

When booting u-boot-nt98566-nand.bin into RAM over Ethernet ROM boot (or from flash), having tftpput allows backing up the stock SPI NOR/NAND flash over TFTP (nand read / sf read + tftpput) before erasing anything — matching the standard Route C / Route G backup procedure documented in OpenIPC/wiki/en/backup-stock-firmware.md.

Build check

  • ./build.sh nt98566-nand: output/u-boot-nt98566-nand.bin (1.0M, U-Boot 179823 packed / 474460 unpacked), tftpput present.
  • ./build.sh nt98566: output/u-boot-nt98566-nor.bin (256K, U-Boot 99145 packed / 247464 unpacked), tftpput present.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Enable TFTP uploads in Novatek OpenIPC U-Boot builds

⚙️ Configuration changes ✨ Enhancement 🕐 Less than 10 minutes

Grey Divider

AI Description

• Enable tftpput in the shared Novatek OpenIPC U-Boot configuration.
• Allow flash contents to be uploaded before erasure for stock-firmware backups.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed configuration directly enables one user-invoked end-to-end operation: transferring memory contents to a TFTP server.
  • The command registration and TFTP put state machine implement the same bounded network file-transfer behavior, not independent capabilities.
Sources

openipc/openipc_config[107-107]

CONFIG_CMD_TFTPPUT=y
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before, OpenIPC images omitted the existing TFTP upload command; after, configuration selects it.
  • The changed correctness condition is command availability, while parsing, transfer, and protocol logic are existing code.
Sources

openipc/openipc_config[107-107]

CONFIG_CMD_TFTPPUT=y
Potential damage 🟡 Medium 🩹 Temporary loss

  • If the newly enabled upload capability regresses, users cannot transfer selected memory contents to a TFTP server.
  • Reverting the configuration and rebuilding removes the feature and restores the prior baseline; the enablement itself does not write persistent or external state.
  • Software revert and redeployment restore the prior command set.
  • A failed or incorrect explicitly invoked upload could require restoring the remote file separately, but no specific fault is supported by this assessment.
Sources

openipc/openipc_config[107-107]

CONFIG_CMD_TFTPPUT=y
Assessed commit 64d0b5b
High-Level Assessment

Enabling the existing command in the shared configuration is the simplest way to make backups available across Novatek builds; a custom upload implementation is unnecessary.

Files changed (1) +1 / -0

Other (1) +1 / -0
openipc_configEnable the TFTP upload command +1/-0

Enable the TFTP upload command

• Sets 'CONFIG_CMD_TFTPPUT=y' in the shared Novatek configuration. Builds using this fragment can upload flash data read into memory to a TFTP server for backup.

openipc/openipc_config

@dimerr
dimerr merged commit e194f85 into OpenIPC:openipc-novatek Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants