I was able to install OpenBSD current on my orangepi one today. 

 

One small issue is that the u-boot package is not in i386 snapshots.  So I
used u-boot and dtb packages from amd64.

 

The big problem is that the ethernet device did not show up in OpenBSD,
neither on the install nor on the built system.

On linux the driver is sun8i-emac.  Is there a driver for this interface on
OpenBSD?

 

U-boot seems to suggest the hardware is there:

 

Trying to boot from MMC1

 

 

U-Boot 2017.07 (Aug 15 2017 - 07:39:48 -0600) Allwinner Technology

 

CPU:   Allwinner H3 (SUN8I 1680)

Model: Xunlong Orange Pi One

DRAM:  512 MiB

MMC:   SUNXI SD/MMC: 0

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   phy interface0

eth0: ethernet@1c30000

starting USB...

USB0:   USB EHCI 1.00

USB1:   USB OHCI 1.0

scanning bus 0 for devices... 2 USB Device(s) found

       scanning usb for storage devices... 1 Storage Device(s) found

Hit any key to stop autoboot:  0

 

Creating the mmc is detailed on the attached file, load sd card for
current.txt.

 

The OpenBSD installation log is also attached.

GET STUFF

# cd orange_pi/
# rm *
# wget 
http://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/u-boot-arm-2017.07p0.tgz
--2017-08-16 10:18:54--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/u-boot-arm-2017.07p0.tgz
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54114988 (52M) [text/plain]
Saving to: 'u-boot-arm-2017.07p0.tgz'

u-boot-arm-2017.07p0.tgz  100%[=====================================>]  51.61M  
3.07MB/s    in 17s

2017-08-16 10:19:11 (3.04 MB/s) - 'u-boot-arm-2017.07p0.tgz' saved 
[54114988/54114988]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/dtb-4.12.tgz
--2017-08-16 10:19:39--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/dtb-4.12.tgz
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4991864 (4.8M) [text/plain]
Saving to: 'dtb-4.12.tgz'

dtb-4.12.tgz              100%[=====================================>]   4.76M  
1.38MB/s    in 3.6s

2017-08-16 10:19:43 (1.33 MB/s) - 'dtb-4.12.tgz' saved [4991864/4991864]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/INSTALL.armv7
--2017-08-16 10:21:00--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/INSTALL.armv7
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36632 (36K) [text/plain]
Saving to: 'INSTALL.armv7'

INSTALL.armv7             100%[=====================================>]  35.77K  
--.-KB/s    in 0.1s

2017-08-16 10:21:01 (366 KB/s) - 'INSTALL.armv7' saved [36632/36632]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/base61.tgz
--2017-08-16 10:21:32--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/base61.tgz
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 67972004 (65M) [text/plain]
Saving to: 'base61.tgz'

base61.tgz                100%[=====================================>]  64.82M  
1.77MB/s    in 28s

2017-08-16 10:22:00 (2.33 MB/s) - 'base61.tgz' saved [67972004/67972004]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/bsd
--2017-08-16 10:22:09--  http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/bsd
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5103629 (4.9M) [text/plain]
Saving to: 'bsd'

bsd                       100%[=====================================>]   4.87M  
1.17MB/s    in 4.5s

2017-08-16 10:22:13 (1.07 MB/s) - 'bsd' saved [5103629/5103629]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/bsd.rd
--2017-08-16 10:22:23--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/bsd.rd
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10905771 (10M) [text/plain]
Saving to: 'bsd.rd'

bsd.rd                    100%[=====================================>]  10.40M  
2.36MB/s    in 7.0s

2017-08-16 10:22:30 (1.49 MB/s) - 'bsd.rd' saved [10905771/10905771]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/comp61.tgz
--2017-08-16 10:22:38--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/comp61.tgz
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43079801 (41M) [text/plain]
Saving to: 'comp61.tgz'

comp61.tgz                100%[=====================================>]  41.08M  
3.11MB/s    in 14s

2017-08-16 10:22:52 (3.00 MB/s) - 'comp61.tgz' saved [43079801/43079801]

# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/man61.tgz
--2017-08-16 10:23:06--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/man61.tgz
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7325806 (7.0M) [text/plain]
Saving to: 'man61.tgz'

man61.tgz                 100%[=====================================>]   6.99M  
1.92MB/s    in 4.0s

2017-08-16 10:23:10 (1.73 MB/s) - 'man61.tgz' saved [7325806/7325806]


INSTALL DTB AND U-BOOT PACKAGES

# pkg_delete dtb
dtb-4.10: ok
Read shared items: ok
# pkg_delete u-boot-arm
u-boot-arm-2017.03: ok
Read shared items: ok
# pkg_add ./dtb-4.12.tgz
quirks-2.304 signed on 2017-04-04T09:09:10Z
dtb-4.12: ok
# pkg_add ./u-boot-arm-2017.07p0.tgz
quirks-2.304 signed on 2017-04-04T09:09:10Z
u-boot-arm-2017.07p0: ok
# wget http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/miniroot-cubie-61.fs
--2017-08-16 11:04:04--  
http://ftp.openbsd.org/pub/OpenBSD/snapshots/armv7/miniroot-cubie-61.fs
Resolving ftp.openbsd.org (ftp.openbsd.org)... 129.128.5.191
Connecting to ftp.openbsd.org (ftp.openbsd.org)|129.128.5.191|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18874368 (18M) [text/plain]
Saving to: 'miniroot-cubie-61.fs'

miniroot-cubie-61.fs      100%[=====================================>]  18.00M  
3.12MB/s    in 6.9s

2017-08-16 11:04:11 (2.63 MB/s) - 'miniroot-cubie-61.fs' saved 
[18874368/18874368]

# ls -al
total 415280
drwxr-xr-x  2 sysadmin  sysadmin       512 Aug 16 11:04 .
drwxr-xr-x  4 sysadmin  sysadmin      1024 Aug 14 21:44 ..
-rw-r--r--  1 root      sysadmin     36632 Aug 16 00:12 INSTALL.armv7
-rw-r--r--  1 root      sysadmin  67972004 Aug 15 23:37 base61.tgz
-rw-r--r--  1 root      sysadmin   5103629 Aug 15 23:34 bsd
-rw-r--r--  1 root      sysadmin  10905771 Aug 16 00:12 bsd.rd
-rw-r--r--  1 root      sysadmin  43079801 Aug 15 23:38 comp61.tgz
-rw-r--r--  1 root      sysadmin   4991864 Aug 15 21:09 dtb-4.12.tgz
-rw-r--r--  1 root      sysadmin   7325806 Aug 15 23:39 man61.tgz
-rw-r--r--  1 root      sysadmin  18874368 Aug 16 00:12 miniroot-cubie-61.fs
-rw-r--r--  1 root      sysadmin  54114988 Aug 15 21:15 u-boot-arm-2017.07p0.tgz

CREATE MINIROOT AND PUT ON MMC 

# cp miniroot-cubie-61.fs miniroot-orangepione-61.fs
# vnconfig vnd0 miniroot-orangepione-61.fs
# mkdir -p /mnt/vnd0i
# mount /dev/vnd0i /mnt/vnd0i
# rm -rf /mnt/vnd0i/sun7i-a20-cubieboard2.dtb
# cp /usr/local/share/dtb/arm/sun8i-h3-orangepi-one.dtb /mnt/vnd0i
# dd if=/usr/local/share/u-boot/orangepi_one/u-boot-sunxi-with-spl.bin \
> of=/dev/rvnd0c bs=1024 seek=8 conv=notrunc
428+1 records in
428+1 records out
438495 bytes transferred in 0.070 secs (6205001 bytes/sec)
# umount /dev/vnd0i
# vnconfig -u vnd0
# dd if=miniroot-orangepione-61.fs of=/dev/rsd0c
36864+0 records in
36864+0 records out
18874368 bytes transferred in 116.537 secs (161960 bytes/sec)

PUT PACKAGES ON USB MEMORY STICK

# mount /dev/sd1i /mnt
# cd /mnt
# rm *.tgz
# rm bsd*
# cd /home/sysadmin/orange_pi/
# cp INSTALL.armv7 /mnt
# cp base61.tgz /mnt
# cp comp61.tgz /mnt
# cp man61.tgz /mnt
# cp bsd* /mnt
# ls -alt /mnt
total 262980
-rw-r--r--   1 root  wheel  10905771 Aug 16 11:22 bsd.rd
-rw-r--r--   1 root  wheel   5103629 Aug 16 11:22 bsd
-rw-r--r--   1 root  wheel   7325806 Aug 16 11:22 man61.tgz
-rw-r--r--   1 root  wheel  43079801 Aug 16 11:22 comp61.tgz
-rw-r--r--   1 root  wheel  67972004 Aug 16 11:21 base61.tgz
-rw-r--r--   1 root  wheel     36632 Aug 16 11:20 INSTALL.armv7
drwxr-xr-x  16 root  wheel       512 Aug 15 22:11 ..
drwxr-xr-x   1 root  wheel      4096 Dec 31  1979 .
# umount /mnt
ÿþU-Boot SPL 2017.07 (Aug 15 2017 - 
07:39:48)

