alienatedsec / yi-hack-v5

Even newer Custom Firmware for Xiaomi Cameras based on Hi3518ev200 Chipset. It includes free RTSP, ONVIF and other improvements based on the work by roleoroleo
GNU General Public License v3.0
739 stars 87 forks source link

Issues to save information also Empty data - 6CUS #372

Closed ABrauser closed 1 month ago

ABrauser commented 3 months ago

i have flashed the 6CUS "yi Outdoor" camera. i have a connection, but everytime i set the hostname and some settings, after a reboot everything is gone. it looks like it cant access some files or data and cant save them.

Hostname | (none) Hack (SD) Firmware Version | 0.4.1 Baseline Firmware Version | 0.4.1 Base Version | 3.0.0.0D_201809111054 Model Suffix | yi_outdoor Hardware ID | 6CUS Serial Number | XXXXXXXXXXXXX PTZ | no Local Time | Wed Mar 20 20:22:46 UTC 2024 Uptime | 0h 9m 12s Load Average | 5.27 4.65 2.53 Free/Total Memory | 12856/30760 KB Free SD Space | 100%

Does someone have a clue whats wrong with the camera?

alienatedsec commented 3 months ago

How did you install the latest version? From scratch or by upgrading via WebUI from the earlier pre-release?

ABrauser commented 3 months ago

from scratch. so new 32gb sd card. yi-hack-v5, home_h30, rootfs_h30 in root folder of the sd card and then rebootet.

alienatedsec commented 3 months ago

Which system did you use to extract files? Windows, MacOS, Linux?

ABrauser commented 3 months ago

Windows 10 with 7-zip.

ABrauser commented 3 months ago

i have also a yi_dome_1080p and in the folder /tmp/sd/ there is a yi_dome_1080p.conf created. but on the yi outdoor, where i have the problems no ".conf" file has been created inside /tmp/sd/ folder. i guess there must be something like yi_outdoor.conf, right?

alienatedsec commented 3 months ago

i have also a yi_dome_1080p and in the folder /tmp/sd/ there is a yi_dome_1080p.conf created. but on the yi outdoor, where i have the problems no ".conf" file has been created inside /tmp/sd/ folder. i guess there must be something like yi_outdoor.conf, right?

I have this

/tmp/sd/yi-hack-v5 # ls -l
total 1152
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 bin
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 busybox
drwxr-xr-x    7 root     root        131072 Mar 14 11:44 etc
-rwxr-xr-x    1 root     root             0 Feb 28 12:58 fw_upgrade_in_progress
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 lib
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 sbin
drwxr-xr-x    3 root     root        131072 Feb 28 12:58 script
drwxr-xr-x    4 root     root        131072 Feb 28 12:58 usr
-rwxr-xr-x    1 root     root             6 Feb 28 12:58 version
drwxr-xr-x    9 root     root        131072 Feb 28 12:57 www
/tmp/sd/yi-hack-v5 # cd ..
/tmp/sd # ls -l
total 66048
drwxr-xr-x    2 root     root        131072 Mar 20 19:12 log
drwxr-xr-x  171 root     root        131072 Mar 20 14:23 record
-rwxr-xr-x    1 root     root      67108864 Jan  1  1980 swapfile
-rwxr-xr-x    1 root     root            96 Feb 28 21:27 wd_rtsp.log
drwxr-xr-x   10 root     root        131072 Feb 28 12:58 yi-hack-v5
/tmp/sd #

No conf files

ABrauser commented 3 months ago

but there should be a .conf file right? because there is one on my working yi_dome_1080p but not on the yi_outdoor.

alienatedsec commented 3 months ago

The config is saved in the /tmp/sd/yi-hack-v5/etc/system.conf

ABrauser commented 3 months ago

ah okay that makes sense. i think the yi dome 1080p was not fully "cleaned" i think thats a left over from some other hack. anyway. what i noticed after i have set a a hostname in the config (webview) the file "hostname" has still 0 kb. also all the settings from inside the system.conf are not loading in the gui. for example the TCP Ports are empty. it looks like its not loading the values from the system.conf and saving changes back to it. image

ABrauser commented 3 months ago

any ideas why the webinterface is not readying the values from the system.conf and write them back?

ABrauser commented 3 months ago

i manually changed the settings inside the system.conf. (changed http port, activated ftp, add timezone, activated rtsp and some other stuff) after a reboot now all the informations are loading correctly in the webinterface. looks like the problem is now solved.

alienatedsec commented 3 months ago

This seems to be similar to #374

github-actions[bot] commented 2 months ago

This issue has been stale for 30 days - it will be closed within the next 7 days if not updated