Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of RISC-V (StarFive VisionFive 2) - step 1 #6148

Merged
merged 7 commits into from
Feb 11, 2023

Conversation

StephanStS
Copy link
Collaborator

First step of the support of the RISC-V board VisionFive 2 with the JH7110 processor

@StephanStS StephanStS added Installer 💠 Issues related to DietPi-Installer and/or pre-image used Hardware related 💻 Insufficient PSU/SD card, faulty unit and/or peripherals, etc META Everything that is not code related, e.g. GitHub, Wiki, website, community RISC-V All RISC-V platform related labels Feb 11, 2023
@StephanStS StephanStS requested a review from MichaIng February 11, 2023 15:58
@StephanStS StephanStS self-assigned this Feb 11, 2023
@StephanStS StephanStS added this to the v8.14 milestone Feb 11, 2023
StephanStS and others added 3 commits February 11, 2023 22:56
- DietPi-Obtain_HW_model | Do not add the StarFive CPU as dedicated ID as long as its a single SBC only
- DietPi-Set_software | Add Debian ports Sid and unreleased archives on RISC-V. This overrides the mirror choice currently, but we'd first need to verify whether all offered mirrors offer debian ports and unreleased suite, in case show an adjusted mirror list.
- CHANGELOG | Initial experimental support for RISC-V and the StarFive VisionFive 2 SBC has been added. This is all in playground stage currently, but if anyone wants to join the party, contact us.
- DietPi-Installer | Install Debian ports repository key on RISC-V devices
@StephanStS StephanStS merged commit 6d2bba1 into MichaIng:dev Feb 11, 2023
@StephanStS StephanStS deleted the dev-StS-StarFive branch February 11, 2023 22:56
@MichaIng
Copy link
Owner

Okay I added some fix for the Debian repo (hardcoding Debian ports Sid an unreleased) and installing/preserving the ports repo key in DietPi-Installer. Also it adds contrib and non-free components, which should fix the firmware installs.

I removed the dedicated CPU ID, which isn't needed as long as its for a single SBC only and from the same vendor than the SBC as well.

@MichaIng
Copy link
Owner

For adding support to DietPi-Build, we'd need to package the kernel that is installed on your device, since it is not present in the APT repositories (is it?). But that can be done after DietPi v8.14 release 🙂.

@StephanStS
Copy link
Collaborator Author

StephanStS commented Feb 11, 2023

Okay I added some fix for the Debian repo (hardcoding Debian ports Sid an unreleased) and installing/preserving the ports repo key in DietPi-Installer. Also it adds contrib and non-free components, which should fix the firmware installs.

I removed the dedicated CPU ID, which isn't needed as long as its for a single SBC only and from the same vendor than the SBC as well.

I will test this changes in the dietpi-imager.

@StephanStS
Copy link
Collaborator Author

For adding support to DietPi-Build, we'd need to package the kernel that is installed on your device, since it is not present in the APT repositories (is it?). But that can be done after DietPi v8.14 release slightly_smiling_face.

Actually, kernel is
Linux DietPi 5.15.0-starfive #1 SMP Mon Dec 19 07:56:37 EST 2022 riscv64 GNU/Linux

The repo has

root@DietPi:~# apt-cache search linux-image
linux-headers-6.1.0-4-riscv64 - Header files for Linux 6.1.0-4-riscv64
linux-image-6.1.0-4-riscv64-dbg - Debug symbols for linux-image-6.1.0-4-riscv64
linux-image-6.1.0-4-riscv64 - Linux 6.1 for 64-bit RISC-V platforms
linux-image-riscv64-dbg - Debugging symbols for Linux riscv64 configuration (meta-package)
linux-image-riscv64 - Linux for 64-bit RISC-V platforms (meta-package)
linux-image-5.15.0-starfive - Linux kernel, version 5.15.0-starfive

So I can try to update to 6.1.0-4.

@MichaIng
Copy link
Owner

So I can try to update to 6.1.0-4.

That does not work. The kernel is there already but it does not have a device tree for the VisionFive 2. We need to generate a .deb file from the linux-image-5.15.0-starfive package installed on your system. There is a package which can do that, I'll check it out after merging the DietPi release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware related 💻 Insufficient PSU/SD card, faulty unit and/or peripherals, etc Installer 💠 Issues related to DietPi-Installer and/or pre-image used META Everything that is not code related, e.g. GitHub, Wiki, website, community RISC-V All RISC-V platform related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants