GPIO with Plan 9?
How do you access the GPIO ports with plan 9? I would presume they are some sort of file somewhere (as is everything)
Re: GPIO with Plan 9?
Bakul Shah has been working on a gpio driver, which I hope will be available soon. I think it's safe to predict that access to gpio ports will be presented as a set of files - that's the Plan 9 Way.
- muskoka1030
- Posts: 1
- Joined: Mon Jul 15, 2013 9:37 pm
Re: GPIO with Plan 9?
I posted this to a different thread, then I found this thread so I moved it here....
I can see now that a device driver for the GPIO is in the works... So the question is, can we get access to an Alpha, one that does only the most basic things ? Eventually, someone will want to try I2C, or SPI or UART, but how about a preliminary version that can do simple bit input or output on a GPIO pin as a start ?
Also, if the source code for that could be made available, perhaps community members with an itch to scratch could help expand the driver, under Bakul Shah's management ? At least one would learn more about Plan 9 device drivers by examining that code.
Even a very basic device driver would open a very large door for Plan 9 and the Raspberry Pi.
I did a search for GPIO -- I do not see anyone mentioning using it. I have read the Plan 9 papers, etc, never tried it yet. One of the advantages of Plan 9 as I see it, is to have the Rpi and another computer running Plan 9, connected by a network, and then the second computer can access the Rpi's GPIO, just as easily as the Rpi does. If this works at all, and it works with some timeliness in data transfer, and it can be done with several RPi's and one or more computers then, there is no limit to the multiprocessor / centralized / distributed hardware control possibilities, where the cluster communication details are seamlessly handled by an advanced operating system. I have not read enough about Plan 9 yet, but I am assuming a Plan 9 program can create a synthetic device file for use by other programs, ideally used by a higher level program for hierarchical control ?
The Rpi as part of a Plan 9 network would seem to be an automation / robotics student's dream.
Can the GPIO be handled as a file, and if so, what is the format ? Can anyone give example code to turn a light on and off by writing to a 9P file ?
I can see now that a device driver for the GPIO is in the works... So the question is, can we get access to an Alpha, one that does only the most basic things ? Eventually, someone will want to try I2C, or SPI or UART, but how about a preliminary version that can do simple bit input or output on a GPIO pin as a start ?
Also, if the source code for that could be made available, perhaps community members with an itch to scratch could help expand the driver, under Bakul Shah's management ? At least one would learn more about Plan 9 device drivers by examining that code.
Even a very basic device driver would open a very large door for Plan 9 and the Raspberry Pi.
Re: GPIO with Plan 9?
i found this in the mail archive of 9fans:
https://www.mail-archive.com/9fans@9fan ... 29679.html
https://github.com/elewarr/plan9-bcm
looks promising
https://www.mail-archive.com/9fans@9fan ... 29679.html
https://github.com/elewarr/plan9-bcm
looks promising
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion