On Fri, Aug 07, 2015 at 11:03:43AM +0200, Average Joe wrote: > I have spent another day trying to get this machine to run OpenBSD > but have had no success. Since for some reason the network > interface is not working I have resorted to loading the ramdisk image > from the USB key: > > sunxi# fatload usb 0 0x40200000 bsd.rd.SUNXI.umg > reading bsd.rd.SUNXI.umg > 8026368 bytes read in 434 ms (17.6 MiB/s) > sunxi# bootm 0x40200000 > ## Booting kernel from Legacy Image at 40200000 ... > Image Name: boot > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 8026304 Bytes = 7.7 MiB > Load Address: 40300000 > Entry Point: 40300000 > Verifying Checksum ... OK > Loading Kernel Image ... OK > > Starting kernel ... > > after which the system hangs indefinitely. u-boot version is > mainline 2015.07 and I am trying to load an OpenBSD snapshot. > > Kind regards, > Viktor >
I was having the same problem with a pcDuino-3-Nano. The problem was solved adding a configuration option to the menuconfig of u-boot: make menuconfig "ARM Architecture" -> "Enable workarounds for booting old kernels" then: $ make CROSS_COMPILE=arm-linux-gnueabihf- and then adding again the new u-boot-sunxi-with-spl.bin to the miniroot. $ dd if=./u-boot-sunxi-with-spl.bin of=/dev/sdc bs=1024 seek=8 Now the OpenBSD kernel boots, but it get stuck loading when handling usb stuff: U-Boot SPL 2015.10-rc1 (Aug 13 2015 - 07:37:07) DRAM: 1024 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 U-Boot 2015.10-rc1 (Aug 13 2015 - 07:37:07 +0000) 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 sunxi# load mmc 0:1 0x48000000 /bsd.umg reading /bsd.umg 7127716 bytes read in 375 ms (18.1 MiB/s) sunxi# bootm 0x48000000 ## Booting kernel from Legacy Image at 48000000 ... Image Name: boot Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 7127652 Bytes = 6.8 MiB Load Address: 40800000 Entry Point: 40800000 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 0x1651668c:0a41c97e 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 = 0x40ecd000, free_pages = 258355 (0x0003f133) IRQ stack: p0x40efb000 v0xc0efb000 ABT stack: p0x40efc000 v0xc0efc000 UND stack: p0x40efd000 v0xc0efd000 SVC stack: p0x40efe000 v0xc0efe000 Creating L1 page table at 0x40ed0000 Mapping kernel Constructing L2 page tables undefined page pmap 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.7 (RAMDISK-SUNXI) #8: Wed Mar 11 18:05:45 AEDT 2015 j...@armv7.jsg.id.au:/usr/src/sys/arch/armv7/compile/RAMDISK-SUNXI real mem = 1073741824 (1024MB) avail mem = 1036423168 (988MB) mainbus0 at root cortex0 at mainbus0 ampintc0 at cortex0 nirq 160 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: 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:8c:0a:41:c9:7e rgephy0 at sxie0 phy 0: RTL8169S/8110S PHY, rev. 5 rgephy1 at sxie0 phy 1: RTL8169S/8110S PHY, rev. 5 ahci0 at sunxi0 AHCI 1.1 scsibus0 at ahci0: 32 targets 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