Hi3516DV300_3_烧录记录2


1 Uboot烧录设置

  • 注意一定要选中烧录EMMC模式
  • 如果Uboot已经被清除掉了,那么,就不用重新上电了
  • 如果Uboot没有被清除,那么,就点击下载后,重新上电
  • 按照目前的情况来看,用串口来烧写kernel,rootfs,userdata也是可以的
  • 烧录成功的结果如下图所示:

2 kernel Rootfs UserData烧录设置

  • 首先,特别要注意的是,通过网络烧录的时候,要关闭Windows防火墙,关闭局域网的就行了

  • 本质上是通过fastboot软件,通过网口来烧录的
  • 先选中网口,并且关闭Windows的防火墙
  • 服务器IP,注意是PC的IP,并且注意是哪个网卡
  • 最主要的就是填对Server IP,Board Config的话,是可以不管
  • 烧录到哪个分区,烧录长度多大,都通过分区表文件来解析了
  • 特别要注意的是:当Uboot起来后,还要等网络起来,才能烧录Kernel,Rootfs,UserData
  • 烧录成功的结果
  • 烧录的过程接入如下所示:
SerialPort has been connented, Please power off, then power on the 
device.

If it doesn't work, please try to repower on.

# ---- 36%

# ---- 100%

Boot download completed!

     



System startup



Uncompress Ok!



U-Boot 2016.11 (Oct 18 2021 - 15:05:04 +0800)hi3516dv300



Relocation Offset is: 0f6d2000

Relocating to 8fed2000, new gd at 8fe31ef0, sp at 8fe31ed0

MMC:   

EMMC/MMC/SD controller initialization.

scan edges:2 p2f:6 f2p:1

mix set temp-phase 3

scan elemnts: startp:13 endp:2

Tuning SampleClock. mix set phase:[04/07] ele:[07/15] 

** First descriptor is NOT a primary desc on 0:1 **

MMC/SD Card:

    MID:         0x15

    Read Block:  512 Bytes

    Write Block: 512 Bytes

    Chip Size:   7456M Bytes (High Capacity)

    Name:        "8GTF4"

    Chip Type:   MMC

    Version:     0.0

    Speed:       100000000Hz

    Bus Width:   4bit

himci: 0 (eMMC)

In:    serial

Out:   serial

Err:   serial

Net:   eth0

Warning: eth0 (eth0) using random MAC address - 32:ff:d7:fa:75:83



start download process.



Boot started successfully!

waiting phy ready, it will take 8s.



Send command:     setenv serverip 192.168.1.7

[EOT](OK)



Send command:     setenv ethaddr 00:ff:98:ab:cb:c7

[EOT](OK)



Send command:     setenv ipaddr 192.168.1.20

[EOT](OK)



Send command:     setenv netmask 255.255.255.0

[EOT](OK)



Send command:     setenv gatewayip 192.168.1.1

[EOT](OK)



Send command:     getinfo ddrfree

getinfo - print hardware information



Usage:

getinfo bootmode - get start memeory type e.g. nand/spi etc

getinfo nand - get nand flash information

getinfo spi - get spi flash information

getinfo version - get system version



getinfo - print hardware information



Usage:

getinfo bootmode - get start memeory type e.g. nand/spi etc

getinfo nand - get nand flash information

getinfo spi - get spi flash information

getinfo version - get system version



[EOT](ERROR)

      Tftp server Download Home switched to <J:\IMG_For_HiTool>



Send command:     mw.b 0x81000000 0xFF 0x369a00

[EOT](OK)



Send command:     tftp 0x81000000 uImage_hi3516dv300_smp

Hisilicon ETH net controler

eth0 : phy status change : LINK=DOWN : DUPLEX=FULL : SPEED=100M

eth0 : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M

Using eth0 device

TFTP from server 192.168.1.7; our IP address is 192.168.1.20

Filename 'uImage_hi3516dv300_smp'.

Load address: 0x81000000

Loading: 
*_################################################################################

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

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

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

       592.8 KiB/s

done

Bytes transferred = 3577924 (369844 hex)

[EOT](OK)



Send command:     crc32 81000000 369844

crc32 for 81000000 ... 81369843 ==> 243e7010

[EOT](OK)



Send command:     mmc write 0x0 0x81000000 0x2800 0x1b4d



MMC write: dev # 0, block # 10240, count 6989 ... 6989 blocks written: 
OK

[EOT](OK)

Partition kernel burned successfully!

      Tftp server Download Home switched to <J:\IMG_For_HiTool>

      Tftp server Download Home switched to <E:\Program Files 
(x86)\HiTool-BVT-5.2.15\HiTool>



Send command:     tftp 0x81000000 rootfs_hi3516dv300.ext4.tmp

Hisilicon ETH net controler

eth0 : phy status change : LINK=DOWN : DUPLEX=FULL : SPEED=100M

eth0 : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M

Using eth0 device

TFTP from server 192.168.1.7; our IP address is 192.168.1.20

Filename 'rootfs_hi3516dv300.ext4.tmp'.

Load address: 0x81000000

Loading: 
*_#############################################################################

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

       3.9 MiB/s

done

Bytes transferred = 134215720 (7fff828 hex)

[EOT](OK)



Send command:     crc32 81000000 7fff828

crc32 for 81000000 ... 88fff827 ==> 17e26214

[EOT](OK)



Send command:     mmc write.ext4sp 0x0 0x81000000 0x7800 0x3fff0



MMC write ext4 sparse: dev # 0, block # 30720, count 262128 ... 

Writing at 30736 blk# --   0% complete.

Writing at 39280 blk# --   1% complete.

Writing at 71280 blk# --   7% complete.

Writing at 74992 blk# --   8% complete.

Writing at 78800 blk# --   9% complete.

Writing at 83440 blk# --  10% complete.

Writing at 92192 blk# --  11% complete.

Writing at 93888 blk# --  12% complete.

Writing at 99072 blk# --  13% complete.

Writing at 107408 blk# --  14% complete.

Writing at 109472 blk# --  15% complete.

Writing at 115264 blk# --  16% complete.

Writing at 119872 blk# --  17% complete.

Writing at 125264 blk# --  18% complete.

Writing at 131200 blk# --  19% complete.

Writing at 136448 blk# --  20% complete.

Writing at 140944 blk# --  21% complete.

Writing at 146192 blk# --  22% complete.

Writing at 151632 blk# --  23% complete.

Writing at 157552 blk# --  24% complete.

Writing at 162432 blk# --  25% complete.

Writing at 177808 blk# --  28% complete.

Writing at 184560 blk# --  29% complete.

Writing at 188016 blk# --  30% complete.

Writing at 193328 blk# --  31% complete.

Writing at 198656 blk# --  32% complete.

Writing at 204016 blk# --  33% complete.

Writing at 209872 blk# --  34% complete.

Writing at 217296 blk# --  35% complete.

Writing at 219696 blk# --  36% complete.

Writing at 236208 blk# --  39% complete.

Writing at 248784 blk# --  41% complete.

Writing at 252928 blk# --  42% complete.

Writing at 270112 blk# --  45% complete.

Writing at 281776 blk# --  47% complete.

Writing at 293760 blk# --  50% complete.

Writing at 306512 blk# --  52% complete.

Writing at 319536 blk# --  55% complete.

Writing at 337424 blk# --  58% complete.

Writing at 343472 blk# --  59% complete.

Writing at 363744 blk# --  63% complete.

Writing at 370848 blk# --  64% complete.

Writing at 393840 blk# --  69% complete.

Writing at 413168 blk# --  72% complete.

Writing at 414672 blk# --  73% complete.

Writing at 422560 blk# --  74% complete.

Writing at 425920 blk# --  75% complete.

Writing at 431664 blk# --  76% complete.

Writing at 435632 blk# --  77% complete.

Writing at 454160 blk# --  80% complete.

Writing at 456432 blk# --  81% complete.

Writing at 465008 blk# --  82% complete.

Writing at 467696 blk# --  83% complete.

Writing at 472064 blk# --  84% complete.

Writing at 476704 blk# --  85% complete.

Writing at 499680 blk# --  89% complete.

Writing at 515600 blk# --  92% complete.

Writing at 518288 blk# --  93% complete.

Writing at 523856 blk# --  94% complete.

Writing at 531200 blk# --  95% complete.

Writing at 534208 blk# --  96% complete.

Writing at 539376 blk# --  97% complete.

Writing at 550032 blk# --  99% complete.

Writing at 554976 blk# -- 100% complete.

sparse: 127 MB / 127 MB.

[EOT](OK)

Successfully burnt sparse file part 1 to the device.

File process: 51%



Send command:     tftp 0x81000000 rootfs_hi3516dv300.ext4.tmp

Hisilicon ETH net controler

eth0 : phy status change : LINK=DOWN : DUPLEX=FULL : SPEED=100M

eth0 : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M

Using eth0 device

TFTP from server 192.168.1.7; our IP address is 192.168.1.20

Filename 'rootfs_hi3516dv300.ext4.tmp'.

Load address: 0x81000000

Loading: 
*_###################################################################################

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

       3 MiB/s

done

Bytes transferred = 131223900 (7d2515c hex)

[EOT](OK)



Send command:     crc32 81000000 7d2515c

crc32 for 81000000 ... 88d2515b ==> f0bda6da

[EOT](OK)



Send command:     mmc write.ext4sp 0x0 0x81000000 0x477f0 0xba010



MMC write ext4 sparse: dev # 0, block # 292848, count 761872 ... 

Writing at 292864 blk# --   0% complete.

Writing at 308400 blk# --   1% complete.

Writing at 323328 blk# --   2% complete.

Writing at 338576 blk# --   3% complete.

Writing at 369408 blk# --   5% complete.

Writing at 394144 blk# --   6% complete.

Writing at 419152 blk# --   8% complete.

Writing at 436704 blk# --   9% complete.

Writing at 452272 blk# --  10% complete.

Writing at 467856 blk# --  11% complete.

Writing at 483280 blk# --  12% complete.

Writing at 498656 blk# --  13% complete.

Writing at 514192 blk# --  14% complete.

Writing at 529600 blk# --  15% complete.

Writing at 554816 blk# --  17% complete.

Writing at 570256 blk# --  18% complete.

Writing at 589168 blk# --  19% complete.

Writing at 609072 blk# --  20% complete.

Writing at 624480 blk# --  21% complete.

Writing at 632784 blk# --  22% complete.

Writing at 648736 blk# --  23% complete.

Writing at 664512 blk# --  24% complete.

Writing at 679936 blk# --  25% complete.

Writing at 695456 blk# --  26% complete.

Writing at 707664 blk# --  27% complete.

Writing at 723408 blk# --  28% complete.

Writing at 739280 blk# --  29% complete.

Writing at 751472 blk# --  30% complete.

Writing at 779968 blk# --  31% complete.

Writing at 780448 blk# --  32% complete.

Writing at 795856 blk# --  33% complete.

Writing at 812032 blk# --  34% complete.

Writing at 1341456 blk# --  68% complete.

Writing at 1816592 blk# -- 100% complete.

sparse: 125 MB / 372 MB.

[EOT](OK)Successfully burnt sparse file part 2 to the device.

File process: 100%

Partition rootfs burned successfully!

      Tftp server Download Home switched to 
<J:\IMG_For_HiTool\userdata_dv300\imx307_2l>



Send command:     mw.b 0x81000000 0xFF 0x5aa200



[EOT](OK)

Send command:     tftp 0x81000000 userdata-HDMI-2imx307.ext4

Hisilicon ETH net controler

eth0 : phy status change : LINK=DOWN : DUPLEX=FULL : SPEED=100M

eth0 : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M

Using eth0 device

TFTP from server 192.168.1.7; our IP address is 192.168.1.20

Filename 'userdata-HDMI-2imx307.ext4'.

Load address: 0x81000000

Loading: 
*_#############################################################################

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

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

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

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

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

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

       927.7 KiB/s

done

Bytes transferred = 5939408 (5aa0d0 hex)

[EOT](OK)



Send command:     crc32 81000000 5aa0d0

crc32 for 81000000 ... 815aa0cf ==> d2561d2a

[EOT](OK)



Send command:     mmc write.ext4sp 0x0 0x81000000 0x101800 0x64000



MMC write ext4 sparse: dev # 0, block # 1054720, count 409600 ... 

Writing at 1054736 blk# --   0% complete.

Writing at 1077808 blk# --   2% complete.

Writing at 1579008 blk# --  64% complete.

Writing at 1873920 blk# -- 100% complete.

sparse: 5 MB / 200 MB.

[EOT](OK)

Partition userdata burned successfully!

Partition burnt completed!



Send command:     reset

reset success!
  • 这个,本质都是fastboot这一套
  • 4个一起烧写也是可以的

Author: Ruimin Huang
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Ruimin Huang !
  TOC