Skip to content

Instantly share code, notes, and snippets.

@maruel
Created November 22, 2016 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maruel/b31578e9765146b293e8ef017d0d85bd to your computer and use it in GitHub Desktop.
Save maruel/b31578e9765146b293e8ef017d0d85bd to your computer and use it in GitHub Desktop.
pine64 for https://github.com/google/periph/commit/8cd359c0dcec (success!) in 14.078s
$ go install -v ./cmd/gpio-list ./cmd/headers-list ./cmd/periph-info ./cmd/periph-smoketest (exit:0 in 2.104s)
github.com/google/periph/cmd/headers-list
github.com/google/periph/cmd/gpio-list
github.com/google/periph/cmd/periph-info
github.com/google/periph/cmd/periph-smoketest
$ periph-info (exit:0 in 14.552ms)
Drivers loaded and their dependencies, if any:
- allwinner-gpio
- allwinner-gpio-pl: [allwinner-gpio]
- pine64 : [allwinner-gpio-pl]
- sysfs-gpio
- sysfs-i2c
- sysfs-thermal
Drivers skipped and the reason why:
- sysfs-led: no LED found
- sysfs-spi: no SPI bus found
Drivers failed to load and the error:
<none>
$ gpio-list (exit:0 in 37.809ms)
PB0(32) : UART2_TX
PB1(33) : UART2_RX
PB2(34) : UART2_RTS
PB3(35) : UART2_CTS
PB4(36) : <Disabled>
PB5(37) : <Disabled>
PB6(38) : <Disabled>
PB7(39) : <Disabled>
PB8(40) : UART0_TX
PB9(41) : UART0_RX
PC0(64) : <Disabled>
PC1(65) : <Disabled>
PC2(66) : <Disabled>
PC3(67) : <Disabled>
PC4(68) : <Disabled>
PC5(69) : <Disabled>
PC6(70) : <Disabled>
PC7(71) : <Disabled>
PC8(72) : <Disabled>
PC9(73) : <Disabled>
PC10(74) : <Disabled>
PC11(75) : <Disabled>
PC12(76) : <Disabled>
PC13(77) : <Disabled>
PC14(78) : <Disabled>
PC15(79) : <Disabled>
PC16(80) : <Disabled>
PD0(96) : UART3_TX
PD1(97) : UART3_RX
PD2(98) : UART4_TX
PD3(99) : UART4_RX
PD4(100) : UART4_RTS
PD5(101) : UART4_CTS
PD6(102) : <Disabled>
PD7(103) : <Disabled>
PG0(192) : <Disabled>
PG1(193) : <Disabled>
PG2(194) : <Disabled>
PG3(195) : <Disabled>
PG4(196) : <Disabled>
PG5(197) : <Disabled>
PG6(198) : UART1_TX
PG7(199) : UART1_RX
PG8(200) : UART1_RTS
PG9(201) : UART1_CTS
PG10(202): <Disabled>
PG11(203): <Disabled>
PG12(204): <Disabled>
PG13(205): <Disabled>
PH2(226) : I2C1_SCL
PH3(227) : I2C1_SDA
PH5(229) : <Disabled>
PH6(230) : <Disabled>
PH7(231) : Out/Low
PH8(232) : <Disabled>
PH9(233) : <Disabled>
PL2(354) : Out/Low
PL3(355) : In/Low/Float
PL5(357) : <Disabled>
PL6(358) : <Disabled>
PL7(359) : <Disabled>
PL8(360) : In/High/Up
PL9(361) : In/High/Float
PL10(362): <Disabled>
$ headers-list (exit:0 in 34.726ms)
AUDIO: 2 pins
Pos Name Func
1 INVALID
2 INVALID
EULER: 34 pins
Func Name Pos Pos Name Func
V3_3 1 2 DC_IN
BAT_PLUS 3 4 DC_IN
TEMP_SENSOR 5 6 GROUND
IR_RX 7 8 V5
GROUND 9 10 PH8(232) <Disabled>
UART2_CTS PB3(35) 11 12 PB4(36) <Disabled>
<Disabled> PB5(37) 13 14 GROUND
<Disabled> PB6(38) 15 16 PB7(39) <Disabled>
V3_3 17 18 PD4(100) UART4_RTS
UART4_TX PD2(98) 19 20 GROUND
UART4_RX PD3(99) 21 22 PD5(101) UART4_CTS
UART3_RX PD1(97) 23 24 PD0(96) UART3_TX
GROUND 25 26 PD6(102) <Disabled>
UART2_RTS PB2(34) 27 28 PD7(103) <Disabled>
UART0_TX PB8(40) 29 30 PB9(41) UART0_RX
EAROUTP 31 32 EAROUTN
INVALID 33 34 GROUND
EXP: 10 pins
Func Name Pos Pos Name Func
V3_3 1 2 PL7(359) <Disabled>
CHARGER_LED 3 4 RESET
PWR_SWITCH 5 6 GROUND
UART0_TX PB8(40) 7 8 PB9(41) UART0_RX
GROUND 9 10 KEY_ADC
P1: 40 pins
Func Name Pos Pos Name Func
V3_3 1 2 V5
I2C1_SDA PH3(227) 3 4 V5
I2C1_SCL PH2(226) 5 6 GROUND
<Disabled> PL10(362) 7 8 PB0(32) UART2_TX
GROUND 9 10 PB1(33) UART2_RX
<Disabled> PC7(71) 11 12 PC8(72) <Disabled>
<Disabled> PH9(233) 13 14 GROUND
<Disabled> PC12(76) 15 16 PC13(77) <Disabled>
V3_3 17 18 PC14(78) <Disabled>
<Disabled> PC0(64) 19 20 GROUND
<Disabled> PC1(65) 21 22 PC15(79) <Disabled>
<Disabled> PC2(66) 23 24 PC3(67) <Disabled>
GROUND 25 26 PH7(231) Out/Low
In/High/Float PL9(361) 27 28 PL8(360) In/High/Up
<Disabled> PH5(229) 29 30 GROUND
<Disabled> PH6(230) 31 32 PC4(68) <Disabled>
<Disabled> PC5(69) 33 34 GROUND
<Disabled> PC9(73) 35 36 PC6(70) <Disabled>
<Disabled> PC16(80) 37 38 PC10(74) <Disabled>
GROUND 39 40 PC11(75) <Disabled>
WIFI_BT: 26 pins
Func Name Pos Pos Name Func
GROUND 1 2 PG6(198) UART1_TX
<Disabled> PG0(192) 3 4 PG7(199) UART1_RX
GROUND 5 6 PG8(200) UART1_RTS
<Disabled> PG1(193) 7 8 PG9(201) UART1_CTS
<Disabled> PG2(194) 9 10 PG10(202) <Disabled>
<Disabled> PG3(195) 11 12 PG11(203) <Disabled>
<Disabled> PG4(196) 13 14 PG12(204) <Disabled>
<Disabled> PG5(197) 15 16 PG13(205) <Disabled>
Out/Low PL2(354) 17 18 GROUND
In/Low/Float PL3(355) 19 20 PL5(357) <Disabled>
X32KFOUT 21 22 PL5(357) <Disabled>
GROUND 23 24 PL6(358) <Disabled>
VCC 25 26 IOVCC
$ periph-smoketest gpio -sysfs 360 361 (exit:0 in 37.421ms)
Skipping input pull resistor on sysfs
Using pins and their current state:
- GPIO360: In/High
- GPIO361: In/High
Testing GPIO361 -> GPIO360
Testing basic functionality
0.200ms GPIO360.In(Float, None)
0.441ms GPIO361.Out(Low)
0.655ms -> GPIO360: In/Low
0.790ms -> GPIO361: Out/Low
0.962ms GPIO361.Out(High)
1.101ms -> GPIO360: In/High
1.264ms -> GPIO361: Out/High
Testing GPIO360 -> GPIO361
Testing basic functionality
1.550ms GPIO361.In(Float, None)
1.820ms GPIO360.Out(Low)
2.062ms -> GPIO361: In/Low
2.228ms -> GPIO360: Out/Low
2.364ms GPIO360.Out(High)
2.639ms -> GPIO361: In/High
2.815ms -> GPIO360: Out/High
<terminating>
3.017ms GPIO360.In(PullNoChange, None)
3.135ms GPIO361.In(PullNoChange, None)
$ periph-smoketest gpio 360 361 (exit:0 in 34.589ms)
Using pins and their current state:
- PL8(360): In/High/Up
- PL9(361): In/High/Float
Testing PL9(361) -> PL8(360)
Testing basic functionality
0.190ms PL8(360).In(Float, None)
0.326ms PL9(361).Out(Low)
0.445ms -> PL8(360): In/Low/Float
0.520ms -> PL9(361): Out/Low
0.590ms PL9(361).Out(High)
0.841ms -> PL8(360): In/High/Float
0.941ms -> PL9(361): Out/High
Testing input pull resistor
1.077ms PL8(360).In(Float, None)
1.153ms PL9(361).Out(Low)
1.222ms PL9(361).In(Down, None)
-> PL8(360): In/Low/Float
-> PL9(361): In/Low/Down
1.417ms PL9(361).In(Up, None)
-> PL8(360): In/High/Float
-> PL9(361): In/High/Up
Testing PL8(360) -> PL9(361)
Testing basic functionality
1.707ms PL9(361).In(Float, None)
1.782ms PL8(360).Out(Low)
1.876ms -> PL9(361): In/Low/Float
2.029ms -> PL8(360): Out/Low
2.106ms PL8(360).Out(High)
2.201ms -> PL9(361): In/High/Float
2.293ms -> PL8(360): Out/High
Testing input pull resistor
2.421ms PL9(361).In(Float, None)
2.497ms PL8(360).Out(Low)
2.565ms PL8(360).In(Down, None)
-> PL9(361): In/Low/Float
-> PL8(360): In/Low/Down
2.757ms PL8(360).In(Up, None)
-> PL9(361): In/High/Float
-> PL8(360): In/High/Up
<terminating>
3.096ms PL8(360).In(PullNoChange, None)
3.174ms PL9(361).In(PullNoChange, None)
$ go vet ./... (exit:0 in 7.994s)
Commit: 8cd359c0dcec0ea7083715699f07f7fd48688266
CPUs: 4
Version: devel +7dc97d9 Sat Nov 19 04:31:36 2016 +0000
GOROOT: /home/pi/go
GOPATH: /home/pi/gohci/periph/go
PATH: /home/pi/gohci/periph/go/bin:/home/pi/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Commands to be run:
go install -v ./cmd/gpio-list ./cmd/headers-list ./cmd/periph-info ./cmd/periph-smoketest
periph-info
gpio-list
headers-list
periph-smoketest gpio -sysfs 360 361
periph-smoketest gpio 360 361
go vet ./...
$ git pull --prune --quiet (exit:0 in 513.371ms)
Already up-to-date.
$ git pull --prune --quiet (exit:0 in 530.185ms)
Already up-to-date.
$ git pull --prune --quiet (exit:0 in 614.035ms)
Already up-to-date.
$ git fetch --prune --quiet (exit:0 in 766.323ms)
$ git checkout --quiet -B test 8cd359c0dcec0ea7083715699f07f7fd48688266 (exit:0 in 23.282ms)
$ go get -v -d -t ./... (exit:0 in 940.175ms)
$ go test -i ./... (exit:0 in 1.058s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment