ipctool icon indicating copy to clipboard operation
ipctool copied to clipboard

Cameras USB

Open AlvaRoBot7 opened this issue 1 year ago • 3 comments

Can someone help me? I have some cameras but I don't know how to identify them. I don't know if I can use IPCTool and how to use it.

AlvaRoBot7 avatar Oct 19 '25 15:10 AlvaRoBot7

Have the same Issue!...

Neither on Linux Mint (64bit) nor on Windows 11 (64bit) got it working... Pls more Information... Thanks

Big111156 avatar May 10 '26 11:05 Big111156

ipctool is not a desktop program — it is a small static binary that you copy onto the camera and run there. It reads the camera's own SoC registers (/dev/mem), its I2C/SPI buses, /proc and the MTD flash partitions, so on a PC there is simply nothing for it to find.

That is why nothing happened on Linux Mint or Windows 11:

  • there is no Windows build at all — the release assets are Linux static binaries for arm32 (ipctool), mips32 (ipctool-mips32) and arm64 (ipctool-arm64);
  • on an x86 Linux desktop it does compile and start, but SoC detection fails and it exits silently with status 1. (I just reproduced that on a PC: no output, echo $? → 1. The silence is a rough edge on our side — it should tell you why it gave up.)

How it is actually used

  1. Get a shell on the camera — telnet, SSH, or the UART console. The README also lists NFS / TFTP / uget / telnet_upload.py tricks for cameras with no working network file transfer.
  2. Check the camera's CPU, not your PC's: cat /proc/cpuinfo on the camera.
    • ARMv5/ARMv7 (HiSilicon, Goke, SigmaStar, Xiongmai, Fullhan, Novatek…) → ipctool
    • MIPS (Ingenic T10…T41) → ipctool-mips32
    • aarch64 (newer HiSilicon, e.g. Hi3519DV500) → ipctool-arm64
  3. Copy it to /tmp — that is tmpfs and usually the only writable place with room — then chmod +x /tmp/ipctool and run it as root. Most cameras ship no sftp-server, so plain scp fails; use scp -O ipctool root@CAMERA_IP:/tmp/, or download it on the camera itself from the release URL in the README.
  4. ./ipctool with no arguments prints the full YAML report. ipctool -c, -s, -t are the one-line forms (chip / sensor / temperature).

If you meant USB webcams

The issue title says "Cameras USB". If these are USB (UVC) webcams rather than network cameras, ipctool cannot help — they run no Linux of their own for it to execute on. Use lsusb -v and v4l2-ctl --list-devices / v4l2-ctl --all on the host PC instead.

If it is a network camera and you still get empty output

Empty output from a root shell on the camera means "SoC not recognised". Post these from the camera and we can tell you what the hardware is and whether support can be added:

cat /proc/cpuinfo
cat /proc/iomem      # root required
cat /proc/mtd
dmesg | head -40

openipc-ai avatar Sep 16 '26 08:09 openipc-ai

Closing as answered — the short version is that ipctool runs on the camera, not on a desktop, and there is no Windows build.

One thing did change out of this report: as of 0b2263a a build that cannot recognise the hardware no longer exits without a word, it says so and shows what it looked at. On a PC that now reads:

ipctool: SoC not recognised, no hardware report possible.
  no UART0 entry in /proc/iomem, which zeroes every
  address unless you are root -- try again as root
  no vendor matches /proc/cpuinfo: GenuineIntel
This is an x86 build. ipctool probes camera hardware
directly, so it has to run on the camera itself, not on a
desktop.

It will be in the next latest build. If you get a shell on a camera and it still comes up empty, please open a new issue with the output it now prints plus cat /proc/cpuinfo and cat /proc/iomem — happy to look.

openipc-ai avatar Sep 16 '26 08:09 openipc-ai