From a Tapo C210 to a Fully Working Thingino Camera


This story starts with a power socket.

I had bought some Tuya sockets and discovered that controlling them programmatically with the stock firmware involved obtaining local keys through Tuya’s API. The API access was a trial subscription which expired. It could be extended, but that left the obvious question: for how long?

I eventually flashed the sockets with OpenBeken. It was a much better arrangement: my hardware kept working without anybody else’s server or permission.

When I wanted an indoor pan-and-tilt camera, I decided to start at the other end. Instead of buying a camera and only then finding out whether I could liberate it, I looked for one built around a chipset with alternative firmware support. That search led through OpenIPC and eventually to Thingino, an open-source firmware for cameras based on Ingenic SoCs.

I bought a TP-Link Tapo C210 v3. My intended destination was simple: a standalone local camera with video, audio and pan-and-tilt control, useful without the Tapo application or cloud. The trip there was less direct.

Opening the camera

The top of the C210 comes off if you squish the case in the right places. Inside, the likely UART pads were fairly obvious. With the board viewed upside down relative to the T23 chip, they are labelled:

TP2 TP1 TP3 TP4

TP3 is ground, TP4 is 3.3 V, TP1 is the camera’s TX line and TP2 is RX. The layout matches the one documented on Thingino’s wiki for the Tapo C100, C110 and C111.

There was one catch: TP-Link had left an isolating resistor footprint unpopulated, so the TP1 pad was physically present but disconnected. I bridged the empty zero-ohm resistor footprint with a loose strand of copper wire. It was not elegant, but it was enough.

I connected a 3.3 V USB-to-UART adapter at 115200 baud, using ground, RX and TX but not the adapter’s power output. The camera started talking:

U-Boot 2013.07 (Dec 24 2024 - 15:41:57)

Board: ISVP (Ingenic XBurst T23 SoC)
DRAM:  64 MiB
SF: Detected EN25QX64A
Autobooting in 1 seconds

This is fun

The one-second countdown was not merely informational. Sending slp during it stopped autoboot and produced this:

isvp_t23#

I had a U-Boot shell.

This was not strictly necessary for the final camera. It was, however, great fun. I could inspect memory and GPIOs, read arbitrary ranges from SPI flash, load files from the microSD card and alter the kernel command line without writing anything permanently.

I did not arrive at this approach in a vacuum. I was heavily inspired by Watchful IP’s long-form investigation of a C210 v2. That camera was a different hardware platform, but the post was a wonderful demonstration of treating even a limited U-Boot shell as a set of useful primitives: read selected flash bytes into RAM, change code or data there, jump to it with go, and use the kernel command line to reach a root shell.

The other direct influence was DrmnSamoLiu’s Tapo C200 Research Project. Its “Getting a Shell” chapter documented the same slp password, the init=/bin/sh trick and the state of the half-initialized system afterwards. It also published a small c200shell.py which automated the race through U-Boot. My repository actually began with that script, including its # Author : DrmnSamoLiu credit.

The stock kernel lives at offset 0x70200. I could load it into RAM and replace the normal init process with a shell:

sf probe
sf read 0x80600000 0x70200 0x200000
setenv bootargs 'earlyprintk console=ttyS1,115200n8 mem=44M@0x0 rmem=20M@0x2C00000 rootwait rootfstype=squashfs init=/bin/sh root=/dev/mtdblock6 rw'
bootm 0x80600000

That booted TP-Link’s kernel and root filesystem directly into /bin/sh. After mounting /proc, /sys and /dev, and keeping the watchdog fed, I had a useful root environment for exploring the stock system.

I worked with a clanker to turn DrmnSamoLiu’s C200 script into c210shell.py for this T23N camera. The addresses, prompt, baud rate, boot arguments and timing all needed changing, and the script grew into something much more robust. It waited for the serial device, caught the short U-Boot window, set the boot arguments, prepared the pseudo-filesystems and handed me an interactive shell. It also noticed camera reboots and reacquired the shell automatically.

