Arcadyan ARV7519RW22 kernel size (boot error)

It seems that image build for this device on the master branch has been disabled, because u-boot cannot boot compressed kernels larger than 2048 KBytes.

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=c027dbac5a5222e6be4706a7a6a0effefce8ae76

I tried changing kernel size to 4096KB (otherwise compilation ends with error) but:

Hit any key to stop autoboot:  0 
## Booting kernel from Legacy Image at b0080000 ...
   Image Name:   MIPS OpenWrt Linux-5.10.92
   Created:      2022-01-25  16:11:19 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2726297 Bytes = **2.6 MiB**
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must RESET b

See here: Astoria ARV7519RW22 bootloops after upgrade

Since this device does not have a fixed kernel partition, it is possible to modify the u-boot sources, compile and flash to get it to boot larger than 2048Kbytes of kernel size. Here are the sources. https://github.com/danielschwierzeck/u-boot-lantiq/tree/openwrt/v2014.04

In OpenWRT sources there is a patch to modify the size of the boot memory for the VGV7519. This patch must be applied to the u-boot sources (for the ARV7519RW22 it is the file include/configs/arv7519rw.h in u-boot-lantiq sources), compile and flash the new u-boot. I haven't done it because it needs the crosscompile sources for lantiq and i don't have much time to search for them. It would be great if someone with more time could cook up a newer u-boot for this device with that fix.

With the latest changes this SoC has become something interesting.

Please help supporting this device!

I join the request, the latest development published is OpenWrt 19.07.10 with a 4.14.262 kernel, although I managed to compile with a 5.4.97 kernel but I had to format the disk and I lost the sources, I can't imagine that the repository disappeared or I had saved them, I have this one working still connected to an Arduino via USB to transmit sensor readings to other devices on my local network and I have another one connected to a webcam and the truth is that it is going very well but the development has stayed there, this is the start of the core:

[    0.000000] Linux version 5.4.97 (lenam@lenam-System-Product-Name) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15759-ce4cb8e51d)) #0 SMP Sun Feb 14 14:36:09 2021
[    0.000000] SoC: xRX200 rev 1.2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[    0.000000] MIPS: machine is Orange Livebox 2.1
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Detected 1 available secondary CPU(s)
[    0.000000] Primary instruction cache 32kB, 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] percpu: Embedded 14 pages/cpu s26160 r8192 d22992 u57344
[    0.000000] pcpu-alloc: s26160 r8192 d22992 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyLTQ0,115200
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=0000000f
[    0.000000] Readback ErrCtl register=0000000f
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 120464K/131072K available (5953K kernel code, 211K rwdata, 1532K rodata, 1248K init, 221K bss, 10608K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x33c/0x54c with crng_init=0
[    0.000000] CPU Clock: 500MHz