openwrt/target/linux
Szabolcs Hubai c293b492df ramips: rt3883: use seama-lzma-loader for D-Link DIR-645
In the support topic [0] of the GitHub issue #10634 it was found out
(based on boot logs) that the uimage-lzma-loader (commit 09faa73c53)
never worked, as an earlier workaround (commit 6fba88de19) negated
the recipe:

    3: System Boot system code via Flash.
    ## Booting image at bc050000 ...
    raspi_read: from:50000 len:40
    .raspi_read: from:50000 len:c
    .raspi_read: from:50000 len:1fa000
    ................................We have SEAMA, Image Size = 2072512
    Verifying Checksum ...
    Uncompressing SEAMA linux.lzma ... OK
    ## Transferring control to Linux (at address 80000000) ...
    ## Giving linux memsize in MB, 64

    Starting kernel ...

    [    0.000000] Linux version 5.4.188 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 Sat Apr 16 12:59:34 2022
    [    0.000000] SoC Type: Ralink RT3883 ver:1 eco:5
    [    0.000000] printk: bootconsolde [early0] enabled
    [    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
    [    0.000000] MIPS: machine is D-Link DIR-645
    [    0.000000] Initrd not found or empty - disabling initrd

Using the new seama-lzma-loader it's able to boot OpenWrt 22.03
and OpenWrt SNAPSHOT too:

    3: System Boot system code via Flash.
    ## Booting image at bc050000 ...
    raspi_read: from:50000 len:40
    .raspi_read: from:50000 len:c
    .raspi_read: from:50000 len:48b004
    .........................................................................We have SEAMA, Image Size = 4763588
    Verifying Checksum ...
    Uncompressing SEAMA linux.lzma ... OK
    ## Transferring control to Linux (at address 80000000) ...
    ## Giving linux memsize in MB, 64

    Starting kernel ...

    OpenWrt kernel loader for MIPS based SoC
    Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
    Decompressing kernel... done!
    Starting kernel at 80000000...

    [    0.000000] Linux version 5.10.144 (xabolcs@ut2004) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.3.0 r20774+2-b71affaf8b) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 Tue Sep 27 23:02:30 2022
    [    0.000000] SoC Type: Ralink RT3883 ver:1 eco:5
    [    0.000000] printk: bootconsole [early0] enabled
    [    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
    [    0.000000] MIPS: machine is D-Link DIR-645
    [    0.000000] Initrd not found or empty - disabling initrd
    [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
    [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
    [    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2

The OKLI Loader is unable to read the flash on this SoC:

    Looking for OpenWrt image... not found! ('0xddbaddba' at 0xbc051000)

0: https://forum.openwrt.org/t/136435

Fixes: GitHub issue #10634 ("V22.03.0 release currently does not work on D-Link DIR-645")
Fixes: 09faa73c53 ("ramips: rt3883: use lzma-loader for DIR-645")
Tested-by: Glenn Fowler <gfowler1@outlook.com>
Signed-off-by: Szabolcs Hubai <szab.hu@gmail.com>
2022-11-12 18:15:55 +01:00
..
airoha airoha: fix imagebuilder generation by introducing generic target 2022-10-13 17:38:59 +02:00
apm821xx kernel: bump 5.10 to 5.10.154 2022-11-12 17:05:13 +01:00
archs38 kernel: remove target specific CONFIG_IKCONFIG lines 2022-10-14 13:15:47 +02:00
armvirt kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
at91 at91: Remove CONFIG_PINCTRL_MCP23S08 configuration option 2022-10-31 00:46:15 +01:00
ath25 kernel: bump 5.10 to 5.10.137 2022-08-23 10:37:04 +02:00
ath79 ath79: fix MAC address assignment for TP-Link ar7241 devices 2022-11-12 17:10:12 +01:00
bcm27xx kernel: bump 5.15 to 5.15.78 2022-11-12 17:05:13 +01:00
bcm47xx mac80211: remove old legacy legacy drivers 2022-11-09 20:44:28 +01:00
bcm53xx bcm53xx: update DTS files with the latest changes 2022-11-10 09:51:25 +01:00
bcm63xx kernel: bump 5.15 to 5.15.62 2022-08-23 10:37:04 +02:00
bcm4908 bcm4908: refresh kernel 5.15 config 2022-11-11 17:21:55 +01:00
bmips kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
gemini kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
generic kernel: bump 5.10 to 5.10.154 2022-11-12 17:05:13 +01:00
imx kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
ipq40xx ipq40xx: add support for GL.iNet GL-A1300 2022-11-09 23:34:37 +01:00
ipq806x ipq806x: kernel ramoops storage for C2600/AD7200 2022-11-09 17:07:15 +01:00
kirkwood kernel: remove hack patch, move kirkwood specific kmods to target modules.mk 2022-09-30 12:59:19 +02:00
lantiq kernel: bump 5.15 to 5.15.77 2022-11-05 16:26:38 +01:00
layerscape layerscape: armv8_64b: add CONFIG_ARM64_ERRATUM_1742098 2022-10-30 17:54:59 +01:00
malta kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
mediatek mediatek: filogic: enable maxlinear PHY support, refresh config 2022-11-09 20:43:55 +01:00
mpc85xx kernel: bump 5.15 to 5.15.75 2022-10-30 17:54:59 +01:00
mvebu mvebu: cortexa72: add CONFIG_ARM64_ERRATUM_1742098 2022-10-30 17:55:00 +01:00
mxs target/mxs: replace gpio-mcp23s08 with pinctrl-mcp23s08 2022-10-30 23:14:45 +01:00
octeon kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
octeontx kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
omap kernel: remove target specific CONFIG_IKCONFIG lines 2022-10-14 13:15:47 +02:00
oxnas kernel: bump 5.15 to 5.15.75 2022-10-30 17:54:59 +01:00
pistachio kernel: backport support for "linux,rootfs" in DT 2022-11-08 09:12:16 +01:00
qoriq qoriq: fix typo in FEATURES 2022-10-05 14:36:00 +03:00
ramips ramips: rt3883: use seama-lzma-loader for D-Link DIR-645 2022-11-12 18:15:55 +01:00
realtek realtek: fix typo in debug message 2022-11-05 16:27:21 +01:00
rockchip rockchip: armv8: add CONFIG_ARM64_ERRATUM_1742098 2022-10-30 17:55:00 +01:00
sunxi kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic config 2022-10-21 13:47:01 +02:00
tegra kernel: Move some IOMMU options to generic 2022-09-24 13:49:47 +02:00
uml kernel: bump 5.10 to 5.10.146 2022-10-02 20:21:55 +02:00
x86 x86: switch to 5.15 as default kernel 2022-10-19 21:40:23 +02:00
zynq kernel: remove target specific CONFIG_IKCONFIG lines 2022-10-14 13:15:47 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:41:12 +02:00