diff options
| author | Chen Wang <[email protected]> | 2025-01-16 22:33:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-16 22:33:55 +0800 |
| commit | 2b82ab38a20728c8767f80bd10cc2b90da94ccd5 (patch) | |
| tree | 913b33f825a7d30d13bbac8e6df948f8c95a9607 | |
| parent | d3841c3109f5d0a882e98396b95459da7989a326 (diff) | |
bsp/cvitek: print arch info. during boot-up (#9919)
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 <[email protected]>
| -rwxr-xr-x | bsp/cvitek/README.md | 4 | ||||
| -rwxr-xr-x | bsp/cvitek/c906_little/applications/main.c | 2 | ||||
| -rw-r--r-- | bsp/cvitek/cv18xx_aarch64/README.md | 4 | ||||
| -rw-r--r-- | bsp/cvitek/cv18xx_aarch64/applications/main.c | 2 | ||||
| -rwxr-xr-x | 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 fac15d3b17..864d54d43b 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 e1a0f57c9e..df0a864d7b 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 591204d37c..5fe11229f7 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 d7414cd58a..3ab91e0cb7 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 b2b04a83ea..458652d272 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); |
