mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-03 04:26:55 +00:00
uboot-envtools: replace use of platform_get_bootdev
Use new function fitblk_get_bootdev in /lib/upgrade/common.sh instead. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
5992f976b3
commit
fc865eb3ae
@ -39,9 +39,9 @@ asus,rt-ax59u)
|
|||||||
bananapi,bpi-r3|\
|
bananapi,bpi-r3|\
|
||||||
bananapi,bpi-r3-mini|\
|
bananapi,bpi-r3-mini|\
|
||||||
bananapi,bpi-r4)
|
bananapi,bpi-r4)
|
||||||
. /lib/upgrade/platform.sh
|
. /lib/upgrade/common.sh
|
||||||
|
|
||||||
bootdev="$(platform_get_bootdev)"
|
bootdev="$(fitblk_get_bootdev)"
|
||||||
case "$bootdev" in
|
case "$bootdev" in
|
||||||
ubi*)
|
ubi*)
|
||||||
ubootenv_add_ubi_default
|
ubootenv_add_ubi_default
|
||||||
|
@ -35,8 +35,8 @@ linksys,e8450-ubi)
|
|||||||
ubootenv_add_ubi_default
|
ubootenv_add_ubi_default
|
||||||
;;
|
;;
|
||||||
bananapi,bpi-r64)
|
bananapi,bpi-r64)
|
||||||
. /lib/upgrade/platform.sh
|
. /lib/upgrade/common.sh
|
||||||
bootdev="$(platform_get_bootdev)"
|
bootdev="$(fitblk_get_bootdev)"
|
||||||
case "$bootdev" in
|
case "$bootdev" in
|
||||||
mmc*)
|
mmc*)
|
||||||
ubootenv_add_mmc_default "${bootdev%p[0-9]*}"
|
ubootenv_add_mmc_default "${bootdev%p[0-9]*}"
|
||||||
|
@ -13,8 +13,8 @@ board=$(board_name)
|
|||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
bananapi,bpi-r2)
|
bananapi,bpi-r2)
|
||||||
. /lib/upgrade/platform.sh
|
. /lib/upgrade/common.sh
|
||||||
bootdev="$(platform_get_bootdev)"
|
bootdev="$(fitblk_get_bootdev)"
|
||||||
ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1"
|
ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1"
|
||||||
;;
|
;;
|
||||||
unielec,u7623-02)
|
unielec,u7623-02)
|
||||||
|
Loading…
Reference in New Issue
Block a user