Milk-v duo 双核同时运行RT-SMART和RT-Thread

milk-v duo 采用的是 CV1800B,双核异构。
大核:RISC-V C906 1GHz,运行 RT-SMART
小核:RISC-V C906(无MMU)700Mhz,运行RT-Thread。

rt-thread 官方master现在已经支持双核同时运行,可在 https://github.com/RT-Thread/rt-thread/tree/master/bsp/cvitek 下对应的 cv1800b(对应大核)和c906_little(对应小核)分别编译。

编译成功后,会在 bsp/cvitek 目录下自动生成 fip.bin 和 boot.sd 文件,其中大核运行文件在 boot.sd 中,小核的运行文件在 fip.bin 中。

将 SD 卡分为 2 个分区,第 1 个分区用于存放 bin 文件,第 2 个分区用于作为数据存储分区,分区格式为 FAT32。

将根目录下的 fip.bin 和 boot.sd 复制 SD 卡第一个分区中。

  • fip.bin:fsbl、 opensbi、uboot、小核运行文件打包后的 bin 文件
  • boot.sd:大核打包后的 bin 文件

当然也可以大核运行 LINUX,小核运行rt-thread

对milk-v duo for rt-thread 感兴趣的可以加入微信群聊哦。(怎么加看之前的帖子。。。)

看了下,把启动、定时器、中断这些都梳理出来了,在你的基础上移植到其它rtos也很简单了,赞一个!

Thank you! With little effort I managed to blink the LED using main core, but cannot access shell or LED on little core. I do not see Hello, RISC-V! Any clues what I’ve missed?

I found the serial console for the little core on pins 1 and 2 of the Duo. Now I can see errors and something to investigate.