Filipowicz251 / mijia-1080P-hacks

436 stars 66 forks source link

updating problem #18

Closed ferdydek closed 6 years ago

ferdydek commented 6 years ago

Tried several times and I'm always failing to update to latest version after the hack.

Always ending up on the recovery image, then installing the hack. Have access through SSH. Then I'm trying to update the fw via MiHome app and always end up with latest version but the hack is gone.

last info before update starts:

Oct 25 05:12:09 192.168.2.140 Oct 25 05:12:09 miio_avstreamer: [DEBUG] otd_recv_handler_block(), sockfd: 16, msg: {"method":"miIO.get_ota_progress","params":[],"id":3952098,"from":"4"}, length: 70 bytes
Oct 25 05:12:09 192.168.2.140 Oct 25 05:12:09 miio_avstreamer: [DEBUG] msg_dispatcher, msg: {"method":"miIO.get_ota_progress","params":[],"id":3952098,"from":"4"}, strlen: 70, len: 70
Oct 25 05:12:09 192.168.2.140 Oct 25 05:12:09 miio_avstreamer: [DEBUG] otd_recv_handler_block(), sockfd: 16, msg: {"method":"miIO.get_ota_progress","params":[],"id":3121220,"from":"4"}, length: 70 bytes
Oct 25 05:12:09 192.168.2.140 Oct 25 05:12:09 miio_avstreamer: [DEBUG] msg_dispatcher, msg: {"method":"miIO.get_ota_progress","params":[],"id":3121220,"from":"4"}, strlen: 70, len: 70
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [Motion], Region: 31, md_cnt:[32] 
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [DEBUG] SID[0], Handle CMD: [2FF] 
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [INFO] IOTYPE_USER_IPCAM_STOP, ch:0, avIndex:0
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [DEBUG] unregedit_client_from_video OK
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [DEBUG] SID[0], Handle CMD: [301] 
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [INFO] IOTYPE_USER_IPCAM_AUDIOSTOP, ch:0, avIndex:0
Oct 25 05:12:10 192.168.2.140 Oct 25 05:12:10 miio_avstreamer: [DEBUG] unregedit_client_from_audio OK
Oct 25 05:12:12 192.168.2.140 Oct 25 05:12:12 miio_avstreamer: [Motion], Region: 15, md_cnt:[20] 
Oct 25 05:12:12 192.168.2.140 Oct 25 05:12:12 miio_avstreamer: [Motion], Region: 15, md_cnt:[4] 
Oct 25 05:12:12 192.168.2.140 Oct 25 05:12:12 miio_avstreamer: [DEBUG] otd_recv_handler_block(), sockfd: 16, msg: {"method":"miIO.get_ota_progress","params":[],"id":3073289,"from":"4"}, length: 70 bytes
Oct 25 05:12:12 192.168.2.140 Oct 25 05:12:12 miio_avstreamer: [DEBUG] msg_dispatcher, msg: {"method":"miIO.get_ota_progress","params":[],"id":3073289,"from":"4"}, strlen: 70, len: 70
Oct 25 05:22:48 192.168.2.140 Oct 25 05:22:48 miio_bt: [DEBUG] [miio_client_sock_callback]
Oct 25 05:22:48 192.168.2.140 Oct 25 05:22:48 miio_bt: [DEBUG] rpc cmd len:70, msg: {"method":"miIO.get_ota_progress","params":[],"id":3440021,"from":"4"} 
Oct 25 05:22:48 192.168.2.140 Oct 25 05:22:48 miio_bt: [DEBUG] json verify ok.
Oct 25 05:22:59 192.168.2.140 Oct 25 05:22:59 miio_bt: [DEBUG] [miio_client_sock_callback]
Oct 25 05:22:59 192.168.2.140 Oct 25 05:22:59 miio_bt: [DEBUG] rpc cmd len:70, msg: {"method":"miIO.get_ota_progress","params":[],"id":3798094,"from":"4"} 
Oct 25 05:22:59 192.168.2.140 Oct 25 05:22:59 miio_bt: [DEBUG] json verify ok.
Oct 25 05:23:02 192.168.2.140 Oct 25 05:23:02 miio_bt: [DEBUG] [miio_client_sock_callback]
Oct 25 05:23:02 192.168.2.140 Oct 25 05:23:02 miio_bt: [DEBUG] rpc cmd len:70, msg: {"method":"miIO.get_ota_progress","params":[],"id":3798094,"from":"4"} 
Oct 25 05:23:02 192.168.2.140 Oct 25 05:23:02 miio_bt: [DEBUG] json verify ok.
Oct 25 05:23:05 192.168.2.140 Oct 25 05:23:05 miio_bt: [DEBUG] [miio_client_sock_callback]
Oct 25 05:23:05 192.168.2.140 Oct 25 05:23:05 miio_bt: [DEBUG] rpc cmd len:380, msg: {"method":"miIO.ota","params":{"app_url":"https://cdn.fds-ssl.api.xiaomi.com/miio_fw/5529fa82e3eb8659f17723922accb56b_upd_mijia.camera.v1.bin?GalaxyAccessKeyId=5721718224520&Expires=1516681385000&Signature=0f1XJVXo34Cw8FAfhDCtkBZMIw8=&uniqRequestId=17437973","file_md5":"5529fa82e3eb8659f17723922accb56b","install":"1","proc":"dnld install","mode":"normal"},"id":70544,"from":"4"} 
Oct 25 05:23:05 192.168.2.140 Oct 25 05:23:05 miio_bt: [DEBUG] json verify ok.
Oct 25 05:23:07 192.168.2.140 Oct 25 05:23:07 miio_ota: OTA: before we start, free out more memory...

