Use fitblk driver instead of deprecated uImage.FIT partition parser. Signed-off-by: Daniel Golle <[email protected]>
@@ -6,6 +6,11 @@
compatible = "mediatek,mt7981-rfb", "mediatek,mt7981";
fragment@0 {
+ target = <&chosen>;
+ rootdisk-spim-nand = <&ubi_rootdisk>;
+ };
+
+ fragment@1 {
target = <&spi0>;
__overlay__ {
status = "okay";
@@ -50,13 +55,20 @@
partition@580000 {
label = "ubi";
reg = <0x580000 0x4000000>;
+ compatible = "linux,ubi";
+ volumes {
+ ubi_rootdisk: ubi-volume-fit {
+ volname = "fit";
};
- fragment@1 {
+ fragment@2 {
target = <&wifi>;
mediatek,mtd-eeprom = <&factory 0x0>;
@@ -15,8 +15,9 @@
serial0 = &uart0;
- chosen {
+ chosen: chosen {
stdout-path = "serial0:115200n8";
+ bootargs-append = " root=/dev/fit0 rootwait";
memory {
@@ -71,6 +71,7 @@ platform_do_upgrade() {
bananapi,bpi-r4-poe|\
cmcc,rax3000m|\
jdcloud,re-cp-03|\
+ mediatek,mt7981-rfb|\
mediatek,mt7988a-rfb|\
nokia,ea0326gmp|\
openwrt,one|\
@@ -114,7 +115,6 @@ platform_do_upgrade() {
;;
h3c,magic-nx30-pro|\
jcg,q30-pro|\
- mediatek,mt7981-rfb|\
netcore,n60|\
qihoo,360t7|\
xiaomi,mi-router-ax3000t-ubootmod|\