From owner-freebsd-arm@freebsd.org Sat Sep 1 14:12:36 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8941AFF0A59 for ; Sat, 1 Sep 2018 14:12:36 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0A9308D45D for ; Sat, 1 Sep 2018 14:12:36 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id C2051FF0A58; Sat, 1 Sep 2018 14:12:35 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F092FF0A57 for ; Sat, 1 Sep 2018 14:12:35 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CDDDA8D45A for ; Sat, 1 Sep 2018 14:12:34 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from imac.bk.cs.huji.ac.il ([132.65.179.42]) by kabab.cs.huji.ac.il with esmtp id 1fw6dR-000PIe-Gg; Sat, 01 Sep 2018 17:12:21 +0300 From: Daniel Braniss Message-Id: <07EB0FBC-FEF9-4B1D-A0DF-D43FAC1EAD17@cs.huji.ac.il> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: allwinner/nanopi neo boot issues Date: Sat, 1 Sep 2018 17:12:21 +0300 In-Reply-To: <474af48e-ba82-62ce-34a3-70dfc4382723@alvermark.net> Cc: "freebsd-arm@freebsd.org" To: Jakob Alvermark References: <42AA3AE2-E101-4B7B-B373-BEC178321671@cs.huji.ac.il> <0fdbd315-f37d-e3d3-9309-612f53c4d379@alvermark.net> <8459A9BA-183A-461B-9050-3631C51218F9@cs.huji.ac.il> <474af48e-ba82-62ce-34a3-70dfc4382723@alvermark.net> X-Mailer: Apple Mail (2.3445.9.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Sep 2018 14:12:37 -0000 > On 1 Sep 2018, at 16:50, Jakob Alvermark wrote: >=20 > On 8/29/18 2:22 PM, Daniel Braniss wrote: >>=20 >>=20 >>> On 29 Aug 2018, at 15:17, Jakob Alvermark > wrote: >>>=20 >>>=20 >>> On 8/24/18 10:02 AM, Daniel Braniss wrote: >>>>=20 >>>>> On 24 Aug 2018, at 09:34, Daniel Braniss > wrote: >>>>>=20 >>>>> hi, >>>>> with the latest current r338243 no longer boots via ubldr, efi = does >>>>> but with overlays I have to manually enter the root partition. >>>>>=20 >>>>> this is where it hangs via ubldr: >>>>>=20 >>>>> Autoboot in 8 seconds, hit [Enter] to boot or any other key to = stop >>>>>=20 >>>>> Loading kernel... >>>>> /boot/kernel/kernel text=3D0x8a0950 data=3D0xae160+0x184520 = syms=3D[0x4+0xa6d70+0x4+0x109f17] >>>>> Loading configured modules... >>>>> /boot/entropy size=3D0x1000 >>>>> /boot/dtb/sun8i-h3-nanopi-neo.dtb size=3D0x601b >>>>> Loaded DTB from file 'sun8i-h3-nanopi-neo.dtb'. >>>>> Kernel entry at 0x42400180... >>>>> Kernel args: (null) >>>>>=20 >>>>> older - r337232 - boots fine, >>>>>=20 >>>>> any ideas where to look? >>>> should have done an update before writing! >>>>=20 >>>> with the latest (and greatest) all is back to normal! >>>> so now on to test orange pi one(h3), nanopi neo 2 (h5) and nanopi = neo a64 >>>>=20 >>>> thanks, >>>> danny >>>=20 >>>=20 >>> Hi, >>>=20 >>>=20 >>> I am trying to get an Orange Pi R1 going, I get the same. >>>=20 >>> Loading kernel... >>> /boot/kernel/kernel text=3D0x89ee40 data=3D0xae620+0x1f5ba0 = syms=3D[0x4+0xa6d20+0x4+0x109e51] >>> Loading configured modules... >>> Could not load one or more modules! >>> /boot/dtb/sun8i-h2-plus-orangepi-r1.dtb size=3D0x6333 >>> Loaded DTB from file 'sun8i-h2-plus-orangepi-r1.dtb'. >>> Kernel entry at 0x42400180... >>> Kernel args: (null) >>>=20 >>> This is at r338369. >>>=20 >>>=20 >>=20 >> try booting via efi; >> make sure to copy /boot/loader.efi to = /boot/msdos/EFI/BOOT/bootaa64.efi >> remove /boot/msdos/boot.scr >> good luck, >> danny > I tried the ALPHA4 snapshot, this happens: >=20 > Hit any key to stop autoboot: 0=20 > switch to partitions #0, OK > mmc0 is current device > Scanning mmc 0:1... > 25395 bytes read in 4 ms (6.1 MiB/s) > Found EFI removable media binary efi/boot/bootarm.efi > Scanning disks on usb... > Disk usb0 not ready > Disk usb1 not ready > Disk usb2 not ready > Disk usb3 not ready > Scanning disks on mmc.. > MMC Device 2 not found > MMC Device 3 not found > Found 3 disks > 508704 bytes read in 26 ms (18.7 MiB/s) > ## Starting EFI application at 42000000 ... > Consoles: EFI console =20 > failed to allocate staging area: 14 > failed to allocate staging area > ## Application terminated, r =3D 5 > EFI LOAD FAILED: continuing... >=20 >=20 > Tried manually loading ubldr.bin: >=20 > =3D> fatload mmc 0 0x42000000 ubldr.bin > 306972 bytes read in 15 ms (19.5 MiB/s) > =3D> go 0x42000000 > Loading kernel... > /boot/kernel/kernel text=3D0x85d7f0 data=3D0xaf620+0x24e1e0 = syms=3D[0x4+0xa87d0+0x4+0x10c603] > Loading configured modules... > /boot/kernel/umodem.ko text=3D0x1bf4 text=3D0x1320 data=3D0x1080+0xf88 = syms=3D[0x4+0x1070+0x4+0xbcd] > loading required module 'ucom' > /boot/kernel/ucom.ko text=3D0x1f8c text=3D0x2e90 data=3D0x1080+0x17bc = syms=3D[0x4+0x14f0+0x4+0xc5d] > Could not load one or more modules! >=20 > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... =20 > /boot/dtb/sun8i-h2-plus-orangepi-r1.dtb size=3D0x6333 > Loaded DTB from file 'sun8i-h2-plus-orangepi-r1.dtb'. > Kernel entry at 0x42400180... > Kernel args: (null) > And then it reboots... first, I gave you wrong info, cp /boot/loader.efi /boot/msdos/bootarm.efi I just booted r338421 - ALPHA4 and though some messages might be misleading, it boots ok. BTW, make sure you installed the lated u-boot from ports U-Boot SPL 2018.07 (Aug 21 2018 - 11:44:53 +0300) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2018.07 (Aug 21 2018 - 11:44:53 +0300) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 Loading Environment from FAT... *** Warning - bad CRC, using default = environment Failed (-5) 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 scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0=20 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 24603 bytes read in 3 ms (7.8 MiB/s) Found EFI removable media binary efi/boot/bootarm.efi [18tScanning disks on usb... Disk usb0 not ready Disk usb1 not ready Disk usb2 not ready Disk usb3 not ready Scanning disks on mmc... MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Found 3 disks 508608 bytes read in 26 ms (18.7 MiB/s) ## Starting EFI application at 42000000 ... [?25hConsoles: EFI console =20 [?25hFreeBSD/arm EFI loader, Revision 1.1 (Sat Aug 25 11:39:01 IDT 2018 danny@pe-44) Command line arguments: l EFI version: 2.70 EFI Firmware: Das U-Boot (rev 0.00) Console: efi (0) Load Path: /\efi\boot\bootarm.efi Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x80= 0,0x19000) Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x80= 0,0x19000) Setting currdev to disk0p1: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(2,0x01,0,0x19= 800,0x5e6800) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local=