Re: [9fans] 9front on raspberry pi

2016-11-07 Thread Chris McGee

> On Nov 7, 2016, at 6:44 AM, arisawa  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:
> Plan9BCMpin
> GPIO01711
> GPIO11812
> GPIO22713
> GPIO32215
> GPIO42316
> GPIO52418
> GPIO62518
> GPIO7 4 7
> GPIO82824
> GPIO92921
> GPIO1030?
> GPIO1131?
> SDA 2 3
> SCL 3 5
> CE1 726
> CE0 824
> MISO 921
> MOSI1019
> SCLK1123
> TxD14 8
> RxD1510
> 
> 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
> 00...
> 
> I expected:
> term% cat GPIO1# high voltage
> 1
> term%
> 
> however I have:
> term% cat GPIO1
> 11...
> 
> 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


Re: [9fans] 9front on raspberry pi

2016-11-07 Thread arisawa
Hello,

> 2016/11/07 8:29、Chris McGee  のメール:
> 
> 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
GPIO74   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
MOSI10  19
SCLK11  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
00...

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

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

is this a feature or bug?




Re: [9fans] 9front on raspberry pi

2016-11-06 Thread Chris McGee
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


Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Chris McGee
Apologies Richard for misspelling your last name.

Chris

> On Nov 1, 2016, at 9:35 PM, Chris McGee  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


Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Steve Simon
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 ����'

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

-Steve



Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Chris McGee
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  wrote:
> 
> hello Chris,
> 
>> 2016/11/02 20:17、Chris McGee  のメール:
>> 
>> 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.
> 
> 



Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
hello Chris,

> 2016/11/02 20:17、Chris McGee  のメール:
> 
> 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.




Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Chris McGee

> 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?


Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
sorry 

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

> 2016/11/02 19:47、arisawa  のメール:
> 
> hi steve
> 
>> 2016/11/02 16:57、Steve Simon  のメール:
>> 
>> 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.
> 
> 




Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Chris McGee
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  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  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  のメール:
>>> 
>>> thanks, i will try.
>>> 
>>> is this for pi1 or pi2 or both?
>>> 
 2016/11/02 10:35、Chris McGee  のメール:
 
 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
>>> 
>>> 
>> 
> 
> 



Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Chris McGee
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  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  のメール:
>> 
>> thanks, i will try.
>> 
>> is this for pi1 or pi2 or both?
>> 
>>> 2016/11/02 10:35、Chris McGee  のメール:
>>> 
>>> 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
>> 
>> 
> 
> 



Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
hi steve

> 2016/11/02 16:57、Steve Simon  のメール:
> 
> 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.




Re: [9fans] 9front on raspberry pi

2016-11-02 Thread Steve Simon
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  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  のメール:
>> 
>> thanks, i will try.
>> 
>> is this for pi1 or pi2 or both?
>> 
>>> 2016/11/02 10:35、Chris McGee  のメール:
>>> 
>>> 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
>> 
>> 
> 




Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
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  のメール:
> 
> thanks, i will try.
> 
> is this for pi1 or pi2 or both?
> 
>> 2016/11/02 10:35、Chris McGee  のメール:
>> 
>> 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
> 
> 




Re: [9fans] 9front on raspberry pi

2016-11-01 Thread arisawa
thanks, i will try.

is this for pi1 or pi2 or both?

> 2016/11/02 10:35、Chris McGee  のメール:
> 
> 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




[9fans] 9front on raspberry pi

2016-11-01 Thread Chris McGee
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

[9fans] 9front on raspberry pi

2016-09-11 Thread Chris McGee
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