Jump to content

TheBB

Moderators
  • Posts

    2,410
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by TheBB

  1. "под капотом" orjson (mips(BE))... собсна, сама бибка собирается от кросс до нативки, руками или очередным (не)нужным - maturin (в к-ром с рождения нет поддержки mips(BE)), даже тесты (некоторые) проходит... ~/orjson # cargo build --release Updating crates.io index Downloaded autocfg v1.1.0 ... Compiling pyo3-ffi v0.16.5 Compiling orjson v3.7.12 (/opt/root/orjson) Finished release [optimized] target(s) in 117m 41s ~/orjson # ~/orjson # ldd target/release/liborjson.so libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x779d4000) librt.so.1 => /opt/lib/librt.so.1 (0x779bc000) libpthread.so.0 => /opt/lib/libpthread.so.0 (0x7798e000) libc.so.6 => /opt/lib/libc.so.6 (0x777fa000) /opt/lib/ld.so.1 (0x77ab0000) ~/orjson # ~/orjson # file target/release/liborjson.so target/release/liborjson.so: ELF 32-bit MSB shared object, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, not stripped ~/orjson # ~/orjson # python Python 3.10.5 (main, Aug 8 2022, 06:21:00) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> import orjson >>> orjson.dumps([]) b'[]' >>> orjson.dumps([], option=orjson.OPT_APPEND_NEWLINE) b'[]\n' >>>
  2. mea culpa ((( Да, потерялся пакет. Загружен... ~ # opkg install homeassistant Installing homeassistant (2022.6.7-1) to root... ... Configuring homeassistant. *** Prepare your device to use the Home Assistant *** ... ~ # /opt/etc/init.d/S99hass start Starting hass... done. ~ # ~ # uname -a Linux Keenetic_DSL 3.4.113 #1 SMP Tue Apr 26 08:03:16 MSK 2022 mips GNU/Linux ~ #
  3. "вести с полей" ))) если очень (не)повезёт, сразу "выпадает в осадок": help> modules Please wait a moment while I gather a list of all available modules... Segmentation fault ~ # если (не)повезёт, может отвалиться так: help> modules Please wait a moment while I gather a list of all available modules... memory allocation of 1936292453 bytes failed Aborted ~ # собсна, откатил на 2022.6.7 (only DSL, DUO, GigaSE, etc.)
  4. сломано оно для mips`ов (ВЕ - DSL, DUO, etc.), в работе...
  5. возможно связано с переходом с json (python (core)) на orjson (https://github.com/home-assistant/core/pull/74377)
  6. 1. `hass -c /opt/var/lib/homeassistant --debug --verbose` 2. `htop` +F5 (дерево) + F4 (фильтр) + python 3. нет, можно не нужно (исправили: https://github.com/home-assistant/core/releases/tag/2022.7.4) ~ # opkg list | grep python3-pip python3-pip - 22.0.4-1 - Python 3.10 pip module ~ # ~ # pip -V pip 22.0.4 from /opt/lib/python3.10/site-packages/pip (python 3.10) ~ # 4. не помню деталей, кажись, надо toolchain для mips`ов...
  7. после первого запуска НА, дождаться установки "морды" (frontend) и перезапустить НА (наблюдать за процессом можно в "htop" и пр. или запустив НА из ком. строки (не скриптом))
  8. Дык, тож самое - найти и подправить путь к localtime (см. выше)
  9. Найти файл (`/opt/lib/python3.10/site-packages/tzlocal/unix.py` или `/opt/var/lib/homeassitant/deps/lib/python3.10/site-packages/tzlocal/unix.py`) и подправить (см. примерно как)
  10. https://www.opennet.ru/opennews/art.shtml?num=57481 https://github.com/home-assistant/core/issues/74751 и т.д. `opkg remove python3-atomicwrites --force-depends` `opkg install python3-atomicwrites-homeassistant`
  11. ### git diff diff --git a/bird2/Makefile b/bird2/Makefile index 891f372..99ade6f 100644 --- a/bird2/Makefile +++ b/bird2/Makefile @@ -97,7 +97,13 @@ protocols, telling BIRD to show various information, telling it to show a routing table filtered by a filter, or asking BIRD to reconfigure. endef -CONFIGURE_ARGS += --disable-libssh +CONFIGURE_ARGS += \ + --disable-libssh \ + --with-iproutedir=/opt/etc/iproute2 + +CONFIGURE_VARS += \ + ac_cv_func_getentropy=no \ + ac_cv_func_getrandom=no define Package/bird2/conffiles /opt/etc/bird.conf @@ -110,8 +116,8 @@ define Package/bird2/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/bird $(1)/opt/sbin/ $(INSTALL_DIR) $(1)/opt/etc $(INSTALL_DATA) ./files/bird.conf $(1)/opt/etc/ -# $(INSTALL_DIR) $(1)/etc/init.d -# $(INSTALL_BIN) ./files/bird.init $(1)/etc/init.d/bird + $(INSTALL_DIR) $(1)/opt/etc/init.d + $(INSTALL_BIN) ./files/S70bird $(1)/opt/etc/init.d/ endef define Package/bird2c/install ZKU2: ~ # ~ # cat /opt/etc/init.d/S70bird #!/bin/sh ENABLED=yes PROCS=bird ARGS="-f -c /opt/etc/bird.conf -P /opt/var/run/bird.pid" PREARGS="" DESC=$PROCS PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin . /opt/etc/init.d/rc.func ~ # ~ # /opt/etc/init.d/S70bird start Starting bird... done. ~ # ~ # /opt/etc/init.d/S70bird status Checking bird... alive. ~ # ~ # /opt/etc/init.d/S70bird restart Shutting down bird... done. Starting bird... done. ~ # ~ # /opt/etc/init.d/S70bird status Checking bird... alive. ~ #
  12. Акция разовая! Основано на реальных событиях https://github.com/nxhack/openwrt-node-packages aarch64 - `echo "src/gz nodejs http://bin.entware.net/aarch64-k3.10/test/node-js" >> /opt/etc/opkg.conf` mips - `echo "src/gz nodejs http://bin.entware.net/mipssf-k3.4/test/node-js" >> /opt/etc/opkg.conf` mipsel - `echo "src/gz nodejs http://bin.entware.net/mipselsf-k3.4/test/node-js" >> /opt/etc/opkg.conf`
  13. bump to 2022.7.3 (прим. см. ниже ) 1. "pip" можно не откатывать - вбит "костыль" 2. отключить "zram" - `no system zram` (в морде или CLI) и использовать "swap" --- "Кто не спрятался, я не виноват!"
  14. Мало. Файлов много, пока все удалит... (~20-40 мин., м.б. и больше). "Экспресс апгрэйд" (~1-3 мин.) opkg update /opt/etc/init.d/S99hass stop opkg remove homeassistant opkg upgrade opkg install homeassistant /opt/etc/init.d/S99hass start
  15. zram? нет. ~ 5 - 10 минут (зависит от устройства, KN-1910 - "середнячок").
  16. то же, см. https://forum.keenetic.com/topic/9423-home-assistant/?do=findComment&comment=147495 (не установили пакеты для нативной сборки )
×
×
  • Create New...