yi-hack-Allwinner
yi-hack-Allwinner copied to clipboard
Support for YI Home 3 FW 8.3.0.0A_201912271707
Hi. I just bought a Yi Home Camera on amazon.es whose name is IFUSY32VBU and fw 8.3.0.0A_201912271707.
I tried the y25ga_0.2.6 release and I think I may have bricked it (stuck with yellow led on). Interesting to note, the files on the sd card end with *.done extension...
Any clues on how I could fix it and wether it could be supported ?
Try a previous version.
Thanks but I really think I bricked it and I hadn't made any backups.
Before it did something and stayed with the blue blinking led. Then, when I tried to reset it with the button on the back it got bricked and it does nothing but lighting the yellow led, no matter whats in the sd card.
I will check if I have a backup.
Thank you, I would really appreciate that, otherwise my cam is dead.
Hello,
On Friday I bought exactly the same camera with the same type of serial number and same firmware. Same as @torcuat I tried the y25ga_0.2.6 and ended up bricking the camera after trying to reset it by hitting the reset button on the back of the camera.
The same Friday I bought exactly the same model of camera, which arrived yesterday. I did a backup correctly and instead of the last one I flashed this version y25ga_0.1.9.tar.gz (I found it in another issue). Everything ok, RTSP, web server, etc. Then I tried to update to the latest version (y25ga_0.2.6) from the web server ui.The process finished but only telnet is active, no web server, no rtsp or anything else.
The next thing I tried was to install older firmwares, from 0.1.9 upwards. The last version that works correctly is 0.2.3. If I try to flash 0.2.4, 0.2.5 or 0.2.6 I end up with telnet as the only active service. From telnet I have tried to do a ps and a top, and I don't see neither the httpd nor the ssh process running for example. The /home/yi-hack directory exists, but the /home/yi-hack/www directory does not exist.
I have tried with 3 different MicroSD (Samsung 64Gbs, Samsung 32Gbs and Sandisk 8Gbs) and with the same results.
I hope this information is helpful for debugging and that we manage to install the latest version on this camera model.
Thank you!
Ok, I will check it.
Hello,
On Friday I bought exactly the same camera with the same type of serial number and same firmware. Same as @torcuat I tried the y25ga_0.2.6 and ended up bricking the camera after trying to reset it by hitting the reset button on the back of the camera.
The same Friday I bought exactly the same model of camera, which arrived yesterday. I did a backup correctly and instead of the last one I flashed this version y25ga_0.1.9.tar.gz (I found it in another issue). Everything ok, RTSP, web server, etc. Then I tried to update to the latest version (y25ga_0.2.6) from the web server ui.The process finished but only telnet is active, no web server, no rtsp or anything else.
The next thing I tried was to install older firmwares, from 0.1.9 upwards. The last version that works correctly is 0.2.3. If I try to flash 0.2.4, 0.2.5 or 0.2.6 I end up with telnet as the only active service. From telnet I have tried to do a ps and a top, and I don't see neither the httpd nor the ssh process running for example. The /home/yi-hack directory exists, but the /home/yi-hack/www directory does not exist.
I have tried with 3 different MicroSD (Samsung 64Gbs, Samsung 32Gbs and Sandisk 8Gbs) and with the same results.
I hope this information is helpful for debugging and that we manage to install the latest version on this camera model.
Thank you!
Hi, would you be so kind as to share the backup you made, so I try to unbrick mine?
Sure thing, I can upload it in a few hours once I'm at home. @roleoroleo is there anything I have to hide of my backup with sensitive data?
Share only mtdblock3. I don't remember exactly (because it depends on the model) but it shouldn't contain sensitive data.
On Friday I bought exactly the same camera with the same type of serial number and same firmware. Same as @torcuat I tried the y25ga_0.2.6 and ended up bricking the camera after trying to reset it by hitting the reset button on the back of the camera.
The same Friday I bought exactly the same model of camera, which arrived yesterday. I did a backup correctly and instead of the last one I flashed this version y25ga_0.1.9.tar.gz (I found it in another issue). Everything ok, RTSP, web server, etc. Then I tried to update to the latest version (y25ga_0.2.6) from the web server ui.The process finished but only telnet is active, no web server, no rtsp or anything else.
Maybe a problem when the update script decompresses the archive. Probably the archive is too big for /tmp file system. I need to check it. From 0.2.3 to 0.2.4 I added 300KB.
I can try to flash 0.2.4 again and send you any log if you need it.
@torcuat here you have the backup bin file: mtdblock3.bin
@pablitofernandez Could you try this version? y25ga_0.2.6.tar.gz
@roleoroleo It's working!!! Thanks so much! So it was a problem about the /tmp file system?
I can send you any log if you want more info.
Thanks!
Ok just some quick first notes, sometimes when I try to access the RTSP stream with VLC for example, the camera restarts on its own. I have disabled all services except: Httpd, SSH, RTSP and NTPD.
Probably a problem with the size of /tmp. I added swap memory during setup phase.
To avoid restarts, enable swap file.
You are right again, with swap file I have no more restarts. Now the problem I have is I cant have audio enabled in the rtsp stream. I have tried all audio options but I cant see the audio stream being transmited. I don't know if maybe its better to open another issue.
Thanks!
EDIT: I have user/password enabled for the rtsp stream.
Please, try it without user and password.
I have just tried with no user/password, Same results.
Also If I try to stream the audio only stream it does not connect to it.
Just for testing purposes I have killed the process and launch it manually like I saw in another issue:
killall wd_rtsp.sh
killall rRTSPServer
RRTSP_RES=high RRTSP_AUDIO=aac RRTSP_USER=test RRTSP_PWD=test ./rRTSPServer
And now I see this in VLC:
So launching it manually seems to be working 🤷♂️
Some more information, although I can see the codec of the audio transmitting in VLC I can't actually hear anything coming from the cam. There is no sound.
Please, post your config.
Ok its quite erratic, now it seems to be working (with sound) if I put this command manually:
RRTSP_RES=high RRTSP_AUDIO=aac RRTSP_USER=test RRTSP_PWD=test ./rRTSPServer
This is my system.conf
HTTPD=yes
TELNETD=no
SSHD=yes
FTPD=no
BUSYBOX_FTPD=no
DISABLE_CLOUD=no
REC_WITHOUT_CLOUD=no
MQTT=no
RTSP=yes
RTSP_STREAM=high
RTSP_AUDIO=aac
SPEAKER_AUDIO=yes
ONVIF=yes
ONVIF_WSDD=yes
ONVIF_PROFILE=high
ONVIF_WM_SNAPSHOT=no
NTPD=yes
NTP_SERVER=pool.ntp.org
PROXYCHAINSNG=no
SWAP_FILE=yes
RTSP_PORT=554
ONVIF_PORT=80
HTTPD_PORT=8080
USERNAME=########
PASSWORD=########
TIMEZONE=CET-1CEST,M3.5.0,M10.5.0/3
FREE_SPACE=0
FTP_UPLOAD=no
FTP_HOST=
FTP_DIR=
FTP_DIR_TREE=no
FTP_USERNAME=
FTP_PASSWORD=
FTP_FILE_DELETE_AFTER_UPLOAD=yes
SSH_PASSWORD=############
CRONTAB=
The config is ok.
Could you check the command line when the daemon starts (when audio doesn't work)?
Get the process id with ps and get the command line with:
cat /proc/PID/cmdline
The output is just:
rRTSPServer
Please try the environment:
cat /proc/PID/environment
There you go
USER=rootRRTSP_MODEL=y25gaRRTSP_AUDIO=aacSHLVL=5LD_LIBRARY_PATH=/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/home/lib:/home/yi-hack/lib:/tmp/sd/yi-hack/libHOME=/OLDPWD=/partitions=boot@mtdblock1:rootfs@mtdblock2:home@mtdblock3:env@mtdblock4:mfg@mtdblock5:conf@mtdblock6:UDISK@mtdblock7earlyprintk=sunxi-uart,0x05000000boot_type=3cma=0TERM=vt102PATH=/usr/bin:/usr/sbin:/bin:/sbin:/home/base/tools:/home/app/localbin:/home/base:/home/base/tools:/home/yi-hack/bin:/home/yi-hack/sbin:/home/yi-hack/usr/bin:/home/yi-hack/usr/sbin:/tmp/sd/yi-hack/bin:/tmp/sd/yi-hack/sbinRRTSP_RES=highuboot_message=2018.05-00002-g932b424-dirty(12/13/2019-18:21:53)RRTSP_PWD=*********SHELL=/bin/shRRTSP_USER=*******PWD=/home/appTZ=CET-1CEST,M3.5.0,M10.5.0/3RRTSP_PORT=554
BTW /proc/PID/environment is not found I had to type /proc/PID/environ
The environment is ok. The problem happens only with aac or even with xlaw?
I have tried with all audio modes. Same result.