ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.45k stars 1.74k forks source link

测试新魔百和 M401a 支持写入emmc使用 #732

Closed HoYin90 closed 1 year ago

HoYin90 commented 1 year ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述 虽然刷入成功,但内存显示不对,M401a在安卓系统显示是2G内存 image

ophub commented 1 year ago

我今天有一版是只保留了1908,他测试用不了,看来这个不合适

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

看一下现在频率最高是多少

janko888 commented 1 year ago

另外O大你这个文件是在6.0.x内核编译的还是5.15.x内核编译的,如果是6.0.x版本的话,有个底层配置缺失会影响网卡初始化,这个bug我之前提交F大,等测试合并了 meson-g12a-s905l3a-m401a.dtb.zip

ophub commented 1 year ago

这个是5.15的 你测试m401a使用的是u200.dtb吗? 这个配置可行吧。 https://github.com/ophub/amlogic-s9xxx-armbian/blob/8cf5906605fb746bf240cab6a10bd0f7b4b5fc45/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L72

janko888 commented 1 year ago

这个是5.15的 你测试m401a使用的是u200.dtb吗? 这个配置可行吧。

https://github.com/ophub/amlogic-s9xxx-armbian/blob/8cf5906605fb746bf240cab6a10bd0f7b4b5fc45/build-armbian/common-files/rootfs/etc/amlogic_model_database.conf#L72

我这个前几天买的m401a在5.15下用cm311.dtb的并没有楼主说的emmc写入问题\启动网卡问题,很完美(除了1908频率这个隐藏恶魔),我这边的问题是6.0内核下完全没法初始内置网卡,经过跟踪,定位到g12-common的配置问题,现在6.0内核也可以usb启动和写入emmc,但又发现新的问题,6.0内核下写入emmc后无法从usb启动了

janko888 commented 1 year ago

M401A真是个薛定谔的盒子:-)

ophub commented 1 year ago
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
 * Create by flippy
 */

/dts-v1/;

#include "meson-g12a-u200.dts"

/ {
    compatible = "s905l3a,m401a", "amlogic,g12a";
    model = "Magic Box M401A";
};

&ethmac {
    compatible = "amlogic,meson-g12a-dwmac",
                "snps,dwmac-3.70a",
                "snps,dwmac";
    reg = <0x0 0xff3f0000 0x0 0x10000>,
            <0x0 0xff634540 0x0 0x8>;
    interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "macirq";
    clocks = <&clkc CLKID_ETH>,
            <&clkc CLKID_FCLK_DIV2>,
            <&clkc CLKID_MPLL2>,
            <&clkc CLKID_FCLK_DIV2>;
    clock-names = "stmmaceth", "clkin0", "clkin1",
                "timing-adjustment";
    rx-fifo-depth = <4096>;
    tx-fifo-depth = <2048>;
    //resets = <&reset RESET_ETHERNET>;
    //reset-names = "stmmaceth";
    status = "disabled";

    mdio0: mdio {
        #address-cells = <1>;
        #size-cells = <0>;
        compatible = "snps,dwmac-mdio";
    };
};

/* CPU Overclock */
&cpu_opp_table {
    opp-100000000 {
        status = "disabled";
    };

    opp-250000000 {
        status = "disabled";
    };

    opp-500000000 {
        status = "disabled";
    };

    opp-667000000 {
        status = "disabled";
    };

    /* Lock 1800mhz */
    opp-1800000000 {
        opp-hz = /bits/ 64 <1800000000>;
        opp-microvolt = <1001000>;
    };

    opp-1908000000 {
        status = "disabled";
    };
};

/* eMMC */
// Reduce the frequency from 200000000 to 100000000 to solve the emmc usage problem
&sd_emmc_c {
    max-frequency = <100000000>;
};

&internal_ephy  {
    max-speed = <100>;
};

meson-g12a-s905l3a-m401a.dtb.zip meson-g12a-s905l3a-m401a.dts.zip

ophub commented 1 year ago

你使用cm311的dtb,安卓系统刷哪个底包了吗?还是m401a的原厂安卓系统呢?

我看了你提交的那个pr,如果担心影响其他,可以自己独立添加dtb,类似上面这样改写ethmac即可,其他方面如CPU频率等,都可以把有差异的独立写在dtb,这样就能独立使用,也不影响其他的。

janko888 commented 1 year ago
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
 * Create by flippy
 */

/dts-v1/;

#include "meson-g12a-u200.dts"

