roleoroleo / yi-hack-Allwinner-v2

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

Hack not going through for one 1 SD after setting up 5 others #880

Closed gl2007 closed 1 month ago

gl2007 commented 1 month ago

I wrote about the issues I was having setting up my Yi Home Cameras here.

With the steps below, I was able to get 5 of the cameras setup and the http://camip working:

  1. Remove the SD card. 2. Reset the camera and connect to Yi Home app. 3. Prep the SD card by formatting if required (via Windows 10/USB 2.0 and/or the Kami Home app), copying the hack files/folders. 4. Insert into the camera and wait for it to install the hack.

For the 6th camera, I have tried the above steps 2-3 times. The SD card seems to be identified, and the hack "seems" to be installed as I see the backup folder created and the factory folder renamed to factory.done. However, the url http://cam6ip isn't working and says refused to connect.

Now, I am confused as to what is going wrong and where.

Do you any ideas as to what is happening and if log would reveal anything?

Update: I added the below to the shell script lower_half_init.sh at the top, below the comments, so I can see what is going on when the hack is being applied:

modified for output&error redirection

outputf=/tmp/sd/hackoutput.txt

exec >> $outputf exec 2>&1

See the output file attached. hackoutput.txt

gl2007 commented 1 month ago

Turns out that the camera was for some reason having issues with the SD card. I swapped out the SD card with another one and it worked. (had worked all along earlier AFAIK). Onto the next one.