diff options
author | Daniel Golle <daniel@makrotopia.org> | 2024-02-24 03:00:27 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2024-02-24 03:02:35 +0000 |
commit | 6368ed1ae5b628898b33273c8950f7b7575e4414 (patch) | |
tree | 45696ee55fb1b536e810dfcf6665e78a12371ce7 /package/boot/uboot-envtools/files | |
parent | 9b6427e9083fc2baeb67fca977f621d0c93fd6f2 (diff) |
mediatek: mt7623: phase out uImage.FIT partition parser
Use the new fitblk driver on the BananaPi R2 as well as UniElec U7623.
Introduce boot device selection for fitblk's /chosen/rootdisk
handle, similar to how it is already done on MT7622, MT7986 and MT7988.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-envtools/files')
-rw-r--r-- | package/boot/uboot-envtools/files/mediatek_mt7623 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/package/boot/uboot-envtools/files/mediatek_mt7623 b/package/boot/uboot-envtools/files/mediatek_mt7623 index fd2a01006a..a676e98bd7 100644 --- a/package/boot/uboot-envtools/files/mediatek_mt7623 +++ b/package/boot/uboot-envtools/files/mediatek_mt7623 @@ -13,10 +13,9 @@ board=$(board_name) case "$board" in bananapi,bpi-r2) - . /lib/upgrade/common.sh - export_bootdevice - export_partdevice ubootpart 1 - ubootenv_add_uci_config "/dev/$ubootpart" "0xb0000" "0x10000" "0x10000" "1" + . /lib/upgrade/platform.sh + bootdev="$(platform_get_bootdev)" + ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1" ;; unielec,u7623-02) ubootenv_add_uci_config "/dev/mmcblk0p1" "0xc0000" "0x10000" "0x10000" "1" |