-current with Banana Pi and Orange Pi

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

-current with Banana Pi and Orange Pi

Daniel Bolgheroni-6
Hi,

Trying the latest snapshot on Banana Pi and Orange Pi One stopped
before running the EFI workload.

I suspect it's something obvious when modifying the image, but this used
to work to boot the boards without miniroot just fine.

http://marc.info/?l=openbsd-arm&m=148288574314135&w=2

I'd appreciate any pointer to something that is really obvious that I
missed from following the commit messages.

Thank you.

### Creating/modifying images

## Banana Pi:

# cp miniroot-cubie-60.fs miniroot-bananapi-60.fs
# vnconfig vnd0 miniroot-bananapi-60.fs
# mkdir -p /mnt/vnd0i
# mount /dev/vnd0i /mnt/vnd0i
# rm -rf /mnt/vnd0i/sun7i-a20-cubieboard2.dtb
# cp /usr/local/share/dtb/arm/sun7i-a20-bananapi.dtb /mnt/vnd0i
# dd if=/usr/local/share/u-boot/Bananapi/u-boot-sunxi-with-spl.bin \
> of=/dev/rvnd0c bs=1024 seek=8 conv=notrunc
481+1 records in
481+1 records out
493157 bytes transferred in 0.008 secs (56979434 bytes/sec)
# umount /dev/vnd0i
# vnconfig -u vnd0

## Orange Pi:

# cp miniroot-cubie-60.fs miniroot-orangepione-60.fs
# vnconfig vnd0 miniroot-orangepione-60.fs
# mkdir -p /mnt/vnd0i
# mount /dev/vnd0i /mnt/vnd0i
# rm -rf /mnt/vnd0i/sun7i-a20-cubieboard2.dtb
# cp /usr/local/share/dtb/arm/sun8i-h3-orangepi-one.dtb /mnt/vnd0i
# dd if=/usr/local/share/u-boot/orangepi_one/u-boot-sunxi-with-spl.bin \
> of=/dev/rvnd0c bs=1024 seek=8 conv=notrunc
410+1 records in
410+1 records out
420367 bytes transferred in 0.011 secs (38045705 bytes/sec)
# umount /dev/vnd0i
# vnconfig -u vnd0

### Booting

## Banana Pi:

U-Boot SPL 2017.01 (Feb 24 2017 - 16:56:18)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1

U-Boot 2017.01 (Feb 24 2017 - 16:56:18 -0700) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
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-bananapi.dtb
data abort
pc : [<7ef8939c>]          lr : [<7ef89308>]
reloc pc : [<4a03339c>]    lr : [<4a033308>]
sp : 7af2acd8  ip : 01c0f000     fp : 00000000
r10: 00002000  r9 : 7af35ee0     r8 : 7af2b7c0
r7 : 00000000  r6 : 7af2ad78     r5 : 00000800  r4 : 00000101
r3 : 00000181  r2 : 7af67840     r1 : 00000800  r0 : 00000000
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

## Orange Pi:

U-Boot SPL 2017.01 (Feb 24 2017 - 17:23:29)
DRAM: 512 MiB
Trying to boot from MMC1

U-Boot 2017.01 (Feb 24 2017 - 17:23:29 -0700) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi One
DRAM:  512 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 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 /sun8i-h3-orangepi-one.dtb
data abort
pc : [<5ff8d3a0>]          lr : [<5ff82af0>]
reloc pc : [<4a02b3a0>]    lr : [<4a020af0>]
sp : 5bf3c638  ip : 01c0f000     fp : 5bf77680
r10: 00000001  r9 : 5bf41ee8     r8 : 00000000
r7 : 00000000  r6 : 5bf3c6d8     r5 : 00000002  r4 : 000001c5
r3 : 000002a7  r2 : 5bf77680     r1 : 5bf3c5ec  r0 : 00000002
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

--
db

Reply | Threaded
Open this post in threaded view
|

Re: -current with Banana Pi and Orange Pi

Jonathan Gray-11
On Wed, Mar 01, 2017 at 10:27:06PM -0300, Daniel Bolgheroni wrote:

