PEBCAK...
Obviously I did not use current, but 6.2.
(I happily clicked from openbsd.org/armv7.html to install instructions, which 
put me into /6.2/)

Will test again with current now.

Sorry for the noise.

regards,
Robert


On Fri, 5 Jan 2018 11:56:13 +0100
Robert <info...@die-optimisten.net> wrote:

> Hi,
> 
> I'm trying to install OpenBSD to the SD card on a Banana Pi M2+, but I get 
> "Input/output error" when I try to access the SD card.
> 
> Preparations (current/20180103):
> 1) dd if=miniroot-cubie-62.fs of=/dev/rsdXc
> 2) dd if=/usr/local/share/u-boot/orangepi_plus/u-boot-sunxi-with-spl.bin 
> of=/dev/sdXc bs=1024 seek=8
> 3) mount sdXa and replace dtb with sun8i-h3-bananapi-m2-plus.dtb 
> 
> The installer boots without problems and I can access and use the internal 
> NAND (sd1).
> But accessing the SD card (sd0) gives:
> 
> # fdisk sd0                                                                   
>  
> fdisk: sd0: Input/output error
> 
> It takes about 10 seconds until the error appears.
> 
> I also noted that the NAND sometimes shows up as sd0 and the SD as sd1 (if 
> that's relevant...).
> Armbian works fine using the same SD, so the hardware seems to be ok.
> 
> Any suggestions?
> 
> regards,
> Robert
> 
> 
> U-Boot 2017.09 (Oct 02 2017 - 19:15:15 -0600) Allwinner Technology
> 
> CPU:   Allwinner H3 (SUN8I 1680)
> Model: Xunlong Orange Pi Plus / Plus 2
> DRAM:  1 GiB
> MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
> *** Warning - bad CRC, using default environment
> 
> In:    serial
> Out:   vidconsole
> Err:   vidconsole
> Net:   phy interface7
> eth0: ethernet@1c30000
> starting USB...
> USB0:   USB EHCI 1.00
> USB1:   USB EHCI 1.00
> scanning bus 0 for devices... 1 USB Device(s) found
> scanning bus 1 for devices... 1 USB Device(s) found
>        scanning usb for storage devices... 0 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
> 67372 bytes read in 39 ms (1.6 MiB/s)
> libfdt fdt_check_header(): FDT_ERR_BADMAGIC
> ## Starting EFI application at 42000000 ...
> Scanning disks on usb...
> Scanning disks on mmc...
> ** First descriptor is NOT a primary desc on 1:1 **
> MMC Device 2 not found
> MMC Device 3 not found
> Found 6 disks
> >> OpenBSD/armv7 BOOTARM 1.0  
> boot>   
> cannot open sd0a:/etc/random.seed: No such file or directory
> booting sd0a:/bsd: 2300416+7988936+446336 [174378+90+319856+152368]=0xae1634
> 
> OpenBSD/armv7 booting ...
> arg0 0xc0de1634 arg1 0x0 arg2 0x48000000
> Allocating page tables
> freestart = 0x40de2000, free_pages = 258590 (0x0003f21e)
> IRQ stack: p0x40e10000 v0xc0e10000
> ABT stack: p0x40e11000 v0xc0e11000
> UND stack: p0x40e12000 v0xc0e12000
> SVC stack: p0x40e13000 v0xc0e13000
> Creating L1 page table at 0x40de4000
> 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.2 (RAMDISK) #85: Wed Oct  4 01:11:47 MDT 2017
>     dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/RAMDISK
> real mem  = 1073741824 (1024MB)
> avail mem = 1038311424 (990MB)
> mainbus0 at root: Xunlong Orange Pi Plus / Plus 2
> 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
> syscon0 at simplebus0
> 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
> sximmc2 at simplebus0
> sdmmc2 at sximmc2: 8-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
> dwxe0 at simplebus0: address 02:81:00:24:f1:70
> rgephy0 at dwxe0 phy 0: RTL8169S/8110S/8211 PHY, rev. 5
> rgephy1 at dwxe0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
> 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, SC64G, 0080> SCSI2 0/direct removable
> sd0: 60906MB, 512 bytes/sector, 124735488 sectors
> scsibus1 at sdmmc2: 2 targets, initiator 0
> sd1 at scsibus1 targ 1 lun 0: <Samsung, 8WPD3R, 0000> SCSI2 0/direct removable
> sd1: 7456MB, 512 bytes/sector, 15269888 sectors
> (manufacturer 0x2d0, product 0xa9a6)at sdmmc1 function 1 not configured
> (manufacturer 0x2d0, product 0xa9a6)at sdmmc1 function 2 not configured
> boot device: sd0
> disklabels not read: sd0 sd1
> 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.2 installation program.
> (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s
> # fdisk sd0                                                                   
>  
> sximmc0: timeout updating clock
> fdisk: sd0: Input/output error
> # 
> 

Reply via email to