mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Create ipq60xx
This commit is contained in:
parent
a70e355678
commit
b88a42608d
1 changed files with 35 additions and 0 deletions
35
root/package/boot/uboot-envtools/files/ipq60xx
Normal file
35
root/package/boot/uboot-envtools/files/ipq60xx
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
[ -e /etc/config/ubootenv ] && exit 0
|
||||||
|
|
||||||
|
touch /etc/config/ubootenv
|
||||||
|
|
||||||
|
. /lib/uboot-envtools.sh
|
||||||
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
board=$(board_name)
|
||||||
|
|
||||||
|
case "$board" in
|
||||||
|
edimax,cax1800|\
|
||||||
|
redmi,ax6|\
|
||||||
|
xiaomi,ax3600|\
|
||||||
|
xiaomi,ax9000)
|
||||||
|
idx="$(find_mtd_index 0:appsblenv)"
|
||||||
|
[ -n "$idx" ] && \
|
||||||
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
|
||||||
|
;;
|
||||||
|
wf,hr6001|\
|
||||||
|
pangu,l6018)
|
||||||
|
idx="$(find_mtd_index 0:APPSBLENV)"
|
||||||
|
[ -n "$idx" ] && \
|
||||||
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x10000" "0x20000"
|
||||||
|
;;
|
||||||
|
qnap,301w)
|
||||||
|
idx="$(find_mtd_index 0:appsblenv)"
|
||||||
|
[ -n "$idx" ] && \
|
||||||
|
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x20000" "0x20000" "1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
config_load ubootenv
|
||||||
|
config_foreach ubootenv_add_app_config ubootenv
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue