roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
754 stars 90 forks source link

Unable to download firmware file #675

Closed rt400 closed 7 months ago

rt400 commented 11 months ago

Hi, I have 2 camera r35gb, r30gb. Both have error "Unable to download firmware file" when try to update firmware from web. thanks for your help...

roleoroleo commented 11 months ago

Here the piece of code:

        /tmp/sd/yi-hack/usr/bin/wget https://github.com/roleoroleo/yi-hack-Allwinner-v2/releases/download/$LATEST_FW/${MODEL_SUFFIX}_${LATEST_FW}.tgz
        if [ ! -f ${MODEL_SUFFIX}_${LATEST_FW}.tgz ]; then
            printf "Content-type: text/html\r\n\r\n"
            printf "Unable to download firmware file."
            exit
        fi

wget fails, try to run it manually inside the cam:

mkdir -p /tmp/sd/.fw_upgrade
cd /tmp/sd/.fw_upgrade
/tmp/sd/yi-hack/usr/bin/wget https://github.com/roleoroleo/yi-hack-Allwinner-v2/releases/download/0.2.9/r30gb_0.2.9.tgz
rt400 commented 11 months ago

can't run the commands, keep said "Read-only file system"

roleoroleo commented 11 months ago

Maybe your sd card is mounted in read-only mode. Probably a little corruption. Extract from the cam and try to repair it with a PC.

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.