Lichee Pi 启动后更新镜像到norflash

一. 准备工作

    1.1. buildroot 开启flashcp

    1.2. buildroot 开启ssh(便于网络传文件,如果你有更好传输文件办法当然可以不用ssh)

二. 实战

    2.1. 查看分区

cat /proc/mtd

    2.2. flashcp 用法

    2.3. 烧录dtb(uboot,zImage同理)

         2.3.1. 将固件从PC通过ssh拷贝到内存中(关于怎么使用scp我就不废话了)

         2.3.2.使用flashcp烧录

              flashcp -v sun8i-v3s-licheepi-zero.dtb /dev/mtd1

 

                   PS:如果你烧录时报不能写,是因为uboot参数去掉ro

        2.3.3. 烧录结束后重启即可

猜你喜欢

转载自www.cnblogs.com/linux-37ge/p/12820128.html
pi
今日推荐