Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Z83 mini-pc to HAOS #3579

Closed
jonsenior79 opened this issue Sep 8, 2024 · 2 comments
Closed

Add support for Z83 mini-pc to HAOS #3579

jonsenior79 opened this issue Sep 8, 2024 · 2 comments

Comments

@jonsenior79
Copy link

Describe the issue you are experiencing

The Bluetooth and wifi adapters on the Z83 do not work under HAOS. To get them working under debian, a few non-free firmwares needed to be installed. Looking at the contents of /lib/firmware the broadcom files appear to be there, but there are some missing softlinks.

The following exert from dmesg shows the errors for the sst_acpi firmware and the brcmfmac firmware. Firmware brcmfmac43455-sdio is already on the system but there's no matching softlink. I've not checked for the sst_acpi one as I can't easily test by adding files to a live system.

[    4.222663] intel_sst_acpi 808622A8:00: Direct firmware load for intel/fw_sst_22a8.bin failed with error -2
[    4.222688] intel_sst_acpi 808622A8:00: request fw failed
[    4.314048] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.340428] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.355127] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    4.916177] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.916854] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.AZW-Z83-V.bin failed with error -2
[    4.929758] usbcore: registered new interface driver brcmfmac
[    4.955938] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.txt failed with error -2
[    5.994448] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

6.6.46-haos

Did the problem occur after upgrading the Operating System?

No

Hardware details