This was one of my takeaways from the project even before the camera worked. Building c210shell.py with clankers was fun, and it was a good division of labour. I could concentrate on reverse engineering the device: probing the hardware, forming hypotheses and deciding what experiment to run next. The clanker could turn the repetitive parts into a pleasant environment for doing that work.

Instead of repeatedly racing a one-second countdown, retyping boot commands and rebuilding /dev after every restart, I got a reliable interactive loop. The automation did not replace the reverse engineering. It removed the friction around it.

There was an easier route once I knew what I was looking at: the normal root password in the stock firmware was slpingenic. But discovering how to boot my own root shell was much more satisfying.

Taking inventory

The stock system identified the important pieces of this particular C210:

TP-Link Tapo C210 v3
SoC:       Ingenic T23N
Sensor:    SmartSens SC3336
Wi-Fi:     RTL8188FTV
Flash:     EN25QX64A, 8 MiB

Its loaded modules provided another view of the hardware:

8188fu
spi_tmi8150b_motor
spi_tmi8150b_ir_cut
sensor_sc3336_t23
tx_isp_t23

The interesting part was the TMI8150B. The C210 does not drive its pan-and-tilt motors and IR-cut filter with a few ordinary GPIOs. It talks to a separate chip over SPI. TP-Link’s modules call that chip TMI8150B, while Thingino’s driver and the upstream discussion call it TMI8152; the TMI8152 driver is what runs it under Thingino.

The flash contained a U-Boot/kernel/SquashFS arrangement with TP-Link-specific verification and factory partitions:

mtd5   kernel       0x070200 - 0x1c0000
mtd6   rootfs       0x1c0000 - 0x3d0000
mtd7   rootfs_data  0x3d0000 - 0x770000
mtd10  firmware     0x070000 - 0x770000

Before changing it, I dumped every MTD device and archived the stock firmware. Some partitions contain device-specific factory and calibration data. Making a backup while the original system still boots is much easier than wishing for one afterwards.

The invisible documentation

At this point I had root on the stock firmware and was trying to adapt OpenIPC to the camera. Searching the web made it look as if very little was known about this exact model.

That impression was wrong.

Both OpenIPC and Thingino have Discord and Telegram groups. A great deal of the useful knowledge about these cameras lives there: boot logs, half-finished ports, board photos, one-off experiments and conversations between people who already recognize the odd peripheral in front of you. Search engines do not index most of it.

After I had already opened the camera, bridged its UART, gained root and started my own porting work, I searched the Telegram history directly. There I found Chaser Huang (chaserhkj), who was working on the same C210 revision and had already made significant progress. His work became Thingino PR #1183.

This changed my understanding of the problem. I was not exploring an entirely unknown camera; I had independently reached a project whose other half was hidden from normal web search.

Thingino’s Discord deserves a special mention too. It is an excellent place full of knowledgeable people who understand Ingenic cameras, their vendor SDKs and the many strange ways manufacturers connect otherwise familiar hardware. Information which looked like an isolated mystery on the public web was often already community knowledge there.

The first Thingino boot

U-Boot let me try Thingino without touching the stock flash. With an initramfs on a FAT-formatted microSD card, the important part was only:

mmc dev 0
fatload mmc 0:1 0x80600000 thingino-uImage-initramfs
setenv bootargs 'console=ttyS1,115200n8 mem=44M@0x0 rmem=20M@0x2C00000 root=/dev/ram rw init=/init'
bootm 0x80600000

We added this path to c210shell.py too. On 19 April 2026 I could boot Thingino from RAM, load the SC3336 sensor and 8188fu Wi-Fi modules, start Prudynt, connect over SSH and open an RTSP stream:

ffplay -rtsp_transport tcp \
  rtsp://thingino:thingino@CAMERA_IP:554/ch0

That was a real camera image, but not yet a finished camera. It had a magenta tint, the motors did not work, and the browser preview appeared blank.

The blank browser preview made the state look worse than it was. The RTSP test proved that capture and encoding worked, but I did not know why the web interface showed nothing. I used Thingino’s microSD recovery process to install a full image permanently, but the C210 remained an unfinished project.

The C200 side quest

