嵌入式爱好者

8mp uboot阶段通过网络更新镜像

2022-11-18 15:37| 发布者: Q_Y_X| 查看: 304| 评论: 0

类目: 知识库  >  i.MX8MP系列产品     文档编号: 821

实际操作如下:

root@OK8MP:/# uname -a

Linux OK8MP 5.4.70-2.3.0 #2 SMP PREEMPT Fri Aug 5 22:38:53 PDT 2022 aarch64 aarch64 aarch64 GNU/Linux

首先在uboot阶段通过TFTPImageOK8MP-C.dtb文件下载到内存中。

forlinx=> setenv ipaddr 172.16.0.207

forlinx=> setenv serverip 172.16.0.206

forlinx=> setenv image Image

forlinx=> setenv fdt_file OK8MP-C.dtb

forlinx=> setenv netargs setenv bootargs console=ttymxc0,115200 root=/dev/nfs rw ip=172.16.0.207:172.16.0.206:172.16.0.1:255.255.255.0::eth0:off nfsroot=172.16.0.206:/nfs_rootfs,v3,tcp

forlinx=> run netargs; tftpboot ${loadaddr} ${image}; tftpboot ${fdt_addr} ${fdt_file}

Using ethernet@30be0000 device

TFTP from server 172.16.0.217; our IP address is 172.16.0.207

Filename 'Image'.

Load address: 0x40480000

Loading: #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################

        3.2 MiB/s

done

Bytes transferred = 28150272 (1ad8a00 hex)

Using ethernet@30be0000 device

TFTP from server 172.16.0.217; our IP address is 172.16.0.207

Filename 'OK8MP-C.dtb'.

Load address: 0x43000000

Loading: #####

        4.3 MiB/s

done

Bytes transferred = 67111 (10627 hex)

 

forlinx=> mmc part

 

Partition Map for MMC device 2  --   Partition Type: DOS

 

Part Start Sector   Num Sectors UUID             Type

  1  16384        170368      036f1e8a-01 0c

  2  186752      15728640    036f1e8a-02 83

forlinx=> fatwrite mmc 2:1 0x40480000 Image 0x1ad8a00

28150272 bytes written

forlinx=> fatwrite mmc 2:1 0x43000000 OK8MP-C.dtb 10627

67111 bytes written

forlinx=>saveen

Saving Environment to MMC... Writing to MMC(2)... OK

forlinx=>reset

root@OK8MP:~# uname -a

Linux OK8MP 5.4.70-2.3.0 #1 SMP PREEMPT Tue Jun 21 20:09:50 PDT 2022 aarch64 aarch64 aarch64 GNU/Linux



已解决

未解决

只是看看
上一篇:8mp移植驱动下一篇:8mp屏幕旋转

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-5-3 19:50

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部