/ {
    compatible = "m401a", "amlogic,g12a";
    model = "M401A";

    aliases {
        serial1 = &uart_A;
    };

    vddgpu: regulator-vddgpu {
        compatible = "regulator-fixed";
        regulator-name = "mali";
        regulator-min-microvolt = <800000>;
        regulator-max-microvolt = <800000>;
        vin-supply = <&main_12v>;
        regulator-boot-on;
        regulator-always-on;
    };

    leds {
        compatible = "gpio-leds";

        power_led {
            led_name = "power_led";
            gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_LOW>;
            default-state = "on";
        };

        net_led {
            led_name = "net_led";
            gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_LOW>;
            default-state = "off";
            linux,default-trigger = "0.0:00:link";
        };

        remote_led {
            led_name = "remote_led";
            gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_LOW>;
            default-state = "off";
            linux,default-trigger = "rc-feedback";
        };

    };

    memory@0 {
        device_type = "memory";
        reg = <0x0 0x0 0x0 0x80000000>;
    };

};

&uart_A {
    status = "okay";
    pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
    uart-has-rtscts;
    pinctrl-names = "default";
};

&mali {
    mali-supply=<&vddgpu>;
};

/* SD card */
&sd_emmc_b {
    status = "okay";
    bus-width = <4>;
    cap-sd-highspeed;
    max-frequency = <50000000>;
};

/* eMMC */
&sd_emmc_c {
    status = "okay";
    bus-width = <8>;
    cap-mmc-highspeed;
    mmc-ddr-1_8v;
    mmc-hs200-1_8v;
    max-frequency = <200000000>;
};

/* CPU Overclock */
&cpu_opp_table {
    opp-100000000 {
        status = "disabled";
    };

    opp-250000000 {
        status = "disabled";
    };

    opp-500000000 {
        status = "disabled";
    };

    opp-667000000 {
        status = "disabled";
    };
};

&internal_ephy  {
    max-speed = <100>;
};

&ethmac {
    status = "okay";
    phy-handle = <&internal_ephy>;
    phy-mode = "rmii";
};

我debug时写的,配置跟您差不多的

ophub commented 1 year ago

和通用模板一样的都可以不写,只写差异部分即可。 你调试好了,提交一个独立的dtb,这样可以避免了cm311的1908频率问题。 也可以引用cm311的dts,改ethmac和频率。 注意代码缩进,用tab,保持一致

janko888 commented 1 year ago

买回来商家刷的是一个标注413的包,不知道是不是忽悠, 后来自己下载了两个包,都可以,感觉这里底包影响不大,不过有写入emmc问题或启动需要拔插网线的同学可以试一下看看。

1 2 3

HoYin90 commented 1 year ago

M401A真是个薛定谔的盒子:-)

确实是,一开始刷armbian,u盘启动每次都报不一样的错误,我都怀疑电子产品都这么薛定谔的吗

s700k commented 1 year ago

请问如何编译这里的dtb? https://github.com/unifreq/linux-5.15.y/tree/main/arch/arm64/boot/dts/amlogic

ophub commented 1 year ago

https://github.com/ophub/amlogic-s9xxx-armbian/tree/main/compile-kernel

Actions使用选dtbs 本地编译的命令: sudo ./recompile -d -k 5.15.80 -p dtbs 几分钟就编译完成了

ophub commented 1 year ago

meson-g12a-s905l3a-m401a.dtb.zip

试试这个dtb可以用不

HoYin90 commented 1 year ago

内核恐慌这种能解决吗,这个情况发生率很高,只要涉及到网卡必出现。到现在还没装上青龙。。。

ophub commented 1 year ago

你试试cm311的dtb,janko888说他使用这个很稳定 meson-g12a-s905l3a-cm311.dtb

HoYin90 commented 1 year ago

你试试cm311的dtb,janko888说他使用这个很稳定 meson-g12a-s905l3a-cm311.dtb

这个我试过,我这边是花屏的

ophub commented 1 year ago

只是启动的时候花屏一下吧,启动后就可以了。 ssh终端访问没问题吧

HoYin90 commented 1 year ago

只是启动的时候花屏一下吧,启动后就可以了。 ssh终端访问没问题吧

不是,是卡在花屏

HoYin90 commented 1 year ago

现在是一直出现这个问题,无时无刻出现,只要一出现必死机 125699899dfc9f7908b7d8c86e159af

ophub commented 1 year ago

错误复制文字粘贴上来

HoYin90 commented 1 year ago

