- 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
48 lines
1.1 KiB
Bash
Executable File
48 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# Install the target-specific hostname, hosts file and hostname service link.
|
|
set -eu
|
|
|
|
ROOTFS="${1:-}"
|
|
DEVICE="${2:-nokia-argon}"
|
|
|
|
if [ -z "$ROOTFS" ] || [ ! -d "$ROOTFS" ]; then
|
|
echo "Usage: $0 <rootfs-dir> <device>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case "$DEVICE" in
|
|
nokia-argon|argon)
|
|
DEVICE="nokia-argon"
|
|
;;
|
|
nokia-beatles|beatles)
|
|
DEVICE="nokia-beatles"
|
|
;;
|
|
nokia-coconut|nokia-tough|coconut|tough)
|
|
DEVICE="nokia-coconut"
|
|
;;
|
|
nokia-sparkler|sparkler)
|
|
DEVICE="nokia-sparkler"
|
|
;;
|
|
nokia-leo|leo)
|
|
DEVICE="nokia-leo"
|
|
;;
|
|
*)
|
|
echo "Error: Unsupported device '$DEVICE'." >&2
|
|
echo "Supported devices: nokia-argon, nokia-beatles, nokia-coconut, nokia-sparkler, nokia-leo" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
mkdir -p "$ROOTFS/etc" "$ROOTFS/etc/runlevels/boot"
|
|
printf '%s\n' "$DEVICE" > "$ROOTFS/etc/hostname"
|
|
cat > "$ROOTFS/etc/hosts" <<EOF
|
|
127.0.0.1 $DEVICE localhost.localdomain localhost
|
|
::1 $DEVICE localhost ipv6-localhost ipv6-loopback
|
|
fe00::0 ipv6-localnet
|
|
ff00::0 ipv6-mcastprefix
|
|
ff02::1 ipv6-allnodes
|
|
ff02::2 ipv6-allrouters
|
|
ff02::3 ipv6-allhosts
|
|
EOF
|
|
ln -sfn /etc/init.d/hostname "$ROOTFS/etc/runlevels/boot/hostname"
|