Hi,
  I'm back trying to make the pcDuino3_Nano board
work with OpenBSD.

The u-boot version shipped with the board:
U-Boot 2011.09-rc1 (Jul 03 2013 - 17:40:47) Allwinner Technology

Is not able to load openbsd from sd card.

Back in august I wrote to the list with a config option for
u-boot 2015-07 to make the bsd.umg image load; that
was:
[*] Enable workarounds for booting old kernels 
under ARM Architecture of the uboot menuconfig.

Now, using the last uboot git version

U-Boot 2015.10-rc3-00297-g1a9c229 (Sep 27 2015 - 11:01:54 +0200) Allwinner 
Technology

it would stop at dram initialization:

DRAM:Timeout initialising DRAM


I had to change another config option to make it work:

"ARM Architecture" -> "sunxi dram timings" set to "JEDEC DDR3-800E / DDR3-1066G 
/ DDR3-1333J"

instead of "Magic vendor timings from Android"


Now I'm back to square one with the same problem: openbsd loads fine but stuck 
at the
end of hardware initialization:

[see output1.log]


The sd0 (a SATA disk) device is found.

I've tried to run the same bsd.umg binary in QEMU, and it has the same 
behaviour; but it spews some
other messages after the gpio:

$ qemu-system-arm -M cubieboard -kernel bsd.rd.SUNXI.umg -m 1024M

[see output2.log]


Now I compiled the bsd.rd with debug option activated: and here the
results:

[see output3.log]


and this is without the external SATA disk:


[see output4.log]


I've checked the source code (I'm not able yet
to debug live the code...any suggestion on how to
setup that?) and adding some printf()s here and
there I saw that the code stops on sys/kern/init_main.c@:

while (config_pending)
        (void) tsleep((void *)&config_pending, PWAIT, "cfpend", 0);

the threads are woken up and I see the disk_attach_callback()s for
each of the devices (rd and sd) but then something goes wrong
and 

dostartuphooks();

is never reached.

I've verified the disk_attach_callback() calls the final wakeup().

Also, in the tsleep() loop, the while() tests on config_pending=2.

Any hint on what could be the problem?
It seems like the thread waiting for the deferred autoconfiguration
doesn't wake up.




Leonardo.




U-Boot SPL 2015.10-rc3-00297-g1a9c229 (Sep 27 2015 - 11:01:54)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


U-Boot 2015.10-rc3-00297-g1a9c229 (Sep 27 2015 - 11:01:54 +0200) Allwinner 
Technology

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

In:    serial
Out:   serial
Err:   serial
SCSI:  SUNXI SCSI INIT
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... 1 USB Device(s) found
Hit any key to stop autoboot:  0 
=> fatload mmc 0 0x48000000 bsd.umg
reading bsd.umg
8028428 bytes read in 452 ms (16.9 MiB/s)
=> 
=> 
=> bootm 0x48000000
## Booting kernel from Legacy Image at 48000000 ...
   Image Name:   boot
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8028364 Bytes = 7.7 MiB
   Load Address: 40300000
   Entry Point:  40300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


OpenBSD/sunxi booting ...
arg0 0x0 arg1 0x10bb arg2 0x40000100
atag core flags 0 pagesize 0 rootdev 0
atag serial 0x16516604:080264c0
atag mem start 0x40000000 size 0x40000000
bootfile: 
bootargs: 
memory size derived from u-boot
bootconf.mem[0].address = 40000000 pages 262144/0x40000000
Allocating page tables
freestart = 0x40aa9000, free_pages = 259415 (0x0003f557)
IRQ stack: p0x40ad7000 v0xc0ad7000
ABT stack: p0x40ad8000 v0xc0ad8000
UND stack: p0x40ad9000 v0xc0ad9000
SVC stack: p0x40ada000 v0xc0ada000
Creating L1 page table at 0x40aac000
Mapping kernel
Constructing L2 page tables
undefined page pmap board type: 4283
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.8-current (RAMDISK) #23: Mon Sep 21 16:37:27 AEST 2015
    j...@armv7.jsg.id.au:/usr/src/sys/arch/armv7/compile/RAMDISK
