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

Finish the piratepython configuration #7

Open
10 tasks
ali1234 opened this issue Mar 29, 2018 · 4 comments
Open
10 tasks

Finish the piratepython configuration #7

ali1234 opened this issue Mar 29, 2018 · 4 comments

Comments

@ali1234
Copy link
Owner

ali1234 commented Mar 29, 2018

Things needed to make this happen:

  • Move pymtpd inside the piratepython package.
  • Split pymtpd into functionfs and gadgetfs parts.
  • Fix pymtpd for Windows.
  • Fix pymtpd for Mac.
  • Add users for mtp and python code.
  • Add systemd mount for /boot, read-only for python user, r/w for mtp user.
  • Check if the mount is even available and if not run from ramdisk.
  • Add gadgetfs for two serial ports.
  • Add a getty on one serial port.
  • Redirect python output to the other serial port.
@Gadgetoid
Copy link

What would be your preference for adding additional kernel config options? PiratePython and Keybow use ConfigFs and a bunch of the associated modules to set up the appropriate interfaces.

It looks like the config.py can specify a list of kernels, would it be appropriate to prepare a kernel config specific to this config and list only that? (Keybow, in particular, only uses "kernel" and not "kernel7" since it targets only Pi Zero for the most part.)

@ali1234
Copy link
Owner Author

ali1234 commented Aug 22, 2020

May as well just change the configs that are there. The current USB device mode configuration is not important for anything and probably doesn't work. Also the kernels all need updating anyway.

You should include the other kernels if possible though. Especially as Pi 4 has USB device mode.

@Gadgetoid
Copy link

That's a fair point, actually, Pi 4 can host Keybow and/or PiratePython.

Right now I've got a config derived from the existing kernel.config that I'm hacking on. Remembering what to enable and how is eluding me. It's been a long time!

@Gadgetoid
Copy link

Current status- I seem to have most of the required modules but am missing devices in /sys/class/udc so I have nothing to bind the USB config to. Will have to bash my head against this some more, later!

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

No branches or pull requests

2 participants