then the application is downlaoded so camera is basically frozen, after few minutes even though the MiHome app does not indicate it, the upgrade is successful and device reboots:

Oct 25 05:23:07 192.168.2.140 Oct 25 05:23:07 miio_ota: OTA: before we start, free out more memory...
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:20 miio_ota: OTA: copy log to TF.
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: Valhalla Restoring Key
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: Calling Inject
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: ----------------------------------------------------
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota:  Inject /tmp/inject.sh exist
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: Injector
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: ----------------------------------------------------
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota:  /proc/mtd
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: ----------------------------------------------------
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: dev:    size   erasesize  name
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd0: 00050000 00010000 "UBOOT"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd1: 002a0000 00010000 "KERNEL"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd2: 00a00000 00010000 "ROOTFS"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd3: 002e0000 00010000 "DATA"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd4: 00010000 00010000 "CONFIG"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd5: 00010000 00010000 "FACTORY"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: mtd6: 01000000 00010000 "ALL"
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota:  mount
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: ----------------------------------------------------
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: rootfs on / type rootfs (rw)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: /dev/root on / type squashfs (ro,relatime)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: devtmpfs on /dev type devtmpfs (rw,relatime,size=62668k,nr_inodes=15667,mode=755)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: proc on /proc type proc (rw,relatime)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: tmpfs on /tmp type tmpfs (rw,relatime)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: tmpfs on /var type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: tmpfs on /mnt/media type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: sysfs on /sys type sysfs (rw,relatime)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: /dev/mtdblock3 on /mnt/data type jffs2 (rw,relatime)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: /dev/mmcblk0p1 on /mnt/media/mmcblk0p1 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: /dev/mmcblk0p1 on /tmp/sd type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: tmpfs on /etc type tmpfs (rw,relatime)
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota:  lsof /mnt/data
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: ----------------------------------------------------
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /dev/console
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /dev/console
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /dev/console
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /var/log/miio_client.log
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[949]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[950]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[951]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  anon_inode:[timerfd]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  anon_inode:[timerfd]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  anon_inode:[timerfd]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[1710]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[1101]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[1752]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  pipe:[1754]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  pipe:[1754]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[1755]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 516 /bin/busybox    /mnt/data/ot_wifi_tool/miio_client_helper_nomqtt.sh
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota /dev/null
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota pipe:[973]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota /dev/console
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota socket:[1100]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota anon_inode:[timerfd]
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   /dev/null
Oct 25 05:30:21 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   pipe:[1750]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   /dev/console
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   socket:[1751]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: lsof /tmp/ld-uClibc.so.0
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /dev/console
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /dev/console
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /dev/console
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  /var/log/miio_client.log
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[949]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[950]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[951]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  anon_inode:[timerfd]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  anon_inode:[timerfd]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  anon_inode:[timerfd]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[1710]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 515 /mnt/data/ot_wifi_tool/miio_client  socket:[1755]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 516 /bin/busybox    /mnt/data/ot_wifi_tool/miio_client_helper_nomqtt.sh
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota /dev/null
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota pipe:[973]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota /dev/console
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota socket:[1100]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 530 /mnt/data/miio_ota/miio_ota anon_inode:[timerfd]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   /dev/null
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   pipe:[1750]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   /dev/console
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:21 miio_ota: 973 /mnt/data/ot_wifi_tool/miio_recv_line   socket:[1751]
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: Lsof only pid
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 515
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 530
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 530
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 530
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 530
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 530
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 973
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 973
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 973
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: 973
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: #KILL#
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: lsof
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: ----------------------------------------------------
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: #@@#
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota:  umount /dev/mtdblock3
Oct 25 05:30:22 192.168.2.140 Oct 25 05:30:22 miio_ota: ----------------------------------------------------
Oct 25 05:30:22 192.168.2.140 Oct 25 04:30:22 miio_ota:  mount /tmp/Key
Oct 25 05:30:22 192.168.2.140 Oct 25 04:30:22 miio_ota: ----------------------------------------------------
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: after mount...
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: mount
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: ----------------------------------------------------
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: rootfs on / type rootfs (rw)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: /dev/root on / type squashfs (ro,relatime)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: devtmpfs on /dev type devtmpfs (rw,relatime,size=62668k,nr_inodes=15667,mode=755)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: proc on /proc type proc (rw,relatime)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: tmpfs on /tmp type tmpfs (rw,relatime)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: tmpfs on /var type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: tmpfs on /mnt/media type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: sysfs on /sys type sysfs (rw,relatime)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: /dev/mmcblk0p1 on /mnt/media/mmcblk0p1 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: /dev/mmcblk0p1 on /tmp/sd type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: tmpfs on /etc type tmpfs (rw,relatime)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: /dev/mtdblock3 on /tmp/Key type jffs2 (rw,relatime)
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: Listing FT
Oct 25 05:30:23 192.168.2.140 Oct 25 04:30:23 miio_ota: ----------------------------------------------------
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: total 4294967296
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: drwxr-xr-x    2 root     root        707626 Sep 13 12:01 .
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: drwxr-xr-x   13 root     root        707626 Jan  1  1970 ..
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: -rwxr-xr-x    1 root     root     1168231812138 Sep 13 12:01 prikey.pem
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: -----BEGIN PUBLIC KEY-----
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqptSAi12ENcvDnSmnEsXeq9Zp
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: qq8uc3PwIcq6vuP7djavTHlhXPEgTOp8y965nQSbqt/R8IcxfCLFxnNGmFz5xNpP
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: 4jfccmNzHp9OqTD7xnhDtLZhAhnEWCA2nIvIdwaW6XxKmVhRJ8y56Mr8QEaIj4hk
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: snANL3CJnlW6JcUdmwIDAQAB
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: -----END PUBLIC KEY-----
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: cp /tmp/sd/tools/prikey.pem /tmp/Key/ft/prikey.pem 
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:23 miio_ota: ----------------------------------------------------
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: Before copying...done
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: -----BEGIN RSA PRIVATE KEY-----
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: MIICXAIBAAKBgQC2Og1+zeBxdNQsZ4Vd5lrWKkavrRcxord6KlxCAKpOPnYOvVc6
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: PVGASJMTZLT+ZTgNciCcfVu0WHFrisn0zRAxLimoNK/VELdQCE+T40ewouWBI/gJ
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: Uy56OXcqgKzVZPPJFCpGHl1bT+EYM83nBIX0SOdI23pysuchCpfil3PkDwIDAQAB
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: AoGAU2Eeua20C9XcG3FGqd90Ith3PXzixvhgIYruadjqFCEqXbYvClvyRdNvUIlc
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: 86YWzrgwycnmQw/Q3ddEbznBNSnIbmKa0kMPndZqKwQV5SSmai7mfIzavzXxmpYN
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: zyxmKZOX6qAiUKW6z2MkPL9yGoOaU8DgLds98F2dnFU1cJkCQQDhR9+kqMwJs0YJ
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: ikWbhRiwxnZHAL4sIbuYyejG/mmhMC0X7RNL7orSuUOLme7Jb8sSLMqNWfJEOYt4
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: IQEDhE/DAkEAzxM+3lX+05+2c5doMlML9ZuvPbOxiMVKA7DdBoCx1btPwG7UufUs
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: DoUw0JG9yfsOZsa5UejRIRqSRagqd/ZBxQJAFlADE5DwXImYBzvdtxCQqHmPn2qw
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: aziQFwrwdj0egyt9W+BMR/oBX+ufiAUgBG2BJHSxPxzIhP9aE/TY39tL9wJALMaR
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: kovvxRzE2+vCSRdx/5LBassfOV7HqVKmCFDtozSUgxyz/N3Jv/4G1yKccj9KFukj
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: i1WXWtwfAtbhD/18rQJBAMleTwLdcBypljiWT2a6w779GT+7Hh1Wf9YKi0FeX/HO
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: UREzEf+R3IvncRA1Jhu/ATcZ6ZZ7vBVcoHO0Y9Aqd4U=
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: -----END RSA PRIVATE KEY-----
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 init: starting pid 1092, tty '': '/etc/init.d/rcK'
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota:  Inject Success
Oct 25 05:30:24 192.168.2.140 Oct 25 04:30:24 miio_ota: OTA: about to reboot......
Oct 25 05:30:25 192.168.2.140 Oct 25 04:30:24 init: starting pid 1108, tty '': '/sbin/swapoff -a'
Oct 25 05:30:25 192.168.2.140 Oct 25 04:30:24 init: starting pid 1109, tty '': '/bin/umount -a -r'
Oct 25 05:30:25 192.168.2.140 Oct 25 04:30:25 init: The system is going down NOW!