real mem  = 1073741824 (1024MB)
avail mem = 1041674240 (993MB)
mainbus0 at root
cortex0 at mainbus0
ampintc0 at cortex0 nirq 160
agtimer0 at cortex0: tick rate 24000 KHz
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
sunxi0 at mainbus0: Allwinner A20
sxipio0 at sunxi0
sxiccmu0 at sunxi0
sxitimer0 at sunxi0: ticktimer 100hz @ 32KHz
sxitimer1 at sunxi0: stattimer 128hz @ 32KHz
sxitimer2 at sunxi0: cntrtimer @ 32KHz
sxidog0 at sunxi0
sxirtc0 at sunxi0
sxiuart0 at sunxi0: console
sxiuart1 at sunxi0
sxiuart2 at sunxi0
sxiuart3 at sunxi0
sxiuart4 at sunxi0
sxiuart5 at sunxi0
sxiuart6 at sunxi0
sxiuart7 at sunxi0
sxie0 at sunxi0, address 02:04:08:02:64:c0
rgephy0 at sxie0 phy 0: RTL8169S/8110S/8211 PHY, rev. 5
rgephy1 at sxie0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
ahci0 at sunxi0 AHCI 1.1
ahci0: port 0: 3.0Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD10JPVX-22J, 01.0> SCSI3 0/direct 
fixed naa.50014ee65ac04a9a
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
ehci0 at sunxi0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
ehci1 at sunxi0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
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


OpenBSD/sunxi booting ...
arg0 0x0 arg1 0x1008 arg2 0x40000100
atag core flags 1 pagesize 1000 rootdev 0
atag mem start 0x40000000 size 0x40000000
bootfile: 
bootargs: 
memory size derived from u-boot
bootconf.mem[0].address = 40000000 pages 262144/0x40000000
Allocating page tables
freestart = 0x40aa9000, free_pages = 259415 (0x0003f557)
IRQ stack: p0x40ad7000 v0xc0ad7000
ABT stack: p0x40ad8000 v0xc0ad8000
UND stack: p0x40ad9000 v0xc0ad9000
SVC stack: p0x40ada000 v0xc0ada000
Creating L1 page table at 0x40aac000
Mapping kernel
Constructing L2 page tables
undefined page pmap board type: 4104
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.8-current (RAMDISK) #23: Mon Sep 21 16:37:27 AEST 2015
    j...@armv7.jsg.id.au:/usr/src/sys/arch/armv7/compile/RAMDISK
real mem  = 1073741824 (1024MB)
avail mem = 1041674240 (993MB)
mainbus0 at root
cpu0 at mainbus0: ARM Cortex A8 rev 0 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 16KB(64b/l,4way) I-cache, 16KB(64b/l,4way) wr-back D-cache
sunxi0 at mainbus0: Allwinner A1x
sxipio0 at sunxi0
sxiccmu0 at sunxi0
a1xintc0 at sunxi0
sxitimer0 at sunxi0: ticktimer 100hz @ 32KHz
sxitimer1 at sunxi0: stattimer 128hz @ 32KHz
sxitimer2 at sunxi0: cntrtimer @ 32KHz
sxidog0 at sunxi0
sxirtc0 at sunxi0
sxiuart0 at sunxi0: console
sxiuart1 at sunxi0
sxiuart2 at sunxi0
sxiuart3 at sunxi0
sxiuart4 at sunxi0
sxiuart5 at sunxi0
sxiuart6 at sunxi0
sxiuart7 at sunxi0
sxie0 at sunxi0, address fe:e1:ba:d0:6b:f0
rlphy0 at sxie0 phy 1: RTL8201L 10/100 PHY, rev. 1
ahci0 at sunxi0: AHCI phy power up failed.
ehci0 at sunxi0
ehci0: halt timeout
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
uhub0: no ports, hub ignored
usb0: root device is not a hub
ehci1 at sunxi0
ehci1: halt timeout
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
uhub1: no ports, hub ignored
usb1: root device is not a hub
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
boot device: lookup '' failed.
root on rd0a swap on rd0b dump on rd0b
WARNING: preposterous clock chip time
WARNING: CHECK AND RESET THE DATE!

U-Boot SPL 2015.10-rc3-00297-g1a9c229 (Sep 30 2015 - 21:47:24)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


U-Boot 2015.10-rc3-00297-g1a9c229 (Sep 30 2015 - 21:47:24 +0200) Allwinner 
Technology

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

