From 81e6926fa93a721d5a3096c7a683f1c39501a342 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Thu, 16 Jan 2025 09:20:27 +0800 Subject: [PATCH] bsp/cvitek: print arch info. during boot-up Duo's CPU combination is more complicated: | BSP | B/L core| ISA | UART | | ------------- | ------- |---------------- |-------| | cv18xx_risc-v | Big | RISC-V C906 | UART0 | | c906-little | Littel | RISC-V C906 | UART1 | | cv18xx_aarch64| Big | ARM Cortex A53 | UART0 | Printing ISA and big and small core information during the boot process helps developers/testers determine the CPU and serial port corresponding to the current console. In addition, the RTT logo printing has already distinguished whether it is smart, so the bsp printing no longer distinguishes. Updated README to sync with this change. Signed-off-by: Chen Wang --- bsp/cvitek/README.md | 4 ++-- bsp/cvitek/c906_little/applications/main.c | 2 +- bsp/cvitek/cv18xx_aarch64/README.md | 4 ++-- bsp/cvitek/cv18xx_aarch64/applications/main.c | 2 +- bsp/cvitek/cv18xx_risc-v/applications/main.c | 6 +----- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/bsp/cvitek/README.md b/bsp/cvitek/README.md index fac15d3b176..864d54d43b2 100755 --- a/bsp/cvitek/README.md +++ b/bsp/cvitek/README.md @@ -284,7 +284,7 @@ lwIP-2.1.2 initialized! found part[0], begin: 1048576, size: 128.0MB found part[1], begin: 135266304, size: 28.707GB [I/app.filesystem] device 'sd1' is mounted to '/' as FAT -Hello RT-Smart! +Hello RISC-V/C906B ! msh />[E/sal.skt] not find network interface device by protocol family(1). [E/sal.skt] SAL socket protocol family input failed, return error -3. / # ls @@ -310,7 +310,7 @@ lwIP-2.1.2 initialized! found part[0], begin: 1048576, size: 128.0MB found part[1], begin: 135266304, size: 28.707GB [I/app.filesystem] device 'sd1' is mounted to '/' as EXT -Hello RT-Smart! +Hello RISC-V/C906B ! msh />[E/sal.skt] not find network interface device by protocol family(1). [E/sal.skt] SAL socket protocol family input failed, return error -3. / # ls diff --git a/bsp/cvitek/c906_little/applications/main.c b/bsp/cvitek/c906_little/applications/main.c index e1a0f57c9e1..df0a864d7b5 100755 --- a/bsp/cvitek/c906_little/applications/main.c +++ b/bsp/cvitek/c906_little/applications/main.c @@ -12,7 +12,7 @@ int main(void) { - rt_kprintf("Hello, RISC-V!\n"); + rt_kprintf("Hello, RISC-V/C906L !\n"); return 0; } diff --git a/bsp/cvitek/cv18xx_aarch64/README.md b/bsp/cvitek/cv18xx_aarch64/README.md index 591204d37cc..5fe11229f75 100644 --- a/bsp/cvitek/cv18xx_aarch64/README.md +++ b/bsp/cvitek/cv18xx_aarch64/README.md @@ -142,7 +142,7 @@ Starting kernel ... / | \ 5.2.0 build Dec 25 2024 14:16:49 2006 - 2024 Copyright by RT-Thread team [I/rtdm.mnt] File system initialization done -hello rt-thread! +Hello AARCH64 ! msh /> ``` @@ -184,7 +184,7 @@ Starting kernel ... 2006 - 2024 Copyright by RT-Thread team [I/drivers.serial] Using /dev/ttyS0 as default console [I/rtdm.mnt] File system initialization done -hello rt-thread! +Hello AARCH64 ! msh /> ``` diff --git a/bsp/cvitek/cv18xx_aarch64/applications/main.c b/bsp/cvitek/cv18xx_aarch64/applications/main.c index d7414cd58a4..3ab91e0cb7a 100644 --- a/bsp/cvitek/cv18xx_aarch64/applications/main.c +++ b/bsp/cvitek/cv18xx_aarch64/applications/main.c @@ -12,7 +12,7 @@ int main(void) { - rt_kprintf("hello rt-thread!\n"); + rt_kprintf("Hello AARCH64 !\n"); return 0; } diff --git a/bsp/cvitek/cv18xx_risc-v/applications/main.c b/bsp/cvitek/cv18xx_risc-v/applications/main.c index b2b04a83eae..458652d2728 100755 --- a/bsp/cvitek/cv18xx_risc-v/applications/main.c +++ b/bsp/cvitek/cv18xx_risc-v/applications/main.c @@ -22,11 +22,7 @@ int main(void) { -#ifdef RT_USING_SMART - rt_kprintf("Hello RT-Smart!\n"); -#else - rt_kprintf("Hello RISC-V!\n"); -#endif + rt_kprintf("Hello RISC-V/C906B !\n"); /* LED pin: C24 */ rt_uint16_t led = rt_pin_get(LED_PIN);