K230 has two watchdog timers.
Add unit tests based on utest framework.
Watchdog and test are both configuable, disabled by default.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
scons --menuconfig will report:
```
warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION
(defined at /home/u/.env/packages/packages/misc/zlib/Kconfig:31)
is selected by the following symbols, but select/imply has no
effect on choice symbols
- BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:36)
warning: default on the choice symbol BSP_USING_SDIO0
(defined at board/Kconfig:20) will have no effect, as defaults
do not affect choice symbols
warning: default on the choice symbol BSP_USING_SDIO1
(defined at board/Kconfig:34) will have no effect, as defaults
do not affect choice symbols
```
Fix and remove these warnings.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Support sdio work for 01Studio board.
01Studio connect TF socket with sdio0, which is
different from standard canmv v1.0/v1.1 board
(which uses sdio1).
Updated configuration menu,
- SDIO devices are now a choice of two.
- Root file system types are also a choice of multiple.
Currently only cromfs and elmFAT are supported.
- Modified the default mount partition of the root file
system to sd0p1
Deleted the configuration BSP_SD_SDIO_DEV, and now
directly set mmcsd_change according to the selection of
the SDIO device.
Eliminated the warning of the drv_sdhci.c and
egularized the code format. The logic of this file
has not been essentially modified.
Sync and update the .config/rtconfig.h to the latest.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Add a script to call rttpkgtool's sdcard.sh.
Ths script encapsulate checking and downloading
of rttpkgtool and call ./script/sdcard.sh.
It also print new message so user need not
learn how to use sdcard.sh.
Update README.md.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Previously, `scons -c` did not clean up the build directory
and the automatically generated link.lds.generated.
This is fixed now.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
This hardlock is required by some other drivers, such
as sysctl power.
This driver can be enable/disabled by configuration.
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>
When run kconfig, see warnings as followings:
Kconfig:5: warning: BSP_ROOT has 'option env="BSP_DIR"',...
Kconfig:10: warning: RTT_ROOT has 'option env="RTT_DIR"',...
Kconfig:15: warning: PKGS_ROOT has 'option env="PKGS_DIR"',...
...
warning: the choice symbol PKG_USING_ZLIB_LATEST_VERSION (...)
is selected by the following symbols, but select/imply has no
effect on choice symbols
- BSP_ROOTFS_TYPE_CROMFS (defined at Kconfig:41)
warning: the value '0xF00000000' is invalid for C908_PLIC_PHY_ADDR...
Trying to cleanup Kconfig and re-run menuconfig to update.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
The original method of packaging and burning kernel
depends on installing the K230 RTOS SDK. It is quite
cumbersome. Now the relevant logic is extracted and
a small tool rttpkgtool is created to package the
rtthread.bin.
Considering that rttpkgtool still needs to compile
opensbi when packaging k230, which means that a
separate cross-toolchain needs to be installed.
Therefore, in order not to affect the CI operation,
the current packaging logic is not integrated into
POST_ACTION in rtconfig.py, but requires kernel
developers to run the build script separately for
packaging.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
The original code used immediate values directly when it
came to memory layout, which was not a good programming
habit.
Now we use macros and try to be compatible with SDK
configuration values in the SDK compilation environment.
The main changes are to clean up board.h, and extract
some memory layout constants to define a new header
file mem_layout.h.
Also update KERNEL_VADDR_START to the default value for
Smart, so we can use it as base to calculate other mapping
address.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
For linker script, use constant macro defined from
rtconfig.h, not immediate value.
Also cleanup the link_statksize.lds, it is also not
needed when using new mechanism.
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Some changes to support canmv board, such as:
- Address constant, some may need be set as configuration later.
- link script
- build script
Signed-off-by: Wang Chen <unicorn_wang@outlook.com>