Commit Graph

2786 Commits

Author SHA1 Message Date
Jan Čermák
f9f6c9f045 Linux: Update kernel to 6.12.51 (#4343)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.51
2025-10-08 09:52:28 +02:00
dependabot[bot]
58c40751a3 Bump actions/stale from 10.0.0 to 10.1.0 (#4338)
Bumps [actions/stale](https://github.com/actions/stale) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](3a9db7e6a4...5f858e3efb)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-07 10:19:10 +02:00
Jan Čermák
3e771eb222 Add driver for Creative Sound Blastr X-Fi PCI cards (#4331)
Add snd-ctxfi driver as module to generic PCI device support fragment.

Fixes #4141
2025-10-03 19:32:57 +02:00
Jan Čermák
4a76a65cd8 Use original hadolint action instead of outdated fork (#4332) 2025-10-02 19:23:16 +02:00
Jan Čermák
1c90d4bd4b Linux: Update kernel to 6.12.50 (#4330)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.50
2025-10-02 16:07:28 +02:00
Jan Čermák
bde19002df Improve UX of HA CLI wrapper and emergency console (#4326)
* Improve UX of HA CLI wrapper and emergency console

For many users, the emergency console gives feeling that the system is
completely broken. However, there are various cases when the system just takes
just a bit longer to start up and the emergency message is shown, while it
finishes a proper startup shortly after. This change tries to improve the UX in
several ways:

* The limit before a forced emergency console startup is changed to 3 minutes
* Waiting can be interrupted with Ctrl+C (reset counter is cleared then)
* Some hints what to check have been added before starting the shell
* Also, because if the HA CLI failed for 5 times in a row in quick succession,
  the CLI startup was then not retried anymore and user may have been left with
  a black screen, the restart limits timeouts have been adjusted only to back
  off and never mark the unit as failed

Closes #4273

* Use /bin/sh and printf to silence linter errors
2025-10-01 18:23:28 +02:00
Jan Čermák
95b1d22215 RaspberryPi: Update kernel to 6.12.47 - stable_20250916 (#4327)
* RaspberryPi: Update kernel to 6.12.47 - stable_20250916

* Remove patches merged in 6.12.47

* Update Buildroot rpi-firmware package for 6.12.47

* buildroot 9acb31819a...7ce414454b (1):
  > package/rpi-firmware: update to ba22330 (for stable_20250916)
2025-10-01 17:46:17 +02:00
Jan Čermák
cb66fa808f Fix build failure caused by RaspberryMatic project renaming (#4324)
RaspberryMatic was renamed to OpenCCU in
https://github.com/OpenCCU/OpenCCU/pull/3162. This caused change of the name of
the directory in the source tarball, causing build failure when the archive
wasn't cached.
2025-09-30 12:40:32 +02:00
Jan Čermák
fb52fc9a76 Update "Supported hardware" section of the readme (#4321)
Remove the list of boards and refer to the ADRs and developer documentation
instead.

Fixes #4316
2025-09-30 12:38:17 +02:00
dependabot[bot]
342f93138d Bump docker/login-action from 3.5.0 to 3.6.0 (#4322)
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](184bdaa072...5e57cd1181)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 12:31:24 +02:00
dependabot[bot]
435714c01d Bump actions/cache from 4.2.4 to 4.3.0 (#4323)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 11:20:43 +02:00
Jan Čermák
c70b528ac7 Linux: Update kernel to 6.12.49 (#4320)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.48
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.49
2025-09-29 15:40:31 +02:00
Servesh Muralidharan
510395fe4e Support Chelsio T4/T5/T6 VF in SRIOV mode (#4281)
This change supports in kernel drivers for Chelsio T4, T5 & T6 adapters with PCI-E SR-IOV Virtual Functions.
2025-09-17 11:01:18 +02:00
Jan Čermák
c95fd97df6 Linux: Update kernel to 6.12.47 (#4307)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.47
2025-09-15 16:10:49 +02:00
Simon Lamon
ef45889956 Pin SHA for all Github Actions (#4305) 2025-09-15 11:39:47 +02:00
puterboy
e15d99bc2b Enable HID multitouch support in kernel (#4298)
Needed to allow multi-touch gestures on touchscreens for the addon HAOSKiosk.
2025-09-12 17:40:40 +02:00
Jan Čermák
dc0da1b7bc Update HOME_URL in os-release metadata (#4299)
The URL in os-release still pointed to hass.io domain which is currently
defunct. Point to the Home Assistant's main homepage instead.

Fixes #4295
2025-09-12 17:34:36 +02:00
Jan Čermák
2951f969bb Bump Buildroot to 2025.02.6 (#4297)
* buildroot 49cc269143...9acb31819a (1):
  > Merge tag '2025.02.6' into 2025.02.x-haos
2025-09-11 14:06:08 +02:00
Jan Čermák
0e09f22bd0 Implement better support for --silent flag in top-level Makefile (#4292)
The extra information printed when using the top-level makefile can clutter the
output when it needs to be further processed, e.g. when running
`make show-info | jq`. Make it respect the --silent flag (which also suppresses
messages about changing directories which would break parsing as well).
2025-09-11 14:05:57 +02:00
Jan Čermák
3c321a8387 Linux: Update kernel to 6.12.46 (#4293)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.46
2025-09-11 11:22:12 +02:00
Jan Čermák
0e3fd2c021 Start Supervisor container with its cidfile mounted to /run/cid (#4276)
Use the --cidfile Docker CLI argument when starting the container and
bind-mount the generated file containing full ID of the container to the
container itself.

Using --mount instead of --volume is needed, as --volume is racy and creates
empty directory volume at the destination path instead.

This is prerequisite for home-assistant/supervisor#6006 but can come handy for
other cases too.
2025-09-09 20:16:11 +02:00
Jan Čermák
9a1e0015d8 Linux: Update kernel to 6.12.45 (#4287)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.45
2025-09-08 18:05:30 +02:00
Andrej Friesen
3dcf6bd9ee Enable Pressure Stall Information PSI (#4279)
Enable Pressure Stall Information PSI for more accurate detection of resource shortages.

The psi feature identifies and quantifies the disruptions caused by CPU, memory or IO  resource shortages and the time impact it has on complex workloads or even entire systems.

- https://facebookmicrosites.github.io/psi/docs/overview
- https://www.kernel.org/doc/html/latest/accounting/psi.html
2025-09-08 17:36:20 +02:00
dependabot[bot]
837baa288c Bump actions/github-script from 7 to 8 (#4285)
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 16:39:07 +02:00
dependabot[bot]
36b9606172 Bump actions/setup-python from 5 to 6 (#4284)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 16:39:00 +02:00
dependabot[bot]
8bd52361b9 Bump actions/stale from 9.1.0 to 10.0.0 (#4283)
Bumps [actions/stale](https://github.com/actions/stale) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9.1.0...v10.0.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 16:38:53 +02:00
Jan Čermák
39ff0117ba Merge branch 'main' into dev 2025-09-08 16:04:04 +02:00
Jan Čermák
d60618a55f Bump OS to release version 16.2 16.2 2025-09-08 11:34:12 +02:00
Jan Čermák
8f22412cf8 Revert "Revert kernel patch breaking 6.12.43 build for Tinker (#4257)" (#4277)
This reverts commit 194b9146f4.

Stable commit eb0abacdd3fce5a19fffc1c8bd0be6ffffeb59d8 in v6.12.44 does the
same.
2025-09-03 10:58:18 +02:00
Jan Čermák
700ff773ab Linux: Update kernel to 6.12.44 (#4268)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.44
2025-09-01 18:21:45 +02:00
Jan Čermák
a258295568 Bump OS to pre-release version 16.2.rc2 16.2.rc2 2025-09-01 18:17:51 +02:00
Jan Čermák
71be6037d1 Fix broken outgoing connections caused by upstream kernel regression (#4267)
Upstream commit [1] caused regression in IPv4 routing which can cause some
routes becoming broadcast even though they should be routed as unicast, e.g.:

 # ip route get 1.1.1.1
 broadcast 1.1.1.1 via 192.168.122.1 dev enp0s3 src 192.168.122.204 uid 0
     cache <local,brd>

It's not entirely clear yet why it happens but this behavior seems to be
triggered for instance when the SSDP integration sends the broadcast packet on
HA startup. While this behavior is not described in the regression report [1],
the commit cherry-picked from Linux master fixes the problems for us as well.

Patches moved to version-specific folder, as this one shouldn't be applied on
Raspberry Pi targets.

[1] https://lore.kernel.org/all/20250710142714.12986-1-oscmaes92@gmail.com/
[2] https://lore.kernel.org/stable/20250822165231.4353-4-bacs@librecast.net/

Fixes #4265

(cherry picked from commit 78bda4bd10)
2025-09-01 18:17:36 +02:00
Jan Čermák
78bda4bd10 Fix broken outgoing connections caused by upstream kernel regression (#4267)
Upstream commit [1] caused regression in IPv4 routing which can cause some
routes becoming broadcast even though they should be routed as unicast, e.g.:

 # ip route get 1.1.1.1
 broadcast 1.1.1.1 via 192.168.122.1 dev enp0s3 src 192.168.122.204 uid 0
     cache <local,brd>

It's not entirely clear yet why it happens but this behavior seems to be
triggered for instance when the SSDP integration sends the broadcast packet on
HA startup. While this behavior is not described in the regression report [1],
the commit cherry-picked from Linux master fixes the problems for us as well.

Patches moved to version-specific folder, as this one shouldn't be applied on
Raspberry Pi targets.

[1] https://lore.kernel.org/all/20250710142714.12986-1-oscmaes92@gmail.com/
[2] https://lore.kernel.org/stable/20250822165231.4353-4-bacs@librecast.net/

Fixes #4265
2025-09-01 18:16:11 +02:00
Jan Čermák
44108a5493 Bump OS to development version 16.3.dev0 2025-08-28 16:53:58 +02:00
Jan Čermák
94fe13f6bb Bump OS to pre-release version 16.2.rc1 16.2.rc1 2025-08-28 15:47:21 +02:00
Jan Čermák
194b9146f4 Revert kernel patch breaking 6.12.43 build for Tinker (#4257)
Revert patch added to 6.12.43 which breaks the build of CAN_TI_HECC module
present in Tinker config. While it's quite unlikely anyone would be using it,
so we could just simply disable the module, this seems to be a better solution.
2025-08-28 12:20:22 +02:00
Jan Čermák
9d110c12f3 Revert "Rework /usr/sbin/hassos-supervisor script (#4248)" (#4256)
This reverts commit 22fe9b19ee.

There are major issues when OS has no internet connectivity - in such case the
script doesn't go the expected happy path after the rework and eventually
removes the Docker image, essentially bricking offline installations.

Since there is no immediate benefit for HAOS and such change turns out to be
high risk considering the planned release, leave it to be implemented later.
2025-08-27 18:12:54 +02:00
J. Nick Koston
5872864bc5 buildroot: Update BlueZ to 5.83 with connection abort fix (#4250)
Update the buildroot submodule to include:
- BlueZ 5.83 (from 5.79)
- Patch to fix device removal on LE connection abort (upstream PR #1521)

This fixes Bluetooth stability issues where devices get removed from D-Bus
during connection retries, preventing reconnection attempts.

Fixes: https://github.com/bluez/bluez/issues/1489
2025-08-27 18:12:38 +02:00
Jan Čermák
b35be67236 Linux: Update kernel to 6.12.43 (#4255)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.43
2025-08-27 14:37:48 +02:00
@RubenKelevra
d59053301e sysctl: disable TCP slow start after idle (#4239)
This knob controls whether Linux throws away its congestion
window (cwnd) after a connection has been idle for at least one
retransmission timeout (RTO). With a value of 0, Linux keeps the
cwnd it had before the idle period and can send that amount
immediately when the application resumes writing (still bounded
by the receiver's advertised window and by pacing).

With slow start after idle enabled (the default), Linux allows
only about 10 MSS (~14 KiB) in the first burst after idle. Even
when a connection stays open to web clients, a short idle forces
multiple round trips to ramp back up.

On Wi-Fi, local connections often have very low RTTs, which drives
the RTO down. Between page navigations the connection is considered
idle by Linux. If the next request happens during a transient
latency spike on the Wi-Fi link, the sender starts with a tiny
cwnd and must grow it over many RTTs, so the spike causes outsized
and visible loading delays.

For devices behind typical Internet uplinks, the higher RTT makes
the initial ramp-up feel even slower until the window regains size.
However, here the connection does take longer to drop to idle, for
Linux standards. So the connection is less likely to be considered
idle between navigations.

This change does not affect flows with very small receive windows
(e.g. many microcontrollers), which are limited by the peer's
advertised window rather than the sender's cwnd.

Example RTOs on low jitter, low loss connections:

Defaults:
TCP_RTO_MIN = 200 ms
TCP_RTO_MAX = 120 s
low-jitter path so rttvar_us = 200 ms
HZ = 1000 or 250 or 100 (depending on the kernel settings)

*31 ms average RTT*

- SRTT ≈ 31 ms; RTTVAR ≈ 200 ms → Sum = 231 ms
- 'usecs_to_jiffies(231000)' = 231 jiffies (HZ 1000) -> RTO ≈ 231 ms
- If 'HZ = 250' (4 ms tick), ceil(231/4)=58 jiffies -> 232 ms RTO
- If 'HZ = 100' (10 ms tick), ceil(231/10)=23 jiffies -> 240 ms RTO

*178 ms average RTT*

- HZ=1000 (1 ms tick): 378 ms RTO
- HZ=250 (4 ms tick): ceil(378/4)=95 -> 380 ms RTO
- HZ=100 (10 ms tick): ceil(378/10)=38 -> 380 ms RTO

*292 ms average RTT*

- HZ=1000 (1 ms tick): 492 ms RTO
- HZ=250 (4 ms tick): ceil(492/4)=123 -> 492 ms RTO
- HZ=100 (10 ms tick): ceil(492/10)=50 -> 500 ms RTO

Any loss or jitter will increase those RTO values.
2025-08-26 19:37:48 +02:00
@RubenKelevra
870baa96be sysctl: Enable linear RTO for thin TCP streams (#4238)
Set net.ipv4.tcp_thin_linear_timeouts=1 to switch retransmission
timeout (RTO) backoff from exponential to linear for 'thin' TCP flows.
This reduces tail latency for API-style connections that typically have
very few packets in flight, improving recovery from sporadic loss without
changing anything for larger TCP transfers.

Kernel definition: A flow is considered thin when 'tp->packets_out < 4'
and while not in the initial slow start.

See tcp_stream_is_thin(tp) in include/net/tcp.h.
2025-08-26 19:23:14 +02:00
Viacheslav Bocharov
22fe9b19ee Rework /usr/sbin/hassos-supervisor script (#4248)
* Rework /usr/sbin/hassos-supervisor script:
- remove hardcoded url for image
- add get image url from updater.json/internet
- add SUPERVISOR_CHANNEL defaults to stable

Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>

* Fix small catches in hassos-supervisor

Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>

* Update buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor

Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>

---------

Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>
2025-08-25 18:00:18 +02:00
J. Nick Koston
62747cd622 bluetooth: Increase TemporaryTimeout to 195 seconds (#4249)
Increase the BlueZ temporary device timeout from the default 30s to 195s.
This prevents devices from being removed from D-Bus during connection
retries, especially when multiple connection attempts are queued.

The 195s timeout aligns with Home Assistant's Bluetooth stack behavior
for ESPHome proxies and prevents the 'device removal spiral' that occurs
when devices timeout during sequential connection attempts.
2025-08-25 13:44:00 +02:00
Jan Čermák
45985ad4a3 Generate list of built-in containers in GH build summary (#4247)
Add list of hassio components from version.json that are built-in in the data
partition to the GH step summary. For landingpage, get the latest stable
release at the time of the build, as it's what should be published as
homeassistant:landingpage by that time.

Closes #4242
2025-08-21 00:22:02 +02:00
Jan Čermák
71d222ad91 Add checkbox for running test in GH build workflow (#4246)
Currently when we run a build with limited set of boards that doesn't include
OVA, the test job fails because the OVA artifact is missing. Add a checkbox for
running tests and ensure that OVA artifact is built if it's enabled.
2025-08-21 00:19:48 +02:00
Marat Radchenko
effe4d3e73 Fix scripts/enter.sh so it is usable on macOS (#4243)
* Fix scripts/enter.sh so it is usable on macOS

Also, stop requiring `sudo` for actions that do not need it

Tested by building generic_x86_64 target on a macOS machine

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>

* Update scripts/enter.sh

Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>

---------

Signed-off-by: Marat Radchenko <marat@slonopotamus.org>
Co-authored-by: Jan Čermák <sairon@users.noreply.github.com>
2025-08-20 10:24:36 +02:00
Jan Čermák
419d40012f Fix missing rpi-rf-mod overlay on Yellow (#4244)
Before update to Buildroot 2025.02, the overlays directory on Yellow was
created by rpi-firmware in a condition added confusingly in firmware bump [1].
However, this got lost during Buildroot update, and since Yellow doesn't copy
overlays from the rpi-firmware repo, the directory was never created and the
rpi-rf-mod.dtbo couldn't be copied there in pre-image build hook.

To make things more robust, create the overlays directory for rpi targets
conditionally in the hook instead of relying on rpi-firmware to create it.

[1] f1af1a0bf7

Fixes #4233
2025-08-20 09:56:52 +02:00
Jan Čermák
1915f2194b Linux: Update kernel to 6.12.42 (#4241)
* https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.42
2025-08-18 17:05:53 +02:00
Jan Čermák
06b55a62db Bump Buildroot to 2025.02.5 (#4235)
* buildroot b73c8daa24...6230ff1cbf (1):
  > Merge tag '2025.02.5' into 2025.02.x-haos
2025-08-15 15:33:48 +02:00
Jan Čermák
4e000b8a7e Enable publishing of dev builds to R2 without bumping version (#4232)
* Enable publishing of dev builds to R2 without bumping version

We currently can only use Github artifacts for on-demand builds from feature
branches. However, downloading of these requires authentication and it's tricky
to update a device if we need feedback from user testing. On the other hand, we
never want to publish to the dev channel from anything else than from the dev
branch. Restrict version bump to builds from release channels or from the dev
branch only.

* Use YYYYMMDD dev suffix only for published dev branch

For feature builds, or for builds that should not be published, use timestamp
suffix instead of YYYYMMDD. That way feature builds won't collide with dev
releases.
2025-08-15 10:43:35 +02:00