Later in April, I bought a Tapo C200 v5. It used the same T23N platform, RTL8188FTV Wi-Fi, TMI8150B SPI controller and practically the same PCB layout, but with an SC2336P sensor and an XM25QH64C SPI flash chip. The serial trick was the same: slp entered U-Boot, slpingenic worked on the stock login, and the stock system could be booted with init=/bin/sh.

The important difference was that Thingino on the C200 just worked.

That was encouraging and mildly annoying. It confirmed that the approach was sound and narrowed the C210 problem to its particular sensor and SPI-controlled peripherals, but it also gave me a working camera and less reason to immediately finish the obstinate one.

Revision numbers matter

The similarity between these two cameras comes with an important warning: it applies to these hardware revisions, not necessarily to every product called C200 or C210.

Earlier reverse engineering shows how substantial the changes between revisions can be. A C210 v2 documented by Watchful IP used a SigmaStar ARM SoC, Linux 4.9 and a different boot chain and flash layout. My C210 v3 uses an Ingenic T23N MIPS SoC and Linux 3.10.14.

The C200 name spans similarly different machines. Older C200 research describes a Realtek RTS3903, a 57600-baud UART and the root password slprealtek. My C200 v5 uses the Ingenic T23N, a 115200-baud UART and slpingenic.

So “C200 and C210 are almost the same camera” can be true, while “all C200s and C210s are almost the same camera” is very false. The exact hardware revision belongs near the top of every set of flashing instructions.

Meanwhile, C210 v3 support was taking shape upstream in Thingino. In March, pastudan had opened PR #1129 for the same T23N, SC3336 and RTL8188FTV hardware, bringing up the sensor, Wi-Fi, captive portal, SSH and the mem=44M/rmem=20M memory split. On 27 April, Chaser Huang (chaserhkj) opened PR #1183, building on sstepansky’s spi-tmi8152 driver to wire up the TMI8152 motor module via a modprobe.d alias instead of relying on build order to overwrite the SDK’s motor.ko. His PR comments also independently showed the same unpopulated UART isolating resistor I had run into.

I watched the motor PR and commented on 1 May to ask what was needed to get it unstuck, but for a couple of months the C210 stayed in the category of “nearly works”.

Send in the clankers

On 27 July, Thingino maintainer Paul Philippov (themactep) closed both PRs after picking their profiles directly onto master: pastudan’s into configs/cameras/, and chaserhkj’s into configs/cameras-exp/ with the spi-tmi8152 motor override saved as a camera-local patch file so it would not affect other cameras. It was time to bring the clankers back for the remaining work.

The clankers inspected my stock dumps, boot logs, Thingino’s camera profile, the upstream pull requests and the running camera. They built images, booted and flashed them, queried GPIOs and kernel modules over SSH, moved the motors, sampled position feedback and checked streams. The clues were spread over source code, logs, a live embedded system and an upstream discussion, and each experiment suggested the next one.

The build started from Thingino commit c8ed6a8af and this experimental profile:

configs/cameras-exp/tplink_tapo_c210_t23n_sc3336_rtl8188ftv
CAMERA=tplink_tapo_c210_t23n_sc3336_rtl8188ftv \
  GROUP=exp ./build-container.sh

The profile already selected the T23N platform, SC3336 sensor, 8188fu Wi-Fi driver and experimental TMI8152 support. To turn on the motors, we applied 0001-spi-tmi8152-motor-module.patch to package/spi-tmi8152/ and added BR2_PACKAGE_SPI_TMI8152_MOTOR=y to the defconfig. That installed the TMI8152 driver as tmi8152_spi_motor.ko and added alias motor tmi8152_spi_motor under /etc/modprobe.d/ as a reliable replacement for the generic Ingenic SDK motor module.

There was an unrelated comedy interlude here. Firmware builds kept killing my graphical session, even with reduced parallelism. It looked like memory pressure, but it turned out that a short-lived Podman container exiting caused Hyprland to receive SIGTERM, after which the hy3 plugin crashed during shutdown. Keeping a persistent builder container avoided that particular trap.

Two missing pieces of initialization

