kendryte / k230_sdk

Kendryte K230 SDK
BSD 2-Clause "Simplified" License
170 stars 38 forks source link

[help]: k230 CLINT device questions #47

Closed yf13 closed 9 months ago

yf13 commented 10 months ago

Help

Can you please teach answers for the following CLINT questions:

cyyself commented 10 months ago
yf13 commented 10 months ago

@cyyself thanks a lot.

It seems that the hw.dtb used with big core opensbi uses 8Mhz timebase-freqency, maybe that is not used at all?

yf13 commented 9 months ago

@wuwentao do you know the actual frequency of the CLINT timer frequencies of the two CPUs? If they are different, please teach.

yf13 commented 9 months ago

@cyyself thanks for sharing the information.

With your suggested tweaks of u-boot in #48, I can run NuttX w/ MMU support on K230 using standard Risc-V compliant PTE format. I also did simple test with NuttX that 27Mhz works fine with CPU0.

I also can run mainline OpenSBI with test payload on CanMV-k230, though NuttX payload still not working right yet.

wangjianxin-canaan commented 9 months ago

@cyyself thanks a lot.

It seems that the hw.dtb used with big core opensbi uses 8Mhz timebase-freqency, maybe that is not used at all?

yes ,not used at all,hw.dtb is use only in big core opensbi.

wangjianxin-canaan commented 9 months ago

@wuwentao do you know the actual frequency of the CLINT timer frequencies of the two CPUs? If they are different, please teach. both is 27Mhz