roleoroleo / sonoff-hack

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

Add vscode .devcontainer build #101

Closed darkxst closed 1 year ago

darkxst commented 1 year ago

I had trouble building under recent Ubuntu 22.04. Including with the current Docker file in this repo.

This is largely copied from the one in your other yi-hack repo. Just tweaked a little for this project.

roleoroleo commented 1 year ago

compile.sh works properly. pack_fw.all.sh fails when it tries to copy /home/user/x-tools/arm-sonoff-linux-uclibcgnueabi/arm-sonoff-linux-uclibcgnueabi/sysroot/lib/libcrypt.so.0 Because the toochain path is different. Only for model GK-200MP2-B. Does it work for you?

darkxst commented 1 year ago

yes, however I was passing the PATH into the sudo shell like below:

sudo --preserve-env=PATH ./scripts/pack_fw_all.sh

darkxst commented 1 year ago

We can drop the requirement to run pack_fw.all.sh as root. This avoids the PATH issues when running pack_fw as root. It should also fix the github workflow build of GK-200MP2-B image I expect.

darkxst commented 1 year ago

The uploaded github artifacts are labeled .tar.gz but actually download as zip files. Thats all a bit weird, last commit bundles them up into a single zip.

roleoroleo commented 1 year ago

Thank you for the pr.

The uploaded github artifacts are labeled .tar.gz but actually download as zip files. Thats all a bit weird, last commit bundles them up into a single zip.

I don't understand.

darkxst commented 1 year ago

The uploaded github artifacts are labeled .tar.gz but actually download as zip files. Thats all a bit weird, last commit bundles them up into a single zip.

I don't understand.

The downloaded artifact file was a zip file called for example GK-200MP2B.tar.gz.zip that contained a copy of the tar file GK-200MP2B_0.1.3.tgz