openwrt/target/linux
Szabolcs Hubai fafc9448ae 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>
(cherry picked from commit c293b492df)
2022-11-12 21:55:11 +01:00
..
apm821xx kernel: bump 5.10 to 5.10.150 2022-11-01 13:56:10 +01:00
archs38 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
armvirt generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
at91 kernel: bump 5.10 to 5.10.143 2022-09-17 15:58:25 +02:00
ath25 kernel: bump 5.10 to 5.10.137 2022-08-28 07:24:59 +02:00
ath79 ath79: fix MAC address assignment for TP-Link ar7241 devices 2022-11-12 21:55:11 +01:00
bcm27xx kernel: bump 5.10 to 5.10.152 2022-11-01 13:56:11 +01:00
bcm47xx generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
bcm53xx kernel: bump 5.10 to 5.10.150 2022-11-01 13:56:10 +01:00
bcm63xx kernel: bump 5.10 to 5.10.137 2022-08-28 07:24:59 +02:00
bcm4908 bcm4908: backport upstream BQL support for bcm4908_enet 2022-11-03 07:53:51 +01:00
bmips bmips: dgnd3700v2: fix network config 2022-06-07 21:36:58 +02:00
gemini generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
generic kernel: bump 5.10 to 5.10.152 2022-11-01 13:56:11 +01:00
imx imx: fix USB support 2022-03-11 00:04:05 +01:00
ipq40xx ipq40xx: fix ZTE MF289F port mapping 2022-11-05 22:49:43 +01:00
ipq806x kernel: bump 5.10 to 5.10.152 2022-11-01 13:56:11 +01:00
kirkwood generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
lantiq kernel: bump 5.10 to 5.10.137 2022-08-28 07:24:59 +02:00
layerscape kernel: bump 5.10 to 5.10.137 2022-08-28 07:24:59 +02:00
malta generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
mediatek kernel: bump 5.10 to 5.10.150 2022-11-01 13:56:10 +01:00
mpc85xx kernel: bump 5.10 to 5.10.150 2022-11-01 13:56:10 +01:00
mvebu mvebu: backport pending Turris Omnia LEDs improvements 2022-08-16 15:39:16 +02:00
mxs generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
octeon octeon: fix imagebuilder generation by introducing generic target 2022-10-23 14:21:03 +02:00
octeontx kernel: bump 5.10 to 5.10.138 2022-08-28 07:24:59 +02:00
omap generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
oxnas kernel: bump 5.10 to 5.10.150 2022-11-01 13:56:10 +01:00
pistachio kernel: mtd: backport extended dynamic partitions support 2022-10-27 08:41:33 +02:00
qoriq qoriq: fix typo in FEATURES 2022-11-11 16:25:29 +02:00
ramips ramips: rt3883: use seama-lzma-loader for D-Link DIR-645 2022-11-12 21:55:11 +01:00
realtek kernel: bump 5.10 to 5.10.146 2022-10-04 00:03:27 +02:00
rockchip kernel: bump 5.10 to 5.10.152 2022-11-01 13:56:11 +01:00
sunxi kernel: bump 5.10 to 5.10.137 2022-08-28 07:24:59 +02:00
tegra kernel: bump 5.10 to 5.10.132 2022-07-30 17:21:47 +02:00
uml generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
x86 kernel: bump 5.10 to 5.10.136 2022-08-14 21:06:53 +02:00
zynq generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
Makefile build: fix issues with targets installed via feeds 2022-09-27 13:45:03 +02:00