jymbob / chuangmi-720-hack

Collection of modifications for the Xiaomi Chuangmi 720 WiFi Camera
25 stars 8 forks source link

Errors Load custom software #5

Open StormProff opened 5 years ago

StormProff commented 5 years ago

I did everything according to the instructions; access via telnet was, In the third step, "Load custom software", the camera flashes blue, does not connect.

changed settings:

TIMEZONE="MSK-3MSD"
WIFI_SSID="WiFi_2018"
WIFI_PASS="wf2018wf"

There are a lot of errors in the log, help, please, fix it ft_boot.log :


Running Mijia 720P hack

Mijia 720P hack configuration
  ROOT_PASSWORD=1234qwer
  WIFI_SSID=WiFi_2018
  WIFI_PASS=wf2018wf
  TIMEZONE=MSK-3MSD
  NTP_SERVER=pool.ntp.org
  ENABLE_SYSLOG=0
  DISABLE_CLOUD=0
  DISABLE_OTA=0
  ENABLE_TELNETD=0
  ENABLE_SSHD=0
  ENABLE_HTTPD=1
  ENABLE_FTPD=0
  ENABLE_SAMBA=0
  ENABLE_RTSP=0
  RTSP_OPTIONS=
  SOUND_EN=0
Configure time zone
Setting root password
Changing password for root
New password: 
Bad password: too weak
Retype password: 
Password for root changed by root
Setting Samba root password
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /tmp/sd/mijia-720p-hack/tmp/samba/passdb.tdb file.
account_policy_get: tdb_fetch_uint32 failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for type 10 (refuse machine password change), returning 0
Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
Added user root.
Configure WiFi
Imporve OTA script
Executing /mnt/data/test/boot.sh
Starting web server
OK
ntpd: bad address 'pool.ntp.org'
jymbob commented 5 years ago

Can you post the contents of mijia-720p-hack.cfg?

On Mon, 12 Nov 2018, 11:45 StormProff, notifications@github.com wrote:

I did everything according to the instructions; access via telnet was, In the third step, "Load custom software", the camera flashes blue, does not connect.

settings set such:

ENABLE_HTTPD=1 TIMEZONE="UTC+3" WIFI_SSID="WiFi_2018" WIFI_PASS="wf2018wf"

There are a lot of errors in the log, help, please, fix it ft_boot.log :

Running Mijia 720P hack

Mijia 720P hack configuration ROOT_PASSWORD= WIFI_SSID=WiFi_2018 WIFI_PASS=wf2018wf TIMEZONE=UTC+3 NTP_SERVER= ENABLE_SYSLOG= DISABLE_CLOUD= DISABLE_OTA= ENABLE_TELNETD= ENABLE_SSHD= ENABLE_HTTPD=1 ENABLE_FTPD= ENABLE_SAMBA= ENABLE_RTSP= RTSP_OPTIONS= SOUND_EN= sh: bad number Configure time zone WARN: root password must be set for SSH and SAMBA /tmp/sd/mijia-720p-hack/scripts/configure_wifi: /tmp/sd/mijia-720p-hack.cfg: line 7: : not found /tmp/sd/mijia-720p-hack/scripts/configure_wifi: /tmp/sd/mijia-720p-hack.cfg: line 9: : not found Configure WiFi sh: bad number sh: bad number /tmp/sd/mijia-720p-hack/scripts/S50disable_ota: /tmp/sd/mijia-720p-hack.cfg: line 7: : not found /tmp/sd/mijia-720p-hack/scripts/S50disable_ota: /tmp/sd/mijia-720p-hack.cfg: line 9: : not found Imporve OTA script Executing /mnt/data/test/boot.sh sh: bad number sh: bad number /tmp/sd/mijia-720p-hack/scripts/S99lighttpd: /tmp/sd/mijia-720p-hack.cfg: line 7: : not found /tmp/sd/mijia-720p-hack/scripts/S99lighttpd: /tmp/sd/mijia-720p-hack.cfg: line 9: : not found Starting web server OK sh: bad number sh: bad number sh: bad number sh: bad number ntpd: bad address ''

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jymbob/chuangmi-720-hack/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AD9NFSCctpFjLv4WaLnoFlQHRaux-PjEks5uuV9vgaJpZM4YZfOm .

StormProff commented 5 years ago

this is it

## Password for root user, needed for SSH server and Samba R/W access
ROOT_PASSWORD="1234qwer"
## Set WIFI STA SSID, when empty no configuration is done
WIFI_SSID="WiFi_2018"
## Set WIFI STA password
WIFI_PASS="wf2018wf"
## Set timezone -> http://svn.fonosfera.org/fon-ng/trunk/luci/modules/admin-fon/root/etc/timezones.db
TIMEZONE="MSK-3MSD"
## Prefered NTP server
NTP_SERVER="pool.ntp.org"
## Start syslog (0/1)
ENABLE_SYSLOG=0
## Total Disconnect from Xioami servers, includes disable of streaming and OTA updater (0/1)
DISABLE_CLOUD=0
## Manage the camera via cloud but prevent online updates (0/1)
DISABLE_OTA=0
## Start telnet server at system boot (0/1)
ENABLE_TELNETD=0
## Start SSH server at system boot (0/1)
ENABLE_SSHD=0
## Start web server at system boot (0/1)
ENABLE_HTTPD=1
## Start FTP server at system boot (0/1)
ENABLE_FTPD=0
## Start samba server at system boot (0/1)
ENABLE_SAMBA=0
## Start local streaming server at system boot (0/1)
ENABLE_RTSP=0
## Disable the execution of the hack scripts (0/1)
DISABLE_HACK=0
## Use custom english sound files (0/1) WIP
SOUND_EN="0"

