mnakada / atomcam_tools

Hack tool for atomcam and wyzecam.
Other
178 stars 22 forks source link

Add target packages #61

Closed baudev closed 1 year ago

baudev commented 1 year ago

Hi,

I'm trying to add packages to my wyze cam v3 to add features that would interest me.

So I followed the documentation and I use the buildroot configuration with the provided docker image.

In the docker container: make menuconfig
In the target packages I choose v4l2grab make

Then with scp I send the binary of output/target/usr/bin/v4l2grab in the /opt/wz_mini/bin/ folder

Except that when I run /opt/wz_mini/bin/v4l2grab on the wyze cam I get the error

-sh:  /opt/wz_mini/bin/v4l2grab: not found

Whereas the file is existing:

ls -la /opt/wz_mini/bin/
...  
-rwxrwxrwx    [...] v4l2grab
...

Did I miss something? Thanks in advance

mnakada commented 1 year ago

@baudev, The direct cause of "not found" is that the ld.so called by v4l2grab does not exist. atomcam_tools builds the kernel with glibc to support Samba or CIFS mount. wyze uses uClibc, so I don't think you can use the docker image as is. Login to the docker image and run make menuconfig and change Toolchain->C library to uClibc and build again. I don't have wyze, so I can't be sure it will work.

baudev commented 1 year ago

Thanks @mnakada for your answer!

Finally I discovered this config https://github.com/gtxaspec/wz_mini_hacks/blob/f8c1d30df7a1585aa015ba92a8af01fe37530a5f/documentation/developer_environment.md#buildroot-second and it works perfectly

It's time to play now :)