9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9front on raspberry pi
@ 2016-11-02  1:35 Chris McGee
  2016-11-02  5:05 ` arisawa
  2016-11-03  0:01 ` Chris McGee
  0 siblings, 2 replies; 19+ messages in thread
From: Chris McGee @ 2016-11-02  1:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

Hi All,

I have released an experimental 9front raspberry pi image that I use for my cluster.
https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016 <https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016>

Highlights:
-Latest 9front release 2016-10-27
-Merged in Richard Millar’s kernel from a couple of months ago
-Retains 9front GPIO filesystem structure
-Link local ipv4 address on boot (low likelihood of collisions)
-Discovery of other nodes using multicast DNS through the ‘find9p’ command
-9fs mount other nodes on the network
-Go 1.7.3
-Git script (works with github and google source repos)

Cheers,
Chris

[-- Attachment #2: Type: text/html, Size: 1213 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  1:35 [9fans] 9front on raspberry pi Chris McGee
@ 2016-11-02  5:05 ` arisawa
  2016-11-02  7:48   ` arisawa
  2016-11-03  0:01 ` Chris McGee
  1 sibling, 1 reply; 19+ messages in thread
From: arisawa @ 2016-11-02  5:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

thanks, i will try.

is this for pi1 or pi2 or both?

> 2016/11/02 10:35、Chris McGee <newton688@gmail.com> のメール:
> 
> Hi All,
> 
> I have released an experimental 9front raspberry pi image that I use for my cluster.
> https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016
> 
> Highlights:
> -Latest 9front release 2016-10-27
> -Merged in Richard Millar’s kernel from a couple of months ago
> -Retains 9front GPIO filesystem structure
> -Link local ipv4 address on boot (low likelihood of collisions)
> -Discovery of other nodes using multicast DNS through the ‘find9p’ command
> -9fs mount other nodes on the network
> -Go 1.7.3
> -Git script (works with github and google source repos)
> 
> Cheers,
> Chris




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  5:05 ` arisawa
@ 2016-11-02  7:48   ` arisawa
  2016-11-02  7:57     ` Steve Simon
  2016-11-02 11:09     ` Chris McGee
  0 siblings, 2 replies; 19+ messages in thread
From: arisawa @ 2016-11-02  7:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I’ve tried both pi1 and pi2.
both devices successfully boot up.

my impression only in primitive usage is:
pi2 is fine. thanks Chris!
pi1 is a bit unsteady on usb device. usb keyboard is sometimes accidentally detached.


> 2016/11/02 14:05、arisawa <arisawa@ar.aichi-u.ac.jp> のメール:
> 
> thanks, i will try.
> 
> is this for pi1 or pi2 or both?
> 
>> 2016/11/02 10:35、Chris McGee <newton688@gmail.com> のメール:
>> 
>> Hi All,
>> 
>> I have released an experimental 9front raspberry pi image that I use for my cluster.
>> https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016
>> 
>> Highlights:
>> -Latest 9front release 2016-10-27
>> -Merged in Richard Millar’s kernel from a couple of months ago
>> -Retains 9front GPIO filesystem structure
>> -Link local ipv4 address on boot (low likelihood of collisions)
>> -Discovery of other nodes using multicast DNS through the ‘find9p’ command
>> -9fs mount other nodes on the network
>> -Go 1.7.3
>> -Git script (works with github and google source repos)
>> 
>> Cheers,
>> Chris
> 
> 




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  7:48   ` arisawa
@ 2016-11-02  7:57     ` Steve Simon
  2016-11-02 10:47       ` arisawa
  2016-11-02 11:15       ` Chris McGee
  2016-11-02 11:09     ` Chris McGee
  1 sibling, 2 replies; 19+ messages in thread
From: Steve Simon @ 2016-11-02  7:57 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hi,

this is interesting.

can you tell me what the gpio file system looks like (pointer to man page?). also, is the mDNS client the go one discussed recently or a c implementation?

i have never go'ed and have been thinking about writing a upnp renderer for plan9 for years...

-Steve


> On 2 Nov 2016, at 07:48, arisawa <arisawa@ar.aichi-u.ac.jp> wrote:
> 
> I’ve tried both pi1 and pi2.
> both devices successfully boot up.
> 
> my impression only in primitive usage is:
> pi2 is fine. thanks Chris!
> pi1 is a bit unsteady on usb device. usb keyboard is sometimes accidentally detached.
> 
> 
>> 2016/11/02 14:05、arisawa <arisawa@ar.aichi-u.ac.jp> のメール:
>> 
>> thanks, i will try.
>> 
>> is this for pi1 or pi2 or both?
>> 
>>> 2016/11/02 10:35、Chris McGee <newton688@gmail.com> のメール:
>>> 
>>> Hi All,
>>> 
>>> I have released an experimental 9front raspberry pi image that I use for my cluster.
>>> https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016
>>> 
>>> Highlights:
>>> -Latest 9front release 2016-10-27
>>> -Merged in Richard Millar’s kernel from a couple of months ago
>>> -Retains 9front GPIO filesystem structure
>>> -Link local ipv4 address on boot (low likelihood of collisions)
>>> -Discovery of other nodes using multicast DNS through the ‘find9p’ command
>>> -9fs mount other nodes on the network
>>> -Go 1.7.3
>>> -Git script (works with github and google source repos)
>>> 
>>> Cheers,
>>> Chris
>> 
>> 
> 




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  7:57     ` Steve Simon
@ 2016-11-02 10:47       ` arisawa
  2016-11-02 11:17         ` Chris McGee
                           ` (2 more replies)
  2016-11-02 11:15       ` Chris McGee
  1 sibling, 3 replies; 19+ messages in thread
From: arisawa @ 2016-11-02 10:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hi steve

> 2016/11/02 16:57、Steve Simon <steve@quintile.net> のメール:
> 
> can you tell me what the gpio file system looks like

try
	ls -l '#G'
them you will find some files such as
	#G/gpio/CE0
	#G/gpio/CE1
	#G/gpio/GPI00
	#G/gpio/GPI01
	...
	#G/gpio/ctl
	#G/gpio/event
but something weird.
term% mount -a '#G' /dev
mount: can’t open '#G': permission denied
I don’t know the reason.

I haven’t tried GPIO nor mDNS yet, sorry.

using large display is frustrating...
my portable HDMI display of 1280x800 works fine.




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  7:48   ` arisawa
  2016-11-02  7:57     ` Steve Simon
@ 2016-11-02 11:09     ` Chris McGee
  1 sibling, 0 replies; 19+ messages in thread
From: Chris McGee @ 2016-11-02 11:09 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks for trying it out. Can you raise a github issue with any error messages or data that I can use to try to fix the problem?

I understand that Richard's kernel that I used should work with Pi 1, 2 and zero. I have tried it with a Pi 1 B+ and Pi 2 B.

Sent from my iPhone
> On Nov 2, 2016, at 3:48 AM, arisawa <arisawa@ar.aichi-u.ac.jp> wrote:
> 
> I’ve tried both pi1 and pi2.
> both devices successfully boot up.
> 
> my impression only in primitive usage is:
> pi2 is fine. thanks Chris!
> pi1 is a bit unsteady on usb device. usb keyboard is sometimes accidentally detached.
> 
> 
>> 2016/11/02 14:05、arisawa <arisawa@ar.aichi-u.ac.jp> のメール:
>> 
>> thanks, i will try.
>> 
>> is this for pi1 or pi2 or both?
>> 
>>> 2016/11/02 10:35、Chris McGee <newton688@gmail.com> のメール:
>>> 
>>> Hi All,
>>> 
>>> I have released an experimental 9front raspberry pi image that I use for my cluster.
>>> https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016
>>> 
>>> Highlights:
>>> -Latest 9front release 2016-10-27
>>> -Merged in Richard Millar’s kernel from a couple of months ago
>>> -Retains 9front GPIO filesystem structure
>>> -Link local ipv4 address on boot (low likelihood of collisions)
>>> -Discovery of other nodes using multicast DNS through the ‘find9p’ command
>>> -9fs mount other nodes on the network
>>> -Go 1.7.3
>>> -Git script (works with github and google source repos)
>>> 
>>> Cheers,
>>> Chris
>> 
>> 
> 
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  7:57     ` Steve Simon
  2016-11-02 10:47       ` arisawa
@ 2016-11-02 11:15       ` Chris McGee
  2016-11-04  0:55         ` arisawa
  1 sibling, 1 reply; 19+ messages in thread
From: Chris McGee @ 2016-11-02 11:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

The GPIO doesn't have a manual page as far as I know. The implementation came from what is in 9front mainline and is in #G. I agree that it would be good to have a manual page for it there.

mDNS is running as bcast9p process and is written in Go. It's based on a Go library and uses udp multicast support for plan 9 that is only in latest git master branch, slated for Go 1.8.

Go SDK in this image is 1.7.3 though. It should be reasonably stable.

Chris

> On Nov 2, 2016, at 3:57 AM, Steve Simon <steve@quintile.net> wrote:
> 
> hi,
> 
> this is interesting.
> 
> can you tell me what the gpio file system looks like (pointer to man page?). also, is the mDNS client the go one discussed recently or a c implementation?
> 
> i have never go'ed and have been thinking about writing a upnp renderer for plan9 for years...
> 
> -Steve
> 
> 
>> On 2 Nov 2016, at 07:48, arisawa <arisawa@ar.aichi-u.ac.jp> wrote:
>> 
>> I’ve tried both pi1 and pi2.
>> both devices successfully boot up.
>> 
>> my impression only in primitive usage is:
>> pi2 is fine. thanks Chris!
>> pi1 is a bit unsteady on usb device. usb keyboard is sometimes accidentally detached.
>> 
>> 
>>> 2016/11/02 14:05、arisawa <arisawa@ar.aichi-u.ac.jp> のメール:
>>> 
>>> thanks, i will try.
>>> 
>>> is this for pi1 or pi2 or both?
>>> 
>>>> 2016/11/02 10:35、Chris McGee <newton688@gmail.com> のメール:
>>>> 
>>>> Hi All,
>>>> 
>>>> I have released an experimental 9front raspberry pi image that I use for my cluster.
>>>> https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016
>>>> 
>>>> Highlights:
>>>> -Latest 9front release 2016-10-27
>>>> -Merged in Richard Millar’s kernel from a couple of months ago
>>>> -Retains 9front GPIO filesystem structure
>>>> -Link local ipv4 address on boot (low likelihood of collisions)
>>>> -Discovery of other nodes using multicast DNS through the ‘find9p’ command
>>>> -9fs mount other nodes on the network
>>>> -Go 1.7.3
>>>> -Git script (works with github and google source repos)
>>>> 
>>>> Cheers,
>>>> Chris
>>> 
>>> 
>> 
> 
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 10:47       ` arisawa
@ 2016-11-02 11:17         ` Chris McGee
  2016-11-02 12:05           ` arisawa
  2016-11-02 11:18         ` arisawa
  2016-11-02 13:31         ` Steve Simon
  2 siblings, 1 reply; 19+ messages in thread
From: Chris McGee @ 2016-11-02 11:17 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


> but something weird.
> term% mount -a '#G' /dev
> mount: can’t open '#G': permission denied
> I don’t know the reason.

Maybe you want to use bind instead?

> 
> using large display is frustrating...
> my portable HDMI display of 1280x800 works fine.
> 

What's wrong with the large display?


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 10:47       ` arisawa
  2016-11-02 11:17         ` Chris McGee
@ 2016-11-02 11:18         ` arisawa
  2016-11-02 13:31         ` Steve Simon
  2 siblings, 0 replies; 19+ messages in thread
From: arisawa @ 2016-11-02 11:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

sorry 

> mount -a '#G' /dev
shoud be
bind -a '#G' /dev

> 2016/11/02 19:47、arisawa <arisawa@ar.aichi-u.ac.jp> のメール:
> 
> hi steve
> 
>> 2016/11/02 16:57、Steve Simon <steve@quintile.net> のメール:
>> 
>> can you tell me what the gpio file system looks like
> 
> try
> 	ls -l '#G'
> them you will find some files such as
> 	#G/gpio/CE0
> 	#G/gpio/CE1
> 	#G/gpio/GPI00
> 	#G/gpio/GPI01
> 	...
> 	#G/gpio/ctl
> 	#G/gpio/event
> but something weird.
> term% mount -a '#G' /dev
> mount: can’t open '#G': permission denied
> I don’t know the reason.
> 
> I haven’t tried GPIO nor mDNS yet, sorry.
> 
> using large display is frustrating...
> my portable HDMI display of 1280x800 works fine.
> 
> 




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 11:17         ` Chris McGee
@ 2016-11-02 12:05           ` arisawa
  2016-11-02 13:14             ` Chris McGee
  0 siblings, 1 reply; 19+ messages in thread
From: arisawa @ 2016-11-02 12:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

hello Chris,

> 2016/11/02 20:17、Chris McGee <newton688@gmail.com> のメール:
> 
> What's wrong with the large display?

the display size is 1920x1200.
when I try to resize a window, the mouse cursor flips and it is difficult to resize.




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 12:05           ` arisawa
@ 2016-11-02 13:14             ` Chris McGee
  2016-11-02 13:34               ` Steve Simon
  0 siblings, 1 reply; 19+ messages in thread
From: Chris McGee @ 2016-11-02 13:14 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks,

I'm thinking that could be related to USB problem making the mouse jump around.

Chris

> On Nov 2, 2016, at 8:05 AM, arisawa <arisawa@ar.aichi-u.ac.jp> wrote:
> 
> hello Chris,
> 
>> 2016/11/02 20:17、Chris McGee <newton688@gmail.com> のメール:
>> 
>> What's wrong with the large display?
> 
> the display size is 1920x1200.
> when I try to resize a window, the mouse cursor flips and it is difficult to resize.
> 
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 10:47       ` arisawa
  2016-11-02 11:17         ` Chris McGee
  2016-11-02 11:18         ` arisawa
@ 2016-11-02 13:31         ` Steve Simon
  2 siblings, 0 replies; 19+ messages in thread
From: Steve Simon @ 2016-11-02 13:31 UTC (permalink / raw)
  To: 9fans

Thanks for the info.

> mount -a '#G' /dev

I think you want

	bind -a '#G' /dev

> using large display is frustrating...

FWIW I am happily using 1920x1200x8 on my raspberry pi 3,
and its very snappy.

-Steve



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 13:14             ` Chris McGee
@ 2016-11-02 13:34               ` Steve Simon
  0 siblings, 0 replies; 19+ messages in thread
From: Steve Simon @ 2016-11-02 13:34 UTC (permalink / raw)
  To: 9fans

Hi all,

anyone seen some strange TLS issues (when talking to windows boxen).

	tlsClient: devtls expected ver=301, saw (len=19232) type=2a ver=204f '* OK �\x03���\x03'

This is running Richard millers raspberry kernel so no 9front encryption fixes.
maybe my TLS needs to be taught more smarts?

-Steve



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02  1:35 [9fans] 9front on raspberry pi Chris McGee
  2016-11-02  5:05 ` arisawa
@ 2016-11-03  0:01 ` Chris McGee
  1 sibling, 0 replies; 19+ messages in thread
From: Chris McGee @ 2016-11-03  0:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

Apologies Richard for misspelling your last name.

Chris

> On Nov 1, 2016, at 9:35 PM, Chris McGee <newton688@gmail.com> wrote:
> 
> Hi All,
> 
> I have released an experimental 9front raspberry pi image that I use for my cluster.
> https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016
> 
> Highlights:
> -Latest 9front release 2016-10-27
> -Merged in Richard Millar’s kernel from a couple of months ago
> -Retains 9front GPIO filesystem structure
> -Link local ipv4 address on boot (low likelihood of collisions)
> -Discovery of other nodes using multicast DNS through the ‘find9p’ command
> -9fs mount other nodes on the network
> -Go 1.7.3
> -Git script (works with github and google source repos)
> 
> Cheers,
> Chris

[-- Attachment #2: Type: text/html, Size: 1474 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-02 11:15       ` Chris McGee
@ 2016-11-04  0:55         ` arisawa
  2016-11-06 23:29           ` Chris McGee
  0 siblings, 1 reply; 19+ messages in thread
From: arisawa @ 2016-11-04  0:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello 

> 2016/11/02 20:15、Chris McGee <newton688@gmail.com> のメール:
> 
> The GPIO doesn't have a manual page as far as I know. The implementation came from what is in 9front mainline and is in #G. I agree that it would be good to have a manual page for it there.

I do want to know the correspondence between 9front GPIO number and BCM number sited on http://pinout.xyz/.
this information is almost all for the usage.

# 9front kernel for raspi at the time 2016-01-02
term% ls '#G/gpio'
'#G/gpio/CE0'
'#G/gpio/CE1'
'#G/gpio/GPIO0'
'#G/gpio/GPIO1'
'#G/gpio/GPIO10'
'#G/gpio/GPIO11'
'#G/gpio/GPIO2'
'#G/gpio/GPIO3'
'#G/gpio/GPIO4'
'#G/gpio/GPIO5'
'#G/gpio/GPIO6'
'#G/gpio/GPIO7'
'#G/gpio/GPIO8'
'#G/gpio/GPIO9'
'#G/gpio/MISO'
'#G/gpio/MOSI'
'#G/gpio/OK'
'#G/gpio/RxD'
'#G/gpio/SCL'
'#G/gpio/SCLK'
'#G/gpio/SDA'
'#G/gpio/TxD'
'#G/gpio/ctl'
'#G/gpio/event'
term% 


^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-04  0:55         ` arisawa
@ 2016-11-06 23:29           ` Chris McGee
  2016-11-07 11:44             ` arisawa
  0 siblings, 1 reply; 19+ messages in thread
From: Chris McGee @ 2016-11-06 23:29 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 244 bytes --]

Hi All,

I have cleaned up some of the concurrency code and USB. The new release is here:
https://github.com/sirnewton01/rpi-9front/releases/tag/nov2016-2 <https://github.com/sirnewton01/rpi-9front/releases/tag/nov2016-2>

Thanks,
Chris

[-- Attachment #2: Type: text/html, Size: 623 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-06 23:29           ` Chris McGee
@ 2016-11-07 11:44             ` arisawa
  2016-11-07 17:21               ` Chris McGee
  0 siblings, 1 reply; 19+ messages in thread
From: arisawa @ 2016-11-07 11:44 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

> 2016/11/07 8:29、Chris McGee <newton688@gmail.com> のメール:
> 
> Hi All,
> 
> I have cleaned up some of the concurrency code and USB. The new release is here:
> https://github.com/sirnewton01/rpi-9front/releases/tag/nov2016-2
> 
> Thanks,
> Chris

many thanks, I will try.

by the way I said about raspi 1
> the display size is 1920x1200.
> when I try to resize a window, the mouse cursor flips and it is difficult to resize.
This phenomenon was stopped when I connected lan cable.
I don’t know the reason.

I looked the source code and I guess for raspi 1:
Plan9	BCM	pin
GPIO0	17	11
GPIO1	18	12
GPIO2	27	13
GPIO3	22	15
GPIO4	23	16
GPIO5	24	18
GPIO6	25	18
GPIO7	 4	 7
GPIO8	28	24
GPIO9	29	21
GPIO10	30	?
GPIO11	31	?
SDA		 2	 3
SCL		 3	 5
CE1		 7	26
CE0		 8	24
MISO	 9	21
MOSI	10	19
SCLK	11	23
TxD		14	 8
RxD		15	10

and I tried some experiments.

(a) turn led light on/off that is connected to GPIO0 pin

term% echo function out GPIO0 >ctl
term% echo 1 > GPIO0
term% echo 0 > GPIO0
term% 

the result is OK.

(b) read GPIO1 status

term% echo function in GPIO1 >ctl

I expected:
term% cat GPIO1	# low voltage
0
term%

however I have:
term% cat GPIO1	# low voltage
000000...

I expected:
term% cat GPIO1	# high voltage
1
term%

however I have:
term% cat GPIO1
111111...

is this a feature or bug?




^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [9fans] 9front on raspberry pi
  2016-11-07 11:44             ` arisawa
@ 2016-11-07 17:21               ` Chris McGee
  0 siblings, 0 replies; 19+ messages in thread
From: Chris McGee @ 2016-11-07 17:21 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


> On Nov 7, 2016, at 6:44 AM, arisawa <arisawa@ar.aichi-u.ac.jp> wrote:
> 
> by the way I said about raspi 1
>> the display size is 1920x1200.
>> when I try to resize a window, the mouse cursor flips and it is difficult to resize.
> This phenomenon was stopped when I connected lan cable.
> I don’t know the reason.

Interesting data point. Thank you. I tend to keep mine plugged into an active Ethernet switch. I'll try without to see if I can narrow down the problem.

> 
> I looked the source code and I guess for raspi 1:
> Plan9    BCM    pin
> GPIO0    17    11
> GPIO1    18    12
> GPIO2    27    13
> GPIO3    22    15
> GPIO4    23    16
> GPIO5    24    18
> GPIO6    25    18
> GPIO7     4     7
> GPIO8    28    24
> GPIO9    29    21
> GPIO10    30    ?
> GPIO11    31    ?
> SDA         2     3
> SCL         3     5
> CE1         7    26
> CE0         8    24
> MISO     9    21
> MOSI    10    19
> SCLK    11    23
> TxD        14     8
> RxD        15    10
> 
> and I tried some experiments.
> 
> (a) turn led light on/off that is connected to GPIO0 pin

Cool, good to know that part is working for others.

> 
> term% echo function out GPIO0 >ctl
> term% echo 1 > GPIO0
> term% echo 0 > GPIO0
> term% 
> 
> the result is OK.
> 
> (b) read GPIO1 status
> 
> term% echo function in GPIO1 >ctl
> 
> I expected:
> term% cat GPIO1    # low voltage
> 0
> term%
> 
> however I have:
> term% cat GPIO1    # low voltage
> 000000...
> 
> I expected:
> term% cat GPIO1    # high voltage
> 1
> term%
> 
> however I have:
> term% cat GPIO1
> 111111...
> 
> is this a feature or bug?
> 

This part is inherited and merged in from original 9front source code. As we discussed before there seems to be no manual page. I'm not sure the intended behaviour and I have not yet tried reading from a gpio pin myself.

So in either case on the read it just repeats forever until interrupted?

Chris


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [9fans] 9front on raspberry pi
@ 2016-09-11 17:30 Chris McGee
  0 siblings, 0 replies; 19+ messages in thread
From: Chris McGee @ 2016-09-11 17:30 UTC (permalink / raw)


Hi All,

I have an experimental (read unstable, may void the warranty) merge of Richard Miller's kernel for raspberry Pi into 9front. It is capable of running Go programs and sdk.

The code is here as a drop in replacement for existing /sys/src/9/bcm:
https://github.com/sirnewton01/rpi-9front

Also, there is a release with an sdcard image there from the last 9front release. Tested briefly with a Pi B+ and Pi 2 B. In theory it could work with other models such as zero.

If you find problems either with the code or in testing comments are welcome either as response to this email or github issue. Pull requests are welcome.

Cheers,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.9fans.net/private/9fans/attachments/20160911/363d11c7/attachment.html>


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-11-07 17:21 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-02  1:35 [9fans] 9front on raspberry pi Chris McGee
2016-11-02  5:05 ` arisawa
2016-11-02  7:48   ` arisawa
2016-11-02  7:57     ` Steve Simon
2016-11-02 10:47       ` arisawa
2016-11-02 11:17         ` Chris McGee
2016-11-02 12:05           ` arisawa
2016-11-02 13:14             ` Chris McGee
2016-11-02 13:34               ` Steve Simon
2016-11-02 11:18         ` arisawa
2016-11-02 13:31         ` Steve Simon
2016-11-02 11:15       ` Chris McGee
2016-11-04  0:55         ` arisawa
2016-11-06 23:29           ` Chris McGee
2016-11-07 11:44             ` arisawa
2016-11-07 17:21               ` Chris McGee
2016-11-02 11:09     ` Chris McGee
2016-11-03  0:01 ` Chris McGee
  -- strict thread matches above, loose matches on Subject: below --
2016-09-11 17:30 Chris McGee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).