> Hi,
>
> Trying the latest snapshot on Banana Pi and Orange Pi One stopped
> before running the EFI workload.
>
> I suspect it's something obvious when modifying the image, but this used
> to work to boot the boards without miniroot just fine.
>
> http://marc.info/?l=openbsd-arm&m=148288574314135&w=2
>
> I'd appreciate any pointer to something that is really obvious that I
> missed from following the commit messages.

I don't have any allwinner systems here but perhaps a newer u-boot would
help?

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/u-boot/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- Makefile 18 Feb 2017 12:10:50 -0000 1.15
+++ Makefile 2 Mar 2017 01:37:39 -0000
@@ -6,8 +6,7 @@ FLAVORS= aarch64 arm
 FLAVOR?= arm
 
 COMMENT= U-Boot firmware
-VERSION= 2017.01
-REVISION= 0
+VERSION= 2017.03-rc3
 DISTNAME= u-boot-${VERSION}
 PKGNAME= u-boot-${FLAVOR}-${VERSION}
 FULLPKGNAME= ${PKGNAME}
@@ -78,6 +77,7 @@ SUNXI=\
  orangepi_pc_plus \
  orangepi_plus \
  orangepi_plus2e \
+ orangepi_zero \
  Sinovoip_BPI_M2_plus
 IMX=\
  cm_fx6 \
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/u-boot/distinfo,v
retrieving revision 1.5
diff -u -p -r1.5 distinfo
--- distinfo 10 Jan 2017 02:35:52 -0000 1.5
+++ distinfo 2 Mar 2017 01:39:25 -0000
@@ -1,2 +1,2 @@
-SHA256 (u-boot-2017.01.tar.bz2) = bEJRdfk6S88uyfr1ZY7yeWM9vXhWopPZW9H/UWUo7PI=
-SIZE (u-boot-2017.01.tar.bz2) = 12224884
+SHA256 (u-boot-2017.03-rc3.tar.bz2) = uyhk7kc3ig1hcsHo3d+jlRgWMcBPARTUtBRu5p15SnI=
+SIZE (u-boot-2017.03-rc3.tar.bz2) = 12291993
Index: patches/patch-configs_Sinovoip_BPI_M2_plus_defconfig
===================================================================
RCS file: /cvs/ports/sysutils/u-boot/patches/patch-configs_Sinovoip_BPI_M2_plus_defconfig,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configs_Sinovoip_BPI_M2_plus_defconfig
--- patches/patch-configs_Sinovoip_BPI_M2_plus_defconfig 10 Jan 2017 02:35:52 -0000 1.1
+++ patches/patch-configs_Sinovoip_BPI_M2_plus_defconfig 2 Mar 2017 03:22:12 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-configs_Sinovoip_BPI_M2_plus_defconfig,v 1.1 2017/01/10 02:35:52 jsg Exp $
---- configs/Sinovoip_BPI_M2_plus_defconfig.orig Tue Jan 10 10:44:48 2017
-+++ configs/Sinovoip_BPI_M2_plus_defconfig Tue Jan 10 10:44:48 2017
-@@ -0,0 +1,18 @@
+--- configs/Sinovoip_BPI_M2_plus_defconfig.orig Thu Mar  2 12:44:49 2017
++++ configs/Sinovoip_BPI_M2_plus_defconfig Thu Mar  2 13:02:25 2017
+@@ -0,0 +1,21 @@
 +CONFIG_ARM=y
 +CONFIG_ARCH_SUNXI=y
 +CONFIG_MACH_SUN8I_H3=y
@@ -18,5 +18,8 @@ $OpenBSD: patch-configs_Sinovoip_BPI_M2_
 +# CONFIG_CMD_IMLS is not set
 +# CONFIG_CMD_FLASH is not set
 +# CONFIG_CMD_FPGA is not set
++# CONFIG_SPL_DOS_PARTITION is not set
++# CONFIG_SPL_ISO_PARTITION is not set
++# CONFIG_SPL_EFI_PARTITION is not set
 +CONFIG_SUN8I_EMAC=y
 +CONFIG_USB_EHCI_HCD=y