DRAM: 512 MiB

Trying to boot from MMC1





U-Boot 2017.07 (Aug 15 2017 - 07:39:48 
-0600) Allwinner Technology



CPU:   Allwinner H3 (SUN8I 1680)

Model: Xunlong Orange Pi One

DRAM:  512 MiB

MMC:   SUNXI SD/MMC: 0

*** Warning - bad CRC, using default 
environment



In:    serial

Out:   serial

Err:   serial

Net:   phy interface0

eth0: ethernet@1c30000

starting USB...

USB0:   USB EHCI 1.00

USB1:   USB OHCI 1.0

scanning bus 0 for devices... 1 USB 
Device(s) found

       scanning usb for storage 
devices... 0 Storage Device(s) found

Hit any key to stop autoboot:  0

switch to partitions #0, OK

mmc0 is current device

Scanning mmc 0:1...

reading /sun8i-h3-orangepi-one.dtb

14436 bytes read in 25 ms (563.5 KiB/s)

Found EFI removable media binary 
efi/boot/bootarm.efi

reading efi/boot/bootarm.efi

65448 bytes read in 36 ms (1.7 MiB/s)

## Starting EFI application at 42000000 
...

Scanning disks on usb...

Scanning disks on mmc...

MMC Device 1 not found

MMC Device 2 not found

MMC Device 3 not found

Found 5 disks

>> OpenBSD/armv7 BOOTARM 0.9

boot>

cannot open sd0a:/etc/random.seed: No 
such file or directory

booting sd0a:/bsd: 
2271400+7990052+448368 
[172887+90+314880+150067]=0xad8040



OpenBSD/armv7 booting ...

arg0 0xc0dd8040 arg1 0x0 arg2 
0x48000000

Allocating page tables

freestart = 0x40dd9000, free_pages = 
127527 (0x0001f227)

IRQ stack: p0x40e07000 v0xc0e07000

ABT stack: p0x40e08000 v0xc0e08000

UND stack: p0x40e09000 v0xc0e09000

SVC stack: p0x40e0a000 v0xc0e0a000

Creating L1 page table at 0x40ddc000

Mapping kernel

Constructing L2 page tables

undefined page pmap board type: 0

Copyright (c) 1982, 1986, 1989, 1991, 
1993

        The Regents of the University 
of California.  All rights reserved.

Copyright (c) 1995-2017 OpenBSD. All 
rights reserved.  
https://www.OpenBSD.org



OpenBSD 6.1-current (RAMDISK) #34: Wed 
Aug 16 01:11:47 MDT 2017

    
deraadt@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/RAMDISK

real mem  = 536870912 (512MB)

avail mem = 511762432 (488MB)

mainbus0 at root: Xunlong Orange Pi One

cpu0 at mainbus0: ARM Cortex-A7 r0p5 
(ARMv7)

cpu0: DC enabled IC enabled WB disabled 
EABT branch prediction enabled

cpu0: 32KB(32b/l,2way) I-cache, 
32KB(64b/l,4way) wr-back D-cache

cortex0 at mainbus0

sxiccmu0 at mainbus0

psci0 at mainbus0

simplebus0 at mainbus0: "soc"

sxiccmu1 at simplebus0

sxipio0 at simplebus0: 94 pins

sxipio1 at simplebus0: 12 pins

sximmc0 at simplebus0

sdmmc0 at sximmc0: 4-bit, sd 
high-speed, mmc high-speed, dma

ehci0 at simplebus0

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 configuration 1 interface 
0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1

ehci1 at simplebus0

usb1 at ehci1: USB revision 2.0

uhub1 at usb1 configuration 1 interface 
0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1

sxidog0 at simplebus0

com0 at simplebus0: ns16550, no working 
fifo

com0: console

ampintc0 at simplebus0 nirq 160, ncpu 4

sxirtc0 at simplebus0

gpio0 at sxipio0: 32 pins

gpio1 at sxipio0: 32 pins

gpio2 at sxipio0: 32 pins

gpio3 at sxipio0: 32 pins

gpio4 at sxipio0: 32 pins

gpio5 at sxipio0: 32 pins

