Yesterday I was enjoying working with OpenBSD on my orange pi one.

Today when I turned it on it would not boot properly with an error setting
up the mmc:

 

sximmc0: timeout updating clock

sdmmc0: can't change bus clock

sdmmc0: mem init failed

 

which caused a panic halt because the system cannot access the root device.

 

Has anyone ever experienced this or have any suggestions on how to proceed?

 

After much experimenting I discovered this only happens after a power off
condition.

The only way to recover is to rebuild. 

The mmc seems to be ok as I can mount and read it on the system I use to
reload the miniroot.

 

The initial boot of the miniroot is fine:

 

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

 

After the install reboot to the loaded os everything seems to be fine:

 

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

 

Doing a warm reboot at this point also works.

 

But when I do a shutdown and power off and on the boot fails:

 

gpio7 at sxipio1: 32 pins

sximmc0: timeout updating clock

sdmmc0: can't change bus clock

sdmmc0: mem init failed

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

sximmc0: timeout updating clock

boot device: sd0

panic: root device (fe6ff55cf64a1b36) not found

Stopped at      $d:     ldrb    r15, [r15, r15, ror r15]!

    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND

*     0      0      0     0x10000      0x200    0  swapper

panic+0x18

        scp=0xc032ec10 rlv=0xc03f0b98 (setroot+0x91c)

        rsp=0xc088aec0 rfp=0xc088af8c

setroot+0xc

        scp=0xc03f0288 rlv=0xc05073f0 (diskconf+0x3c)

        rsp=0xc088af90 rfp=0xc088afac

        r10=0xc074d5e8 r9=0xc074d448 r8=0xc074d250 r7=0xc074d5b8

        r6=0x00000400 r5=0xc06bd0f4 r4=0xc06d5194

diskconf+0xc

        scp=0xc05073c0 rlv=0xc058ca0c (main+0x45c)

        rsp=0xc088afb0 rfp=0xc088afec

        r5=0xc074d1b4 r4=0xc0749bc4

main+0xc

        scp=0xc058c5bc rlv=0xc0575434 (kernel_text+0x58)

        rsp=0xc088aff0 rfp=0xc088affc

        r10=0x59f49014 r9=0x40000000 r8=0xc073e0f8 r7=0x40000000

        r6=0x48000000 r5=0x00000000 r4=0x40300114

kernel_text+0x54

        scp=0xc0575430 rlv=0xc05aca1c (armv7_dcache_wbinv_all+0x84)

        rsp=0xc088b000 rfp=0x00000000

 <https://www.openbsd.org/ddb.html> https://www.openbsd.org/ddb.html
describes the minimum info required in bug

reports.  Insufficient info makes it difficult to find and fix bugs.

ddb>

 

The full console log is attached.

 

ÿþ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...

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

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

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] none

'none' is not a valid choice.

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 sd1.

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

Available disks are: sd1.

Which disk do you wish to initialize? 
(or 'done') [done]

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

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

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

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

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

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

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

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

/dev/sd0e (fe6ff55cf64a1b36.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] 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:42

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

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

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

’%’%’%     
’%H’%’%’%’%AMA1’%’%’%’%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 35 ms (1.8 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: 
3897112+165848+497272 
[281990+90+515936+242597]=0x558100



OpenBSD/armv7 booting ...

arg0 0xc0858100 arg1 0x0 arg2 
0x48000000

Allocating page tables

freestart = 0x40859000, free_pages = 
128935 (0x0001f7a7)

IRQ stack: p0x40887000 v0xc0887000

ABT stack: p0x40888000 v0xc0888000

UND stack: p0x40889000 v0xc0889000

SVC stack: p0x4088a000 v0xc088a000

Creating L1 page table at 0x4085c000

Mapping kernel

Constructing L2 page tables

undefined page pmap [ using 1041072 
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 = 517414912 (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 (fe6ff55cf64a1b36.a) swap 
on sd0b dump on sd0b

Automatic boot in progress: starting 
file system checks.

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

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

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

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

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

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

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

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

/dev/sd0e (fe6ff55cf64a1b36.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:04:01 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:

# reboot

syncing disks... done

ehci0: halt timeout

ehci0: reset timeout

rebooting...

-’%’%     
\H’%’%’%’%AMA1’%’%’%’%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 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>

booting sd0a:/bsd: 
3889000+166040+497068 
[281405+90+515936+242597]=0x557eac



OpenBSD/armv7 booting ...

arg0 0xc0857eac 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 1040488 
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 (fe6ff55cf64a1b36.a) swap 
on sd0b dump on sd0b

Automatic boot in progress: starting 
file system checks.

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

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

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

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

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

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

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

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

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

setting tty flags

pf enabled

starting network

reordering libraries: done.

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.

starting local daemons: cron.

Wed Aug 16 00:05:25 PDT 2017



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



login: sysadmin

Password:

Last login: Wed Aug 16 00:04:13 on 
console

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:

# shutdown -h now

Shutdown NOW!

shutdown: [pid 57203]

#

*** FINAL System shutdown message from 
sysadmin@orangepibsd.graf.lan ***

System going down IMMEDIATELY







System shutdown time has arrived

syncing disks... done

ehci0: halt timeout

ehci0: reset timeout

The operating system has halted.

Please press any key to reboot.



AT THIS POINT I UNPLUGGED THE POWER 
SUPPLY AND PLUGGED IT BACK IN TO 
RESTART THE SYSTEM.



’%’%      `

         
¤T’%’%’%AMA1’%’%’%’%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 35 ms (1.8 MiB/s)

libfdt fdt_check_header(): 
FDT_ERR_BADMAGIC

## 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: 
3889668+165424+495644 
[281306+90+515936+242597]=0x557650



OpenBSD/armv7 booting ...

arg0 0xc0857650 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 1040388 
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

agtimer0 at mainbus0: tick rate 24000 
KHz

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

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

sximmc0: timeout updating clock

sdmmc0: can't change bus clock

sdmmc0: mem init failed

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

sximmc0: timeout updating clock

boot device: sd0

panic: root device (fe6ff55cf64a1b36) 
not found

Stopped at      $d:     ldrb    r15, 
[r15, r15, ror r15]!

    TID    PID    UID     PRFLAGS     
PFLAGS  CPU  COMMAND

*     0      0      0     0x10000      
0x200    0  swapper

panic+0x18

        scp=0xc032ec10 rlv=0xc03f0b98 
(setroot+0x91c)

        rsp=0xc088aec0 rfp=0xc088af8c

setroot+0xc

        scp=0xc03f0288 rlv=0xc05073f0 
(diskconf+0x3c)

        rsp=0xc088af90 rfp=0xc088afac

        r10=0xc074d5e8 r9=0xc074d448 
r8=0xc074d250 r7=0xc074d5b8

        r6=0x00000400 r5=0xc06bd0f4 
r4=0xc06d5194

diskconf+0xc

        scp=0xc05073c0 rlv=0xc058ca0c 
(main+0x45c)

        rsp=0xc088afb0 rfp=0xc088afec

        r5=0xc074d1b4 r4=0xc0749bc4

main+0xc

        scp=0xc058c5bc rlv=0xc0575434 
(kernel_text+0x58)

        rsp=0xc088aff0 rfp=0xc088affc

        r10=0x59f49014 r9=0x40000000 
r8=0xc073e0f8 r7=0x40000000

        r6=0x48000000 r5=0x00000000 
r4=0x40300114

kernel_text+0x54

        scp=0xc0575430 rlv=0xc05aca1c 
(armv7_dcache_wbinv_all+0x84)

        rsp=0xc088b000 rfp=0x00000000

https://www.openbsd.org/ddb.html 
describes the minimum info required in 
bug

reports.  Insufficient info makes it 
difficult to find and fix bugs.

ddb>

Reply via email to