ramips: add support for Z-router ZR-2662
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 13 Jan 2022 16:39:13 +0000 (18:39 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 30 Mar 2022 10:37:42 +0000 (13:37 +0300)
commitdb48cf65786b3de82d6a074ee3ddaccd32c3e2ab
treecaa60c4783f041a7b2cc4dc8dd1944db0315593c
parent8822a8d850ba2df69b81289758959bb90643a696
ramips: add support for Z-router ZR-2662

WIP

Without lzma-loader the kernel does not boot:

 Uncompressing Kernel Image ... lzma compressed: uncompress error 1
 Must RESET board to recover

Changing LINUX_LOADADDR to 0x81001000 as used by OEM solves the lzma
error but then the kernel doesn't boot - no output at all on the console
after this line:

 Loading Device Tree to 9be77000, end 9be7c4b7 ... OK

Eventually came accross this forum post:
https://forum.openwrt.org/t/compile-ramips-with-data-address-at-0x81001000-instead-of-0x80001000/97379

Which seems solve the problem. The question is: is there a better way?
Can't find any documentation about lzma-loader, what it does exactly,
and why it is needed, so for now this allows to boot OpenWrt from flash.
target/linux/ramips/dts/mt7621_zrouter_zr-2662-v1.dts [new file with mode: 0644]
target/linux/ramips/image/mt7621.mk
target/linux/ramips/mt7621/base-files/etc/board.d/02_network
target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac