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.
ÿþT r y i n g t o b o o t f r o m M M C 1
U - B o o t 2 0 1 7 . 0 7 ( A u g 1 5 2 0 1 7 - 0 7 : 3 9 : 4 8
- 0 6 0 0 ) A l l w i n n e r T e c h n o l o g y
C P U : A l l w i n n e r H 3 ( S U N 8 I 1 6 8 0 )
M o d e l : X u n l o n g O r a n g e P i O n e
D R A M : 5 1 2 M i B
M M C : S U N X I S D / M M C : 0
* * * W a r n i n g - b a d C R C , u s i n g d e f a u l t
e n v i r o n m e n t
I n : s e r i a l
O u t : s e r i a l
E r r : s e r i a l
N e t : p h y i n t e r f a c e 0
e t h 0 : e t h e r n e t @ 1 c 3 0 0 0 0
s t a r t i n g U S B . . .
U S B 0 : U S B E H C I 1 . 0 0
U S B 1 : U S B O H C I 1 . 0
s c a n n i n g b u s 0 f o r d e v i c e s . . . 2 U S B
D e v i c e ( s ) f o u n d
s c a n n i n g u s b f o r s t o r a g e
d e v i c e s . . . 1 S t o r a g e D e v i c e ( s ) f o u n d
H i t a n y k e y t o s t o p a u t o b o o t : 0
s w i t c h t o p a r t i t i o n s # 0 , O K
m m c 0 i s c u r r e n t d e v i c e
S c a n n i n g m m c 0 : 1 . . .
r e a d i n g / s u n 8 i - h 3 - o r a n g e p i - o n e . d t b
1 4 4 3 6 b y t e s r e a d i n 2 5 m s ( 5 6 3 . 5 K i B / s )
F o u n d E F I r e m o v a b l e m e d i a b i n a r y
e f i / b o o t / b o o t a r m . e f i
r e a d i n g e f i / b o o t / b o o t a r m . e f i
6 5 4 4 8 b y t e s r e a d i n 3 6 m s ( 1 . 7 M i B / s )
# # S t a r t i n g E F I a p p l i c a t i o n a t 4 2 0 0 0 0 0 0
. . .
S c a n n i n g d i s k s o n u s b . . .
S c a n n i n g d i s k s o n m m c . . .
M M C D e v i c e 1 n o t f o u n d
M M C D e v i c e 2 n o t f o u n d
M M C D e v i c e 3 n o t f o u n d
F o u n d 5 d i s k s
>