[OpenWrt-Devel] [PATCH RFT] ramips: mt7621: use lzma-loader for all devices

Chuanhong Guo gch981213 at gmail.com
Tue Apr 14 06:19:47 EDT 2020


On Tue, Apr 14, 2020 at 5:27 PM <mail at adrianschmutzler.de> wrote:
> be aware that LZMA_TEXT_START=0x82000000, so this won't work on any 32 MB RAM devices if I calculated right.

Correct. But I assume there won't be enough memory for
userspace programs if uncompressed kernel reaches 5MB.

> This of course won't be a problem for mt7621, but if the same strategy is applied to other subtargets, LZMA_TEXT_START might be lowered then.
> So, maybe it would make sense to lower that right away before testing if that applies. (One obviously could also have subtarget-dependent values for that or just disable all 32 MB devices as well...) On ath79, for example, this value was chosen differently to work on 32 MB RAM devices as well.

lzma-loader can be executed from anywhere in memory. After
being executed, the first thing it does is copying itself to defined
LZMA_TEXT_START. We don't really need to test a change of
LZMA_TEXT_START on every boards as its our own code doing
the same thing. So I'd like to leave this untouched and change it
later if needed.

Chuanhong Guo

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list