Commit Graph

727 Commits

Author SHA1 Message Date
Douglas Teles ff1d3962ec FASE 1: Switch ZRAM to zstd, disable zswap
- ZRAM compression: lzo-rle → zstd (better 1:3 ratio vs 1:2.5, saves
  ~50MB more RAM on 512MB ZRAM at cost of slightly more CPU)
- Add zswap.enabled=0 to kernel cmdline (zswap intercepts before ZRAM,
  preventing efficient compressed swap)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 14:34:00 -03:00
Douglas Teles 85325f88a3 FASE 0+1+2: Production build audit fixes and infrastructure
Kernel config hardening:
- FRAME_POINTER=n: Saves 3-5% CPU overhead on ARM64 (wastes registers)
- DEBUG_FS=n: Remove debugfs mount (memory + attack surface)
- IKCONFIG=n: Save 100-300KB (kernel config in /proc not needed in production)

Mesa/Panfrost:
- Add persistent shader cache (MESA_SHADER_CACHE_DIR + 128MB max)
  Avoids shader recompilation on every emulator launch

I/O scheduler:
- Enhanced BFQ udev rule: low_latency=1, read_ahead=2048KB, nr_requests=128
  Reduces ROM loading stutter on microSD

Sysctl:
- Add vm.dirty_expire_centisecs=3000 (dirty pages expire after 30s)
- Add vm.page-cluster=0 (single-page swap for ZRAM, instant swap-in)

Infrastructure:
- Create tools/audit-build.sh: comprehensive production build audit script
  Checks kernel debug flags, Mesa env vars, binary stripping, emulator
  build types, system state, active services

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-18 14:29:06 -03:00
Douglas Teles c542304146 New architecture release 2026-03-18 17:32:41 -03:00
Danil Zagoskin a8d9a45562 return upload_to_filebin tool 2025-11-16 21:03:46 +00:00
Danil Zagoskin 4ffb5850cb add tools/imgburn.sh script for easy SD flashing 2025-11-09 20:17:08 +00:00
tiopex 242efda07b Fix update mirror sources 2025-07-24 06:56:16 +02:00
Rudi Heitbaum fbc62e7636 docker: update to current Ubuntu releases 2025-05-23 09:30:41 +00:00
Christian Hewitt 48d751fff4 Merge pull request #10055 from heitbaum/mesahost
mesa: simplify host build logic
2025-05-16 09:53:44 +04:00
Rudi Heitbaum 7918d5e0ae tools/mkpkg/update_common_functions: replace wget with curl for fetching archives 2025-05-15 11:29:39 +00:00
Rudi Heitbaum 68261acd2f tools/docker/noble/Dockerfile: add upx-ucl to allow binary compression of mesa:host tools 2025-05-14 05:26:21 +00:00
Luz Paz b2235ef5e0 treewide: fix typos 2025-05-11 18:04:57 -04:00
Christian Hewitt c45a2ac118 tools: unbranding changes for distro-tool
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Christian Hewitt 0cf465a345 treewide: unbrand LIBREELEC_VERSION to DISTRO_VERSION
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
2025-05-11 12:28:50 +00:00
Lukas Rusak 72c54fa9d0 treewide: surrender personal copyright to Team LibreELEC 2025-04-13 15:10:26 +00:00
Matthias Reichl b6c682791e tools/ffmpeg/gen-patches.sh: switch RPi to dev/7.1.1/rpi_import_1 branch
Signed-off-by: Matthias Reichl <hias@horus.com>
2025-03-17 00:17:45 +00:00
Matthias Reichl c10bf1714b tools/ffmpeg/gen-patches: update to 7.1.1
Signed-off-by: Matthias Reichl <hias@horus.com>
2025-03-17 00:17:45 +00:00
Rudi Heitbaum 682bf6e685 tools/update-scan: update error handling and special case for jellyfin 2025-03-09 13:02:11 +00:00
Rudi Heitbaum edfab1c7b3 tools/docker/jammy: update to building with go-1.22 2025-02-12 08:35:01 +00:00
Rudi Heitbaum b1b0c47e3f tools/docker/noble: update to building with go-1.23 2025-02-12 08:34:49 +00:00
Rudi Heitbaum 1be3607fa6 tools/docker/focal: update Dockerfile to use golang-1.20 2025-02-04 07:25:35 +00:00
luzpaz 91a4766cef treewide: fix typos
Found via `codespell -q 3 -S "*.patch,*.po" -L acount,afile,distroname,parm,serie,synopsys`
2025-02-03 07:04:59 -05:00
Matthias Reichl 4a30e38416 tools/ffmpeg/gen-patches.sh: switch RPi to test/7.1/main branch
Also set PATCH_CREATE_DIFF="yes" as otherwise git apply fails
to apply the patch.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-12-22 12:21:51 +01:00
Matthias Reichl 086fa80a78 tools/ffmpeg/gen-patches: update to 7.1
Also switch libreelec patch branch to use FFMPEG_VERSION, like
used for the v4l2 patches.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-12-22 12:21:51 +01:00
Rudi Heitbaum aacdbf8a0c Merge pull request #9260 from CvH/13.0/change_version_update
change_addon_version: add binary-addons
2024-10-29 23:32:36 +11:00
Ian Leonard 509961e11d tools/distro-tool: error on 400 series http status codes
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2024-10-19 02:26:50 -04:00