错误复制文字粘贴上来

不是我不想粘贴上来,而是没法粘贴。我是通过ssh连接板子,板子接在电视上,我控制台没有打印这东西,但电视上有显示。

s700k commented 1 year ago

meson-g12a-s905l3a-m401a.dtb.zip

试试这个dtb可以用不

我的也是江苏M401A,原厂安卓系统dtb中1.8G频率的opp-microvolt值与你编译dtb不一样,这个会有影响吗?

cpu_opp_table0 {
    compatible = "operating-points-v2";
    opp-shared;
    phandle = <0xd>;

    opp00 {
        opp-hz = <0x0 0x5f5e100>;
        opp-microvolt = <0xb2778>;
    };

    opp01 {
        opp-hz = <0x0 0xee6b280>;
        opp-microvolt = <0xb2778>;
    };

    opp02 {
        opp-hz = <0x0 0x1dcd6500>;
        opp-microvolt = <0xb2778>;
    };

    opp03 {
        opp-hz = <0x0 0x27c19cc0>;
        opp-microvolt = <0xb2778>;
    };

    opp04 {
        opp-hz = <0x0 0x3b9aca00>;
        opp-microvolt = <0xb2778>;
    };

    opp05 {
        opp-hz = <0x0 0x47868c00>;
        opp-microvolt = <0xb9ca8>;
    };

    opp06 {
        opp-hz = <0x0 0x5353c980>;
        opp-microvolt = <0xc11d8>;
    };

    opp07 {
        opp-hz = <0x0 0x5a1f4a00>;
        opp-microvolt = <0xcae18>;
    };

    opp08 {
        opp-hz = <0x0 0x5fd82200>;
        opp-microvolt = <0xd4a58>;
    };

    opp09 {
        opp-hz = <0x0 0x6590fa00>;
        opp-microvolt = <0xe0da8>;
    };

    opp10 {
        opp-hz = <0x0 0x6b49d200>;
        opp-microvolt = <0xef808>;
    };
};
ophub commented 1 year ago

好的。

ophub commented 1 year ago

不同进制格式,10进制的一眼能看懂。 16进制的 6b49d200 = 10进制的 1800000000

可以使用工具转换 https://tool.oschina.net/hexconvert/

s700k commented 1 year ago

不同进制格式 16进制的 6b49d200 = 10进制的 1800000000

可以使用工具转换 https://tool.oschina.net/hexconvert/

同频率下opp-microvolt的值不一样,请问这个值有影响吗?

原厂dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xef808>;

meson-g12a-s905l3a-m401a.dtb.zip

试试这个dtb可以用不

反编译这个dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xf4628>;
ophub commented 1 year ago

参照原厂的频率设置最好。

HoYin90 commented 1 year ago

不同进制格式 16进制的 6b49d200 = 10进制的 1800000000 可以使用工具转换 https://tool.oschina.net/hexconvert/

同频率下opp-microvolt的值不一样,请问这个值有影响吗?

原厂dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xef808>;

meson-g12a-s905l3a-m401a.dtb.zip 试试这个dtb可以用不

反编译这个dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xf4628>;

怎么可以搞到原厂的dtb

s700k commented 1 year ago

不同进制格式 16进制的 6b49d200 = 10进制的 1800000000 可以使用工具转换 https://tool.oschina.net/hexconvert/

同频率下opp-microvolt的值不一样,请问这个值有影响吗? 原厂dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xef808>;

meson-g12a-s905l3a-m401a.dtb.zip 试试这个dtb可以用不

反编译这个dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xf4628>;

怎么可以搞到原厂的dtb

708

HoYin90 commented 1 year ago

不同进制格式 16进制的 6b49d200 = 10进制的 1800000000 可以使用工具转换 https://tool.oschina.net/hexconvert/

同频率下opp-microvolt的值不一样,请问这个值有影响吗? 原厂dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xef808>;

meson-g12a-s905l3a-m401a.dtb.zip 试试这个dtb可以用不

反编译这个dtb

opp-hz = <0x0 0x6b49d200>;
opp-microvolt = <0xf4628>;

怎么可以搞到原厂的dtb

708

你刷成功了吗

bokeylee commented 1 year ago

和贴主机器完全一样,甚至连安卓包都刚好下到同一个。用上面发的几个新dtb,能稍微进系统的会丢网卡,有网卡的又会随机报错……题主是怎么办到还能走到写emmc这一步的

lovedreamland commented 1 year ago

