Skip to content

WIP: SpacemiT K1x platform support#767

Draft
orangecms wants to merge 16 commits intooreboot:mainfrom
orangecms:k1x
Draft

WIP: SpacemiT K1x platform support#767
orangecms wants to merge 16 commits intooreboot:mainfrom
orangecms:k1x

Conversation

@orangecms
Copy link
Member

@orangecms orangecms commented Feb 11, 2025

Hirstorical note:
The vendor tool was a first attempt to get going.
I have already done a Rust rewrite, to be integrated with the current rework of our build system.

Once all the changes are in, I will rebase this here.

@orangecms orangecms marked this pull request as draft February 11, 2025 00:24
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
Signed-off-by: Daniel Maslowski <info@orangecms.org>
@mash-graz
Copy link

Do you see a chance to finish this SpacemiT K1 draft and support it in a final oreboot release?

I would really like to use it as a blob-free boot alternative for my Orangepi RV2 under guix.

@orangecms
Copy link
Member Author

orangecms commented Jul 23, 2025

Do you see a chance to finish this SpacemiT K1 draft and support it in a final oreboot release?

Would you like to help with this?
We need a few things:

  • integrating the oreboot SBI, see our library in src/arch/ and how it is used for other platforms
  • a method to flash, such as with a prebuilt U-Boot carrying fastboot and the MTD drivers
  • integrating LinuxBoot, which is trivial; the SPI flash is MMIO mapped for reading
  • porting SpacemiT's Python tool; it's quite hard to grasp and use as of now

I would really like to use it as a blob-free boot alternative for my Orangepi RV2 under guix.

When the above steps are done, you can integrate oreboot into your build system, but it should be agnostic of that.

I would just want to tidy up a few commits here and then merge this whole first big chunk. It has been tested on various devices with different DRAM parts by multiple people, and across SpacemiT K1 / M1 as well as Ky X1.

@mash-graz
Copy link

Would you like to help with this?

Yes -- I'll try to get familiar with these sources...

@orangecms orangecms changed the title WIP: K1x port WIP: SpacemiT K1x platform support Oct 4, 2025
@orangecms
Copy link
Member Author

Would you like to help with this?

Yes -- I'll try to get familiar with these sources...

Are you still interested? We need help with reviews of some current work in the build system; for a start, see

For reference: I have also pointed to this here in the U-Boot mailing list, but noone picked it up.

@mash-graz
Copy link

@orangecms

Are you still interested? We need help with reviews of some current work in the build system [...]

Yes -- I'm still interested in using oreboot on my OrangePi RV2 and pack the software for guix.

I already spend some time to watch your very instructive YouTube videos and have learned a lot from them. But adapting your codebase for my needs still overwhelms me. I would feel much more comfortable to start on a somehow stabilized ground and contribute feedback, bug reports and little improvements. But the very fluffy and informal state of the actual codebase makes it rather difficult to participate.

Nevertheless, I'll give it a trial again later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants