Re: armv7 on Wandboard Quad

2016-08-12 Thread Patrick Wildt
On Thu, Aug 11, 2016 at 11:06:45PM -0400, Joe Gidi wrote:
> The recent flurry of activity on the armv7 port prompted me to buy a
> Wandboard Quad so I could try a new hardware platform.
> 
> As you'd expect with OpenBSD, installation was dead simple and
> trouble-free. I grabbed the latest snapshot miniroot-wandboard-60.fs file
> from my local mirror, dd'ed it to an SD card, stuck the card in the top
> slot on the Wandboard (there are 2 slots, but reportedly only the upper
> slot is bootable), plugged in a null modem cable for a serial console, and
> connected the power. The board booted into bsd.rd and installed as usual.
> 
> I have not done any extensive testing yet, but I'm including the results
> of 'openssl speed' and 'md5 -t' as a crude benchmark of CPU performance.
> According to the specs this board is supposed to run at 1 GHz, but mine
> seems to boot up at 792 MHz instead. This is probably configurable
> somewhere, maybe within U-Boot, but I have not explored that yet.

792 MHz is the default on i.MX6.  With more drivers one could change
voltages and clock up the processor to up to 1.2 GHz.

> 
> The only oddity I've noticed so far is that the dmesg lists a third sdmmc
> device when there are only two physical slots. I have not tried using a
> second SD card in the lower slot, but I expect it will work fine.

The SoC itself has 3 SD card controllers.  How many are exposed on the
board is up to the board designer.  In this case the 3rd SD card slot
is probably used internally for the SDIO-connected WiFi chip.

> 
> Following are the 'openssl speed' and 'md5 -t' results, as well as a
> 'sysctl hw' and dmesg. Thanks to the developers who have been working so
> hard on this platform!
> 
> -
> 
> LibreSSL 2.5.0
> built on: date not available
> options:bn(64,32) rc4(ptr,int) des(idx,cisc,16,long) aes(partial)
> idea(int) blowfish(idx)
> compiler: information not available
> The 'numbers' are in 1000s of bytes per second processed.
> type 16 bytes 64 bytes256 bytes   1024 bytes   8192 bytes
> md2  0.00 0.00 0.00 0.00 0.00
> md4   5540.83k19327.23k54267.22k98484.31k
> 130551.44k
> md5   3898.23k13996.04k39344.72k70417.97k
> 92032.51k
> hmac(md5) 5377.17k17490.31k45299.67k75457.88k
> 93493.12k
> sha1  4189.54k13547.88k31824.09k47186.54k
> 54307.03k
> rmd1603442.88k10034.65k20882.65k28884.62k
> 32726.90k
> rc4  36176.50k39058.88k41778.77k42090.15k
> 42149.34k
> des cbc  10151.93k10928.95k2.44k11247.22k
> 11167.70k
> des ede3  3902.13k 3980.65k 4026.57k 4035.98k
> 4063.23k
> idea cbc  9638.86k10107.32k10328.62k10367.06k
> 10341.03k
> seed cbc 0.00 0.00 0.00 0.00 0.00
> rc2 cbc   8145.03k 8492.99k 8667.56k 8636.19k
> 8686.25k
> rc5-32/12 cbc0.00 0.00 0.00 0.00 0.00
> blowfish cbc 19748.39k21868.33k22328.32k22642.08k
> 22533.46k
> cast cbc 16150.69k17645.76k17825.76k17988.95k
> 17978.85k
> aes-128 cbc  22743.94k25601.49k26023.59k26640.15k
> 26514.77k
> aes-192 cbc  20264.96k21907.75k22725.95k22938.63k
> 22964.91k
> aes-256 cbc  18069.54k19826.97k20212.04k20643.84k
> 20665.69k
> camellia-128 cbc15796.13k17206.26k17443.81k17585.24k
> 17547.70k
> camellia-192 cbc12598.56k13344.47k13663.91k13637.51k
> 13711.39k
> camellia-256 cbc12589.03k13301.57k13394.74k13732.18k
> 13811.33k
> sha2566371.41k14286.47k24558.90k29677.75k
> 32049.83k
> sha5121830.57k 7313.82k10421.41k14217.95k
> 15816.24k
> whirlpool  652.76k 1310.27k 2135.72k 2523.48k
> 2627.37k
> aes-128 ige  21055.95k24409.04k25611.40k26153.44k
> 26313.36k
> aes-192 ige  18235.72k20863.64k21903.22k22177.25k
> 22287.14k
> aes-256 ige  16439.16k18527.72k19414.61k19495.67k
> 19528.32k
> ghash24031.10k27179.35k28220.35k28742.31k
> 29040.37k
> aes-128 gcm   4901.14k 9394.71k12110.58k13078.04k
> 13660.57k
> aes-256 gcm   4411.09k 8215.83k10625.54k11448.94k
> 11909.91k
> chacha20 poly1305 1767.92k 6481.10k11053.23k13396.59k
> 14307.42k
>   signverifysign/s verify/s
> rsa  512 bits 0.001200s 0.000130s833.5   7687.6
> rsa 1024 bits 0.006262s 0.000380s159.7   2629.4
> rsa 2048 bits 0.041883s 0.001331s 23.9751.1
> rsa 4096 bits 0.301765s 0.005084s  3.3196.7
>   signverifysign/s verify/s
> dsa  512 bits 0.001289s 0.001322s775.9756.4
> dsa 1024 bits 0.003830s 0.004121s261.1242.7
> dsa 2048 bits 

armv7 on Wandboard Quad

2016-08-11 Thread Joe Gidi
The recent flurry of activity on the armv7 port prompted me to buy a
Wandboard Quad so I could try a new hardware platform.

As you'd expect with OpenBSD, installation was dead simple and
trouble-free. I grabbed the latest snapshot miniroot-wandboard-60.fs file
from my local mirror, dd'ed it to an SD card, stuck the card in the top
slot on the Wandboard (there are 2 slots, but reportedly only the upper
slot is bootable), plugged in a null modem cable for a serial console, and
connected the power. The board booted into bsd.rd and installed as usual.

I have not done any extensive testing yet, but I'm including the results
of 'openssl speed' and 'md5 -t' as a crude benchmark of CPU performance.
According to the specs this board is supposed to run at 1 GHz, but mine
seems to boot up at 792 MHz instead. This is probably configurable
somewhere, maybe within U-Boot, but I have not explored that yet.

The only oddity I've noticed so far is that the dmesg lists a third sdmmc
device when there are only two physical slots. I have not tried using a
second SD card in the lower slot, but I expect it will work fine.

Following are the 'openssl speed' and 'md5 -t' results, as well as a
'sysctl hw' and dmesg. Thanks to the developers who have been working so
hard on this platform!

-

LibreSSL 2.5.0
built on: date not available
options:bn(64,32) rc4(ptr,int) des(idx,cisc,16,long) aes(partial)
idea(int) blowfish(idx)
compiler: information not available
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes256 bytes   1024 bytes   8192 bytes
md2  0.00 0.00 0.00 0.00 0.00
md4   5540.83k19327.23k54267.22k98484.31k
130551.44k
md5   3898.23k13996.04k39344.72k70417.97k
92032.51k
hmac(md5) 5377.17k17490.31k45299.67k75457.88k
93493.12k
sha1  4189.54k13547.88k31824.09k47186.54k
54307.03k
rmd1603442.88k10034.65k20882.65k28884.62k
32726.90k
rc4  36176.50k39058.88k41778.77k42090.15k
42149.34k
des cbc  10151.93k10928.95k2.44k11247.22k
11167.70k
des ede3  3902.13k 3980.65k 4026.57k 4035.98k
4063.23k
idea cbc  9638.86k10107.32k10328.62k10367.06k
10341.03k
seed cbc 0.00 0.00 0.00 0.00 0.00
rc2 cbc   8145.03k 8492.99k 8667.56k 8636.19k
8686.25k
rc5-32/12 cbc0.00 0.00 0.00 0.00 0.00
blowfish cbc 19748.39k21868.33k22328.32k22642.08k
22533.46k
cast cbc 16150.69k17645.76k17825.76k17988.95k
17978.85k
aes-128 cbc  22743.94k25601.49k26023.59k26640.15k
26514.77k
aes-192 cbc  20264.96k21907.75k22725.95k22938.63k
22964.91k
aes-256 cbc  18069.54k19826.97k20212.04k20643.84k
20665.69k
camellia-128 cbc15796.13k17206.26k17443.81k17585.24k
17547.70k
camellia-192 cbc12598.56k13344.47k13663.91k13637.51k
13711.39k
camellia-256 cbc12589.03k13301.57k13394.74k13732.18k
13811.33k
sha2566371.41k14286.47k24558.90k29677.75k
32049.83k
sha5121830.57k 7313.82k10421.41k14217.95k
15816.24k
whirlpool  652.76k 1310.27k 2135.72k 2523.48k
2627.37k
aes-128 ige  21055.95k24409.04k25611.40k26153.44k
26313.36k
aes-192 ige  18235.72k20863.64k21903.22k22177.25k
22287.14k
aes-256 ige  16439.16k18527.72k19414.61k19495.67k
19528.32k
ghash24031.10k27179.35k28220.35k28742.31k
29040.37k
aes-128 gcm   4901.14k 9394.71k12110.58k13078.04k
13660.57k
aes-256 gcm   4411.09k 8215.83k10625.54k11448.94k
11909.91k
chacha20 poly1305 1767.92k 6481.10k11053.23k13396.59k
14307.42k
  signverifysign/s verify/s
rsa  512 bits 0.001200s 0.000130s833.5   7687.6
rsa 1024 bits 0.006262s 0.000380s159.7   2629.4
rsa 2048 bits 0.041883s 0.001331s 23.9751.1
rsa 4096 bits 0.301765s 0.005084s  3.3196.7
  signverifysign/s verify/s
dsa  512 bits 0.001289s 0.001322s775.9756.4
dsa 1024 bits 0.003830s 0.004121s261.1242.7
dsa 2048 bits 0.013445s 0.014557s 74.4 68.7
  signverifysign/s verify/s
 160 bit ecdsa (secp160r1)   0.0009s   0.0030s   1115.9329.7
 192 bit ecdsa (nistp192)   0.0011s   0.0041s898.9241.8
 224 bit ecdsa (nistp224)   0.0014s   0.0060s691.7166.4
 256 bit ecdsa (nistp256)   0.0017s   0.0070s597.4142.5
 384 bit ecdsa (nistp384)   0.0035s   0.0173s281.8 57.6
 521 bit ecdsa (nistp521)   0.0069s   0.0371s144.1 26.9
 163 bit ecdsa (nistk163)   0.0030s   0.0097s330.2102.7
 233 bit ecdsa (nistk233)   0.0064s