Port Nokia 800 Tough (nokia-coconut), fix microSD detection, and stage upcoming a1120 (cocojamboo) build

- Migrate nokia-tough to canonical nokia-coconut while keeping CLI aliases, add layered bootloader/lk2nd/nokia-coconut.patch, bootfs/bootimg validators, and offline scripts/inspect-stock-msm8905-dump.py

- Complete nokia-coconut Stage 2 hardware bring-up: wire 6-column 22-key keypad (gpio0, gpio3, gpio7, gpio99, gpio6, gpio1), gpio98 KEY_POWER, and pon@800:resin KEY_DOWN (0x6c); split leds-msm8905-torch into GPIO_13 white:torch (dedicated top-edge flashlight) and GPIO_32 camera:flash (rear camera flash for camera.so and bananarchy-photo)

- Restore sdhci@7864000 non-removable across all six DTS/DTB targets, remove unwired gpio38 cd-gpios/sdc2-cd-* states, and harden sxmo_sdcard.sh under flock

- Register upcoming build a1120 (cocojamboo) in scripts/version.sh, scripts/check-rebuild.sh, CHANGELOG.md, AGENTS.md, README.md, and MANUAL.md with verified hashes across nokia-argon, nokia-beatles, and nokia-coconut
This commit is contained in:
Luxferre committed 2026-11-15 18:00:10 +02:00
1 parent fc5c4282f5
commit ab53423e33
60 files changed
+2669 -453

No files matched your search

+13 -6
View File
@@ -17,7 +17,7 @@ Usage: bananarchy-photo [options] [output_file]
Options:
-d, --device <dev> V4L2 video device (default: /dev/video0)
-f, --flash Enable rear flashlight (white:torch) during capture
-f, --flash Enable rear camera flash LED (camera:flash / white:torch) during capture
-v, --view Open captured photo in imv after saving
-m, --menu Open interactive Sxmo camera menu
-h, --help Show this help message
@@ -97,10 +97,17 @@ take_photo() {
return 1
fi
flash_led=""
if [ -w /sys/class/leds/camera:flash/brightness ]; then
flash_led="/sys/class/leds/camera:flash/brightness"
elif [ -w /sys/class/leds/white:torch/brightness ]; then
flash_led="/sys/class/leds/white:torch/brightness"
fi
prev_torch=""
if [ "$flash_flag" -eq 1 ] && [ -w /sys/class/leds/white:torch/brightness ]; then
prev_torch="$(cat /sys/class/leds/white:torch/brightness 2>/dev/null || echo 0)"
echo 1 > /sys/class/leds/white:torch/brightness 2>/dev/null || true
if [ "$flash_flag" -eq 1 ] && [ -n "$flash_led" ]; then
prev_torch="$(cat "$flash_led" 2>/dev/null || echo 0)"
echo 1 > "$flash_led" 2>/dev/null || true
sleep 0.15
fi
@@ -111,8 +118,8 @@ take_photo() {
--set-fmt-video=width=800,height=600,pixelformat=RGB3 \
--stream-mmap --stream-count=1 --stream-to="$frame_tmp" >/dev/null 2>&1 || rc=$?
if [ "$flash_flag" -eq 1 ] && [ -n "$prev_torch" ] && [ -w /sys/class/leds/white:torch/brightness ]; then
echo "$prev_torch" > /sys/class/leds/white:torch/brightness 2>/dev/null || true
if [ "$flash_flag" -eq 1 ] && [ -n "$prev_torch" ] && [ -n "$flash_led" ]; then
echo "$prev_torch" > "$flash_led" 2>/dev/null || true
fi
if [ "$rc" -ne 0 ] || [ ! -s "$frame_tmp" ]; then