Files
besser/scripts/build-bes2600-on-ohm.sh
T
test0r e580126d84 Initial: BESser umbrella for BES2600 driver mainlining
Sets up the BES2600 mainlining work tree with:

- README: project overview, hardware target, driver lineage
  (CW1200 -> Bestechnic -> arjan-vlek -> Mobian/danctnix), patch series
  status, repo map, build/deploy workflow.

- patches/: c1 patch generated by git format-patch from
  marfrit/bes2600-dkms branch bes2600/factory-request-firmware
  (checkpatch.pl --no-tree --strict: 0 errors / 0 warnings / 0 checks).

- scripts/: build-bes2600-on-ohm.sh, deploy-c1-to-ohm.sh,
  backup-ohm-kernel.sh - reproducible build + deploy + backup.

- fw-analysis/: per-blob strings.txt + fnnames.txt extracted from the
  4 firmware blobs pulled from ohm 2026-04-21. Source binaries NOT
  committed (Bestechnic-proprietary).

- notes/: observed-bugs.md (4 known bug surfaces with file:line +
  patch-series cross-reference), source-map.md (every public driver
  source variant + their canonical role).

Companion work tree: marfrit/bes2600-dkms (Mobian DKMS fork) at
git.reauktion.de.

Signed-off-by: Markus Fritsche <fritsche.markus@gmail.com>
2026-04-22 10:13:23 +02:00

29 lines
1006 B
Bash
Executable File

#!/bin/bash
# Native aarch64 build of bes2600 driver on ohm.
#
# Requires linux-pinetab2-headers package installed:
# sudo pacman -S --noconfirm linux-pinetab2-headers
#
# Source tree expected at /home/mfritsche/bes2600-build/ — populate via:
# tar -C ~/src/besser/linux-pinetab2/drivers/staging/bes2600 -cf - . | \
# ssh mfritsche@ohm.vpn 'mkdir -p ~/bes2600-build && tar -C ~/bes2600-build -xf -'
#
# (Mobian DKMS layout works too if you point at the bes2600/ subdir.)
set -e
cd /home/mfritsche/bes2600-build || { echo "no source tree at /home/mfritsche/bes2600-build"; exit 1; }
[ -f Makefile ] || { echo "no Makefile in source tree"; exit 1; }
# Clean stale root-owned files (in case sudo-make left some)
sudo -n chown -R mfritsche:mfritsche . 2>/dev/null || true
make clean
# Native parallel build (4 cores on ohm)
make -j4
# Strip to manageable size + report
strip --strip-debug bes2600.ko -o bes2600.stripped.ko
ls -lh *.ko
modinfo bes2600.stripped.ko | grep -E 'srcversion|vermagic'