It seems that "the mistery" is solved - OpenBSD doesn't have support for
ommc http://man.openbsd.org/OpenBSD-current/man4/armv7/ommmc.4 on sunxi
https://www.openbsd.org/armv7.html

Once the miniroot is written to usb stick it is able to install on the same
usb stick.

In the case I am still wrong about this, don't be shy to write it here,
someone might read it in future.

Regards,

Soko Tica

On Sat, Oct 29, 2016 at 10:19 PM, soko.tica <soko.t...@gmail.com> wrote:

> Hello,
>
> I have managed to successfully install -current on BananaPro (allegedly
> the same board as BananaPi plus wi-fi), but the boot can't be completed
> because
> "boot device: lookup 'sd0a:/bsd' failed"
> although it was initially found (as shown in the typescript bellow).
>
> I performed the install(s) from a SD card plugged into micro card slot to
> another SD card plugged into usb card reader. I did edit partition sizes
> suggested by autopartition. Upon completing the install I place the target
> SD card into the micro card slot and try to boot.
>
> Please advise if I am missing something obvious.
>
> Output of the typescript
> ========================
> U-Boot 2016.09 (Sep 20 2016 - 02:39:19 -0600) Allwinner Technology
>
> CPU:   Allwinner A20 (SUN7I)
> Model: LeMaker Banana Pro
> I2C:   ready
> DRAM:  1 GiB
> MMC:   SUNXI SD/MMC: 0
> *** Warning - bad CRC, using default environment
>
> Setting up a 720x576i composite-pal console (overscan 32x20)
> In:    serial
> Out:   vga
> Err:   vga
> SCSI:  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
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> reading /sun7i-a20-bananapro.dtb
> 31159 bytes read in 30 ms (1013.7 KiB/s)
> Found EFI removable media binary efi/boot/bootarm.efi
> reading efi/boot/bootarm.efi
> 64684 bytes read in 41 ms (1.5 MiB/s)
> ## Starting EFI application at 0x42000000 ...
> CACHE: Misaligned operation at range [79f1d000, 79f2ccac]
> 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 6 disks
> >> OpenBSD/armv7 BOOTARM 0.5
> boot>
> cannot open sd0a:/etc/random.seed: No such file or directory
> booting sd0a:/bsd: 2138412+7972140+442552 [80+310912+150523]=0xa8724c
>
> OpenBSD/armv7 booting ...
> arg0 0xc0d8724c arg1 0x0 arg2 0x48000000
> Allocating page tables
> freestart = 0x40d88000, free_pages = 258274 (0x0003f0e2)
> IRQ stack: p0x40db6000 v0xc0db6000
> ABT stack: p0x40db7000 v0xc0db7000
> UND stack: p0x40db8000 v0xc0db8000
> SVC stack: p0x40db9000 v0xc0db9000
> Creating L1 page table at 0x40d88000
> 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-2016 OpenBSD. All rights reserved.
> https://www.OpenBSD.org
>
> OpenBSD 6.0-current (RAMDISK) #0: Tue Oct 25 02:52:36 MDT 2016
>     dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/RAMDISK
> real mem  = 1072078848 (1022MB)
> avail mem = 1037025280 (988MB)
> mainbus0 at root: LeMaker Banana Pro
> 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
> agtimer0 at mainbus0: tick rate 24000 KHz
> sxiccmu0 at mainbus0
> simplebus0 at mainbus0: "soc"
> sxipio0 at simplebus0: 175 pins
> sximmc0 at simplebus0
> sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
> sximmc1 at simplebus0
> sdmmc1 at sximmc1: 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 "Allwinner EHCI root hub" rev
> 2.00/1.00 addr 1
> sxiahci0 at simplebus0: AHCI 1.1
> scsibus0 at sxiahci0: 32 targets
> ehci1 at simplebus0
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Allwinner EHCI root hub" rev
> 2.00/1.00 addr 1
> sxidog0 at simplebus0
> sxirtc0 at simplebus0
> com0 at simplebus0: ns16550, no working fifo
> com0: console
> com1 at simplebus0: ns16550, no working fifo
> com2 at simplebus0: ns16550, no working fifo
> dwge0 at simplebus0
> dwge0: Ethernet address: 02:17:04:40:c0:cc
> rgephy0 at dwge0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
> ampintc0 at simplebus0 nirq 160
> 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
> sximmc0: timeout updating clock
> (manufacturer 0x2d0, product 0xa962)at sdmmc1 function 1 not configured
> (manufacturer 0x2d0, product 0xa962)at sdmmc1 function 2 not configured
> sximmc0: timeout updating clock
> sximmc0: timeout updating clock
> sximmc0: timeout updating clock
> sximmc0: timeout updating clock
> sximmc0: timeout updating clock
> sdmmc0: can't enable card
> sximmc0: timeout updating clock
> boot device: lookup 'sd0a:/bsd' failed.
> root on rd0a swap on rd0b dump on rd0b
> WARNING: clock lost 17099 days
> WARNING: CHECK AND RESET THE DATE!
> erase ^?, werase ^W, kill ^U, intr ^C, status ^T
>
> ===========================
>
> Several times I also tried with interrupting the boot and
>
>       => run findfdt
>       => load mmc 0:1 ${fdt_addr_r} ${fdtfile}
>       => load mmc 0:1 ${kernel_addr_r} efi/boot/bootarm.efi
>       => bootefi ${kernel_addr_r} ${fdt_addr_r}
>
> as per the instructions ftp://ftp.obsd.si/pub/OpenBSD/
> snapshots/armv7/INSTALL.armv7
>
> But with the same result.
>
> Thanks in advance,
>
> Regards,
>
> Soko Tica
>

Reply via email to