Use new function fitblk_get_bootdev in /lib/upgrade/common.sh instead.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
bananapi,bpi-r3|\
bananapi,bpi-r3-mini|\
bananapi,bpi-r4)
- . /lib/upgrade/platform.sh
+ . /lib/upgrade/common.sh
- bootdev="$(platform_get_bootdev)"
+ bootdev="$(fitblk_get_bootdev)"
case "$bootdev" in
ubi*)
ubootenv_add_ubi_default
ubootenv_add_ubi_default
;;
bananapi,bpi-r64)
- . /lib/upgrade/platform.sh
- bootdev="$(platform_get_bootdev)"
+ . /lib/upgrade/common.sh
+ bootdev="$(fitblk_get_bootdev)"
case "$bootdev" in
mmc*)
ubootenv_add_mmc_default "${bootdev%p[0-9]*}"
case "$board" in
bananapi,bpi-r2)
- . /lib/upgrade/platform.sh
- bootdev="$(platform_get_bootdev)"
+ . /lib/upgrade/common.sh
+ bootdev="$(fitblk_get_bootdev)"
ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1"
;;
unielec,u7623-02)