meson-g12a-s905l3a-m401a.dtb.zip

试试这个dtb可以用不

我试了下这个dtb直接网卡不亮,200的dtb好像测试了比较稳定,就是开机后LED等是红色的,e900v22c的开机LED正常,就是有几率获取不到ip

s700k commented 1 year ago

这盒子能启动armbian非常看运气,试过很多dtb组合。试来试去很容易failed to mount /dev/sda2 as root file system,又得重新烧录u盘。我快放弃了,试了coreelec和emuelec也进不去,早知道买e900v22c/d。

lovedreamland commented 1 year ago

试过很多dtb组合

Armbian_22.11.0_Aml_s905l3a_bullseye_5.10.149 meson-g12a-u200.dtb 这个组合试试看呢

HoYin90 commented 1 year ago

和贴主机器完全一样,甚至连安卓包都刚好下到同一个。用上面发的几个新dtb,能稍微进系统的会丢网卡,有网卡的又会随机报错……题主是怎么办到还能走到写emmc这一步的

我之前也遇到过,一种是因为路由器已经有你之前的ip了。意思就是如果板子以前在一个路由器获取过ip,那么下次必定报错丢网卡。这个商家发了另外一个线刷包给我就没遇到过了。另外一个我也不知道怎么处理,只能不断的重启,然后就会莫名奇妙的就好了。。。

iamhyde commented 1 year ago

我目前的M401A也有类似的情况 安卓线刷包用的CM311-1a_安卓9-S905L3A没无线版Emotn UI桌面线刷包_new dtb用的X大改的meson-g12a-u201.dtb或者meson-g12a-u212.dtb,两个来回切换 ArmBian用5.15.77或者78启动很快内存,网卡获取IP,包括蓝牙等都没任何问题,也能从U盘启动 就是装了Docker+Hassio后一般1-2天左右就会死机 ArmBian用5.10.154的话同样上面2个dtb重启或者断电再开会时不时获取不了IP 但是运行Docker+Hassio完全不会死机,但是没法从U盘启动,也就没法DDBR

s700k commented 1 year ago

试过很多dtb组合

Armbian_22.11.0_Aml_s905l3a_bullseye_5.10.149 meson-g12a-u200.dtb 这个组合试试看呢

这个盒子能运行armbian也不稳定,放弃折腾了。

lovedreamland commented 1 year ago

试过很多dtb组合

Armbian_22.11.0_Aml_s905l3a_bullseye_5.10.149 meson-g12a-u200.dtb 这个组合试试看呢

这个盒子能运行armbian也不稳定,放弃折腾了。

群里几个都还行啊,主要是这盒子硬盘读写速度快,读写可以达到55+,311就只有可怜的35左右。

HoYin90 commented 1 year ago

果然薛定谔盒子,我后悔了

s700k commented 1 year ago

刷不死也是这类盒子的特点,但手上这个盒子自从原厂系统被我搞坏,我刷别的系统怎么都是卡第一屏。我原本买来打算装armbian+squeezelite作为Daphile主机的从机来播放音乐,组建多房间音乐系统。现在我对这类盒子失望了,不如买x86小主机稳定。

HoYin90 commented 1 year ago

刷不死也是这类盒子的特点,但手上这个盒子自从原厂系统被我搞坏,我刷别的系统怎么都是卡第一屏。我原本买来打算装armbian+squeezelite作为Daphile主机的从机来播放音乐,组建多房间音乐系统。现在我对这类盒子失望了,不如买x86小主机稳定。

x86功耗高哈哈,我就想折腾一下arm

s700k commented 1 year ago

刷不死也是这类盒子的特点,但手上这个盒子自从原厂系统被我搞坏,我刷别的系统怎么都是卡第一屏。我原本买来打算装armbian+squeezelite作为Daphile主机的从机来播放音乐,组建多房间音乐系统。现在我对这类盒子失望了,不如买x86小主机稳定。

x86功耗高哈哈,我就想折腾一下arm

诸如j4125,j5005板载cpu之流功耗还行,就是价格不理想。

HoYin90 commented 1 year ago

刷不死也是这类盒子的特点,但手上这个盒子自从原厂系统被我搞坏,我刷别的系统怎么都是卡第一屏。我原本买来打算装armbian+squeezelite作为Daphile主机的从机来播放音乐,组建多房间音乐系统。现在我对这类盒子失望了,不如买x86小主机稳定。

x86功耗高哈哈,我就想折腾一下arm