gpio6 at sxipio0: 32 pins

gpio7 at sxipio1: 32 pins

agtimer0 at mainbus0: tick rate 24000 
KHz

scsibus0 at sdmmc0: 2 targets, 
initiator 0

sd0 at scsibus0 targ 1 lun 0: <SD/MMC, 
SL16G, 0080> SCSI2 0/direct removable

sd0: 15193MB, 512 bytes/sector, 
31116288 sectors

boot device: sd0

root on rd0a swap on rd0b dump on rd0b

WARNING: preposterous clock chip time

WARNING: CHECK AND RESET THE DATE!

erase ^?, werase ^W, kill ^U, intr ^C, 
status ^T



Welcome to the OpenBSD/armv7 6.1 
installation program.

(I)nstall, (U)pgrade, (A)utoinstall or 
(S)hell? i

At any prompt except password prompts 
you can escape to a shell by

typing '!'. Default answers are shown 
in []'s and are selected by

pressing RETURN.  You can exit this 
program at any time by pressing

Control-C, but this can leave your 
system in an inconsistent state.



Terminal type? [vt220]

System hostname? (short form, e.g. 
'foo') orangepibsd



Available network interfaces are: 
vlan0.

Which network interface do you wish to 
configure? (or 'done') [vlan0] done

DNS domain name? (e.g. 'bar.com') 
[my.domain] graf.lan

DNS nameservers? (IP address list or 
'none') [none] 4.2.2.1



Password for root account? (will not 
echo)

Password for root account? (again)

Start sshd(8) by default? [yes]

Setup a user? (enter a lower-case 
loginname, or 'no') [no] sysadmin

Full name for user sysadmin? [sysadmin]

Password for user sysadmin? (will not 
echo)

Password for user sysadmin? (again)

WARNING: root is targeted by password 
guessing attacks, pubkeys are safer.

Allow root ssh login? (yes, no, 
prohibit-password) [no]



Available disks are: sd0.

Which disk is the root disk? ('?' for 
details) [sd0]

Disk: sd0       geometry: 1936/255/63 
[31116288 Sectors]

Offset: 0       Signature: 0xAA55

            Starting         Ending     
    LBA Info:

 #: id      C   H   S -      C   H   S 
[       start:        size ]

-------------------------------------------------------------------------------

*0: 0C      0  32  33 -      0  97  33 
[        2048:        4096 ] FAT32L

 1: 00      0   0   0 -      0   0   0 
[           0:           0 ] unused

 2: 00      0   0   0 -      0   0   0 
[           0:           0 ] unused

 3: A6      0  97  34 -      2  75   9 
[        6144:       30720 ] OpenBSD

Use (W)hole disk$ or (E)dit the MBR? 
[whole]

Creating a msdos partition and an 
OpenBSD partition for rest of 
sd0...done.

/dev/rsd0i: 32668 sectors in 8167 FAT16 
clusters (2048 bytes/cluster)

bps=512 spc=4 res=1 nft=2 rde=512 
sec=32768 mid=0xf8 spf=32 spt=63 
hds=255 hid=2048

The auto-allocated layout for sd0 is:

#                size           offset  
fstype [fsize bsize   cpg]

  a:           500.7M            34816  
4.2BSD   2048 16384     1 # /

  b:           768.0M          1060288  
  swap

  c:         15193.5M                0  
unused

  d:           681.2M          2633152  
4.2BSD   2048 16384     1 # /tmp

  e:           991.9M          4028160  
4.2BSD   2048 16384     1 # /var

  f:          1250.7M          6059520  
4.2BSD   2048 16384     1 # /usr

  g:           722.4M          8620992  
4.2BSD   2048 16384     1 # /usr/X11R6

  h:          2252.2M         10100512  
4.2BSD   2048 16384     1 # /usr/local

  i:            16.0M             2048  
 MSDOS

  j:          1164.3M         14712928  
4.2BSD   2048 16384     1 # /usr/src

  k:          3352.6M         17097376  
4.2BSD   2048 16384     1 # /usr/obj

  l:          3492.5M         23963456  
4.2BSD   2048 16384     1 # /home

Use (A)uto layout, (E)dit auto layout, 
or create (C)ustom layout? [a]

Rounding size to bsize (32 sectors): 
1025472

Rounding size to bsize (32 sectors): 
2031360

Rounding size to bsize (32 sectors): 
2561472

Rounding size to bsize (32 sectors): 
1479520

Rounding size to bsize (32 sectors): 
4612416

Rounding size to bsize (32 sectors): 
2384448

Rounding size to bsize (32 sectors): 
7152736

newfs: reduced number of fragments per 
cylinder group from 64088 to 63832 to 
enlarge last cylinder group

/dev/rsd0a: 500.7MB in 1025472 sectors 
of 512 bytes

5 cylinder groups of 124.67MB, 7979 
blocks, 16000 inodes each

/dev/rsd0l: 3492.5MB in 7152736 sectors 
of 512 bytes

18 cylinder groups of 202.47MB, 12958 
blocks, 25984 inodes each

newfs: reduced number of fragments per 
cylinder group from 87184 to 86840 to 
enlarge last cylinder group

/dev/rsd0d: 681.2MB in 1395008 sectors 
of 512 bytes

5 cylinder groups of 169.61MB, 10855 
blocks, 21760 inodes each

/dev/rsd0f: 1250.7MB in 2561472 sectors 
of 512 bytes

7 cylinder groups of 202.47MB, 12958 
blocks, 25984 inodes each

newfs: reduced number of fragments per 
cylinder group from 92464 to 92104 to 
enlarge last cylinder group

/dev/rsd0g: 722.4MB in 1479520 sectors 
of 512 bytes

5 cylinder groups of 179.89MB, 11513 
blocks, 23040 inodes each

/dev/rsd0h: 2252.2MB in 4612416 sectors 
of 512 bytes

12 cylinder groups of 202.47MB, 12958 
blocks, 25984 inodes each

/dev/rsd0k: 3352.6MB in 6866080 sectors 
of 512 bytes

17 cylinder groups of 202.47MB, 12958 
blocks, 25984 inodes each

/dev/rsd0j: 1164.3MB in 2384448 sectors 
of 512 bytes

6 cylinder groups of 202.47MB, 12958 
blocks, 25984 inodes each

/dev/rsd0e: 991.9MB in 2031360 sectors 
of 512 bytes

5 cylinder groups of 202.47MB, 12958 
blocks, 25984 inodes each

/dev/sd0a (4190573d45fde00d.a) on /mnt 
type ffs (rw, asynchronous, local)

/dev/sd0l (4190573d45fde00d.l) on 
/mnt/home type ffs (rw, asynchronous, 
local, nodev, nosuid)

/dev/sd0d (4190573d45fde00d.d) on 
/mnt/tmp type ffs (rw, asynchronous, 
local, nodev, nosuid)

/dev/sd0f (4190573d45fde00d.f) on 
/mnt/usr type ffs (rw, asynchronous, 
local, nodev)

/dev/sd0g (4190573d45fde00d.g) on 
/mnt/usr/X11R6 type ffs (rw, 
asynchronous, local, nodev)

/dev/sd0h (4190573d45fde00d.h) on 
/mnt/usr/local type ffs (rw, 
asynchronous, local, nodev)

/dev/sd0k (4190573d45fde00d.k) on 
/mnt/usr/obj type ffs (rw, 
asynchronous, local, nodev, nosuid)

/dev/sd0j (4190573d45fde00d.j) on 
/mnt/usr/src type ffs (rw, 
asynchronous, local, nodev, nosuid)

/dev/sd0e (4190573d45fde00d.e) on 
/mnt/var type ffs (rw, asynchronous, 
local, nodev, nosuid)



Let's install the sets!

Location of sets? (disk http nfs or 
'done') [http] umass0 at uhub1 port 1 
configuration 1 interface 0 "Lexar JD 
Secure II +" rev 2.00/11.00 addr 2

umass0: using SCSI over Bulk-Only

scsibus1 at umass0: 2 targets, 
initiator 0

Location of sets? (disk http nfs or 
'done') [http] sd1 at scsibus1 targ 1 
lun 0: <Lexar, JD Secure II +, 1100> 
SCSI0 0/direct removable 
serial.05dca732012100015339

sd1: 1912MB, 512 bytes/sector, 3915776 
sectors

Location of sets? (disk http nfs or 
'done') [http] disk

Is the disk partition already mounted? 
[no]

Available disks are: sd0 sd1.

Which disk contains the install media? 
(or 'done') [sd1]

Pathname to the sets? (or 'done') 
[6.1/armv7] /

INSTALL.armv7 not found. Use sets found 
here anyway? [no] yes



Select sets by entering a set name, a 
file name pattern or 'all'. De-select

sets by prepending a '-', e.g.: 
'-game*'. Selected sets are labelled 
'[X]'.

    [X] bsd           [X] base61.tgz    
[X] man61.tgz

    [X] bsd.rd        [X] comp61.tgz

Set name(s)? (or 'abort' or 'done') 
[done]

Directory does not contain SHA256.sig. 
Continue without verification? [no] yes

ftp: Can't open file ///mnt2///bsd: No 
such file or directory

Installation of bsd failed. Continue 
anyway? [no]

Location of sets? (disk http nfs or 
'done') [http] disk

Is the disk partition already mounted? 
[no]

Available disks are: sd0 sd1.

Which disk contains the install media? 
(or 'done') [sd1]

Pathname to the sets? (or 'done') 
[6.1/armv7] /

INSTALL.armv7 not found. Use sets found 
here anyway? [no] yes



Select sets by entering a set name, a 
file name pattern or 'all'. De-select

sets by prepending a '-', e.g.: 
'-game*'. Selected sets are labelled 
'[X]'.

    [X] bsd           [X] base61.tgz    
[X] man61.tgz

    [X] bsd.rd        [X] comp61.tgz

Set name(s)? (or 'abort' or 'done') 
[done]

Directory does not contain SHA256.sig. 
Continue without verification? [no] yes

Installing bsd          100% 
|**************************|  4984 KB   
 00:01

Installing bsd.rd       100% 
|**************************| 10650 KB   
 00:02

Installing base61.tgz   100% 
|**************************| 66378 KB   
 00:44

Extracting etc.tgz      100% 
|**************************|   189 KB   
 00:00

Installing comp61.tgz   100% 
|**************************| 42070 KB   
 00:33

Installing man61.tgz    100% 
|**************************|  7154 KB   
 00:10

Location of sets? (disk http nfs or 
'done') [done]



What timezone are you in? ('?' for 
list) [Canada/Mountain] Canada/Pacific

Saving configuration files...done.

Making all device nodes...done.

Relinking to create unique 
kernel...done.



CONGRATULATIONS! Your OpenBSD install 
has been successfully completed!

To boot the new system, enter 'reboot' 
at the command prompt.

When you login to your new system the 
first time, please read your mail

using the 'mail' command.



# reboot

syncing disks... done

ehci0: halt timeout

ehci0: reset timeout

rebooting...

’%’%’%’%’%’%pC’%UI’%Á²MA1’%’%’%’%y’%A’%]’%’%A’%’%’%A’%’%’%’%’%’%’%’%’%’%5)I5’%’%
 512 MiB

Trying to boot from MMC1





U-Boot 2017.07 (Aug 15 2017 - 07:39:48 
-0600) Allwinner Technology



CPU:   Allwinner H3 (SUN8I 1680)

Model: Xunlong Orange Pi One

DRAM:  512 MiB

MMC:   SUNXI SD/MMC: 0

*** Warning - bad CRC, using default 
environment



In:    serial

Out:   serial

Err:   serial

Net:   phy interface0

eth0: ethernet@1c30000

starting USB...

USB0:   USB EHCI 1.00

USB1:   USB OHCI 1.0

scanning bus 0 for devices... 2 USB 
Device(s) found

       scanning usb for storage 
devices... 1 Storage Device(s) found

Hit any key to stop autoboot:  0

switch to partitions #0, OK

mmc0 is current device

Scanning mmc 0:1...

Found EFI removable media binary 
efi/boot/bootarm.efi

reading efi/boot/bootarm.efi

65448 bytes read in 40 ms (1.6 MiB/s)

## Starting EFI application at 42000000 
...

Scanning disks on usb...

Scanning disks on mmc...

MMC Device 1 not found

MMC Device 2 not found

MMC Device 3 not found

Found 5 disks

>> OpenBSD/armv7 BOOTARM 0.9

boot>

booting sd0a:/bsd: 
3888808+165360+497048 
[282030+90+515936+242597]=0x557e60



OpenBSD/armv7 booting ...

arg0 0xc0857e60 arg1 0x0 arg2 
0x48000000

Allocating page tables

freestart = 0x40858000, free_pages = 
128936 (0x0001f7a8)

IRQ stack: p0x40886000 v0xc0886000

ABT stack: p0x40887000 v0xc0887000

UND stack: p0x40888000 v0xc0888000

SVC stack: p0x40889000 v0xc0889000

Creating L1 page table at 0x40858000

Mapping kernel

Constructing L2 page tables

undefined page pmap [ using 1041112 
bytes of bsd ELF symbol table ]

board type: 0

Copyright (c) 1982, 1986, 1989, 1991, 
1993

        The Regents of the University 
of California.  All rights reserved.

Copyright (c) 1995-2017 OpenBSD. All 
rights reserved.  
https://www.OpenBSD.org



OpenBSD 6.1-current (GENERIC) #36: Wed 
Aug 16 00:34:41 MDT 2017

    
deraadt@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC

real mem  = 536870912 (512MB)

avail mem = 517419008 (493MB)

mainbus0 at root: Xunlong Orange Pi One

cpu0 at mainbus0: ARM Cortex-A7 r0p5 
(ARMv7)

cpu0: DC enabled IC enabled WB disabled 
EABT branch prediction enabled

cpu0: 32KB(32b/l,2way) I-cache, 
32KB(64b/l,4way) wr-back D-cache

cortex0 at mainbus0

sxiccmu0 at mainbus0

psci0 at mainbus0

simplebus0 at mainbus0: "soc"

sxiccmu1 at simplebus0

sxipio0 at simplebus0: 94 pins

sxipio1 at simplebus0: 12 pins

sximmc0 at simplebus0

sdmmc0 at sximmc0: 4-bit, sd 
high-speed, mmc high-speed, dma

ehci0 at simplebus0

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 configuration 1 interface 
0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1

ehci1 at simplebus0

usb1 at ehci1: USB revision 2.0

uhub1 at usb1 configuration 1 interface 
0 "Generic EHCI root hub" rev 2.00/1.00 
addr 1

sxidog0 at simplebus0

com0 at simplebus0: ns16550, no working 
fifo

com0: console

ampintc0 at simplebus0 nirq 160, ncpu 4

sxirtc0 at simplebus0

gpio0 at sxipio0: 32 pins

gpio1 at sxipio0: 32 pins

gpio2 at sxipio0: 32 pins

gpio3 at sxipio0: 32 pins

gpio4 at sxipio0: 32 pins

gpio5 at sxipio0: 32 pins

gpio6 at sxipio0: 32 pins

gpio7 at sxipio1: 32 pins

agtimer0 at mainbus0: tick rate 24000 
KHz

scsibus0 at sdmmc0: 2 targets, 
initiator 0

sd0 at scsibus0 targ 1 lun 0: <SD/MMC, 
SL16G, 0080> SCSI2 0/direct removable

sd0: 15193MB, 512 bytes/sector, 
31116288 sectors

umass0 at uhub1 port 1 configuration 1 
interface 0 "Lexar JD Secure II +" rev 
2.00/11.00 addr 2

umass0: using SCSI over Bulk-Only

scsibus1 at umass0: 2 targets, 
initiator 0

sd1 at scsibus1 targ 1 lun 0: <Lexar, 
JD Secure II +, 1100> SCSI0 0/direct 
removable serial.05dca732012100015339

sd1: 1912MB, 512 bytes/sector, 3915776 
sectors

vscsi0 at root

scsibus2 at vscsi0: 256 targets

softraid0 at root

scsibus3 at softraid0: 256 targets

boot device: sd0

root on sd0a (4190573d45fde00d.a) swap 
on sd0b dump on sd0b

Automatic boot in progress: starting 
file system checks.

/dev/sd0a (4190573d45fde00d.a): file 
system is clean; not checking

/dev/sd0l (4190573d45fde00d.l): file 
system is clean; not checking

/dev/sd0d (4190573d45fde00d.d): file 
system is clean; not checking

/dev/sd0f (4190573d45fde00d.f): file 
system is clean; not checking

/dev/sd0g (4190573d45fde00d.g): file 
system is clean; not checking

/dev/sd0h (4190573d45fde00d.h): file 
system is clean; not checking

/dev/sd0k (4190573d45fde00d.k): file 
system is clean; not checking

/dev/sd0j (4190573d45fde00d.j): file 
system is clean; not checking

/dev/sd0e (4190573d45fde00d.e): file 
system is clean; not checking

setting tty flags

pf enabled

starting network

reordering libraries: done.

openssl: generating isakmpd/iked RSA 
keys... done.

ssh-keygen: generating new host keys: 
RSA DSA ECDSA ED25519

starting early daemons: syslogd pflogd 
ntpd.

starting RPC daemons:.

savecore: no core dump

checking quotas: done.

clearing /tmp

kern.securelevel: 0 -> 1

creating runtime link editor directory 
cache.

preserving editor files.

starting network daemons: sshd smtpd 
sndiod.

