summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-29add gd32h759i-start bspwirano
2024-07-25bsp: cvitek: fix cv18xx_aarch64 mnt init blockingZ8MAN8
The aarch64 core of duo on the master cannot enter the console interface. It can only print the RT flag and hold it. Analysis: The latest commit that can work is ae6a328 ("Add psoc62, 61 config"). This phenomenon will occur after adding 754c59a ("[Feature] DFS mount auto by kernel parameters"). The specific reason is that when aarch bsp enables the device tree, the current u-boot will pass in bootargs, which contains "root=/dev/mmcblk0p2 rootwait rw", which means that the kernel is required to wait until the rootfs in /dev/mmcblk0p2 loaded successfully. However, the current aarch64 bsp default does not implement sdmmc device mounting, causing the kernel file system mounting module (rootfs_mnt_init() of components/drivers/core/mnt.c) to enter an infinite loop waiting. Solution: At present, we do not plan to modify the startup parameters of u-boot. The temporary solution adopted is to create a pseudo /dev/mmcblk0p2 device during the board initialization process, and then cancel the pseudo device after mnt is completed. This allows the kernel boot to be completed successfully. Signed-off-by: Shicheng Chu <[email protected]> Reviewed-by: Chen Wang <[email protected]>
2024-07-25Merge pull request #9228 from messigogogo/masterBernard Xiong
[BSP/Phytium]适配最新驱动
2024-07-25Merge pull request #9221 from Z8MAN8/cvitek_arm_uartBernard Xiong
bsp: cvitek: add missing soc type for aarch64
2024-07-25Merge pull request #9236 from polarvid/shell/arm64-headerBernard Xiong
quality: include the essential only to avoid recursion
2024-07-25Merge pull request #9247 from Z8MAN8/cvitek_arm_board_initBernard Xiong
bsp: cviteK: update board init for aarch64
2024-07-24[bsp/at32] 1.add support hwi2c driver, 2.update all firmware libraries. (#9241)sheltonyu
* 1.add support hwi2c driver, 2.update all firmware libraries * update some files and fixed errors * add support a423 at hwi2c driver * add .ignore_format.yml
2024-07-24bsp: cvitek: fixed stacksize issueChen Wang
In the original Sconstruct script, `GetDepend('__STACKSIZE__')` is placed before the call to `PrepareBuilding()`, which causes the value of `GetDepend('__STACKSIZE__')` to always be False, and the value of `__STACKSIZE__` in `link_stacksize.lds` will not be updated. Solution: move the call if `PrepareBuilding()` ahead. Also sync and update the .config and rtconfig.h, plus the link_stacksize.lds. Signed-off-by: Chen Wang <[email protected]>
2024-07-24Synchronizing sensor_v1 changeskurisaw
2024-07-24[sensor_v2] Repair an error occurs when sensor v2 probes a sensor device for ↵kurisaw
the first time
2024-07-24bsp: cviteK: update board init for aarch64Z8MAN8
When compiling CV18xx_arch64, have a error: can not find "rt_fdt_commit_memregion_early" Analysis: b785ef9 ("[libcpu][aarch64]memory setup using memblock ") no longer support "rt_fdt_commit_memregion_early", become use "rt_memblock_reserve_memory" Solution: Refer to the bsp/qemu-virt64-aarch64/drivers/board.c delete "rt_fdt_commit_memregion_early" Signed-off-by: Shicheng Chu <[email protected]> Reviewed-by: Chen Wang <[email protected]>
2024-07-24bsp: cvitek: add missing soc type for aarch64Z8MAN8
When compiling CV18xx_arch64, there are the following errors: 1. missing soc type for aarch64 2. uart device objects defined but not used Analysis: a63c07f ("bsp: cvitek: new design for pinmux") and 114e143("bsp:cvitek: add pinmux for uart"), CV18xx_arch64 is not considered. Solution: Refer to the cv18xx_riscv format to add the corresponding chip type SOC_Type_SG2002, as well as the corresponding macro for the serial port pins and interrupts Signed-off-by: Shicheng Chu <[email protected]> Reviewed-by: Chen Wang <[email protected]>
2024-07-24Merge pull request #9242 from heyuanjie87/hyj724Bernard Xiong
[bsp/cvitek]添加ioremap兼容定义以适应smart运行
2024-07-24Merge pull request #9212 from polarvid/shell/opt-gctxBernard Xiong
[libcpu] trimming ARM64 general context
2024-07-24[feat]添加ioremap兼容定义以适应smart运行heyuanjie87
2024-07-24quality: include the essential only to avoid recursionShell
The rtdef.h is a big header with multiple dependency inside, which makes it easier to introduce recursion dependency. Signed-off-by: Shell <[email protected]>
2024-07-24components: net: lwip: port: add netdev callback on link status change settingJiading Xu
- set netdev callback on link status change in netdev_add() Signed-off-by: Jiading Xu <[email protected]>
2024-07-22bsp: cvitek: improve documentationChen Wang
Currently, the documents under bsp/cvitek are a bit messy. There are currently four readme files: - bsp/cvitek/README.md (Chinese) - bsp/cvitek/c906_little/README.md (Chinese/English) - bsp/cvitek/cv18xx_aarch64/README.md (Chinese) - bsp/cvitek/cv18xx_risc-v/README.md (Chinese/English) Regarding the working mode of the big + small cores, it is meaningless to describe the small core alone, or the large core alone. This can also be seen in the existing files. The readme of the small core will also introduce the programming of the large core, and vice versa. Considering that the official default mode is C906B + C906L. ARM large core can be treataed as a special case. So the document structure is modified as follows: - Remove `bsp/cvitek/c906_little/README.md` and `bsp/cvitek/cv18xx_risc-v/README.md`, merge them all into `bsp/cvitek/README.md` - Add a link to `bsp/cvitek/cv18xx_aarch64/README.md` in `bsp/cvitek/README.md` FIXME: The modified document does not provide English version. Is it really necessary? Signed-off-by: Chen Wang <[email protected]>
2024-07-22[utest] feat: print progress on testingShell
This is required so the user will not be confused on waiting for test to complete. Changes: - notify user that the test is not corrupted - expand waiting tick on timed mtx test, for compatibility on different hw. Signed-off-by: Shell <[email protected]>
2024-07-22format checkzhangyan
2024-07-22[BSP/Phytium]适配最新裸机驱动张衍
2024-07-21[ci] add bsp/stm32+renesas examples files' review ownerRbb666
2024-07-21[bsp][cvitek] 修复 cv18xx_aarch64 gpio 驱动相关宏配置Z8MAN8
2024-07-21[bsp][cvitek]: 将adc wdt驱动的局部函数移至源文件Z8MAN8
2024-07-20[action][runner] add the keil ci check for runnerSupper Thomas
Signed-off-by: Supper Thomas <[email protected]>
2024-07-19删除stm32/drv_pm.c不必要的头文件Rbb666
2024-07-19删除bsp:stm32l476的pm组件依赖Rbb666
2024-07-19[stm32][pm]lptimer is supportedwdfk-prog
2024-07-19[stm32][lptim]lptimer is register with hwtimer, only supports pm calls,the ↵wdfk-prog
timer function is not supported
2024-07-19[compoents][hwtimer]Add a user control interfacewdfk-prog
2024-07-19[compoents][pm]The device is registered and uninstalled by linked listwdfk-prog
2024-07-19[src][tick]rt_tick setting arbitrary value function is added to support ↵wdfk-prog
low-power wake-up tick compensation
2024-07-18bsp: cvitek: switch to device init function for some driversChen Wang
Some drivers use INIT_BOARD_EXPORT, it is not necessary, it is enough to use INIT_DEVICE_EXPORT for genearl drivers. Signed-off-by: Chen Wang <[email protected]>
2024-07-18Merge pull request #9208 from zmshahaha/errnoBernard Xiong
[components][lwp]fix exec and mount error code
2024-07-18[libcpu/arm64] feat: Trimming General ContextShell
This patch focuses on the ARM64 general context handling code. The modifications are aimed at enhancing performance by simplifying context save/restore operations. Changes include: - Adjusted stack alignment in `arch_set_thread_context` function. - Updated `lwp_gcc.S` to reset frame pointer and link register. - Refined `rt_hw_backtrace_frame_unwind` to handle user space address checks. - Added `GET_THREAD_SELF` macro in `asm-generic.h`. - Simplified context saving/restoring in `context_gcc.h` and related files. - Optimized `rt_hw_context_switch_interrupt` and related assembly routines. Signed-off-by: Shell <[email protected]>
2024-07-18adapt to rv64ilp32 toolchainMuChenger
2024-07-18fix exec and mount error codezhao maosheng
2024-07-18Fix potential return value discrepancy when writing to urandomzhao maosheng
2024-07-17Merge pull request #9202 from polarvid/shell/arm64-setup-pvoffBernard Xiong
[libcpu] quality: call PV_OFFSET on entry for once
2024-07-17Merge pull request #9201 from unicornx/dev-wdt-bugfixBernard Xiong
bsp: cvitek: accuulated bugfixes for wdt driver
2024-07-17Merge pull request #9200 from unicornx/dev-spi-newBernard Xiong
bsp: cvitek: re-wrote spi driver
2024-07-17Merge pull request #9199 from unicornx/dev-i2c-newBernard Xiong
bsp: cvitek: re-wrote i2c driver
2024-07-17bsp: cvitek: fix the wdt timeout unit problemChen Wang
See `components/drivers/include/drivers/watchdog.h` maco definition of RT_DEVICE_CTRL_WDT_GET_TIMEOUT RT_DEVICE_CTRL_WDT_SET_TIMEOUT RT_DEVICE_CTRL_WDT_GET_TIMELEFT The wdt timeout time unit is defined as seconds in the API, but the code incorrectly uses ms. Correct this and comply with the API definition. Signed-off-by: Chen Wang <[email protected]> Reviewed-by: Yuanjie He <[email protected]> Reviewed-by: Shell <[email protected]>
2024-07-17[libcpu] quality: call PV_OFFSET on entry for onceShell
This patch improves the efficiency and readability of the AArch64 common setup code by calculating the `PV_OFFSET` once at the start and reusing the value. This change reduces redundant calculations. Signed-off-by: Shell <[email protected]>
2024-07-17bsp: cvitek: re-wrote spi driverflyingcys
Rewrote the spi driver. Reuse the driver code from https://github.com/sophgo/cvi_alios_open, which is Apache 2.0 licenced. Signed-off-by: flyingcys <[email protected]> Reviewed-by: Chen Wang <[email protected]>
2024-07-17Merge pull request #9164 from polarvid/shell/rv64-tickBernard Xiong
[libcpu/rv64] feat: unify tick.c
2024-07-17Merge branch 'master' into shell/rv64-tickShell
2024-07-17[fix] fix cromfs read out of mem range (#9197)zhuzhuzhu
Update dfs_cromfs.c
2024-07-17bsp: cvitek: remove warning when building wdt driverChen Wang
``` ./bsp/cvitek/drivers/drv_wdt.c: In function '_wdt_control': warning: assignment to 'void *' from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion] 119 | wdt_device->parent.user_data = (rt_uint32_t)(*(rt_uint32_t *)arg); | ^ warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 122 | *(rt_uint32_t *)arg = (rt_uint32_t)wdt_device->parent.user_data; | ^ ``` Rootcasue: It's not portable to store integar in a pointer. Solution: use global _wdt_dev to store the timeout value. Signed-off-by: Chen Wang <[email protected]>
2024-07-17bsp: cvitek: re-wrote i2c driverflyingcys
Optimize the original i2c driver code. Signed-off-by: flyingcys <[email protected]> Reviewed-by: Chen Wang <[email protected]>