电子说
针对Hi3516DV300开发板,除了DevEco Device Tool(操作方法请参考烧录))外,还可以使用HiTool进行烧录。
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlusbflags12D1D0010100]"SkipBOSDescriptorQuery"=hex:01,00,00,00"osvc"=hex:00,00"IgnoreHWSerNum"=hex:01
gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md
]HarmonyOS与OpenHarmony鸿蒙文档籽料:mau123789是v直接拿
- Hi3516DV300对应的LiteOS内核小型系统的启动引导文件为“[u-boot-hi3516dv300.bin]”,烧写配置文件需要开发者自行准备(可自行命名,例如LS_3516_liteos.xml),模板如下:
```
< ?xml version="1.0" encoding="GB2312" ? >
< Partition_Info ProgrammerFile="" >
< Part Sel="1" PartitionName="fastboot" FlashType="emmc" FileSystem="none" Start="0" Length="1M" SelectFile="D:liteosu-boot-hi3516dv300.bin"/ >
< Part Sel="1" PartitionName="" FlashType="emmc" FileSystem="none" Start="1M" Length="9M" SelectFile="D:liteosOHOS_Image.bin"/ >
< Part Sel="1" PartitionName="" FlashType="emmc" FileSystem="none" Start="10M" Length="50M" SelectFile="D:liteosrootfs_vfat.img"/ >
< Part Sel="1" PartitionName="" FlashType="emmc" FileSystem="none" Start="60M" Length="50M" SelectFile="D:liteosuserfs_vfat.img"/ >
< /Partition_Info >
```
- Hi3516DV300对应的Linux内核小型系统的启动引导文件为“[u-boot-hi3516dv300.bin])”,烧写配置文件需要开发者自行准备(可自行命名,例如LS_3516_linux.xml),模板如下
```
< ?xml version="1.0" encoding="GB2312" ? >
< Partition_Info ProgrammerFile="" >
< Part Sel="1" PartitionName="fastboot" FlashType="emmc" FileSystem="none" Start="0" Length="1M" SelectFile="D:linuxu-boot-hi3516dv300.bin"/ >
< Part Sel="1" PartitionName="ohos_image" FlashType="emmc" FileSystem="none" Start="1M" Length="9M" SelectFile="D:linuxuImage_hi3516dv300_smp"/ >
< Part Sel="1" PartitionName="rootfs" FlashType="emmc" FileSystem="ext3/4" Start="10M" Length="50M" SelectFile="D:linuxrootfs_ext4.img"/ >
< Part Sel="1" PartitionName="userfs" FlashType="emmc" FileSystem="ext3/4" Start="60M" Length="50M" SelectFile="D:linuxuserfs_ext4.img"/ >
< Part Sel="1" PartitionName="userdata" FlashType="emmc" FileSystem="ext3/4" Start="110M" Length="1024M" SelectFile="D:linuxuserdata_ext4.img"/ >
< /Partition_Info >
```
1. 将编译完成的源码包下载至客户端并解压,将烧录相关文件拷贝至步骤1中新建的文件夹。
针对Hi3516DV300开发板(系统使用LiteOS内核或Linux内核根据业务实际需要选择):
- LiteOS内核小型系统对应的烧写所需文件为:OHOS_Image.bin、rootfs_vfat.img、userfs_vfat.img
- Linux内核小型系统对应的烧写所需文件为:uImage_hi3516dv300_smp、rootfs_ext4.img、userfs_ext4.img、userdata_ext4.img
setenv bootcmd "mmc read 0x0 0x80000000 0x800 0x4800;go 0x80000000";
setenv bootargs "console=ttyAMA0,115200n8 root=emmc fstype=vfat rootaddr=10M rootsize=50M rw";
saveenv
sa;reset
setenv bootargs "mem=128M console=ttyAMA0,115200 root=/dev/mmcblk0p3 rw rootfstype=ext4 rootwait blkdevparts=mmcblk0:1M(boot),9M(kernel),50M(rootfs),50M(userfs),1024M(userdata)"
setenv bootcmd "mmc read 0x0 0x82000000 0x800 0x4800; mw 0x10FF0044 0x0600;mw 0x120D2010 0x00000000;mw 0x120D2400 0x000000ff;mw 0x120D2010 0x00000000; bootm 0x82000000"
saveenv;
reset
审核编辑 黄宇
全部0条评论
快来发表一下你的评论吧 !