from this point on there is no access to the SSH. Scenario is always the same.

any ideas?

willthrom commented 6 years ago

Could you try to manually delete the FT folder in the SDCARD... after you are in 139

powerwade commented 6 years ago

Hi, although I am not the OP I have the same issue. After upgrading to 139 the hack is gone (no ssh, rtsp access) - even I remove the 'ft' dir in the SD. Could it be that the camera dials home somehow with 139 and blocks the initial hack/script to run?

willthrom commented 6 years ago

The 139 changes the logic but the "tools" should managed that. In the logs you should see " miio_ota: Inject Success" as it is happening to the OP

I have created a new release (attached), please replace the one in the SDCARD and run the process again.

release0.6c.zip

Send the folder log too next time. (attach everything to a zip instead of copy-paste the logs as a comment, I cannot read half of the lines)

ferdydek commented 6 years ago

OK. Starting the process will post once its complete. meantime, is this a typo in the language notification part of the script (I think its there since ever):

    parent=`ls -al /mnt/data/sounce/booting`

/mnt/data/sounce/ or /mnt/data/sound/ ? when you go from the recovery firmware and run valhalla first time the sound folder changes to:

# ls /mnt/data/sound/
bin      etc      lib      linuxrc  mnt      proc     run      sys      usr
dev      gm       lib32    media    opt      root     sbin     tmp      var
#
willthrom commented 6 years ago

