biemster / xm510-utils

Utilities to run on xm510 based IP cams
4 stars 0 forks source link

cannot run ftp on camera #1

Closed schneemaier closed 3 years ago

schneemaier commented 3 years ago

Hi, i am trying to figure out what i am doing wrong. I followed the instructions and now i have the ftp binary on the camera, However when i try to run it i get an error: /bin # ftp -/bin/sh: ftp: not found I think the binary has the correct permissions: /bin # ls -l total 446 .... -rwxrwxr-x 1 1000 232 5268 Dec 31 1969 ftp ... -rwxr-xr-x 1 1000 232 55300 Dec 31 1969 ipc_chip_info

I also have ipc_chip_info added to the firmware and it works fine: /bin # ipc_chip_info

chip: vendor: Xiongmai model: XM510 ethernet: mac: "00:12:16:a3:xx:xx" rom:

Thanks

biemster commented 3 years ago

I've changed the clib from static musl to dynamic uclib in commit 3288d73, since that worked on my camera. Could you try to compile with static musl by reverting this change in your local workdir?

biemster commented 3 years ago

Also, in the mean time I found a way more capable firmware (with proper ftp client) for my xm510 came here: https://zftlab.org/pages/2018010700.html

So I kind of stopped using this ftp solution altogether, but have a look if my suggestion above works for you.

schneemaier commented 3 years ago

Thanks for the answer. I will try now both compiler on my camera.

Also thanks for the link of zftlab.org. It looks really interesting.

schneemaier commented 3 years ago

DId you see this project: https://github.com/OpenIPC/openipc-2.1 They are planning xm510 support, though it is not working yet

biemster commented 3 years ago

Very interesting indeed, I've been following their progress in the Telegram group for a while (where they just announced they will stop providing public downloads?)