Можете ли вы разместить содержимое mijia-720p-hack.cfg? ... В понедельник, 12 ноября 2018, 11:45 StormProff, @.**> написал: я сделал все согласно инструкциям; доступ через telnet был, на третьем этапе «Загрузка пользовательского программного обеспечения», камера мигает синим цветом, не подключается. настройки, установленные такими: ENABLE_HTTPD = 1 TIMEZONE = "UTC + 3" WIFI_SSID = "WiFi_2018" WIFI_PASS = "wf2018wf" В журнале есть много ошибок, помогите, пожалуйста, исправьте ft_boot.log *: Запуск взлома Mijia 720P Конфигурация взлома Mijia 720P ROOT_PASSWORD = WIFI_SSID = WiFi_2018 WIFI_PASS = wf2018wf TIMEZONE = UTC + 3 NTP_SERVER = ENABLE_SYSLOG = DISABLE_CLOUD = DISABLE_OTA = ENABLE_TELNETD = ENABLE_SSHD = ENABLE_HTTPD = 1 ENABLE_FTPD = ENABLE_SAMBA = ENABLE_RTSP = RTSP_OPTIONS = SOUND_EN = sh: плохое число Настройка часового пояса WARN : bad number ntpd: bad address '' - Вы получаете это, потому что подписались на эту тему. Ответьте на это письмо прямо, просмотрите его на GitHub <# 5 > или отключить поток < https://github.com/notifications/unsubscribe-auth/AD9NFSCctpFjLv4WaLnoFlQHRaux-PjEks5uuV9vgaJpZM4YZfOm >.

StormProff commented 5 years ago

sorry for reopening

StormProff commented 5 years ago

with such settings

## Password for root user, needed for SSH server and Samba R/W access
ROOT_PASSWORD="1234qwer"
## Set WIFI STA SSID, when empty no configuration is done
WIFI_SSID="WiFi_2018"
## Set WIFI STA password
WIFI_PASS="wf2018wf"
## Set timezone -> http://svn.fonosfera.org/fon-ng/trunk/luci/modules/admin-fon/root/etc/timezones.db
TIMEZONE="MSK-3MSD"
## Prefered NTP server
NTP_SERVER="pool.ntp.org"
## Start syslog (0/1)
ENABLE_SYSLOG=1
## Total Disconnect from Xioami servers, includes disable of streaming and OTA updater (0/1)
DISABLE_CLOUD=0
## Manage the camera via cloud but prevent online updates (0/1)
DISABLE_OTA=0
## Start telnet server at system boot (0/1)
ENABLE_TELNETD=1
## Start SSH server at system boot (0/1)
ENABLE_SSHD=1
## Start web server at system boot (0/1)
ENABLE_HTTPD=1
## Start FTP server at system boot (0/1)
ENABLE_FTPD=1
## Start samba server at system boot (0/1)
ENABLE_SAMBA=1
## Start local streaming server at system boot (0/1)
ENABLE_RTSP=1
## Disable the execution of the hack scripts (0/1)
DISABLE_HACK=0
## Use custom english sound files (0/1) WIP
SOUND_EN="1"

such log turned out

Running Mijia 720P hack

Mijia 720P hack configuration
  ROOT_PASSWORD=1234qwer
  WIFI_SSID=WiFi_2018
  WIFI_PASS=wf2018wf
  TIMEZONE=MSK-3MSD
  NTP_SERVER=pool.ntp.org
  ENABLE_SYSLOG=1
  DISABLE_CLOUD=0
  DISABLE_OTA=0
  ENABLE_TELNETD=1
  ENABLE_SSHD=1
  ENABLE_HTTPD=1
  ENABLE_FTPD=1
  ENABLE_SAMBA=1
  ENABLE_RTSP=1
  RTSP_OPTIONS=
  SOUND_EN=1
/tmp/ft/ft_boot.sh: /tmp/sd/mijia-720p-hack/scripts/.ft_boot.sh: line 122: /mnt/data/imi/imi_init/_S01logging: not found
Configure time zone
Setting root password
Changing password for root
New password: 
Bad password: too weak
Retype password: 
Password for root changed by root
Setting Samba root password
Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
Configure WiFi
Imporve OTA script
Executing /mnt/data/test/boot.sh
/mnt/data/test/boot.sh: line 84: /mnt/data/imi/imi_init/_S50telnet: not found
Starting SSH server
OK
Starting web server
OK
Starting FTP server
OK
Starting CIFS server
OK
Starting RTSP server
OK
ntpd: bad address 'pool.ntp.org'

flashing blue, does not connect to wifi

StormProff commented 5 years ago

I made a reset with a clip, blinked and connected. I will test

fliphess commented 5 years ago

To combine the several errors into a single response:

fliphess commented 5 years ago

To offer a fix while in the same time doing some shameless self-promotion: I fixed startup errors and the bad address issue for ntp on my own fork by waiting with the boot sequence until the network is up.

Have a look at https://github.com/fliphess/chuangmi-720p-hack/blob/development/sdcard/firmware/scripts/functions.sh#L40 and https://github.com/fliphess/chuangmi-720p-hack/blob/development/sdcard/firmware/scripts/.boot.sh#L52 as an example how to implement a fix to resolve the ntp issue. This also solves the issue of the time being set at 1-1-1970 at startup :)

Edit: Typo's/branch