I guess that the kernel can't read the HDD connected to the SATA port.
fsck can't find any sector when I run it using bsd.rd.


U-Boot 2016.05 (Jun 23 2016 - 01:28:15 -0600) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Olimex A20-OLinuXino-LIME2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
SCSI:  Target spinup took 0 ms.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst 
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 2 USB Device(s) found
Hit any key to stop autoboot:  2  0 
=> run bootcmd_scsi0 
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: HTS721010G9SA00 Rev: MCZI
            Type: Hard Disk
            Capacity: 95396.2 MB = 93.1 GB (195371568 x 512)
Found 1 device(s).

SCSI device 0: 
    Device 0: (0:0) Vendor: ATA Prod.: HTS721010G9SA00 Rev: MCZI
            Type: Hard Disk
            Capacity: 95396.2 MB = 93.1 GB (195371568 x 512)
... is now current device
Scanning scsi 0:1...
reading /sun7i-a20-olinuxino-lime2.dtb
29895 bytes read in 8 ms (3.6 MiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
reading efi/boot/bootarm.efi
65196 bytes read in 10 ms (6.2 MiB/s)
## Starting EFI application at 0x42000000 ...
Scanning disks on scsi...
Scanning disks on usb...
Scanning disks on mmc...
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 2 disks
>> OpenBSD/armv7 BOOTARM 0.1


|/-\|boot> 


/-\|/-\booting sd0a:/bsd: 
|/-\|3744048/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+139412-\|/-\|/-+479308
 
[64+501840\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+238350-\|/-\|/-\|/-\]=0x4e3df4




OpenBSD/armv7 booting ...

arg0 0x40000000 arg1 0x10bb arg2 0x48000000

Allocating page tables

freestart = 0x407e4000, free_pages = 260124 (0x0003f81c)

IRQ stack: p0x40812000 v0xc0812000

ABT stack: p0x40813000 v0xc0813000

UND stack: p0x40814000 v0xc0814000

SVC stack: p0x40815000 v0xc0815000

Creating L1 page table at 0x407e4000

Mapping kernel

Constructing L2 page tables

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

board type: 4283

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

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

Copyright (c) 1995-2016 OpenBSD. All rights reserved.  http://www.OpenBSD.org


OpenBSD 6.0-current (GENERIC) #20: Mon Aug 15 19:03:19 MDT 2016

    [email protected]:/usr/src/sys/arch/armv7/compile/GENERIC

real mem  = 1073741824 (1024MB)

avail mem = 1044480000 (996MB)

mainbus0 at root: Olimex A20-OLinuXino-LIME2

cpu0 at mainbus0: ARM Cortex A7 rev 4 (ARMv7 core)

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

sunxi0 at mainbus0

sxipio0 at sunxi0: 175 pins

sxiccmu0 at sunxi0

gpio0 at sxipio0: 18 pins

gpio1 at sxipio0: 24 pins

gpio2 at sxipio0: 25 pins

gpio3 at sxipio0: 28 pins

gpio4 at sxipio0: 12 pins

gpio5 at sxipio0: 6 pins

gpio6 at sxipio0: 12 pins

gpio7 at sxipio0: 28 pins

gpio8 at sxipio0: 22 pins

agtimer0 at mainbus0: tick rate 24000 KHz

simplebus0 at mainbus0: "soc"

ehci0 at simplebus0

usb0 at ehci0: USB revision 2.0

uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1

sxiahci0 at simplebus0: AHCI 1.1

sxiahci0: port 0: 1.5Gb/s

scsibus0 at sxiahci0: 32 targets

sd0 at scsibus0 targ 0 lun 0: <ATA, HTS721010G9SA00, MCZI> SCSI3 0/direct fixed 
t10.ATA_HTS721010G9SA00_MPCZN7Y0J9XTDL

sd0: 95396MB, 512 bytes/sector, 195371568 sectors

ehci1 at simplebus0

usb1 at ehci1: USB revision 2.0

uhub1 at usb1 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1

sxidog0 at simplebus0

sxirtc0 at simplebus0

sxiuart0 at simplebus0: console

dwge0 at simplebus0

dwge0: Ethernet address: 02:0f:02:42:01:20

rgephy0 at dwge0 phy 1: RTL8169S/8110S/8211 PHY, rev. 2

ampintc0 at simplebus0 nirq 160

run0 at uhub1 port 1 configuration 1 interface 0 "Ralink 802.11 n WLAN" rev 
2.00/1.01 addr 2

run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 
7c:dd:90:02:47:50

vscsi0 at root

scsibus1 at vscsi0: 256 targets

softraid0 at root

scsibus2 at softraid0: 256 targets

boot device: sd0

root on sd0a (5e1e16eae3186591.a) swap on sd0b dump on sd0b

exec /sbin/init: error 8

init: not found

panic: no init

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

   TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND

*    1      1      0           0          0    0  swapper

panic+0x18

        scp=0xc03c64e8 rlv=0xc0399908 (start_init+0x210)

        rsp=0xcc3bbf48 rfp=0xcc3bbfac

start_init+0x10

        scp=0xc0399708 rlv=0xc05331d0 (proc_trampoline+0x18)

        rsp=0xcc3bbfb0 rfp=0xc0816f54

        r10=0xc06fe60c r9=0x00000000 r8=0xc06fe7b8 r7=0x00000000

        r6=0x00000000 r5=0xca4a2000 r4=0xc03996f8

Bad frame pointer: 0xc0816f54

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

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

ddb> trace

panic+0x18

        scp=0xc03c64e8 rlv=0xc0399908 (start_init+0x210)

        rsp=0xcc3bbf48 rfp=0xcc3bbfac

start_init+0x10

        scp=0xc0399708 rlv=0xc05331d0 (proc_trampoline+0x18)

        rsp=0xcc3bbfb0 rfp=0xc0816f54

        r10=0xc06fe60c r9=0x00000000 r8=0xc06fe7b8 r7=0x00000000

        r6=0x00000000 r5=0xca4a2000 r4=0xc03996f8

Bad frame pointer: 0xc0816f54

ddb> ps

   TID   PPID   PGRP    UID  S       FLAGS  WAIT          COMMAND

 51595      0      0      0  3     0x14200  pgzero        zerothread

 72043      0      0      0  3     0x14200  aiodoned      aiodoned

  1863      0      0      0  3     0x14200  syncer        update

 84365      0      0      0  3     0x14200  cleaner       cleaner

 78275      0      0      0  3     0x14200  reaper        reaper

 80532      0      0      0  3     0x14200  pgdaemon      pagedaemon

 43762      0      0      0  3     0x14200  bored         crynlk

 23050      0      0      0  3     0x14200  bored         crypto

 86258      0      0      0  3     0x14200  pftm          pfpurge

 48084      0      0      0  3     0x14200  usbtsk        usbtask

  3509      0      0      0  3     0x14200  usbatsk       usbatsk

 30447      0      0      0  3     0x14200  bored         softnet

 60192      0      0      0  3     0x14200  bored         systqmp

 98796      0      0      0  3     0x14200  bored         systq

 56322      0      0      0  3  0x40014200                idle0

 71450      0      0      0  3     0x14200  kmalloc       kmthread

*    1      0      0      0  7           0                swapper

     0     -1      0      0  3     0x10200  scheduler     swapper

ddb> show uvm

Current UVM status:

  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12

  255079 VM pages: 1 active, 0 inactive, 0 wired, 254128 free (31775 zero)

  min  10% (25) anon, 10% (25) vnode, 5% (12) vtext

  pages  0 anon, 0 vnode, 0 vtext

  freemin=8502, free-target=11336, inactive-target=0, wired-max=85026

  faults=1, traps=53, intrs=0, ctxswitch=802 fpuswitch=0

  softint=480, syscalls=0, kmapent=23

  fault counts:

    noram=0, noanon=0, noamap=0, pgwait=0, pgrele=0

    ok relocks(total)=0(0), anget(retries)=0(0), amapcopy=0

    neighbor anon/obj pg=0/0, gets(lock/unlock)=0/0

    cases: anon=0, anoncow=0, obj=0, prcopy=0, przero=1

  daemon and swap counts:

    woke=0, revs=0, scans=0, obscans=0, anscans=0

    busy=0, freed=0, reactivate=0, deactivate=0

    pageouts=0, pending=0, nswget=0

    nswapdev=0, nanon=0, nanonneeded=0 nfreeanon=0

    swpages=0, swpginuse=0, swpgonly=0 paging=0

  kernel pointers:

    objs(kern)=0xc06dda1c

ddb> show bcstats

Current Buffer Cache status:

numbufs 16 busymapped 0, delwri 0

kvaslots 409 avail kva slots 409

bufpages 61, dirtypages 0

pendingreads 0, pendingwrites 0

ddb> 

Current Buffer Cache status:

numbufs 16 busymapped 0, delwri 0

kvaslots 409 avail kva slots 409

bufpages 61, dirtypages 0

pendingreads 0, pendingwrites 0

ddb> 


-- 
Juan Francisco Cantero Hurtado http://juanfra.info

Reply via email to