Path to firmware: 
http://firmware.openbsd.org/firmware/snapshots/

No devices found which need firmware 
files to be downloaded.

starting local daemons: cron.

Wed Aug 16 00:14:28 PDT 2017



OpenBSD/armv7 (orangepibsd.graf.lan) 
(console)



login: sysadmin

Password:

OpenBSD 6.1-current (GENERIC) #36: Wed 
Aug 16 00:34:41 MDT 2017



Welcome to OpenBSD: The proactively 
secure Unix-like operating system.



Please use the sendbug(1) utility to 
report bugs in the system.

Before reporting a bug, please try to 
reproduce it with the latest

version of the code.  With bug reports, 
please try to ensure that

enough information to reproduce the 
problem is enclosed, and if a

known fix for it exists, include that 
as well.



You have new mail.

$ su

Password:

# top

load averages:  0.53,  0.25,  0.10      
          orangepibsd.graf.lan 00:15:12

25 processes: 24 idle, 1 on processor   
                               up  0:02

CPU states: 34.0% user,  0.0% nice, 
14.7% system,  0.0% interrupt, 51.3% 
idle

Memory: Real: 17M/142M act/tot Free: 
352M Cache: 98M Swap: 0K/768M



  PID USERNAME PRI NICE  SIZE   RES 
STATE     WAIT      TIME    CPU COMMAND

    1 root      10    0  372K  288K 
idle      wait      0:01  0.00% init

61006 _smtpd     2    0 1512K 3028K 
idle      kqread    0:00  0.00% smtpd

67910 _smtpd     2    0 1364K 2916K 
idle      kqread    0:00  0.00% smtpd

57359 _smtpd     2    0 1556K 3016K 
idle      kqread    0:00  0.00% smtpd

60385 _smtpq     2    0 1488K 2956K 
idle      kqread    0:00  0.00% smtpd

84229 _smtpd     2    0 1208K 2764K 
idle      kqread    0:00  0.00% smtpd

55523 root       2    0  440K 1432K 
idle      netio     0:00  0.00% syslogd

15734 _smtpd     2    0 1196K 2640K 
idle      kqread    0:00  0.00% smtpd

79313 sysadmin  18    0  668K  540K 
sleep     pause     0:00  0.00% ksh

 9820 _syslogd   2    0  772K 1240K 
sleep     kqread    0:00  0.00% syslogd

68536 root       2    0 1528K 1864K 
idle      kqread    0:00  0.00% smtpd

 4933 _ntp       2    0  628K 1676K 
sleep     poll      0:00  0.00% ntpd

 8686 _ntp       2  -20  696K 1772K 
sleep     poll      0:00  0.00% ntpd

65231 root      18    0  672K  536K 
sleep     pause     0:00  0.00% ksh

52022 root      28    0  556K 1364K 
onproc    -         0:00  0.00% top

59446 root       2    0  640K 1012K 
sleep     poll      0:00  0.00% cron

45095 _slaacd    2    0  672K  556K 
idle      kqread    0:00  0.00% slaacd

# df -h

Filesystem     Size    Used   Avail 
Capacity  Mounted on

/dev/sd0a      491M   42.9M    423M     
9%    /

/dev/sd0l      3.4G   18.0K    3.2G     
0%    /home

/dev/sd0d      668M    6.0K    634M     
0%    /tmp

/dev/sd0f      1.2G    339M    828M    
29%    /usr

/dev/sd0g      708M    2.0K    673M     
0%    /usr/X11R6

/dev/sd0h      2.2G    216K    2.1G     
0%    /usr/local

/dev/sd0k      3.2G    2.0K    3.1G     
0%    /usr/obj

/dev/sd0j      1.1G    2.0K    1.1G     
0%    /usr/src

/dev/sd0e      976M    2.6M    925M     
0%    /var

# ifconfig

lo0: 
flags=8049<UP,LOOPBACK,RUNNING,MULTICAST>
 mtu 32768

        index 2 priority 0 llprio 3

        groups: lo

        inet6 ::1 prefixlen 128

        inet6 fe80::1%lo0 prefixlen 64 
scopeid 0x2

        inet 127.0.0.1 netmask 
0xff000000

enc0: flags=0<>

        index 1 priority 0 llprio 3

        groups: enc

        status: active

pflog0: flags=141<UP,RUNNING,PROMISC> 
mtu 33168

        index 3 priority 0 llprio 3

        groups: pflog

#

Reply via email to