In:    serial
Out:   serial
Err:   serial
SCSI:  SUNXI SCSI INIT
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... 1 USB Device(s) found
Hit any key to stop autoboot:  0 
=> fatload mmc 0 0x40200000 bsd.umg; bootm 0x40200000
reading bsd.umg
8029540 bytes read in 407 ms (18.8 MiB/s)
## Booting kernel from Legacy Image at 40200000 ...
   Image Name:   boot
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8029476 Bytes = 7.7 MiB
   Load Address: 40300000
   Entry Point:  40300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


OpenBSD/sunxi booting ...
arg0 0x0 arg1 0x10bb arg2 0x40000100
atag core flags 0 pagesize 0 rootdev 0
atag serial 0x16516604:080264c0
atag mem start 0x40000000 size 0x40000000
bootfile: 
bootargs: 
memory size derived from u-boot
bootconf.mem[0].address = 40000000 pages 262144/0x40000000
physmemory: 262144 pages at 0x40000000 -> 0x7fffffff
Allocating page tables
freestart = 0x40aa9000, free_pages = 259415 (0x0003f557)
IRQ stack: p0x40ad7000 v0xc0ad7000
ABT stack: p0x40ad8000 v0xc0ad8000
UND stack: p0x40ad9000 v0xc0ad9000
SVC stack: p0x40ada000 v0xc0ada000
Creating L1 page table at 0x40aac000
Mapping kernel
Constructing L2 page tables
undefined page pmap board type: 4283
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.8-current (RAMDISK) #6: Wed Sep 30 21:51:18 CEST 2015
    r...@cc.my.domain:/usr/src/sys/arch/armv7/compile/RAMDISK
real mem  = 1073741824 (1024MB)
avail mem = 1041674240 (993MB)
mainbus0 at root
cortex0 at mainbus0
ampintc0 at cortex0 nirq 160
agtimer0 at cortex0: tick rate 24000 KHz
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
sunxi0 at mainbus0: Allwinner A20
sxipio0 at sunxi0
sxiccmu0 at sunxi0
sxitimer0 at sunxi0: ticktimer 100hz @ 32KHz
sxitimer1 at sunxi0: stattimer 128hz @ 32KHz
sxitimer2 at sunxi0: cntrtimer @ 32KHz
sxidog0 at sunxi0: ctrl 0 mode 0

sxirtc0 at sunxi0
sxiuart0 at sunxi0: consoleenable irq 33 register 104 bitmask 00000002

sxiuart1 at sunxi0enable irq 34 register 104 bitmask 00000004

sxiuart2 at sunxi0enable irq 35 register 104 bitmask 00000008

sxiuart3 at sunxi0enable irq 36 register 104 bitmask 00000010

sxiuart4 at sunxi0enable irq 49 register 104 bitmask 00020000

sxiuart5 at sunxi0enable irq 50 register 104 bitmask 00040000

sxiuart6 at sunxi0enable irq 51 register 104 bitmask 00080000

sxiuart7 at sunxi0enable irq 52 register 104 bitmask 00100000

sxie0 at sunxi0enable irq 87 register 108 bitmask 00800000
, address 02:04:08:02:64:c0
rgephy0 at sxie0 phy 0: RTL8169S/8110S/8211 PHY, rev. 5
rgephy1 at sxie0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
ahci0 at sunxi0enable irq 88 register 108 bitmask 01000000
 AHCI 1.1