Having the correct driver was necessary but not sufficient. The first cold-boot problem was power sequencing.

The motor driver could load and still fail to operate because the TMI8152 had not been enabled. GPIO 38 needed to be configured as an output and driven high before the module probed:

gpio output 38
gpio set 38 1

We put that in an early S01tmi8152-power init script. After that, the motors could home at cold boot rather than merely working after the right sequence of manual commands.

The second problem was the magenta image. The IR-cut device appeared, but the physical filter was not necessarily in the right state. Cycling it after device creation fixed the colour:

ircut off
sleep 1
ircut on

That became a later S58tmi8152-ircut init script which first waits for /dev/tmi8152_ir_cut.

Finally, the experimental profile kept its motor limits and startup position in a separate motors.json file, which had to be merged into thingino.json so they ended up in /etc/thingino.json in the image:

{
  "motors": {
    "gpio_invert": false,
    "gpio_pan": "",
    "gpio_power": 38,
    "gpio_switch": -1,
    "gpio_tilt": "",
    "homing": true,
    "invert_x": 0,
    "invert_y": 0,
    "is_spi": true,
    "pos_0": "3925,2218",
    "speed_pan": 430,
    "speed_tilt": 430,
    "steps_pan": 7850,
    "steps_tilt": 2730
  }
}

Buildroot’s per-package staging made this surprisingly easy to get wrong. During incremental builds it retained stale copies of the configuration in dependent packages. For the final image I explicitly rebuilt thingino-core, ingenic-sdk, thingino-agent and thingino-ha before repacking it.

The browser was innocent, mostly

There was still the original blank browser preview.

In Chromium, WebRTC worked. In Brave, signalling succeeded but playback did not start. The camera was sending video all along; Brave was blocking autoplay for camera.test. Granting that site Autoplay permission made the preview appear.

The mysterious browser failure from April had not been a Thingino porting problem at all.

The final flash

By this point the camera was already running the partial Thingino installation from April, so I sent the final full image through Thingino’s OTA script over SSH:

CAMERA=tplink_tapo_c210_t23n_sc3336_rtl8188ftv \
  bash scripts/fw_ota.sh \
  output/master/tplink_tapo_c210_t23n_sc3336_rtl8188ftv-3.10.14-uclibc/images/thingino-tplink_tapo_c210_t23n_sc3336_rtl8188ftv.bin \
  CAMERA_IP

A full-image update writes the data partition too. The camera came back as a THINGINO-* setup access point, so I provisioned Wi-Fi again through the captive portal and restored key-based SSH access. Thingino uses Dropbear; manual transfers from a modern OpenSSH client need scp -O.

The final 8 MiB image had this SHA-256 digest:

e546984644101070c2abf51bc60e4ec913b0d2a366d3a238a3a4f5bca37ef51f

Cold-boot test

I unplugged the camera and tested the exact image from a cold boot.

It came back on Wi-Fi. GPIO 38 was output-high. The motor and tmi8152_spi_dev modules loaded, /dev/motor and /dev/tmi8152_ir_cut existed, and motors-daemon started automatically. The camera homed and settled at 3925,2218.

I moved it by +500,+300, saw the position feedback change, moved it back and restored the startup position. I toggled the IR-cut filter and captured daylight video with normal colours.

The local stream finally had everything I wanted:

rtsp://thingino:thingino@camera.test:554/ch0

It provided H.264 video at 1920x1080 with AAC audio. The browser UI provided a working WebRTC preview and pan-and-tilt controls.

The C210 now boots independently into a fully operational local camera. No Tapo application is involved. What began as an attempt to avoid repeating my Tuya experience turned into a very enjoyable tour through U-Boot, stock Linux, SPI-controlled motors, Buildroot staging, browser autoplay policy and clanker-assisted embedded debugging.

The final fixes were small: one GPIO at the right time, one IR-cut cycle, the correct motor module and the correct configuration in the image.

There was another lesson in it too. “I cannot find this on the web” is not the same as “nobody knows this”. In small hardware projects, much of the real documentation is still a conversation in a Telegram or Discord history. Finding the people can be as important as finding the datasheet.