Skip to content

Commit 2b82ab3

Browse files
authored
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 <unicorn_wang@outlook.com>
1 parent d3841c3 commit 2b82ab3

File tree

5 files changed

+7
-11
lines changed

5 files changed

+7
-11
lines changed

bsp/cvitek/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ lwIP-2.1.2 initialized!
284284
found part[0], begin: 1048576, size: 128.0MB
285285
found part[1], begin: 135266304, size: 28.707GB
286286
[I/app.filesystem] device 'sd1' is mounted to '/' as FAT
287-
Hello RT-Smart!
287+
Hello RISC-V/C906B !
288288
msh />[E/sal.skt] not find network interface device by protocol family(1).
289289
[E/sal.skt] SAL socket protocol family input failed, return error -3.
290290
/ # ls
@@ -310,7 +310,7 @@ lwIP-2.1.2 initialized!
310310
found part[0], begin: 1048576, size: 128.0MB
311311
found part[1], begin: 135266304, size: 28.707GB
312312
[I/app.filesystem] device 'sd1' is mounted to '/' as EXT
313-
Hello RT-Smart!
313+
Hello RISC-V/C906B !
314314
msh />[E/sal.skt] not find network interface device by protocol family(1).
315315
[E/sal.skt] SAL socket protocol family input failed, return error -3.
316316
/ # ls

bsp/cvitek/c906_little/applications/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
int main(void)
1414
{
15-
rt_kprintf("Hello, RISC-V!\n");
15+
rt_kprintf("Hello, RISC-V/C906L !\n");
1616

1717
return 0;
1818
}

bsp/cvitek/cv18xx_aarch64/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Starting kernel ...
142142
/ | \ 5.2.0 build Dec 25 2024 14:16:49
143143
2006 - 2024 Copyright by RT-Thread team
144144
[I/rtdm.mnt] File system initialization done
145-
hello rt-thread!
145+
Hello AARCH64 !
146146
msh />
147147
```
148148

@@ -184,7 +184,7 @@ Starting kernel ...
184184
2006 - 2024 Copyright by RT-Thread team
185185
[I/drivers.serial] Using /dev/ttyS0 as default console
186186
[I/rtdm.mnt] File system initialization done
187-
hello rt-thread!
187+
Hello AARCH64 !
188188
msh />
189189
```
190190

bsp/cvitek/cv18xx_aarch64/applications/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
int main(void)
1414
{
15-
rt_kprintf("hello rt-thread!\n");
15+
rt_kprintf("Hello AARCH64 !\n");
1616

1717
return 0;
1818
}

bsp/cvitek/cv18xx_risc-v/applications/main.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222

2323
int main(void)
2424
{
25-
#ifdef RT_USING_SMART
26-
rt_kprintf("Hello RT-Smart!\n");
27-
#else
28-
rt_kprintf("Hello RISC-V!\n");
29-
#endif
25+
rt_kprintf("Hello RISC-V/C906B !\n");
3026

3127
/* LED pin: C24 */
3228
rt_uint16_t led = rt_pin_get(LED_PIN);

0 commit comments

Comments
 (0)