Z83-V (I believe it's a chinese-made Intel NUC clone). Intel Atom 4-core processor. The wifi+BT chip is an AP6234.

Steps to reproduce the issue

  1. Install HAOS onto device!

...

Anything in the Supervisor logs that might be useful for us?

2024-09-08 17:02:19.134 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-09-08 17:02:19.136 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-09-08 17:02:19.136 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-09-08 17:02:19.626 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-09-08 17:02:19.628 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-09-08 17:02:19.628 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-09-08 17:31:44.031 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 18:01:45.203 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 18:01:58.534 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-09-08 18:02:19.636 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-09-08 18:02:19.636 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-09-08 18:02:19.637 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-09-08 18:02:19.638 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-09-08 18:02:19.640 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-09-08 18:02:19.643 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-09-08 18:02:19.643 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-09-08 18:02:19.645 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-09-08 18:02:19.678 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-09-08 18:02:19.679 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-09-08 18:02:19.680 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-09-08 18:02:19.681 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-09-08 18:02:19.682 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-09-08 18:02:19.683 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-09-08 18:02:20.133 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-09-08 18:02:20.135 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-09-08 18:02:20.136 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-09-08 18:22:27.697 INFO (MainThread) [supervisor.host.info] Updating local host information
2024-09-08 18:22:28.778 INFO (MainThread) [supervisor.host.services] Updating service information
2024-09-08 18:22:28.802 INFO (MainThread) [supervisor.host.network] Updating local network information
2024-09-08 18:22:29.640 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2024-09-08 18:22:29.665 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2024-09-08 18:31:46.535 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 19:01:48.005 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 19:02:20.150 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-09-08 19:02:20.150 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-09-08 19:02:20.151 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-09-08 19:02:20.152 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-09-08 19:02:20.275 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-09-08 19:02:20.279 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-09-08 19:02:20.279 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-09-08 19:02:20.281 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-09-08 19:02:20.317 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-09-08 19:02:20.318 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-09-08 19:02:20.319 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-09-08 19:02:20.319 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-09-08 19:02:20.323 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-09-08 19:02:20.323 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-09-08 19:02:20.798 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-09-08 19:02:20.799 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-09-08 19:02:20.800 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-09-08 19:02:31.339 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
2024-09-08 19:02:31.358 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/music-assistant/home-assistant-addon repository
2024-09-08 19:02:31.378 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
2024-09-08 19:02:31.384 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
2024-09-08 19:02:33.959 INFO (MainThread) [supervisor.store] Loading add-ons from store: 80 all - 0 new - 0 remove
2024-09-08 19:02:33.961 INFO (MainThread) [supervisor.store] Loading add-ons from store: 80 all - 0 new - 0 remove
2024-09-08 19:31:49.073 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 20:01:50.773 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 20:01:58.816 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
2024-09-08 20:02:20.809 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-09-08 20:02:20.809 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-09-08 20:02:20.810 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-09-08 20:02:20.811 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-09-08 20:02:20.812 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-09-08 20:02:20.816 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-09-08 20:02:20.816 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-09-08 20:02:20.817 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-09-08 20:02:20.847 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-09-08 20:02:20.849 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-09-08 20:02:20.850 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-09-08 20:02:20.850 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-09-08 20:02:20.852 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-09-08 20:02:20.853 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-09-08 20:02:21.298 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-09-08 20:02:21.300 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-09-08 20:02:21.300 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-09-08 20:29:09.668 INFO (MainThread) [supervisor.host.info] Updating local host information
2024-09-08 20:29:10.819 INFO (MainThread) [supervisor.host.services] Updating service information
2024-09-08 20:29:10.834 INFO (MainThread) [supervisor.host.network] Updating local network information
2024-09-08 20:29:11.410 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2024-09-08 20:29:11.434 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2024-09-08 20:31:51.507 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 21:01:53.333 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2024-09-08 21:02:21.308 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2024-09-08 21:02:21.309 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2024-09-08 21:02:21.309 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2024-09-08 21:02:21.311 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2024-09-08 21:02:21.422 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2024-09-08 21:02:21.426 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2024-09-08 21:02:21.426 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2024-09-08 21:02:21.428 INFO (MainThread) [supervisor.resolution.checks.base] Run check for trust/supervisor
2024-09-08 21:02:21.467 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2024-09-08 21:02:21.468 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2024-09-08 21:02:21.469 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2024-09-08 21:02:21.470 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2024-09-08 21:02:21.471 INFO (MainThread) [supervisor.resolution.check] System checks complete
2024-09-08 21:02:21.472 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2024-09-08 21:02:21.901 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2024-09-08 21:02:21.903 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2024-09-08 21:02:21.903 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2024-09-08 21:31:54.217 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token

Anything in the Host logs that might be useful for us?

See main message.

System information

System Information

version core-2024.9.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.46-haos
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1392
Downloaded Repositories 3
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 13.1
update_channel stable
supervisor_version supervisor-2024.08.0
agent_version 1.6.0
docker_version 26.1.4
disk_total 27.7 GB
disk_used 4.5 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.14.0), ESPHome (2024.8.3), File editor (5.8.0), Let's Encrypt (5.1.4), Duck DNS (1.18.0)
Dashboards
dashboards 3
resources 1
views 1
mode storage
Recorder
oldest_recorder_run 6 September 2024 at 20:28
current_recorder_run 7 September 2024 at 03:43
estimated_db_size 19.79 MiB
database_engine sqlite
database_version 3.45.3

Additional information

No response

@jonsenior79 jonsenior79 added the bug label Sep 8, 2024
@jonsenior79
Copy link
Author

I'd like to help with producing a PR for this, but I'm not quite sure how to go about testing. I understand that few people probably have these boxes, but it's a little silly to buy a BT adapter when they not only have integrated BT, but it is known to work under a Debian / Supervised HA installation.

@sairon
Copy link
Member

sairon commented Sep 16, 2024

I'm afraid I'll disappoint you - with firmware, we are quite conservative, because the space reserved for the rootfs partition is limited, especially on generic-x86-64, so we can't afford adding all firmware files that are available from packages on other distributions. Since the device you want to support is rather an uncommon one, and it's even less performant than an RPi 3, it's not very convincing this is the case where we should prioritize adding the files needed for it.

I think you've picked the wrong lines from the boot log - the brcmfmac errors are shown because there's no specific firmware files for your board, but in the end I think the card should initialize - but this is just the WiFi driver, not BT. You can compare this to another distribution where more firmware files are available. For the Bluetooth, there's a way to add the files using the method described in #2222. Same should be applicable to the audio firmware, which is also rather an exotic one. Otherwise, I'm sorry but closing this request as a wontfix for the reasons written above.

@sairon sairon closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@sairon sairon added the wontfix label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants