Bring up nokia-sparkler SMP/cpufreq/lk2nd/cam/haptics, fix timer and EDL USB timeout

- Add 0013 early-SCM 4-core SMP + cpufreq kernel patch and clock-frequency DT nodes
- Complete nokia-sparkler lk2nd port, boot/X11 session startup, 180-deg cached camera, and 157 Hz haptic audio
- Replace root-only timer backend with permissionless sxmo_timer.sh and keypad/hook cancellation
- Fix EDL Firehose rawmode ACK, USB active-config preservation, *+# hint, and 30 s default USB timeout
- Sync a1120 (cocojamboo) prebuilts, docs, tests, and verified checksums in check-rebuild.sh
This commit is contained in:
Luxferre committed 2026-11-16 11:45:38 +02:00
1 parent ab53423e33
commit d7992904bf
56 files changed
+31850 -28281

No files matched your search

+41 -14
View File
@@ -27,14 +27,37 @@ STOCK_BOARD_ID = struct.pack(">2I", 0x1000b, 0x100)
STOCK_PMIC_ID = struct.pack(">4I", 0x1000d, 0, 0, 0)
MEMORY_512M = struct.pack(">2I", 0x80000000, 0x20000000)
DEVICE_MODELS = {
"nokia-beatles": "Nokia 2720 Flip",
"nokia-coconut": "Nokia 800 Tough",
}
DEVICE_SHORT = {
"nokia-beatles": "2720",
"nokia-coconut": "800 Tough",
DEVICE_SPECS = {
"nokia-beatles": {
"model": "Nokia 2720 Flip",
"short": "2720",
"compatible": b"nokia,beatles",
"msm_id": STOCK_MSM_ID,
"board_id": STOCK_BOARD_ID,
"pmic_id": STOCK_PMIC_ID,
"addrs": (0x80008000, 0x81000000, 0x80000100),
},
"nokia-coconut": {
"model": "Nokia 800 Tough",
"short": "800 Tough",
"compatible": b"nokia,coconut",
"msm_id": STOCK_MSM_ID,
"board_id": STOCK_BOARD_ID,
"pmic_id": STOCK_PMIC_ID,
"addrs": (0x80008000, 0x81000000, 0x80000100),
},
"nokia-sparkler": {
"model": "Nokia 8000 4G",
"short": "8000 4G",
"compatible": b"nokia,sparkler",
"msm_id": struct.pack(">2I", 0xf5, 0),
"board_id": struct.pack(">2I", 0x8, 0x100),
"pmic_id": STOCK_PMIC_ID,
"addrs": (0x80008000, 0x82700000, 0x82500000),
},
}
DEVICE_MODELS = {dev: spec["model"] for dev, spec in DEVICE_SPECS.items()}
DEVICE_SHORT = {dev: spec["short"] for dev, spec in DEVICE_SPECS.items()}
def align(value, page):
@@ -110,8 +133,9 @@ def parse_args():
def main():
args = parse_args()
device = args.device
short_name = DEVICE_SHORT[device]
expected_model = DEVICE_MODELS[device]
spec = DEVICE_SPECS[device]
short_name = spec["short"]
expected_model = spec["model"]
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
boot = args.image or os.path.join(base, "images", "boot-bananarchy-%s.img" % device)
if not os.path.isfile(boot):
@@ -137,7 +161,7 @@ def main():
for flag in ("loglevel=8", "ignore_loglevel", "initcall_debug"):
if flag in cmdline_parts:
problems.append("cmdline still has kernel debug flag %s" % flag)
if kernel_addr != 0x80008000 or ramdisk_addr != 0x81000000 or tags_addr != 0x80000100:
if (kernel_addr, ramdisk_addr, tags_addr) != spec["addrs"]:
problems.append("boot header load addresses do not match the stock %s" % short_name)
kernel_off = page
dtb_rel = struct.unpack_from("<I", data, kernel_off + DTB_OFFSET_FIELD)[0]
@@ -155,11 +179,14 @@ def main():
model = root.get("model", b"").rstrip(b"\0").decode("utf-8", "replace")
if model != expected_model:
problems.append("appended DTB model is %r (expected %r)" % (model, expected_model))
for prop, expected in (("qcom,msm-id", STOCK_MSM_ID),
("qcom,board-id", STOCK_BOARD_ID),
("qcom,pmic-id", STOCK_PMIC_ID)):
compat_tokens = [c for c in root.get("compatible", b"").split(b"\0") if c]
if spec["compatible"] not in compat_tokens:
problems.append("appended DTB compatible %r lacks %r" % (compat_tokens, spec["compatible"]))
for prop, expected in (("qcom,msm-id", spec["msm_id"]),
("qcom,board-id", spec["board_id"]),
("qcom,pmic-id", spec["pmic_id"])):
if root.get(prop) != expected:
problems.append("%s does not match the stock %s QRD SKUB value" % (prop, short_name))
problems.append("%s does not match the expected %s value" % (prop, short_name))
mem = None
for path, props in nodes.items():
if props.get("device_type") == b"memory\0":