mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-24 22:16:14 +00:00
085feb60ad
This device only has 64 MiB RAM and ath10k wireless driver will consume a lot of memory. Let's move it to the tiny sub-target to get extra 7 MiB of free space. In this way, we can extend their lifetime to receive support for the next OpenWrt LTS version. This patch also trims the duplicate "recovery.bin" image as it's the same as the "factory.bin". Signed-off-by: Shiji Yang <yangshiji66@qq.com>
29 lines
583 B
Plaintext
29 lines
583 B
Plaintext
. /lib/functions.sh
|
|
|
|
fix_seama_header() {
|
|
local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
|
|
[ "$kernel_size" ] && mtd -c 0x$kernel_size fixseama firmware
|
|
}
|
|
|
|
fixwrgg() {
|
|
local kernel_size=$(sed -n 's/mtd[0-9]*: \([0-9a-f]*\).*"kernel".*/\1/p' /proc/mtd)
|
|
[ "$kernel_size" ] && mtd -c 0x$kernel_size fixwrgg firmware
|
|
}
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
dlink,dap-2230-a1|\
|
|
dlink,dap-2660-a1|\
|
|
dlink,dap-2680-a1|\
|
|
dlink,dap-2695-a1|\
|
|
dlink,dap-3320-a1|\
|
|
dlink,dap-3662-a1)
|
|
fixwrgg
|
|
;;
|
|
dlink,dir-629-a1|\
|
|
qihoo,c301)
|
|
fix_seama_header
|
|
;;
|
|
esac
|