ahci0: port 0: 3.0Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD10JPVX-22J, 01.0> SCSI3 0/direct 
fixed naa.50014ee65ac04a9a
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
ehci0 at sunxi0
enable irq 71 register 108 bitmask 00000080
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
ehci1 at sunxi0
enable irq 72 register 108 bitmask 00000100
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
port 0 pin 0 cfg 2
port 0 pin 1 cfg 2
port 0 pin 2 cfg 2
port 0 pin 3 cfg 2
port 0 pin 4 cfg 2
port 0 pin 5 cfg 2
port 0 pin 6 cfg 2
port 0 pin 7 cfg 2
port 0 pin 8 cfg 2
port 0 pin 9 cfg 2
port 0 pin 10 cfg 2
port 0 pin 11 cfg 2
port 0 pin 12 cfg 2
port 0 pin 13 cfg 2
port 0 pin 14 cfg 2
port 0 pin 15 cfg 2
port 0 pin 16 cfg 2
port 0 pin 17 cfg 2
gpio0 at sxipio0: 18 pins
port 1 pin 0 cfg 2
port 1 pin 1 cfg 2
port 1 pin 2 cfg 0
port 1 pin 3 cfg 0
port 1 pin 4 cfg 0
port 1 pin 5 cfg 0
port 1 pin 6 cfg 0
port 1 pin 7 cfg 0
port 1 pin 8 cfg 1
port 1 pin 9 cfg 0
port 1 pin 10 cfg 0
port 1 pin 11 cfg 0
port 1 pin 12 cfg 0
port 1 pin 13 cfg 0
port 1 pin 14 cfg 0
port 1 pin 15 cfg 0
port 1 pin 16 cfg 0
port 1 pin 17 cfg 0
port 1 pin 18 cfg 0
port 1 pin 19 cfg 0
port 1 pin 20 cfg 0
port 1 pin 21 cfg 0
port 1 pin 22 cfg 2
port 1 pin 23 cfg 2
gpio1 at sxipio0: 24 pins
port 2 pin 0 cfg 0
port 2 pin 1 cfg 0
port 2 pin 2 cfg 0
port 2 pin 3 cfg 0
port 2 pin 4 cfg 0
port 2 pin 5 cfg 0
port 2 pin 6 cfg 0
port 2 pin 7 cfg 0
port 2 pin 8 cfg 0
port 2 pin 9 cfg 0
port 2 pin 10 cfg 0
port 2 pin 11 cfg 0
port 2 pin 12 cfg 0
port 2 pin 13 cfg 0
port 2 pin 14 cfg 0
port 2 pin 15 cfg 0
port 2 pin 16 cfg 0
port 2 pin 17 cfg 0
port 2 pin 18 cfg 0
port 2 pin 19 cfg 0
port 2 pin 20 cfg 0
port 2 pin 21 cfg 0
port 2 pin 22 cfg 0
port 2 pin 23 cfg 0
port 2 pin 24 cfg 0
gpio2 at sxipio0: 25 pins
port 3 pin 0 cfg 0
port 3 pin 1 cfg 0
port 3 pin 2 cfg 0
port 3 pin 3 cfg 0
port 3 pin 4 cfg 0
port 3 pin 5 cfg 0
port 3 pin 6 cfg 0
port 3 pin 7 cfg 0
port 3 pin 8 cfg 0
port 3 pin 9 cfg 0
port 3 pin 10 cfg 0
port 3 pin 11 cfg 0
port 3 pin 12 cfg 0
port 3 pin 13 cfg 0
port 3 pin 14 cfg 0
port 3 pin 15 cfg 0
port 3 pin 16 cfg 0
port 3 pin 17 cfg 0
port 3 pin 18 cfg 0
port 3 pin 19 cfg 0
port 3 pin 20 cfg 0
port 3 pin 21 cfg 0
port 3 pin 22 cfg 0
port 3 pin 23 cfg 0
port 3 pin 24 cfg 0
port 3 pin 25 cfg 0
port 3 pin 26 cfg 0
port 3 pin 27 cfg 0
gpio3 at sxipio0: 28 pins
port 4 pin 0 cfg 0
port 4 pin 1 cfg 0
port 4 pin 2 cfg 0
port 4 pin 3 cfg 0
port 4 pin 4 cfg 0
port 4 pin 5 cfg 0
port 4 pin 6 cfg 0
port 4 pin 7 cfg 0
port 4 pin 8 cfg 0
port 4 pin 9 cfg 0
port 4 pin 10 cfg 0
port 4 pin 11 cfg 0
gpio4 at sxipio0: 12 pins
port 5 pin 0 cfg 2
port 5 pin 1 cfg 2
port 5 pin 2 cfg 2
port 5 pin 3 cfg 2
port 5 pin 4 cfg 2
port 5 pin 5 cfg 2
gpio5 at sxipio0: 6 pins
port 6 pin 0 cfg 0
port 6 pin 1 cfg 0
port 6 pin 2 cfg 0
port 6 pin 3 cfg 0
port 6 pin 4 cfg 0
port 6 pin 5 cfg 0
port 6 pin 6 cfg 0
port 6 pin 7 cfg 0
port 6 pin 8 cfg 0
port 6 pin 9 cfg 0
port 6 pin 10 cfg 0
port 6 pin 11 cfg 0
gpio6 at sxipio0: 12 pins
port 7 pin 0 cfg 0
port 7 pin 1 cfg 0
port 7 pin 2 cfg 1
port 7 pin 3 cfg 1
port 7 pin 4 cfg 0
port 7 pin 5 cfg 0
port 7 pin 6 cfg 1
port 7 pin 7 cfg 0
port 7 pin 8 cfg 0
port 7 pin 9 cfg 0
port 7 pin 10 cfg 0
port 7 pin 11 cfg 1
port 7 pin 12 cfg 0
port 7 pin 13 cfg 0
port 7 pin 14 cfg 0
port 7 pin 15 cfg 0
port 7 pin 16 cfg 0
port 7 pin 17 cfg 0
port 7 pin 18 cfg 0
port 7 pin 19 cfg 0
port 7 pin 20 cfg 0
port 7 pin 21 cfg 0
port 7 pin 22 cfg 0
port 7 pin 23 cfg 0
port 7 pin 24 cfg 0
port 7 pin 25 cfg 0
port 7 pin 26 cfg 0
port 7 pin 27 cfg 0
gpio7 at sxipio0: 28 pins
port 8 pin 0 cfg 0
port 8 pin 1 cfg 0
port 8 pin 2 cfg 0
port 8 pin 3 cfg 0
port 8 pin 4 cfg 0
port 8 pin 5 cfg 0
port 8 pin 6 cfg 0
port 8 pin 7 cfg 0
port 8 pin 8 cfg 0
port 8 pin 9 cfg 0
port 8 pin 10 cfg 0
port 8 pin 11 cfg 0
port 8 pin 12 cfg 0
port 8 pin 13 cfg 0
port 8 pin 14 cfg 0
port 8 pin 15 cfg 0
port 8 pin 16 cfg 0
port 8 pin 17 cfg 0
port 8 pin 18 cfg 0
port 8 pin 19 cfg 0
port 8 pin 20 cfg 0
port 8 pin 21 cfg 0
gpio8 at sxipio0: 22 pins
enable irq 54 register 104 bitmask 00400000
enable irq 55 register 104 bitmask 00800000
Timecounters tick every 10.000 msec
dev=0x1802 chrdev=0x1802 rawdev=0x1802
dev=0x1202 chrdev=0x1202 rawdev=0x1202