@ferdydek that was fixed in the latest release...

https://github.com/Filipowicz251/mijia-1080P-hacks/releases/tag/0.6b

it seems in the release page version is in the top, instead of b... when they were released in a different order...

willthrom commented 6 years ago

Fixed release page. Version 0.6c is the latest.

ferdydek commented 6 years ago

To give full image of the upgrade process, the MiHome app shows progress only up to 69%, then rolls back to the "old version <> new version, update" screen, but the camera's orange led keeps flashing and the update will eventually complete (and camera will reboot with the click of night-vision switch). 6c_upgrade_logs.zip After the upgrade the SSH and RTSP is no longer working. ft folder is automatically deleted. MiHome normally detects the camera and work OK (except date)

ferdydek commented 6 years ago

I've reset everything, went back to _099, hack works but now cant install the update. Should I change the DISABLED_OTA=1 for it to actually go through ? s1.6c.zip

willthrom commented 6 years ago

:) yep, set it to 0 to be able to upgrade.

ferdydek commented 6 years ago

issue in my case is that initial run of tool against version .099 removes the ft folder. recreating (creating backup ft folder and renaming it to ft via ssh) it before update solves the issue. closing issue.

AshPowell commented 6 years ago

@willthrom Will this be automated as part of the hack or needed to be done manually going forward?

willthrom commented 6 years ago

it was already part of the version 0.7.

Get the latest 0.7.1 in any case.

AshPowell commented 6 years ago

Ah ok then it still is broke here then... Works on .099 but no longer available after firmware update

willthrom commented 6 years ago

Could you upload the logs files and the log folder?

AshPowell commented 6 years ago

Archive.zip

Yep here you go...

willthrom commented 6 years ago

@AshPowell

It seems there were some error when trying to upgrade to the latest version. Oct 29 18:04:04 kernel: [ 360.390000] Node totlen on flash (0x0000000d) != totlen from node ref (0x00000034) Oct 29 18:04:04 kernel: [ 360.400000] Node totlen on flash (0x6fc2390c) != totlen from node ref (0x00000308) Oct 29 18:04:04 kernel: [ 360.420000] Node totlen on flash (0x00000004) != totlen from node ref (0x00000044)

From what version were you upgrading?

Can you try upgrade with RTSP off?

AshPowell commented 6 years ago

From the version in 0.3 release as per docs.

Will try with rtsp off and report back

AshPowell commented 6 years ago

No joy still same... upgrades fine but the hack isnt loading

willthrom commented 6 years ago

mmm, that is weird.. if you check "https://github.com/Filipowicz251/mijia-1080P-hacks/issues/21#issuecomment-340279392" you can see someone having your same problem and after following the instructions they make it work.

Note. from the 0.3 release you only need the ft_recovery.bin file.. the rest has to come from the 0.7.1 release

AshPowell commented 6 years ago

Ah ok I just disabled rtsp I didn't adjust the other configs... Will try that tomorrow. Thanks!