Skip to content

Commit

Permalink
README{,.en}: Polish building and flashing instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Gong Zhile <[email protected]>
  • Loading branch information
goodspeed34 committed Dec 13, 2024
1 parent cef7d83 commit b7a15e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ws63flash 是通过反向海思官方烧录工具 (BurnTool) 实现的海思 WS6

构建并安装:

$ autoreconf -fi # 如果使用 Release 源代码,可跳过。
$ ./configure
$ make
$ sudo make install
Expand All @@ -30,19 +31,23 @@ ws63flash 是通过反向海思官方烧录工具 (BurnTool) 实现的海思 WS6

# ws63flash --flash COM3 \path\to\fwpkg

以更快的波特率 (推荐, 921600) 刷写:

# ws63flash -b921600 --flash PORT /path/to/fwpkg

选择性刷写,只刷写 `ws63-liteos-app.bin' 和刷写所需的必要文件:

$ ws63flash --flash PORT /path/to/fwpkg ws63-liteos-app.bin
# ws63flash --flash PORT /path/to/fwpkg ws63-liteos-app.bin

二进制刷写,直接刷写未打包到 fwpkg 的二进制文件:

$ ws63flash --write PORT root_loaderboot_sign.bin \
# ws63flash --write PORT root_loaderboot_sign.bin \
ws63-liteos-app-sign.bin@0x230000 \
flashboot_sign.bin@0x220000

擦除板上内存:

$ ws63flash --erase PORT /path/to/fwpkg
# ws63flash --erase PORT /path/to/fwpkg

更多信息请参见 `ws63flash --help' 以及 ws63flash(1) 手册页。

Expand Down
13 changes: 9 additions & 4 deletions README.en
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ For GNU/Linux, run the following instruction inside a shell.

Build and install:

$ autoreconf -fi # If using release source, optional.
$ ./configure
$ make
$ sudo make install
Expand All @@ -25,25 +26,29 @@ Build and install:

Flashing a fwpkg on POSIX System (GNU/Linux, BSD...):

$ ws63flash --flash /dev/ttyUSB0 /path/to/fwpkg
# ws63flash --flash /dev/ttyUSB0 /path/to/fwpkg

On MichaelSoft Binbows, flashing with a COM port:

# ws63flash --flash COM3 \path\to\fwpkg

Flashing with a faster baudrate (921600, recommended):

# ws63flash -b921600 --flash PORT /path/to/fwpkg

Selective flashing, only flash `ws63-liteos-app.bin' and mandatory bin:

$ ws63flash --flash PORT /path/to/fwpkg ws63-liteos-app.bin
# ws63flash --flash PORT /path/to/fwpkg ws63-liteos-app.bin

Binary flashing, flash binaries that wasn't packed yet:

$ ws63flash --write PORT root_loaderboot_sign.bin \
# ws63flash --write PORT root_loaderboot_sign.bin \
ws63-liteos-app-sign.bin@0x230000 \
flashboot_sign.bin@0x220000

Erasing the flash memory on board:

$ ws63flash --erase PORT /path/to/fwpkg
# ws63flash --erase PORT /path/to/fwpkg

For more infomation, check out `ws63flash --help' and ws63flash(1).

Expand Down

0 comments on commit b7a15e6

Please sign in to comment.