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!