![](https://seccdn.libravatar.org/avatar/0a8a165c24ed29b3a196e9dab465794e.jpg?s=120&d=mm&r=g)
Hey all! I recently ordered a Milk-V Meles[0]; while it hasn't shipped yet, I'm hoping to port openSUSE to the board once I get it, so I thought I'd get a head start by figuring out what all is involved in porting openSUSE to a new RISC-V board. Can anybody give me any pointers to get started? Thanks, Loren [0]: https://milkv.io/meles
![](https://seccdn.libravatar.org/avatar/67492dd77fb28469872a689d9f947135.jpg?s=120&d=mm&r=g)
Hi Loren, On 6/9/24 2:25 AM, Loren Burkholder wrote:
Hey all!
I recently ordered a Milk-V Meles[0]; while it hasn't shipped yet, I'm hoping to port openSUSE to the board once I get it, so I thought I'd get a head start by figuring out what all is involved in porting openSUSE to a new RISC-V board. Can anybody give me any pointers to get started?
Thanks, Loren
actually, I was planning to do the exact same thing :) My Meles hasn't shipped either, but the first step would be to enable U-Boot by building a device tree + configuration. This should be quite easy since the TH1520 SoC is already upstreamed[0]. Milk-V have their own U-Boot fork, but it's important to try to have everything upstreamed, so build delta patches from their fork. Lastly you'd have to build a JeOS package with a (potentially patched) kernel in OBS. You have to figure out which changes they have made to packages like kernel-firmware and apply those as patches. Milk-V also has the config they use for their image here [1]. [0] https://source.denx.de/u-boot/u-boot/-/blob/master/arch/riscv/dts/th1520.dts... [1] https://github.com/milkv-meles/thead-kernel/blob/meles/arch/riscv/configs/re... Best -- Marvin Friedrich Apprentice Engineering HW Enablement SUSE Software Solutions GmbH Frankenstraße 146 90461 Nürnberg Germany Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg) SUSE.com
![](https://seccdn.libravatar.org/avatar/0a8a165c24ed29b3a196e9dab465794e.jpg?s=120&d=mm&r=g)
On Sunday, June 9, 2024 2:33:45 AM EDT you wrote:
Hi Loren,
On 6/9/24 2:25 AM, Loren Burkholder wrote:
Hey all!
I recently ordered a Milk-V Meles[0]; while it hasn't shipped yet, I'm hoping to port openSUSE to the board once I get it, so I thought I'd get a head start by figuring out what all is involved in porting openSUSE to a new RISC-V board. Can anybody give me any pointers to get started?
Thanks, Loren
actually, I was planning to do the exact same thing :)
Awesome! I'd love to collab with you on the port since you probably know more about the porting process than I do. I'm @lorendb:nheko.im on Matrix; feel free to ping me in https://matrix.to/#/#chat:opensuse.org to talk further about this. (As an aside, while there is a dedicated openSUSE ARM Matrix channel, there's nothing for RISC-V; I'll see if I can get an admin to set up a RISC-V channel.)
My Meles hasn't shipped either, but the first step would be to enable U-Boot by building a device tree + configuration. This should be quite easy since the TH1520 SoC is already upstreamed[0]. Milk-V have their own U-Boot fork, but it's important to try to have everything upstreamed, so build delta patches from their fork.
Lastly you'd have to build a JeOS package with a (potentially patched) kernel in OBS. You have to figure out which changes they have made to packages like kernel-firmware and apply those as patches.
Milk-V also has the config they use for their image here [1].
Thanks, this all looks useful. I'll poke around at it and see what I can learn. Loren
[0] https://source.denx.de/u-boot/u-boot/-/blob/master/arch/riscv/dts/th1520.dts... [1] https://github.com/milkv-meles/thead-kernel/blob/meles/arch/riscv/configs/re...
Best
![](https://seccdn.libravatar.org/avatar/67492dd77fb28469872a689d9f947135.jpg?s=120&d=mm&r=g)
Hi all, On 6/9/24 10:00 PM, Loren Burkholder wrote:
Awesome! I'd love to collab with you on the port since you probably know more about the porting process than I do. I'm @lorendb:nheko.im on Matrix; feel free to ping me in https://matrix.to/#/#chat:opensuse.org to talk further about this.
Great, I'll message you on Matrix. On 6/9/24 7:20 PM, Felix Niederwanger wrote:
I was and am still hoping that Marvin can do some work there 🙂
I actually managed to get it up and running on the Mars CM, no video out though. I used a very hacky and not really reproducible... I'll look into adapting it to a kiwi image sometime this month though.
* If you have the eMMC version, flashing the eMMC is best done with the provided tool in Windows. I raised the topic [1] some time ago, but so far no response.
Funny you mention that, I tried reversing their flashing software but didn't really find the time to create a working program from it. The Meles device tree [0] mentions that both eMMC and TF use the same controller so maybe it's going to be a configuration issue there. [0] https://github.com/milkv-meles/thead-u-boot/blob/meles/arch/riscv/dts/light-... Thanks -- Marvin Friedrich Apprentice Engineering HW Enablement SUSE Software Solutions GmbH Frankenstraße 146 90461 Nürnberg Germany Geschäftsführer: Ivo Totev, Andrew McDonald, Werner Knoblich (HRB 36809, AG Nürnberg) SUSE.com
![](https://seccdn.libravatar.org/avatar/ada466b6a72a7acdf725919275616128.jpg?s=120&d=mm&r=g)
Hi Loren, i played with the Milk-V Mars CM for some time but didn't got it to work yet. I was and am still hoping that Marvin can do some work there :-) Some caveats I learned from the Milk-V Mars CM that might also apply for the Melee: * You can only use the eMMC or the SD-Card, not both at the same time * If you have the eMMC version, flashing the eMMC is best done with the provided tool in Windows. I raised the topic [1] some time ago, but so far no response. * The UART serial terminal is the most robust way to interact. HDMI might (or might not) work, and you won't see the output from before the Kernel loads. Having the UART in place helps I hope this gives you some help and wish you a lot of fun with the little device! Best, phoenix :-) [1] https://community.milkv.io/t/how-to-flash-the-emmc-on-the-mars-cm/854 On 09/06/24 02:25, Loren Burkholder wrote:
Hey all!
I recently ordered a Milk-V Meles[0]; while it hasn't shipped yet, I'm hoping to port openSUSE to the board once I get it, so I thought I'd get a head start by figuring out what all is involved in porting openSUSE to a new RISC-V board. Can anybody give me any pointers to get started?
Thanks, Loren
-- phoenix@feldspaten.org, gpg: 0x6E77A590E3F6D71C Consider using plain text | email is not SMS https://email.is-not-s.ms/
![](https://seccdn.libravatar.org/avatar/0a8a165c24ed29b3a196e9dab465794e.jpg?s=120&d=mm&r=g)
On Sunday, June 9, 2024 1:20:40 PM EDT Felix Niederwanger wrote:
Hi Loren,
i played with the Milk-V Mars CM for some time but didn't got it to work yet. I was and am still hoping that Marvin can do some work there :-)
Some caveats I learned from the Milk-V Mars CM that might also apply for the Melee:
* You can only use the eMMC or the SD-Card, not both at the same time * If you have the eMMC version, flashing the eMMC is best done with the provided tool in Windows. I raised the topic [1] some time ago, but so far no response.
That's very odd. I do have a Windows machine around that I can use if I need to, but I'd definitely prefer to flash the eMMC from Linux.
* The UART serial terminal is the most robust way to interact. HDMI might (or might not) work, and you won't see the output from before the Kernel loads. Having the UART in place helps
I would assume that HDMI output should work fine out of the box, since Milk-V has a custom Debian-based image that is intended for desktop use. Also, they recently announced that Canonical has created an official Ubuntu image for the Mars, so I would expect that they'd get HDMI out working good for that. Maybe that's more of a problem with the compute module.
I hope this gives you some help and wish you a lot of fun with the little device!
Best, phoenix :-)
Cheers, Loren
[1] https://community.milkv.io/t/how-to-flash-the-emmc-on-the-mars-cm/854
On 09/06/24 02:25, Loren Burkholder wrote:
Hey all!
I recently ordered a Milk-V Meles[0]; while it hasn't shipped yet, I'm hoping to port openSUSE to the board once I get it, so I thought I'd get a head start by figuring out what all is involved in porting openSUSE to a new RISC-V board. Can anybody give me any pointers to get started?
Thanks, Loren
-- phoenix@feldspaten.org, gpg: 0x6E77A590E3F6D71C
Consider using plain text | email is not SMS https://email.is-not-s.ms/
![](https://seccdn.libravatar.org/avatar/b909a03b5eb2304b706824e72e00e623.jpg?s=120&d=mm&r=g)
On 09/06/2024 22:05, Loren Burkholder wrote:
On Sunday, June 9, 2024 1:20:40 PM EDT Felix Niederwanger wrote:
Hi Loren,
i played with the Milk-V Mars CM for some time but didn't got it to work yet. I was and am still hoping that Marvin can do some work there :-)
Some caveats I learned from the Milk-V Mars CM that might also apply for the Melee:
* You can only use the eMMC or the SD-Card, not both at the same time * If you have the eMMC version, flashing the eMMC is best done with the provided tool in Windows. I raised the topic [1] some time ago, but so far no response.
That's very odd. I do have a Windows machine around that I can use if I need to, but I'd definitely prefer to flash the eMMC from Linux.
* The UART serial terminal is the most robust way to interact. HDMI might (or might not) work, and you won't see the output from before the Kernel loads. Having the UART in place helps
I would assume that HDMI output should work fine out of the box, since Milk-V has a custom Debian-based image that is intended for desktop use. Also, they recently announced that Canonical has created an official Ubuntu image for the Mars, so I would expect that they'd get HDMI out working good for that. Maybe that's more of a problem with the compute module.
Beware that Mars is based on StarFive's JH7110 while Meles is using Alibaba T-Head TH1520 SoC. This is a totally different story and what might work on Mars might be totally broken on Meles. Regards, Matthias
I hope this gives you some help and wish you a lot of fun with the little device!
Best, phoenix :-)
Cheers, Loren
[1] https://community.milkv.io/t/how-to-flash-the-emmc-on-the-mars-cm/854
On 09/06/24 02:25, Loren Burkholder wrote:
Hey all!
I recently ordered a Milk-V Meles[0]; while it hasn't shipped yet, I'm hoping to port openSUSE to the board once I get it, so I thought I'd get a head start by figuring out what all is involved in porting openSUSE to a new RISC-V board. Can anybody give me any pointers to get started?
Thanks, Loren
-- phoenix@feldspaten.org, gpg: 0x6E77A590E3F6D71C
Consider using plain text | email is not SMS https://email.is-not-s.ms/
participants (4)
-
Felix Niederwanger
-
Loren Burkholder
-
Marvin Friedrich
-
Matthias Brugger