诸如j4125,j5005板载cpu之流功耗还行,就是价格不理想。

这盒子才50+,还要啥自行车

s700k commented 1 year ago

刷不死也是这类盒子的特点,但手上这个盒子自从原厂系统被我搞坏,我刷别的系统怎么都是卡第一屏。我原本买来打算装armbian+squeezelite作为Daphile主机的从机来播放音乐,组建多房间音乐系统。现在我对这类盒子失望了,不如买x86小主机稳定。

x86功耗高哈哈,我就想折腾一下arm

诸如j4125,j5005板载cpu之流功耗还行,就是价格不理想。

这盒子才50+,还要啥自行车

不能用,50块也是浪费钱。

janko888 commented 1 year ago

我目前的M401A也有类似的情况 安卓线刷包用的CM311-1a_安卓9-S905L3A没无线版Emotn UI桌面线刷包_new dtb用的X大改的meson-g12a-u201.dtb或者meson-g12a-u212.dtb,两个来回切换 ArmBian用5.15.77或者78启动很快内存,网卡获取IP,包括蓝牙等都没任何问题,也能从U盘启动 就是装了Docker+Hassio后一般1-2天左右就会死机 ArmBian用5.10.154的话同样上面2个dtb重启或者断电再开会时不时获取不了IP 但是运行Docker+Hassio完全不会死机,但是没法从U盘启动,也就没法DDBR

这个就是我说的1908频率下隐藏很深的问题,刷1908平时一般使用,cpu满负荷跑分测试都很正常,可能只能在docker这种比较底层调度调用的场景才能暴露出来。这个问题折腾我几天,review了我的应用,折腾中间件的安装。。。

HoYin90 commented 1 year ago

我目前的M401A也有类似的情况 安卓线刷包用的CM311-1a_安卓9-S905L3A没无线版Emotn UI桌面线刷包_new dtb用的X大改的meson-g12a-u201.dtb或者meson-g12a-u212.dtb,两个来回切换 ArmBian用5.15.77或者78启动很快内存,网卡获取IP,包括蓝牙等都没任何问题,也能从U盘启动 就是装了Docker+Hassio后一般1-2天左右就会死机 ArmBian用5.10.154的话同样上面2个dtb重启或者断电再开会时不时获取不了IP 但是运行Docker+Hassio完全不会死机,但是没法从U盘启动,也就没法DDBR

这个就是我说的1908频率下隐藏很深的问题,刷1908平时一般使用,cpu满负荷跑分测试都很正常,可能只能在docker这种比较底层调度调用的场景才能暴露出来。这个问题折腾我几天,review了我的应用,折腾中间件的安装。。。

最后解决了吗

HoYin90 commented 1 year ago

刷不死也是这类盒子的特点,但手上这个盒子自从原厂系统被我搞坏,我刷别的系统怎么都是卡第一屏。我原本买来打算装armbian+squeezelite作为Daphile主机的从机来播放音乐,组建多房间音乐系统。现在我对这类盒子失望了,不如买x86小主机稳定。

x86功耗高哈哈,我就想折腾一下arm

诸如j4125,j5005板载cpu之流功耗还行,就是价格不理想。

这盒子才50+,还要啥自行车

不能用,50块也是浪费钱。

不行就换一个盒子,毕竟一个J4125能买很多个盒子了

janko888 commented 1 year ago

我目前的M401A也有类似的情况 安卓线刷包用的CM311-1a_安卓9-S905L3A没无线版Emotn UI桌面线刷包_new dtb用的X大改的meson-g12a-u201.dtb或者meson-g12a-u212.dtb,两个来回切换 ArmBian用5.15.77或者78启动很快内存,网卡获取IP,包括蓝牙等都没任何问题,也能从U盘启动 就是装了Docker+Hassio后一般1-2天左右就会死机 ArmBian用5.10.154的话同样上面2个dtb重启或者断电再开会时不时获取不了IP 但是运行Docker+Hassio完全不会死机,但是没法从U盘启动,也就没法DDBR

这个就是我说的1908频率下隐藏很深的问题,刷1908平时一般使用,cpu满负荷跑分测试都很正常,可能只能在docker这种比较底层调度调用的场景才能暴露出来。这个问题折腾我几天,review了我的应用,折腾中间件的安装。。。

最后解决了吗

只能说在“我的M401A盒子”里解决了5.15.x版本的这个问题。 6.0.x版本解决了启动网卡后,还有一个安装到emmc后,无法退回usb引导的问题还在头疼中

