Installing Domotics on Allwinner D1

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
DanilinSA
Posts: 2
Joined: Saturday 19 August 2023 9:02
Target OS: Linux
Domoticz version: 2023.2
Contact:

Installing Domotics on Allwinner D1

Post by DanilinSA »

There is a board based on the Allwiner D1 chip (Nezha C906 RISC-V). Sipeed Lichee RV Dock board.
The board is officially supported by the Ubuntu community.
Installed Ubuntu 23_04

I'm trying to install according to the instruction.
But there is no support package for this platform. domoticz_linux_riscv64 not found.

Compiling by hand is my only way?
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Installing Domotics on Allwinner D1

Post by waltervl »

Yes, risc64 is not build. You have to do it yourself.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
DanilinSA
Posts: 2
Joined: Saturday 19 August 2023 9:02
Target OS: Linux
Domoticz version: 2023.2
Contact:

Re: Installing Domotics on Allwinner D1

Post by DanilinSA »

Collected.
It was very long. The "make" command took 38 hours to complete.
Everything starts normally, but after a couple of minutes the services stop. Attached are the start and stop logs. (Replaced dots with underscores.)
Start:

Code: Select all

2023-08-21 19:22:10_110  [3f85c9d680] Status: Domoticz V2023_2 (build 15504) (c)2012-2023 GizMoCuz
2023-08-21 19:22:10_111  [3f85c9d680] Status: Build Hash: 9154599b1, Date: 2023-08-18 13:16:38
2023-08-21 19:22:10_111  [3f85c9d680] Status: Startup Path: /home/ubuntu/dev-domoticz/
2023-08-21 19:22:10_218  [3f85c9d680] Error: Default admin password has NOT been changed! Change it asap!
2023-08-21 19:22:10_802  [3f85c9d680] Status: PluginSystem: Started, Python version '3_11_4', 1 plugin definitions loaded_
2023-08-21 19:22:10_843  [3f85c9d680] Active notification Subsystems: fcm, http (2/13)
2023-08-21 19:22:10_845  [3f85c9d680] Debug: CWebServer::StartServer() : settings : 'server_settings[is_secure_=false, www_root='/home/ubuntu/dev-domoticz/www', listening_address='::', listening_port='8080', vhostname='', php_cgi_path='']'
2023-08-21 19:22:10_845  [3f85c9d680] Debug: CWebServer::StartServer() : IAM settings : 'iam_settings[is_enabled_=true, auth_url='/oauth2/v1/authorize', token_url='/oauth2/v1/token', discovery_url='/_well-known/openid-configuration', code_expire_seconds='60', token_expire_seconds='3600', refresh_expire_seconds='86400']'
2023-08-21 19:22:10_850  [3f85c9d680] Status: WebServer(HTTP) started on address: :: with port 8080
2023-08-21 19:22:10_858  [3f85c9d680] Debug: WebServer(HTTP) started with 233 Registered Commands
2023-08-21 19:22:10_858  [3f85c9d680] Debug: cWebEm Registration: 10 pages, 10 actions, 4 whitelist urls, 12 whitelist commands
2023-08-21 19:22:10_861  [3f85c9d680] Debug: CWebServer::StartServer() : settings : ssl_server_settings['server_settings[is_secure_=true, www_root='/home/ubuntu/dev-domoticz/www', listening_address='::', listening_port='443', vhostname='', php_cgi_path='']', ssl_method='tls', certificate_chain_file_path='_/server_cert_pem', ca_cert_file_path='_/server_cert_pem', cert_file_path=_/server_cert_pem', private_key_file_path='_/server_cert_pem', private_key_pass_phrase='', ssl_options='single_dh_use', tmp_dh_file_path='_/server_cert_pem', verify_peer=false, verify_fail_if_no_peer_cert=false, verify_file_path='']
2023-08-21 19:22:10_862  [3f85c9d680] Debug: CWebServer::StartServer() : IAM settings : 'iam_settings[is_enabled_=true, auth_url='/oauth2/v1/authorize', token_url='/oauth2/v1/token', discovery_url='/_well-known/openid-configuration', code_expire_seconds='60', token_expire_seconds='3600', refresh_expire_seconds='86400']'
2023-08-21 19:22:10_916  [3f85c9d680] Debug: [web:443] Enabled ciphers (TLSv1_2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-08-21 19:22:10_961  [3f85c9d680] Debug: [web:443] 'DH PARAMETERS' found in file _/server_cert_pem
2023-08-21 19:22:10_968  [3f85c9d680] Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Permission denied, trying ::
2023-08-21 19:22:10_981  [3f85c9d680] Debug: [web:443] Enabled ciphers (TLSv1_2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-08-21 19:22:11_025  [3f85c9d680] Debug: [web:443] 'DH PARAMETERS' found in file _/server_cert_pem
2023-08-21 19:22:11_029  [3f85c9d680] Status: WebServer(SSL) startup failed on address :: with port: 443: bind: Permission denied, trying 0_0_0_0
2023-08-21 19:22:11_041  [3f85c9d680] Debug: [web:443] Enabled ciphers (TLSv1_2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-08-21 19:22:11_080  [3f85c9d680] Debug: [web:443] 'DH PARAMETERS' found in file _/server_cert_pem
2023-08-21 19:22:11_083  [3f85c9d680] Error: WebServer(SSL) startup failed on address 0_0_0_0 with port: 443: bind: Permission denied
2023-08-21 19:22:11_083  [3f85c9d680] Error: WebServer(SSL) check privileges for opening ports below 1024
2023-08-21 19:22:11_090  [3f85c9d680] Starting shared server on: :::6144
2023-08-21 19:22:11_093  [3f81ffaf20] Status: TCPServer: shared server started___
2023-08-21 19:22:11_097  [3f80ff8f20] Status: RxQueue: queue worker started___
2023-08-21 19:23:10_849  [3f837fdf20] Debug: [web:8080] cleaning sessions___
2023-08-21 19:23:10_850  [3f837fdf20] Debug: SessionStore : clean___
2023-08-21 19:23:20_074  [3f82ffcf20] Debug: [web:8080] Host:192_168_88_102 Uri:/app/events/Events_css
2023-08-21 19:23:20_074  [3f82ffcf20] Debug: [web:8080] Request Headers:
Host: 192_168_88_76:8080
Connection: keep-alive
User-Agent: Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203
Accept: text/css,*/*;q=0_1
Referer: http://192_168_88_76:8080/
Accept-Encoding: gzip, deflate
Accept-Language: ru,en;q=0_9,en-GB;q=0_8,en-US;q=0_7
If-None-Match: 2023_2 (build 15504)
If-Modified-Since: Sat, 19 Aug 2023 10:49:41 GMT

2023-08-21 19:23:20_075  [3f82ffcf20] Debug: [web:8080] isPage 0 isAction 0 isUpgrade 0 needsAuthentication 1 isAuthenticated 0 ()
2023-08-21 19:23:20_083  [3f82ffcf20] Debug: Web ACLF: 192_168_88_102 - - [21/Aug/2023:19:23:20_074 +0300] "GET /app/events/Events_css HTTP/1_1" 304 0 "http://192_168_88_76:8080/" "Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203"
2023-08-21 19:23:20_085  [3f82ffcf20] Debug: [web:8080] Host:192_168_88_102 Uri:/app/devices/Devices_css
2023-08-21 19:23:20_085  [3f82ffcf20] Debug: [web:8080] Request Headers:
Host: 192_168_88_76:8080
Connection: keep-alive
User-Agent: Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203
Accept: text/css,*/*;q=0_1
Referer: http://192_168_88_76:8080/
Accept-Encoding: gzip, deflate
Accept-Language: ru,en;q=0_9,en-GB;q=0_8,en-US;q=0_7
If-None-Match: 2023_2 (build 15504)
If-Modified-Since: Sat, 19 Aug 2023 10:49:41 GMT

2023-08-21 19:23:20_086  [3f82ffcf20] Debug: [web:8080] isPage 0 isAction 0 isUpgrade 0 needsAuthentication 1 isAuthenticated 0 ()
2023-08-21 19:23:20_086  [3f82ffcf20] Debug: Web ACLF: 192_168_88_102 - - [21/Aug/2023:19:23:20_085 +0300] "GET /app/devices/Devices_css HTTP/1_1" 304 0 "http://192_168_88_76:8080/" "Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203"
2023-08-21 19:23:20_089  [3f82ffcf20] Debug: [web:8080] Host:192_168_88_102 Uri:/js/domoticz_js
2023-08-21 19:23:20_089  [3f82ffcf20] Debug: [web:8080] Request Headers:
Host: 192_168_88_76:8080
Connection: keep-alive
User-Agent: Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203
Accept: */*
Referer: http://192_168_88_76:8080/
Accept-Encoding: gzip, deflate
Accept-Language: ru,en;q=0_9,en-GB;q=0_8,en-US;q=0_7
If-None-Match: 2023_2 (build 15504)
If-Modified-Since: Sat, 19 Aug 2023 10:49:43 GMT
Stop:

Code: Select all

2023-08-21 19:27:06_952  [3f82ffcf20] Debug: SessionStore : get___(705d6529d9c2583e91c4ebfdaee8b45d)
2023-08-21 19:27:06_954  [3f82ffcf20] Debug: [web:8080] CheckAuthToken(705d6529d9c2583e91c4ebfdaee8b45d_OTEzNzAxNTctZDBiYi00NTcyLWEyYzktYzM4MmU1Y2Q0ZGQ0_admin) : user authenticated
2023-08-21 19:27:06_954  [3f82ffcf20] Debug: [web:8080] isPage 1 isAction 0 isUpgrade 0 needsAuthentication 0 isAuthenticated 1 (admin)
2023-08-21 19:27:06_954  [3f82ffcf20] Debug: CWebServer::GetJSonPage :getuptime :/json_htm?type=command&param=getuptime
2023-08-21 19:27:06_957  [3f82ffcf20] Debug: Web ACLF: 192_168_88_102 - - [21/Aug/2023:19:27:06_951 +0300] "GET /json_htm?type=command&param=getuptime HTTP/1_1" 200 92 "http://192_168_88_76:8080/" "Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203"
2023-08-21 19:27:12_171  [3f7bffef20] Error: mainworker seems to have ended or hung unexpectedly (last update 301_000000 seconds ago)
2023-08-21 19:27:12_173  [3f7bffef20] Error: Domoticz(1259) is exiting due to watchdog triggered___
2023-08-21 19:27:12_290  [3f7bffef20] Error: Failed to start gdb, will use backtrace() for printing stack frame

2023-08-21 19:27:12_890  [3f82ffcf20] Debug: [web:8080] Host:192_168_88_102 Uri:/json_htm?type=command&param=getuptime
2023-08-21 19:27:12_891  [3f82ffcf20] Debug: [web:8080] Request Headers:
Host: 192_168_88_76:8080
Connection: keep-alive
Accept: application/json, text/plain, */*
User-Agent: Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203
Referer: http://192_168_88_76:8080/
Accept-Encoding: gzip, deflate
Accept-Language: ru,en;q=0_9,en-GB;q=0_8,en-US;q=0_7
Cookie: DMZSID=705d6529d9c2583e91c4ebfdaee8b45d_OTEzNzAxNTctZDBiYi00NTcyLWEyYzktYzM4MmU1Y2Q0ZGQ0_1692635596

2023-08-21 19:27:12_892  [3f82ffcf20] Debug: SessionStore : get___(705d6529d9c2583e91c4ebfdaee8b45d)
2023-08-21 19:27:12_894  [3f82ffcf20] Debug: [web:8080] CheckAuthToken(705d6529d9c2583e91c4ebfdaee8b45d_OTEzNzAxNTctZDBiYi00NTcyLWEyYzktYzM4MmU1Y2Q0ZGQ0_admin) : user authenticated
2023-08-21 19:27:12_894  [3f82ffcf20] Debug: [web:8080] isPage 1 isAction 0 isUpgrade 0 needsAuthentication 0 isAuthenticated 1 (admin)
2023-08-21 19:27:12_895  [3f82ffcf20] Debug: CWebServer::GetJSonPage :getuptime :/json_htm?type=command&param=getuptime
2023-08-21 19:27:12_897  [3f82ffcf20] Debug: Web ACLF: 192_168_88_102 - - [21/Aug/2023:19:27:12_890 +0300] "GET /json_htm?type=command&param=getuptime HTTP/1_1" 200 91 "http://192_168_88_76:8080/" "Mozilla/5_0 (Windows NT 10_0; Win64; x64) AppleWebKit/537_36 (KHTML, like Gecko) Chrome/115_0_0_0 Safari/537_36 Edg/115_0_1901_203"
2023-08-21 19:27:13_172  [3f85c9d680] Status: Closing application!___
2023-08-21 19:27:13_172  [3f85c9d680] Status: Stopping worker___
2023-08-21 19:27:13_174  [3f80ff8f20] Status: RxQueue: queue worker stopped___
2023-08-21 19:27:13_677  [3f82ffcf20] Status: WebServer(HTTP) stopped
2023-08-21 19:27:13_682  [3f85c9d680] Status: TCPServer: shared server stopped
2023-08-21 19:27:13_682  [3f85c9d680] Status: Stopping all hardware___
2023-08-21 19:27:13_683  [3f827fbf20] Status: Scheduler stopped___
2023-08-21 19:27:13_689  [3f7affcf20] Status: EventSystem: Stopped___
2023-08-21 19:27:13_692  [3f7a7fbf20] Status: EventSystem: Queue thread stopped___
2023-08-21 19:27:13_775  [3f85c9d680] Status: EventSystem - Python stopped___
2023-08-21 19:27:13_776  [3f7b7fdf20] Status: NotificationSystem: thread stopped___
2023-08-21 19:27:13_779  [3f84dfdf20] Status: PluginSystem: Exited work loop_
2023-08-21 19:27:13_882  [3f85c9d680] Status: PluginSystem: Stopped_
2023-08-21 19:27:13_883  [3f817f9f20] Status: Mainworker Stopped___
User defined signal 1
The configuration is clean.
The file "domoticz_crash_log" is empty.
Why is that?

This is similar to the watchdog timer being triggered when the time is updated. But the time is correct.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest