Attempting to make MilkV Duo 256M compatible with PicoCalc

I think it would be really cool to have my PicoCalc powered by a Milk-V Duo. It’s intended for a Raspberry Pi Pico, however someone got it working on a Luckfox Lyra. Which inspired me to clone their git repo and try my hand at seeing if this’ll run with my Duo.

Problem is… Devicetree configurations. I’m trying to adapt the Luckfox dtsi file to my Milk-V but unfortunately there doesn’t seem to be much documentation as to the proper format and way to do so. AI was obviously less than helpful. Help would be appreciated as I do very much believe it to be possible and think it would be dope to have a handheld rv64 computer.

1 Like

Where have you looked so far and what are you stuck on?

1 Like

My apologies for such a late reply, life got busy on me.

Unfortunately my 256M broke on me and so I’ve just stuck with the Luckfox for now. This project was never really meant to be as I don’t know exactly where to look when it comes to adapting devicetrees from one SoC to another.

1 Like

I think you’re kind of going about it the wrong way.

Adapting the Lyra DTS to the Duo would be a huge pain, you’d have to look up the memory addresses and IRQs and reset vectors for every single peripheral you need. This stuff is in the datasheet and/or SDK source for the most part but it’s not pleasant hunting everything down.

Instead, my advice would be to take the DTS files from the duo-buildroot-sdk (either the U-Boot DTS or Linux DTS) and adapt those to work with PicoCalc. Or, take a look at the Duo 64M DTS that’s included in modern Linux 7.0, it’ll be more “standard” than the Milk-V ones.

I have no idea what that would entail; I’ve just been doing work getting DTS files set up for the Duo S on Linux 7.0, so I’ve learned a bit about how to write them. I will say Google Gemini has a pretty solid grasp on how to write DTS files as well, that’s been helpful.