openwrt-6.x/target/linux/ath79/image
INAGAKI Hiroshi 10a674d277 ath79: fix initramfs execution for NEC Aterm devices
Fix execution of initramfs image on NEC Aterm devices by increasing
available memory for lzma extraction of lzma-loader.

The size of initramfs image of v24.10.0 exceeds available memory
(LZMA_TEXT_START - LOADADDR) and loader data running at LZMA_TEXT_START
will be overwritten by extracted data. As a result, LZMA extraction will
be broken and stuck (or unexpectedly reset).
Fix that issue by setting higher LZMA_TEXT_START address to increase
available memory for LZMA extraction by lzma-loader.

log (v24.10.0):

boot> tftpd
tftpd start 192.168.0.1
boot> start tftp load openwrt-24.10.0-ath79-generic-ne
end tftp load length = 6569768
start memory load ...
memory load complete
  begin  : 0x80040000
  length : 6567044
  startup: 0x80040000

boot> boot
begin  : 0x80040000
length : 6567044
startup: 0x80040000
option: 0x0
NEC Aterm series (QCA9558)

Calibrating SGMII
SGMII cal value = 0xe

Configuring SGMII force mode
  SGMII_CONFIG : 0x000000a2
  MR_AN_CONTROL: 0x00008140
  MR_AN_CONTROL: 0x00000140

OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... [:<syntax:value>]');retu  <--- (stuck)
IPL:SOFT-RESET                    <--- (reset by WDT)
memory test ... ok
flinstall OK

boot version: 1.0.0
...

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18476
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-04-13 16:54:48 +02:00
..
bin
lzma-loader ath79: add support for NEC Aterm WG2200HP 2025-04-07 00:42:18 +02:00
common-buffalo.mk
common-mikrotik.mk mikrotik: switch to Yafut for building MikroTik NOR images 2024-06-05 17:03:24 +02:00
common-nec.mk ath79: fix initramfs execution for NEC Aterm devices 2025-04-13 16:54:48 +02:00
common-netgear.mk
common-senao.mk
common-tp-link.mk
common-ubnt.mk ath79: update WA/XC devices UBNT_VERSION to 8.7.4 2024-02-19 16:51:39 +01:00
common-yuncore.mk
generic-tp-link.mk ath79: move TP-Link RE450 v1 & v2 and RE355 v1 to tiny target 2025-03-31 23:59:12 +02:00
generic-ubnt.mk ath79: Upstream b53 DSA driver for Ubiquiti EdgeSwitch 8XP 2024-10-19 14:10:34 +02:00
generic.mk ath79: add support for NEC Aterm WG2200HP 2025-04-07 00:42:18 +02:00
Makefile ath79: lzma-loader: expose LZMA_TEXT_ADDRESS configuration again 2025-01-19 17:24:58 +01:00
mikrotik.mk ath79: support MikroTik RouterBOARD 911G-5HPacD 2024-01-07 01:19:56 +01:00
nand.mk ath79: ZTE MF281: use specific board definition file for qca9888 2025-03-16 22:10:05 +01:00
tiny-netgear.mk
tiny-tp-link.mk ath79: move TP-Link RE450 v1 & v2 and RE355 v1 to tiny target 2025-03-31 23:59:12 +02:00
tiny-ubnt.mk
tiny.mk ath79: add support for NEC Aterm WG600HP 2024-07-28 18:47:56 +02:00