roleoroleo / yi-hack-Allwinner

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

Problem after update to 0.2.8 #339

Closed RickyTR closed 2 months ago

RickyTR commented 2 years ago

I started the update from the web interface. At first it seemed that everything went well, the cam restarted after sometimes and got the ip. But web server and ssh server never starts and I can access the cam only via telnet. RTSP server also is not starting.

RickyTR commented 2 years ago

UPDATE: I started the same version with a new SD. The process completed successfully, ssh server is working, RTSP server is working, httpd server still not working. I have a DOMEX cam and use y30qa.

roleoroleo commented 2 years ago

Please, try a factory default from the web interface. And reconfigure the cam.

RickyTR commented 2 years ago

I cannot access the web interface with 0.2.8 so I cannot try the factory default.

Kaplas80 commented 2 years ago

I've had a similar problem with my IFUS (y25ga) camera. /home ran out of space and files in /home/yi-hack/www weren't copied during update, so the web interface wasn't available after reboot.

I've fixed it deleting the new rtsp server executable (/home/yi-hack/bin/rtsp_server_yi) and copying the www directory from a 9FUS camera that upgraded without problems.

roleoroleo commented 2 years ago

Ok, the problem is the out of space of the home partition. Maybe y25ga runs with very little free space.

I have to check if it's necessary to remove something.

If you aren't able to restore the cam, follow the new unbrick procedure.

roleoroleo commented 2 years ago

My y20ga, after the update to 0.2.8, is working with 1,4 MB of free space.

root@yi-hack-allwinner:~#df
Filesystem           1024-blocks    Used Available Use% Mounted on
/dev/root                 1536      1536         0 100% /
devtmpfs                 30528      1824     28704   6% /dev
/dev/mtdblock3           11776     10372      1404  88% /home
tmpfs                    32768       128     32640   0% /tmp
/dev/mmcblk0p1          956920    436844    520076  46% /tmp/sd

The free space should be enough. Check if there is some "core" file and delete it.

Kaplas80 commented 2 years ago

Free space in 9FUS after update to 0.2.8 (updated ok)

Filesystem           1024-blocks    Used Available Use% Mounted on
/dev/root                 1536      1536         0 100% /
devtmpfs                 30528      1824     28704   6% /dev
/dev/mtdblock3           11776     11188       588  95% /home
tmpfs                    32768        64     32704   0% /tmp
/dev/mmcblk0p1        31149056  29777280   1371776  96% /tmp/sd

Free space in IFUS after update to 0.2.8 (after removing rtsp_server_yi)

Filesystem           1024-blocks    Used Available Use% Mounted on
/dev/root                 1536      1536         0 100% /
devtmpfs                 30528      1824     28704   6% /dev
/dev/mtdblock3           11776     11560       216  98% /home
tmpfs                    32768        60     32708   0% /tmp
/dev/mmcblk0p1        31242240    209856  31032384   1% /tmp/sd

The only "core" file in both cases is /home/yi-hack/qigan/ko/videobuf2-core.ko

It seems that both cameras have the same total space in mtdblock3, but I don't know why IFUS has more space used than 9FUS.

EDIT: I have compared the /home files and directories in both cameras and the contents are identical except for the config files in etc and the deleted rtsp server. Maybe it's some hidden file?

roleoroleo commented 2 years ago

The jffs2 file system doesn't work well when the free space is not enough. For example, if you delete a file sometimes it happens that you can't use all the space freed up. If this is your case, the unbrick procedure is your solution.

kqv1 commented 2 years ago

I've had a similar problem with my IFUS (y25ga) camera. /home ran out of space and files in /home/yi-hack/www weren't copied during update, so the web interface wasn't available after reboot.

I've fixed it deleting the new rtsp server executable (/home/yi-hack/bin/rtsp_server_yi) and copying the www directory from a 9FUS camera that upgraded without problems.

Could someone share the www directory? I am having the same problem of accessing the web interface after upgrading to 0.2.8

bustamantemarlon commented 2 years ago

I had the same issue with losing access to the web interface after doing an online upgrade to 0.2.8 on my IFUS (y25ga) cam. I used the unbrick method to go back to stock and then installed 0.2.8 again. I checked the space and I only had 44 blocks available after a clean install.

Filesystem           1024-blocks    Used Available Use% Mounted on
/dev/root                 1536      1536         0 100% /
devtmpfs                 30528      1824     28704   6% /dev
/dev/mtdblock3           11776     11732        44 100% /home
tmpfs                    32768        44     32724   0% /tmp
/dev/mmcblk0p1         7767824     70904   7696920   1% /tmp/sd

I wasn't able to save any configuration charges. I did @Kaplas80 said and deleted /home/yi-hack/bin/rtsp_server_yi. This gave me 220 blocks free and I was able to save my configuration files.

/dev/root                 1536      1536         0 100% /
devtmpfs                 30528      1824     28704   6% /dev
/dev/mtdblock3           11776     11556       220  98% /home
tmpfs                    32768        44     32724   0% /tmp
/dev/mmcblk0p1         7767824     70904   7696920   1% /tmp/sd

I hope this helps and provides more information about this cam version. Also here's my www directory, @k-vq. I hope it helps. www.zip

kqv1 commented 2 years ago

Also here's my www directory, @k-vq. I hope it helps. www.zip

Thank you very much @bustamantemarlon

github-actions[bot] commented 3 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.