Index: patches/patch-scripts_Makefile_lib
===================================================================
RCS file: patches/patch-scripts_Makefile_lib
diff -N patches/patch-scripts_Makefile_lib
--- patches/patch-scripts_Makefile_lib 10 Jan 2017 02:35:52 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-scripts_Makefile_lib,v 1.1 2017/01/10 02:35:52 jsg Exp $
---- scripts/Makefile.lib.orig Tue Jan 10 03:57:05 2017
-+++ scripts/Makefile.lib Tue Jan 10 10:44:39 2017
-@@ -311,7 +311,7 @@ quiet_cmd_dtc = DTC     $@
- # Bring in any U-Boot-specific include after the '/dts-v1/;' header
- cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
- cat $< $(if $(u_boot_dtsi),\
-- | sed 's%^/ {$$%\#include \"$(u_boot_dtsi)\"\n&%')  | \
-+ | sed '/^\/ {$$/{x;s%$$%\#include \"$(u_boot_dtsi)\"%;G;}') | \
- $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) - ; \
- $(DTC) -O dtb -o $@ -b 0 \
- -i $(dir $<) $(DTC_FLAGS) \
Index: pkg/PFRAG.arm
===================================================================
RCS file: /cvs/ports/sysutils/u-boot/pkg/PFRAG.arm,v
retrieving revision 1.3
diff -u -p -r1.3 PFRAG.arm
--- pkg/PFRAG.arm 10 Jan 2017 02:35:52 -0000 1.3
+++ pkg/PFRAG.arm 2 Mar 2017 03:02:41 -0000
@@ -179,6 +179,11 @@ share/u-boot/orangepi_plus2e/u-boot
 share/u-boot/orangepi_plus2e/u-boot-sunxi-with-spl.bin
 share/u-boot/orangepi_plus2e/u-boot.bin
 share/u-boot/orangepi_plus2e/u-boot.img
+share/u-boot/orangepi_zero/
+share/u-boot/orangepi_zero/u-boot
+share/u-boot/orangepi_zero/u-boot-sunxi-with-spl.bin
+share/u-boot/orangepi_zero/u-boot.bin
+share/u-boot/orangepi_zero/u-boot.img
 share/u-boot/riotboard/
 share/u-boot/riotboard/u-boot
 share/u-boot/riotboard/u-boot.bin

Reply | Threaded
Open this post in threaded view
|

Re: -current with Banana Pi and Orange Pi

Daniel Bolgheroni-6
On Thu, Mar 02, 2017 at 02:24:57PM +1100, Jonathan Gray wrote:
>
> I don't have any allwinner systems here but perhaps a newer u-boot would
> help?

Yes. Thank you.

--

U-Boot SPL 2017.03-rc3 (Mar 02 2017 - 14:13:26)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.03-rc3 (Mar 02 2017 - 14:13:26 -0300) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: LeMaker Banana Pi
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
       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...
reading /sun7i-a20-bananapi.dtb
35071 bytes read in 30 ms (1.1 MiB/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 42000000 ...
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: 2154708+7992748+438536 [80+305136+146379]=0xa88c5c

OpenBSD/armv7 booting ...
arg0 0xc0d88c5c arg1 0x0 arg2 0x48000000
Allocating page tables
freestart = 0x40d89000, free_pages = 258273 (0x0003f0e1)
IRQ stack: p0x40db7000 v0xc0db7000
ABT stack: p0x40db8000 v0xc0db8000
UND stack: p0x40db9000 v0xc0db9000
SVC stack: p0x40dba000 v0xc0dba000
Creating L1 page table at 0x40d8c000
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.0-current (RAMDISK) #48: Wed Mar  1 18:48:03 MST 2017
    [hidden email]:/usr/src/sys/arch/armv7/compile/RAMDISK
real mem  = 1072078848 (1022MB)
avail mem = 1037017088 (988MB)
mainbus0 at root: LeMaker Banana Pi
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
psci0 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
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:96:0a:01:3c:5e
rgephy0 at dwge0 phy 1: RTL8169S/8110S/8211 PHY, rev. 5
ampintc0 at simplebus0 nirq 160
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 sxipio0: 32 pins
gpio8 at sxipio0: 32 pins
sximmc0: timeout updating clock
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 17227 days
WARNING: CHECK AND RESET THE DATE!
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/armv7 6.0 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?

--
db