Hi arm@,

Later last year I bought a Banana Pi board and, at that time, was able to boot
OpenBSD on it. I can't really remember where it stopped, since it's not
supported, but at least it booted.

I tried to do the same thing this week, however without success. Here is the
steps I took (to simplify, full log at the end):

sunxi# setenv autoload off
sunxi# dhcp
sunxi# setenv bootargs sd0a:/bsd
sunxi# setenv serverip 192.168.1.1
sunxi# tftpboot openbsd/bsd.umg
sunxi# bootm

I checked two references, one from tech@ [1] and one from LeMaker forum [2],
but noone helped. The later is for 5.5, but things have changed since then.

[1] http://marc.info/?l=openbsd-tech&m=141227625722523&w=2
[2] http://www.lemaker.org/thread-1407-1-1-openbsd_5_5.html

I already have a BeagleBone Black running OpenBSD-current. I have a setup in
which I export an /usr/src from an OpenBSD/amd64 machine to it and then I'm
able to compile a new kernel to the Banana Pi if it's the case.

I tried also to load Bananapi.bin (generated from the fex file description)
also, which I downloaded from a NetBSD mirror, and then loaded with some extra
commands at U-Boot before trying to boot OpenBSD itself:

sunxi# setenv bootargs sysconfig=0x43000000
sunxi# tftpboot 0x43000000 192.168.1.1:Bananapi.bin

I can't figure it out how this is related to OpenBSD not booting, nor if
OpenBSD can see this sysconfig= variable.

I tried with older versions of U-Boot (not -mainline), but these were buggy
when fetching the .umg from tftp (timeout). The board is OK since I can boot
NetBSD on it.

I would appreciate any hints on this. Meanwhile, if someone has any diffs lying
around and would like to share for testing, I would be glad to compile a new
kernel and test.

Thank you.

--- full log ---
U-Boot 2015.04-rc4-gb81bdf6 (Mar 25 2015 - 14:16:04) 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:   dwmac.1c50000
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   USB EHCI 1.00
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
sunxi# setenv autoload off
sunxi# dhcp
dwmac.1c50000 Waiting for PHY auto negotiation to complete... done
Speed: 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.1.44 (1251 ms)
sunxi# setenv bootargs sd0a:/bsd
sunxi# setenv serverip 192.168.1.41
sunxi# tftpboot openbsd/bsd.umg
Speed: 100, full duplex
Using dwmac.1c50000 device
TFTP from server 192.168.1.41; our IP address is 192.168.1.44
Filename 'openbsd/bsd.umg'.
Load address: 0x42000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################################################
         2.7 MiB/s
done
Bytes transferred = 4628832 (46a160 hex)
sunxi# bootm
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   boot
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4628768 Bytes = 4.4 MiB
   Load Address: 40300000
   Entry Point:  40300000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

-- 
db

Reply via email to