roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

Fixes /etc issuesfor V5520.2053.0379build20220208 #96

Closed puuu closed 1 year ago

puuu commented 1 year ago

This pull request fixes some issues with V5520.2053.0379build20220208:

All of these changes should not change the behavior in previous firmware versions.

There are other not yet addressed issues (see also #85):

puuu commented 1 year ago

libcrypt.so.0 is already available in the cross link toolchain. The last commit copies that file from there.

ConorIA commented 1 year ago

Hi @puuu, given that @roleoroleo won't be able to support our version of the camera, would you be willing to maintain a fork with your changes? (@wildrat would also benefit).

puuu commented 1 year ago

PR #98 solves the the remaining problem of a missing ptz lib.

roleoroleo commented 1 year ago

The only problem I found in this PR is the mount of /etc/hostname (system.sh). The file doesn't exist, so the mount fails. We need a touch /etc/hostname at line 49.

puuu commented 1 year ago

The file doesn't exist, so the mount fails.

I see, it do not exists in both firmware. I revert it back to cp. In the newer firmware, we can not create and use /etc/hostname at all.

roleoroleo commented 1 year ago

Thank you very much for your code.