You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/28 04:01:21 UTC
[incubator-nuttx] branch master updated: Documentation/bl602:
Update some imformation; Add partition.toml in tool/bl602
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new bb63afd Documentation/bl602: Update some imformation; Add partition.toml in tool/bl602
bb63afd is described below
commit bb63afde1e0d64329b6f044deabd27a969840742
Author: jsun <js...@bouffalolab.com>
AuthorDate: Wed Jul 28 11:01:01 2021 +0800
Documentation/bl602: Update some imformation; Add partition.toml in tool/bl602
---
Documentation/platforms/risc-v/bl602/index.rst | 14 ++++----
tools/bl602/partition_cfg_2M_nuttx.toml | 50 ++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 6 deletions(-)
diff --git a/Documentation/platforms/risc-v/bl602/index.rst b/Documentation/platforms/risc-v/bl602/index.rst
index d9bce20..d72c1ad 100644
--- a/Documentation/platforms/risc-v/bl602/index.rst
+++ b/Documentation/platforms/risc-v/bl602/index.rst
@@ -40,7 +40,7 @@ nsh
First make sure the ``riscv-gnu-toolchain`` has been installed
correctly.
-Configure the NUttX project: ``./tools/configure.sh bl602evb:nsh``. Run
+Configure the NuttX project: ``./tools/configure.sh bl602evb:nsh``. Run
``make`` to build the project.
.. code:: shell
@@ -52,7 +52,7 @@ Configure the NUttX project: ``./tools/configure.sh bl602evb:nsh``. Run
wifi
----
-Configure the NUttX project: ``./tools/configure.sh bl602evb:wifi``. Run
+Configure the NuttX project: ``./tools/configure.sh bl602evb:wifi``. Run
``make`` to build the project.
.. code:: shell
@@ -101,14 +101,16 @@ Config download
**Configuration parameters include:**
+- **Factory Params**: Use the dts file in the device_tree folder of the
+ corresponding chip model in the Dev Cube directory. The default
+ selection is 40M.
+
- **Partition Table**: Use the partition table in the partition folder
of the corresponding chip model in the Dev Cube directory, and 2M
files are selected by default for BL602
-..
-
- For the nuttx operating system, BL602 has a dedicated partition file.
- For details, please contact us.
+ **For the nuttx, BL602 has a dedicated partition file. It is placed
+ in** ``nuttx/tools/bl602``
- **Boot2 Bin**: It is the first Flash program that runs after the
system is started. It is responsible for establishing the BLSP
diff --git a/tools/bl602/partition_cfg_2M_nuttx.toml b/tools/bl602/partition_cfg_2M_nuttx.toml
new file mode 100644
index 0000000..790f2e4
--- /dev/null
+++ b/tools/bl602/partition_cfg_2M_nuttx.toml
@@ -0,0 +1,50 @@
+[pt_table]
+#partition table is 4K in size
+address0 = 0xE000
+address1 = 0xF000
+
+[[pt_entry]]
+type = 0
+name = "FW"
+device = 0
+address0 = 0x10000
+size0 = 0x111000
+address1 = 0x121000
+size1 = 0xA0000
+# compressed image must set len,normal image can left it to 0
+len = 0
+
+[[pt_entry]]
+type = 2
+name = "mfg"
+device = 0
+address0 = 0x121000
+size0 = 0xA0000
+address1 = 0
+size1 = 0
+# compressed image must set len,normal image can left it to 0
+len = 0
+
+[[pt_entry]]
+type = 3
+name = "factory"
+device = 0
+address0 = 0x1C1000
+size0 = 0x4000
+address1 = 0
+size1 = 0
+# compressed image must set len,normal image can left it to 0
+len = 0
+
+# for user
+[[pt_entry]]
+type = 4
+name = "chipdef"
+device = 0
+address0 = 0x1C5000
+size0 = 0x3B000
+address1 = 0
+size1 = 0
+# compressed image must set len,normal image can left it to 0
+len = 0
+