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

add support for rockchip USB MSC #137

Closed
svenrademakers opened this issue Nov 7, 2023 · 5 comments
Closed

add support for rockchip USB MSC #137

svenrademakers opened this issue Nov 7, 2023 · 5 comments
Assignees
Labels
BMCD related to BMCD

Comments

@svenrademakers
Copy link
Collaborator

svenrademakers commented Nov 7, 2023

Is your feature request related to a problem? Please describe.
The Turing Pi can expose a given node as a mass storage device over USB. executing tpi advanced msd --node 1 will reboot node 1 and load the MSD driver for that given node. Currently, only Raspberry Pi's are supported. The goal of this ticket is to add support for rockchip devices (RK1).

Describe the solution you'd like
The rockusb driver, created by one of our contributors, is already present in the current firmware and can expose an MSD block device. The work left to do is to update the bmcd implementation to use this driver rather than the rockusb rust backend.

Describe alternatives you've considered

na

Additional context
current rust implementation

@svenrademakers svenrademakers added the BMCD related to BMCD label Nov 7, 2023
@bhuism
Copy link

bhuism commented Nov 7, 2023

Can this potentially work for other rockchip based sbc's? (Like the mixtile) Or is it firmware dependent for instance.

@svenrademakers
Copy link
Collaborator Author

Potentially yes. The rockusb driver talks a proprietary rockusb protocol. It is dependent on the loader implementation of your device how good or not its supported

ruslashev added a commit to turing-machines/bmcd that referenced this issue Dec 8, 2023
As a consequence, this enables functionality of `tpi advanced msd` for
rk1 nodes.

Closes turing-machines/BMC-Firmware#137
ruslashev added a commit that referenced this issue Dec 11, 2023
This sets version of bmcd to latest, and also enables the driver that it
relies on.

Related to #137
svenrademakers pushed a commit that referenced this issue Dec 14, 2023
This sets version of bmcd to latest, and also enables the driver that it
relies on.

Related to #137
@gjrtimmer
Copy link

@svenrademakers does the msd work with RK1 and also the NVMe ?

@gjrtimmer
Copy link

I saw there where several commits related to have the msd work for the RK1. Would it be possible to have a new release like 2.0.6 so people who have issues with the RK1 can use the msd to fix there modules.

@svenrademakers
Copy link
Collaborator Author

Hi @gjrtimmer, we are preparing some other features for the next release. However, the main branch is pretty stable, so it should not be a problem to run a latest build on your turing pi.

we load the rockusb driver onto the RK1 in maskrom mode. As far as i can tell it does not support NVME. You would first need to write a bootloader that can interact with a NVME drive to make something like this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BMCD related to BMCD
Projects
None yet
Development

No branches or pull requests

4 participants