Skip to content

Tuya F1602-D2: install commands, and the page brought up to date - #682

Merged
openipc-ai merged 1 commit into
OpenIPC:masterfrom
lexleite:patch-1
Dec 4, 2026
Merged

openipc-ai merged 1 commit into
OpenIPC:masterfrom
lexleite:patch-1

Conversation

@lexleite

@lexleite lexleite commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

The device page was written while most of this camera's support was still in open PRs. Since then they have merged, and the board has a builder profile. This brings the page up to date.

Installation. This section only said the camera was flashed with a CH341A, followed by a few fw_setenv lines. It now has:

  • First install: build the 8 MB image from OpenIPC's u-boot-fh8852v200-nor.bin and the board's builder package (fh8852v200_lite_tuya-f1602-d2-nor.tgz), with a table of the layout, then write it with a programmer. It also says why the generic fh8852v200 image is the wrong one here: it has no RTL8733BU driver, and the Ethernet socket isn't wired.
  • Wi-Fi setup: by QR code (fh8852v200_lite_tuya-f1602-d2: Wi-Fi setup from a QR code builder#293) or from the serial console.
  • Updating: sysupgrade with the board's kernel and rootfs.

The rest of the page:

Checked:

  • The wget/md5sum/dd commands were run on the current release files. The image they build has U-Boot at 0, the kernel at 0x50000 and the rootfs at 0x250000, with everything else 0xFF. It matches /proc/mtd on the camera (boot 256K, env 64K, kernel 2M, rootfs 5M, rootfs_data from 0x750000).
  • This camera was first installed with a programmer and an image of this layout. The builder image was then flashed with the sysupgrade line above (fh8852v200_lite_tuya-f1602-d2: add the Tuya F1602-D2 pan/tilt camera builder#291, fh8852v200_lite_tuya-f1602-d2: the MIS4001 library from source builder#294), and the QR setup was tested on it. The first boot setting sensor/wlandev and rebooting for mem=31M was seen after sysupgrade -n, not on a chip with an erased U-Boot environment, so the page also lists the two fw_setenv lines for the serial console.
  • The camera runs U-Boot 2022.10-g7721b89f; the latest release now has a later build of the same tree (g3754be81).
  • The flashrom line is an example: any programmer tool that writes and verifies the whole chip will do.
  • Installing over the serial console from the stock bootloader hasn't been tried, and the page says so.

🤖 Generated with Claude Code

Updated device documentation for Tuya F1602-D2, including installation instructions, Wi-Fi setup, and GPIO mapping. Added details on firmware requirements and sensor configuration.
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Tuya F1602-D2: install commands and page brought up to date

📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Adds install steps: builder image build, flash layout table, programmer write, and sysupgrade.
• Adds Wi-Fi setup by QR code or serial console, plus the reason the generic image is wrong.
• Updates BOM, Wi-Fi, sensor, GPIO, audio, pan/tilt and SD card sections for merged fixes.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 0 capabilities

  • No production behavior changes identified.
Behavioral complexity 🟢 Low 🧩 Assessed behavior

  • No production behavior changes identified.
Potential damage 🟢 Low 🩹 Assessed behavior

  • No production behavior changes identified.
Assessed commit 9316e78
Diagram

graph TD
  A["Release files"] --> B["Build 8 MB image"] --> C["Write with programmer"] --> D[("SPI NOR flash")] --> E["First boot: env, mem=31M"] --> F["Wi-Fi setup"]
Loading
High-Level Assessment

Documenting the builder image as the single source of board settings is the right approach. The page now points users to one profile for sensor, Wi-Fi, motors, night mode and audio, instead of listing many fw_setenv and config lines by hand. The page also keeps the serial-console fw_setenv fallback for images without those settings, and says plainly that the serial install path is untested. No alternative was considered better.

Files changed (1) +73 / -18

Documentation (1) +73 / -18
device-tuya-f1602-d2-fh8852v200.mdAdds install, Wi-Fi setup and updating; updates hardware and config notes +73/-18

Adds install, Wi-Fi setup and updating; updates hardware and config notes

• Adds an installation section covering a reproducible 8 MB image build with a flash layout table, programmer write and verification, and sysupgrade updates. Adds QR and serial Wi-Fi setup. Updates the BOM, Wi-Fi, sensor, GPIO, audio, day/night, pan/tilt and SD card sections to match merged firmware, builder and majestic fixes, including corrected pan travel and motor timing notes.

en/device-tuya-f1602-d2-fh8852v200.md

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

qodo-free-for-open-source-projects Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (1) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Page and description expose a lab camera's device output 📘 Rule violation ⛨ Security
Description
The PR description reports /proc/mtd partition sizes read from the team's own camera, and names
that camera's running U-Boot build string (2022.10-g7721b89f) and the later build it is compared
against. The description also says the first-boot setting and QR setup were observed on that
specific device, which identifies the lab hardware's firmware state to every reader of the
repository's history. The diff's partition table at lines 39-45 mirrors this output, so the
device-derived layout is now published alongside the lab-specific notes.
Code

en/device-tuya-f1602-d2-fh8852v200.md[R39-45]

+| Offset | Size | Contents |
+|---|---|---|
+| 0x000000 | 256 KB | U-Boot |
+| 0x040000 | 64 KB | U-Boot environment, left erased |
+| 0x050000 | 2 MB | kernel (`uImage.fh8852v200`) |
+| 0x250000 | 5 MB | rootfs (`rootfs.squashfs.fh8852v200`) |
+| 0x750000 | 704 KB | overlay (settings), left erased |
Evidence
The rule forbids console output or log text captured from a lab device and identifiable as such. The
PR description (which is published with the merge) quotes the lab camera's /proc/mtd values and
its U-Boot build id, and the added partition table reproduces the same layout as device-captured
output.

Rule 2: No lab environment details
en/device-tuya-f1602-d2-fh8852v200.md[39-45]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The PR description quotes `/proc/mtd` output from the team's lab camera and its U-Boot build id, and the page's partition table mirrors that device output. This identifies the lab hardware's state in published history.
## Fix Focus Areas
- en/device-tuya-f1602-d2-fh8852v200.md[39-45]
## Recommended Fix
Restate the layout as the image's own offsets and sizes (already in the table) without attributing them to a camera's `/proc/mtd` output. Remove the references to the lab camera's U-Boot build string and its comparison build from the PR description, and describe the tested setup by hardware class (SoC, sensor, Wi-Fi chip, flash part) only. Amend the PR description before merging.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Tip of the day
💡 Did you know, you can import rules and skills only from the repositories your team follows

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@openipc-ai

Copy link
Copy Markdown
Collaborator

On Qodo's finding, "Page and description expose a lab camera's device output": not a problem here, so no change.

  • The camera is the author's own F1602-D2, which this page documents. It isn't a lab device, and the description reports how it was tested.
  • The partition table is OpenIPC's standard 8 MB NOR layout (256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data)), the same mtdparts the firmware boots with. The install steps need it to place each file.
  • The U-Boot version names a public release build.

I also checked the content against the trees it cites:

@openipc-ai
openipc-ai merged commit 22194a5 into OpenIPC:master Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants