714 Star 4.3K Fork 1.2K

OpenHarmony / docs

 / 详情

DevEco Device Tool WIndows版本 擦除fastboot之后无法直接烧录

Done
Task
Opened this issue  
2021-07-16 14:01

【任务描述】
环境:Win10 开发版:Hi3561
在Hi3516标准系统烧录最新版本时,
DevEco Device Tool 擦除fastboot成功之后,开发版网口不亮灯,此时点击upload开始烧录,烧录会失败;
此时使用DevEco Device Tool单独烧录fastboot也会失败;
【解决方案】
我的临时解决方案是,擦除之后,使用Hitool工具上传fastboot;然后再使用DevEco Tool工具烧录
输入图片说明
【任务来源】

Comments (7)

Jerck created任务
Jerck set related repository to OpenHarmony/docs
NEEN set assignee to 孙文斌
Expand operation logs

你好,你这边的情况是说:
你在DevEco Device Tool中选择网口烧录时,先单独擦除fastboot,然后统一烧录会失败,可以看一下报错截图嘛?
我看你使用hitool的是单独烧录fastboot的时候选择的串口烧录,那么如果也选择网口烧录呢,能否成功?

SerialPort has been connented, Please power off, then power on the device.
If it doesn't work, please try to repower on.
?[0m#################Failed to send data frame, check that the serial port is normal.
Failed to download File!
Failed to download fastboot!
hiburn.jar --burn [-x xmlPath] [-p programmerPath]
This command will burn image to the flash according to the partition table xmlPath.
First of all, you need to configure the burn.config file.

hiburn.jar --burnboot  <chipName>   <mode>  <port>  <flash>       <boot>                 [programmer]
hiburn.jar --burnboot  hi3798cv200  serial   COM0     emmc    image/fastboot.bin   image/advca_programmer.sig

hiburn.jar --erase    <chipName>      <mode>    <port>    <xmlPath>    [programmer]
hiburn.jar --erase -n hi3798cv200  -m serial     COM0   -x  xmlPath  -p  programmerPath
hiburn.jar --erase -n hi3798cv200  -m USBBootrom        -x  xmlPath  -p  programmerPath

hiburn.jar --nandimg  <chipName>  <flash> <inputFile>  <fastboot> <pagesize/ecctype> <oobsize> <fileSystem> <randomizer> <block>
hiburn.jar --nandimg  hi3798cv200   nand  In_2k4b.yaffs     0              0             64          1            0         0
You need to input chipName and flash at first, then you can access to the options of pagesize/ecctype and block.
hiburn.jar --emmcimg  <chipName>      <outputFile>              <xmlPath>
hiburn.jar --emmcimg  hi3798cv200   image/emmcImg.bin    image/emmc_partitions.xml


general options:
--help    | -h    usage message
--version | -v    version number and copyright
--burn    | -b    this command will burn image to the flash according to the partition table xmlPath.
                  first of all, you need to configure the burn.config file.
--burnboot| -bb   This command is used to burn fastboot.
--nandimg | -n    the commands is used to create nand image.
--emmcimg | -e    the commands is used to create emmc image.
*** [upload] Error 4
======================================================= [FAILED] Took 57.60 seconds =======================================================
终端进程“d:\mydata\ningzhen\.deveco-device-tool\core\deveco-venv\scripts\hos.exe 'run', '--target', 'upload', '--project-dir', 'D:\MyData\ningzhen\Documents\DevEco\Projects\test1', '--environment', 'hi3516dv300', '--verbose'”已终止,退出代码: 1。

终端将被任务重用,按任意键关闭。

擦除fastboot之后,DevEco Windows版本用串口单独烧录fastboot,连不上串口,使用HiTools工具可以,Hitools工具目前还没用网口试过

能否麻烦你这边发一个完整的log日志嘛?

擦除成功日志

> Executing task in folder OpenHarmony2.0: d:\mydata\xx\.deveco-device-tool\core\deveco-venv\scripts\hos.exe run --target erase --project-dir D:\MyData\xx\Documents\DevEco\Projects\OpenHarmony2.0 --environment hi3516dv300 --partition partition:fastboot --verbose <

Processing hi3516dv300 (platform: hisilicon; board: hi3516dv300; build_type: release; hpm_project_base_package: @ohos/ip_camera_hi3516dv300; hpm_project_template: dist; upload_port: COM6; upload_protocol: hiburn-net; upload_net_server_ip: 192.168.1.2; upload_net_client_mask: 255.255.255.0; upload_net_client_gw: 192.168.1.1; upload_net_client_ip: 192.168.1.3; debug_client: ; debug_extra_cmds: ; upload_partitions: partition:fastboot; verbose_output: True; framework: hpm)
-----------------------------------------------------------------------------------------------------------------------
MethodWrapper(["erase"], [])
java.exe -Duser.language=en -jar D:\MyData\xx\.deveco-device-tool\core\tool_hiburn\hiburn.jar --erase -n hi3516dv300 -m serial COM6 -x D:\MyData\xx\.deveco-device-tool\.cache\.hiburn-8kuoqgn9\hiburn-9bu08kj_.xml
chip file path: Resources/Common/ChipProperties/Hi3516CV500.chip

The burn.config file was loaded successfully!
The current select chip: Hi3516DV300
chip file path: Resources/Common/ChipProperties/Hi3516CV500.chip

The preference.config file was loaded successfully!

SerialPort has been connented, Please power off, then power on the device.
If it doesn't work, please try to repower on.
?[0m# ---- 36%
?[0m# ---- 63%
?[0m ---- 100%
Boot download completed!


System startup

Uncompress Ok!

U-Boot 2020.01 (Jun 07 2021 - 13:07:03 +0800)hi3516dv300

DRAM:  MMC:
EMMC/MMC/SD controller initialization.
scan edges:2 p2f:6 f2p:1
mix set temp-phase 3
scan elemnts: startp:2 endp:123
Tuning SampleClock. mix set phase:[03/07] ele:[14d/16]
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
?[0m    Speed:       100000000Hz
    Bus Width:   4bit

EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
mmc_init failed! err:-95
No SD device found !
himci: 0 (eMMC), himci: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
@@@ 5 blocks read: OK
@@@ g_isRecovery = 0
?[0m@@@ bootArgs from misc       = mem=640M console=ttyAMA0,115200 mmz=anonymous,0,0xA8000000,384M clk_ignore_unused androidboot.selinux=permissive skip_initramfs rootdelay=10 init=/init root=/dev/mmcblk0p5 rootfstype=ext4 rw blkdevparts=mmcblk0:1M(boot),15M(kernel),20M(updater),1M(misc),3307M(system),256M(vendor),-(userdata)
@@@ bootArgs from emmc is bad = NULL
Net:   eth0
Error: eth0 address not set.

start download process.

Boot started successfully!

Send command:   getinfo version
version: U-Boot 2020.01
[EOT](OK)

?[0mSend command:       mw.b 0x81000000 0xFF 0x100000
[EOT](OK)

?[0mSend command:       mmc write 0x0 0x81000000 0x0 0x800

MMC write: dev # 0, block # 0, count 2048 ... 2048 blocks written: OK
35.06 M
Send command:   reset
B/s
[EOT](OK)
============================================ [SUCCESS] Took 12.27 seconds ============================================

终端将被任务重用,按任意键关闭。

擦除成功之后使用网口+串口烧录失败日志

-target upload --project-dir D:\MyData\xx\Documents\DevEco\Projects\OpenHarmony2.0 --environment hi3516dv300 --verbose <

Processing hi3516dv300 (platform: hisilicon; board: hi3516dv300; build_type: release; hpm_project_base_package: @ohos/ip_camera_hi3516dv300; hpm_project_template: dist; upload_port: COM6; upload_protocol: hiburn-net; upload_net_server_ip: 192.168.1.2; upload_net_client_mask: 255.255.255.0; upload_net_client_gw: 192.168.1.1; upload_net_client_ip: 192.168.1.3; debug_client: ; debug_extra_cmds: ; upload_partitions: partition:fastboot, partition:boot, partition:updater, partition:misc, partition:system, partition:vendor, partition:userdata; verbose_output: True; framework: hpm)
-----------------------------------------------------------------------------------------------------------------------
<lambda>(["upload"], ["D:\MyData\xx\Desktop\fsdownload\home\u-boot-hi3516dv300_emmc.bin", "D:\MyData\xx\Desktop\fsdownload\home\uImage", "D:\MyData\xx\Desktop\fsdownload\home\updater.img", "D:\MyData\xx\Desktop\fsdownload\home\system.img", "D:\MyData\xx\Desktop\fsdownload\home\vendor.img", "D:\MyData\xx\Desktop\fsdownload\home\userdata.img"])
AVAILABLE: hiburn-net, hiburn-serial, hiburn-usb
CURRENT: upload_protocol = hiburn-net
MethodWrapper(["upload"], ["D:\MyData\xx\Desktop\fsdownload\home\u-boot-hi3516dv300_emmc.bin", "D:\MyData\xx\Desktop\fsdownload\home\uImage", "D:\MyData\xx\Desktop\fsdownload\home\updater.img", "D:\MyData\xx\Desktop\fsdownload\home\system.img", "D:\MyData\xx\Desktop\fsdownload\home\vendor.img", "D:\MyData\xx\Desktop\fsdownload\home\userdata.img"])
java.exe -Duser.language=en -jar D:\MyData\xx\.deveco-device-tool\core\tool_hiburn\hiburn.jar --burn -n hi3516dv300 -m net COM6 192.168.1.2 192.168.1.3 255.255.255.0 192.168.1.1 69 -x D:\MyData\xx\.deveco-device-tool\.cache\.hiburn-nkzpzndy\hiburn-7pa_8a09.xml
The burn.config file was loaded successfully!
The current select chip: Hi3516DV300
chip file path: Resources/Common/ChipProperties/Hi3516CV500.chip

The preference.config file was loaded successfully!
Error: The server IP has expired, please reload loading!
Error: The server IP has expired, please reload loading!
hiburn.jar --burn [-x xmlPath] [-p programmerPath]
This command will burn image to the flash according to the partition table xmlPath.
First of all, you need to configure the burn.config file.

hiburn.jar --burnboot  <chipName>   <mode>  <port>  <flash>       <boot>                 [programmer]
hiburn.jar --burnboot  hi3798cv200  serial   COM0     emmc    image/fastboot.bin   image/advca_programmer.sig

hiburn.jar --erase    <chipName>      <mode>    <port>    <xmlPath>    [programmer]
hiburn.jar --erase -n hi3798cv200  -m serial     COM0   -x  xmlPath  -p  programmerPath
hiburn.jar --erase -n hi3798cv200  -m USBBootrom        -x  xmlPath  -p  programmerPath

hiburn.jar --nandimg  <chipName>  <flash> <inputFile>  <fastboot> <pagesize/ecctype> <oobsize> <fileSystem> <randomizer> <block>
hiburn.jar --nandimg  hi3798cv200   nand  In_2k4b.yaffs     0              0             64          1            0
     0
You need to input chipName and flash at first, then you can access to the options of pagesize/ecctype and block.
hiburn.jar --emmcimg  <chipName>      <outputFile>              <xmlPath>
hiburn.jar --emmcimg  hi3798cv200   image/emmcImg.bin    image/emmc_partitions.xml


general options:
--help    | -h    usage message
--version | -v    version number and copyright
--burn    | -b    this command will burn image to the flash according to the partition table xmlPath.
                  first of all, you need to configure the burn.config file.
--burnboot| -bb   This command is used to burn fastboot.
--nandimg | -n    the commands is used to create nand image.
--emmcimg | -e    the commands is used to create emmc image.
*** [upload] Error 2
============================================= [FAILED] Took 10.33 seconds =============================================
终端进程“d:\mydata\xx\.deveco-device-tool\core\deveco-venv\scripts\hos.exe 'run', '--target', 'upload', '--project-dir', 'D:\MyData\xx\Documents\DevEco\Projects\OpenHarmony2.0', '--environment', 'hi3516dv300', '--verbose'”已终止,退出代码: 1。

终端将被任务重用,按任意键关闭。

使用串口单独烧录fastboot失败日志

> Executing task in folder OpenHarmony2.0: d:\mydata\xx\.deveco-device-tool\core\deveco-venv\scripts\hos.exe run --target upload --project-dir D:\MyData\xx\Documents\DevEco\Projects\OpenHarmony2.0 --environment hi3516dv300 --verbose <

Processing hi3516dv300 (platform: hisilicon; board: hi3516dv300; build_type: release; hpm_project_base_package: @ohos/ip_camera_hi3516dv300; hpm_project_template: dist; upload_port: COM6; upload_protocol: hiburn-serial; upload_net_server_ip: 192.168.1.2; upload_net_client_mask: 255.255.255.0; upload_net_client_gw: 192.168.1.1; upload_net_client_ip: 192.168.1.3; debug_client: ; debug_extra_cmds: ; upload_partitions: partition:fastboot; verbose_output: True; framework: hpm)
---------------------------------------------------------------------------------------------------------------------------------------
<lambda>(["upload"], ["D:\MyData\xx\Desktop\fsdownload\home\u-boot-hi3516dv300_emmc.bin"])
AVAILABLE: hiburn-net, hiburn-serial, hiburn-usb
CURRENT: upload_protocol = hiburn-serial
MethodWrapper(["upload"], ["D:\MyData\xx\Desktop\fsdownload\home\u-boot-hi3516dv300_emmc.bin"])
java.exe -Duser.language=en -jar D:\MyData\xx\.deveco-device-tool\core\tool_hiburn\hiburn.jar --burn -n hi3516dv300 -m serial COM6 -x D:\MyData\xx\.deveco-device-tool\.cache\.hiburn-wlxuqpjm\hiburn-mmmu04f9.xml
The burn.config file was loaded successfully!
The current select chip: Hi3516DV300
chip file path: Resources/Common/ChipProperties/Hi3516CV500.chip

The preference.config file was loaded successfully!

SerialPort has been connented, Please power off, then power on the device.
If it doesn't work, please try to repower on.
?[0m# ---- 36%
?[0m# ---- 63%
?[0m ---- 100%
Boot download completed!





Failed to wait boot running!
There may be no boot on the board.

Boot started successfully!

Send command:   getinfo version
Failed to load version info!
Failed to Prepare for other partitions!
Timeout error.
Failed to send the command head!
hiburn.jar --burn [-x xmlPath] [-p programmerPath]
This command will burn image to the flash according to the partition table xmlPath.
First of all, you need to configure the burn.config file.

hiburn.jar --burnboot  <chipName>   <mode>  <port>  <flash>       <boot>                 [programmer]
hiburn.jar --burnboot  hi3798cv200  serial   COM0     emmc    image/fastboot.bin   image/advca_programmer.sig

hiburn.jar --erase    <chipName>      <mode>    <port>    <xmlPath>    [programmer]
hiburn.jar --erase -n hi3798cv200  -m serial     COM0   -x  xmlPath  -p  programmerPath
hiburn.jar --erase -n hi3798cv200  -m USBBootrom        -x  xmlPath  -p  programmerPath

hiburn.jar --nandimg  <chipName>  <flash> <inputFile>  <fastboot> <pagesize/ecctype> <oobsize> <fileSystem> <randomizer> <block>
hiburn.jar --nandimg  hi3798cv200   nand  In_2k4b.yaffs     0              0             64          1            0         0
You need to input chipName and flash at first, then you can access to the options of pagesize/ecctype and block.
hiburn.jar --emmcimg  <chipName>      <outputFile>              <xmlPath>
hiburn.jar --emmcimg  hi3798cv200   image/emmcImg.bin    image/emmc_partitions.xml


general options:
--help    | -h    usage message
--version | -v    version number and copyright
--burn    | -b    this command will burn image to the flash according to the partition table xmlPath.
                  first of all, you need to configure the burn.config file.
--burnboot| -bb   This command is used to burn fastboot.
--nandimg | -n    the commands is used to create nand image.
--emmcimg | -e    the commands is used to create emmc image.
*** [upload] Error 4
===================================================== [FAILED] Took 51.37 seconds =====================================================
终端进程“d:\mydata\xx\.deveco-device-tool\core\deveco-venv\scripts\hos.exe 'run', '--target', 'upload', '--project-dir', 'D:\MyData\xx\Documents\DevEco\Projects\OpenHarmony2.0', '--environment', 'hi3516dv300', '--verbose'”已终止,退出代码: 1。

终端将被任务重用,按任意键关闭。

使用HiTools工具只能使用串口烧录(烧录成功),用网口检测不到网络有连接

你好,经过定位发现,你这边需要在Partiton Configuration中配置一下第一行中对应的Type为fastboot
Type配置
配置保存之后,即可在擦除之后使用hiburn-serial进行单独烧录fastboot;
当然,你也在烧录fastboot之后,使用最上面的Upload烧录所有的文件;
并不一定需要每次都擦除fastboot的

好的 明白了,麻烦也同步更新一下https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/%E9%95%9C%E5%83%8F%E7%83%A7%E5%BD%95.md 镜像烧录文档;镜像烧录文档默认为NA

@NEEN 麻烦将涉及到的文档更新一下,谢谢。
修改fastboot的Type类型

孙文斌 changed issue state from 待办的 to 进行中
孙文斌 changed issue state from 进行中 to 已完成

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
Confirm
参与者(2)
1
https://git.oschina.net/openharmony/docs.git
git@git.oschina.net:openharmony/docs.git
openharmony
docs
docs

Search