U-Boot SPL 2015.10-rc3-00297-g1a9c229 (Sep 30 2015 - 21:47:24)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2


U-Boot 2015.10-rc3-00297-g1a9c229 (Sep 30 2015 - 21:47:24 +0200) Allwinner 
Technology

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

In:    serial
Out:   serial
Err:   serial
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
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... 1 USB Device(s) found
Hit any key to stop autoboot:  0 
=> fatload mmc 0 0x40200000 bsd.umg; bootm 0x40200000
reading bsd.umg
8029540 bytes read in 407 ms (18.8 MiB/s)
## Booting kernel from Legacy Image at 40200000 ...
   Image Name:   boot
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8029476 Bytes = 7.7 MiB
   Load Address: 40300000
   Entry Point:  40300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


OpenBSD/sunxi booting ...
arg0 0x0 arg1 0x10bb arg2 0x40000100
atag core flags 0 pagesize 0 rootdev 0
atag serial 0x16516604:080264c0
atag mem start 0x40000000 size 0x40000000
bootfile: 
bootargs: 
memory size derived from u-boot
bootconf.mem[0].address = 40000000 pages 262144/0x40000000
physmemory: 262144 pages at 0x40000000 -> 0x7fffffff
Allocating page tables
freestart = 0x40aa9000, free_pages = 259415 (0x0003f557)
IRQ stack: p0x40ad7000 v0xc0ad7000
ABT stack: p0x40ad8000 v0xc0ad8000
UND stack: p0x40ad9000 v0xc0ad9000
SVC stack: p0x40ada000 v0xc0ada000
Creating L1 page table at 0x40aac000
Mapping kernel
Constructing L2 page tables
undefined page pmap board type: 4283
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.8-current (RAMDISK) #6: Wed Sep 30 21:51:18 CEST 2015
    r...@cc.my.domain:/usr/src/sys/arch/armv7/compile/RAMDISK
real mem  = 1073741824 (1024MB)
avail mem = 1041674240 (993MB)
mainbus0 at root
cortex0 at mainbus0
ampintc0 at cortex0 nirq 160
agtimer0 at cortex0: tick rate 24000 KHz
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
sunxi0 at mainbus0: Allwinner A20
sxipio0 at sunxi0
sxiccmu0 at sunxi0
sxitimer0 at sunxi0: ticktimer 100hz @ 32KHz
sxitimer1 at sunxi0: stattimer 128hz @ 32KHz
sxitimer2 at sunxi0: cntrtimer @ 32KHz
sxidog0 at sunxi0: ctrl 0 mode 0