janko888 commented 1 year ago

我刚又重刷固件装一编5.15,网卡\写入emmc等等都正常。

盒子:m401A (无标注任何地方的版本) 固件:江苏版M401A_晶晨S905L3A_2+16G_安卓9_原厂官改_开启ROOT_线刷固件包 dtb: meson-g12a-s905l3a-m401a.dtb 发行版: Armbian 22.08.10 Jammy with Linux 5.15.79-flippy-78+o

======================= 1,u盘启动 把我编译的m401a的dtb放到U盘目录 \dtb\amlogic\下 修改U盘下uEnv.txt文件: FDT=/dtb/amlogic/meson-g12a-s905l3a-m401a.dtb 2.写入EMMC /etc/amlogic_model_database.conf里增加一行: 306 :M401A :s905l3a :meson-g12a-s905l3a-m401a.dtb :u-boot-e900v22c.bin :NA :NA :meson-g12a :s905l3a :no

然后不带参数写入emmc:armbian-install

meson-g12a-s905l3a-m401a.zip

janko888 commented 1 year ago
写入日志:

root@lepotato:~# armbian-install
[ STEPS ] Start install armbian to emmc...
[ INFO ] Custom setting parameters: [  ]
[ STEPS ] Start initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Using the Ampart tool: [ yes ]
[ INFO ] Show all lists: [ no ]
[ INFO ] DEV_EMMC: [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID    SOC        MODEL                          DTB
--------------------------------------------------------------------------------------
301   s905x2     X96-Max-4GB                    meson-g12a-x96-max.dtb
302   s905x2     X96-Max-2GB                    meson-g12a-x96-max-rmii.dtb
303   s905x2     MECOOL-KM3-4G                  meson-g12a-sei510.dtb
304   s905l3a    E900V22C-D                     meson-g12a-s905l3a-e900v22c.dtb
305   s905l3a    CM311-1a-YST                   meson-g12a-s905l3a-cm311.dtb
306   s905l3a    M401A                          meson-g12a-s905l3a-m401a.dtb
0     Other      Customize                      Enter-custom-dtb-name
--------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID: 306
[ INFO ] Input Box ID: [ 306 ]
[ INFO ] FDTFILE: [ meson-g12a-s905l3a-m401a.dtb ]
[ INFO ] MAINLINE_UBOOT: [  ]
[ INFO ] ANDROID_UBOOT:  [  ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-e900v22c.bin ]
[ INFO ] K510: [ 0 ]
[ STEPS ] Start selecting file system type...
-----------------------------------------------
ID  TYPE
-----------------------------------------------
1   ext4
2   btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID: 1
[ INFO ] Input Type ID: [ 1 ]
[ INFO ] The type of file system: [ ext4 ]
[ STEPS ] Start creating eMMC partition...
[ INFO ] Start backup default bootloader.
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.838141 s, 5.0 MB/s
1+0 records in
1+0 records out
512 bytes copied, 0.00296916 s, 172 kB/s
[ STEPS ] Use ampart partition successfully.
[ INFO ] Start create MBR and partittion.
[ INFO ] Restore the mybox bootloader: [ /usr/lib/u-boot/mybox-bootloader.img ]
444+0 records in
444+0 records out
444 bytes copied, 0.00337732 s, 131 kB/s
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.364293 s, 11.5 MB/s
[ STEPS ] Start processing the bootfs partition...
[ INFO ] Formatting BOOTFS partition.
mkfs.fat 4.2 (2021-01-31)
[ INFO ] Start copy BOOTFS partition data.
[ INFO ] Generate the new [ uEnv.txt ] file.
[ STEPS ] Start processing the rootfs partition...
[ INFO ] Formatting ROOTFS partition.
[ INFO ] Start copy ROOTFS partition data.
[ INFO ] Copy the [ etc ] directory.
[ INFO ] Copy the [ home ] directory.
[ INFO ] Copy the [ lib64 ] directory.
[ INFO ] Copy the [ opt ] directory.
[ INFO ] Copy the [ root ] directory.
[ INFO ] Copy the [ selinux ] directory.
[ INFO ] Copy the [ srv ] directory.
[ INFO ] Copy the [ usr ] directory.
[ INFO ] Copy the [ var ] directory.
[ INFO ] Generate the new fstab file.
[ INFO ] Update the relevant parameters.
[ SUCCESS ] Successful installed, please unplug the USB, re-insert the power supply to start the armbian.
root@lepotato:~#