sxirtc0 at sunxi0
sxiuart0 at sunxi0: consoleenable irq 33 register 104 bitmask 00000002

sxiuart1 at sunxi0enable irq 34 register 104 bitmask 00000004

sxiuart2 at sunxi0enable irq 35 register 104 bitmask 00000008

sxiuart3 at sunxi0enable irq 36 register 104 bitmask 00000010

sxiuart4 at sunxi0enable irq 49 register 104 bitmask 00020000

sxiuart5 at sunxi0enable irq 50 register 104 bitmask 00040000

sxiuart6 at sunxi0enable irq 51 register 104 bitmask 00080000

sxiuart7 at sunxi0enable irq 52 register 104 bitmask 00100000

sxie0 at sunxi0enable irq 87 register 108 bitmask 00800000
, address 02:04:08:02:64:c0
rgephy0 at sxie0 phy 0: RTL8169S/8110S/8211 PHY, rev. 5
rgephy1 at sxie0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
ahci0 at sunxi0enable irq 88 register 108 bitmask 01000000
 AHCI 1.1
scsibus0 at ahci0: 32 targets
ehci0 at sunxi0
enable irq 71 register 108 bitmask 00000080
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
ehci1 at sunxi0
enable irq 72 register 108 bitmask 00000100
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1
port 0 pin 0 cfg 2
port 0 pin 1 cfg 2
port 0 pin 2 cfg 2
port 0 pin 3 cfg 2
port 0 pin 4 cfg 2
port 0 pin 5 cfg 2
port 0 pin 6 cfg 2
port 0 pin 7 cfg 2
port 0 pin 8 cfg 2
port 0 pin 9 cfg 2
port 0 pin 10 cfg 2
port 0 pin 11 cfg 2
port 0 pin 12 cfg 2
port 0 pin 13 cfg 2
port 0 pin 14 cfg 2
port 0 pin 15 cfg 2
port 0 pin 16 cfg 2
port 0 pin 17 cfg 2
gpio0 at sxipio0: 18 pins
port 1 pin 0 cfg 2
port 1 pin 1 cfg 2
port 1 pin 2 cfg 0
port 1 pin 3 cfg 0
port 1 pin 4 cfg 0
port 1 pin 5 cfg 0
port 1 pin 6 cfg 0
port 1 pin 7 cfg 0
port 1 pin 8 cfg 1
port 1 pin 9 cfg 0
port 1 pin 10 cfg 0
port 1 pin 11 cfg 0
port 1 pin 12 cfg 0
port 1 pin 13 cfg 0
port 1 pin 14 cfg 0
port 1 pin 15 cfg 0
port 1 pin 16 cfg 0
port 1 pin 17 cfg 0
port 1 pin 18 cfg 0
port 1 pin 19 cfg 0
port 1 pin 20 cfg 0
port 1 pin 21 cfg 0
port 1 pin 22 cfg 2
port 1 pin 23 cfg 2
gpio1 at sxipio0: 24 pins
port 2 pin 0 cfg 0
port 2 pin 1 cfg 0
port 2 pin 2 cfg 0
port 2 pin 3 cfg 0
port 2 pin 4 cfg 0
port 2 pin 5 cfg 0
port 2 pin 6 cfg 0
port 2 pin 7 cfg 0
port 2 pin 8 cfg 0
port 2 pin 9 cfg 0
port 2 pin 10 cfg 0
port 2 pin 11 cfg 0
port 2 pin 12 cfg 0
port 2 pin 13 cfg 0
port 2 pin 14 cfg 0
port 2 pin 15 cfg 0
port 2 pin 16 cfg 0
port 2 pin 17 cfg 0
port 2 pin 18 cfg 0
port 2 pin 19 cfg 0
port 2 pin 20 cfg 0
port 2 pin 21 cfg 0
port 2 pin 22 cfg 0
port 2 pin 23 cfg 0
port 2 pin 24 cfg 0
gpio2 at sxipio0: 25 pins
port 3 pin 0 cfg 0
port 3 pin 1 cfg 0
port 3 pin 2 cfg 0
port 3 pin 3 cfg 0
port 3 pin 4 cfg 0
port 3 pin 5 cfg 0
port 3 pin 6 cfg 0
port 3 pin 7 cfg 0
port 3 pin 8 cfg 0
port 3 pin 9 cfg 0
port 3 pin 10 cfg 0
port 3 pin 11 cfg 0
port 3 pin 12 cfg 0
port 3 pin 13 cfg 0
port 3 pin 14 cfg 0
port 3 pin 15 cfg 0
port 3 pin 16 cfg 0
port 3 pin 17 cfg 0
port 3 pin 18 cfg 0
port 3 pin 19 cfg 0
port 3 pin 20 cfg 0
port 3 pin 21 cfg 0
port 3 pin 22 cfg 0
port 3 pin 23 cfg 0
port 3 pin 24 cfg 0
port 3 pin 25 cfg 0
port 3 pin 26 cfg 0
port 3 pin 27 cfg 0
gpio3 at sxipio0: 28 pins
port 4 pin 0 cfg 0
port 4 pin 1 cfg 0
port 4 pin 2 cfg 0
port 4 pin 3 cfg 0
port 4 pin 4 cfg 0
port 4 pin 5 cfg 0
port 4 pin 6 cfg 0
port 4 pin 7 cfg 0
port 4 pin 8 cfg 0
port 4 pin 9 cfg 0
port 4 pin 10 cfg 0
port 4 pin 11 cfg 0
gpio4 at sxipio0: 12 pins
port 5 pin 0 cfg 2
port 5 pin 1 cfg 2
port 5 pin 2 cfg 2
port 5 pin 3 cfg 2
port 5 pin 4 cfg 2
port 5 pin 5 cfg 2
gpio5 at sxipio0: 6 pins
port 6 pin 0 cfg 0
port 6 pin 1 cfg 0
port 6 pin 2 cfg 0
port 6 pin 3 cfg 0
port 6 pin 4 cfg 0
port 6 pin 5 cfg 0
port 6 pin 6 cfg 0
port 6 pin 7 cfg 0
port 6 pin 8 cfg 0
port 6 pin 9 cfg 0
port 6 pin 10 cfg 0
port 6 pin 11 cfg 0
gpio6 at sxipio0: 12 pins
port 7 pin 0 cfg 0
port 7 pin 1 cfg 0
port 7 pin 2 cfg 1
port 7 pin 3 cfg 1
port 7 pin 4 cfg 0
port 7 pin 5 cfg 0
port 7 pin 6 cfg 1
port 7 pin 7 cfg 0
port 7 pin 8 cfg 0
port 7 pin 9 cfg 0
port 7 pin 10 cfg 0
port 7 pin 11 cfg 1
port 7 pin 12 cfg 0
port 7 pin 13 cfg 0
port 7 pin 14 cfg 0
port 7 pin 15 cfg 0
port 7 pin 16 cfg 0
port 7 pin 17 cfg 0
port 7 pin 18 cfg 0
port 7 pin 19 cfg 0
port 7 pin 20 cfg 0
port 7 pin 21 cfg 0
port 7 pin 22 cfg 0
port 7 pin 23 cfg 0
port 7 pin 24 cfg 0
port 7 pin 25 cfg 0
port 7 pin 26 cfg 0
port 7 pin 27 cfg 0
gpio7 at sxipio0: 28 pins
port 8 pin 0 cfg 0
port 8 pin 1 cfg 0
port 8 pin 2 cfg 0
port 8 pin 3 cfg 0
port 8 pin 4 cfg 0
port 8 pin 5 cfg 0
port 8 pin 6 cfg 0
port 8 pin 7 cfg 0
port 8 pin 8 cfg 0
port 8 pin 9 cfg 0
port 8 pin 10 cfg 0
port 8 pin 11 cfg 0
port 8 pin 12 cfg 0
port 8 pin 13 cfg 0
port 8 pin 14 cfg 0
port 8 pin 15 cfg 0
port 8 pin 16 cfg 0
port 8 pin 17 cfg 0
port 8 pin 18 cfg 0
port 8 pin 19 cfg 0
port 8 pin 20 cfg 0
port 8 pin 21 cfg 0
gpio8 at sxipio0: 22 pins
enable irq 54 register 104 bitmask 00400000
enable irq 55 register 104 bitmask 00800000
Timecounters tick every 10.000 msec
dev=0x1202 chrdev=0x1202 rawdev=0x1202


Reply via email to