From owner-freebsd-arm@freebsd.org Sat Jan 26 04:36:58 2019 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 59E1714B0769 for ; Sat, 26 Jan 2019 04:36:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 31D278D32B for ; Sat, 26 Jan 2019 04:36:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82f.google.com with SMTP id l11so13089036qtp.0 for ; Fri, 25 Jan 2019 20:36:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3/U6oD35AKOH3wvS6ITtIX/Z7cfKIm9lZ4yPd1OxliA=; b=k20jcYs9zKaPxSjXbRwBL1eKJOnUSiRFv7kRRvH6gOq4imjjumesyG+LMhytkVtSA0 HD+LnVmwcQbkUcSbxIUtnQQGMjg+2m5LPzPePlO42nK5XLqxxPBnIKZ+wic79k1YoWWy sWXhsNM6JQ0yvLxbw4odLkjD8DFUH4YSIOZzPeImq02fDZLc6XqzsUG3spT/h7Qs9pUZ VSF4nJs1Iw3LAnYxsaS/B6xfU5yjVMK7RCBrQCe0D8kIasTX0HOFM3TyYuQ9WhoWfj+z h/QiTY8RVmxYLVAuMRMDq9z3LEDj1BGmhpThZSKPTIKQjP6pjV7XtscbUGDV9YFgz93g rn/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3/U6oD35AKOH3wvS6ITtIX/Z7cfKIm9lZ4yPd1OxliA=; b=XWXqOaurUB9mWuq5skZJ4ddZiyr8o+umpuCgbnXqaAtI3ev02jnUXJmKPdDuXxcKy1 H5Od9URlmakfPWhaRZFkvZOSdrFYTy9lmbussJCpivJW95KtR9j3HIzvEMuhZXO8m1zq dRGvwp1HQrBH+AT1chlsq8/iMy6gp7WcIb8Pr4bhquKPdnFoNNUGYsDuENr1cyLKGzKD cFaO0gzEsqTbJDvROYD8Yj6z0HHfAVWDcjLqlocJyHuIlLy2pdH+nKKoa1voBTPrIzzf sbVbH20GTHevm+Ia1qapBh+6yhHhHUrMTC2GIFdql1OExdqYGDb7e44hij3mLEEvUa/w 3g9Q== X-Gm-Message-State: AJcUukcvVXl6zG3FmC/nWeX9iMU3W2y1KwG7+5wPxfOZ2XlRE97Ll57g TyO3DXCddboOT47DU9LCe2P6C353HvP0otOrXfDkoy7l X-Google-Smtp-Source: ALg8bN7OL8JTYSdy2vF+ytEt2WFmvBZavy95PLCZXLpM4QAmb22cZFdc3m90uxMINio7QyTmN2BWrrH4Q6e/PC2PCmA= X-Received: by 2002:ac8:7611:: with SMTP id t17mr13113845qtq.345.1548477416378; Fri, 25 Jan 2019 20:36:56 -0800 (PST) MIME-Version: 1.0 References: <20190126030330.GI74542@cicely7.cicely.de> In-Reply-To: <20190126030330.GI74542@cicely7.cicely.de> From: Warner Losh Date: Fri, 25 Jan 2019 21:36:44 -0700 Message-ID: Subject: Re: 12-RELEASE loader fails on Orange Pi R1 (maybe 256MB related) To: ticso@cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter X-Rspamd-Queue-Id: 31D278D32B X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=k20jcYs9 X-Spamd-Result: default: False [-4.17 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[f.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.49)[-0.492,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-2.67)[ip: (-8.85), ipnet: 2607:f8b0::/32(-2.50), asn: 15169(-1.93), country: US(-0.08)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2019 04:36:58 -0000 On Fri, Jan 25, 2019, 9:08 PM Bernd Walter All boards install as u-boot-orangepi-*. > The R1 is an exception and installs as u-boot-orangepi_r1 > I noticed because I did cd ../u-boot-orangepi- and got no R1, > which I was sure to be installed. > > But just as a side note. > The board won't even run our loader: > > U-Boot SPL 2018.11 (Jan 20 2019 - 22:14:40 +0100) > DRAM: 256 MiB > Trying to boot from MMC1 > > > U-Boot 2018.11 (Jan 20 2019 - 22:14:40 +0100) Allwinner Technology > > CPU: Allwinner H3 (SUN8I 1680) > Model: Xunlong Orange Pi R1 > DRAM: 256 MiB > MMC: SUNXI SD/MMC: 0 > Loading Environment from FAT... *** 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 > USB2: USB EHCI 1.00 > 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... > 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 1 not found > MMC Device 2 not found > MMC Device 3 not found > Found 3 disks > 587736 bytes read in 29 ms (19.3 MiB/s) > ## Starting EFI application at 42000000 ... > Consoles: EFI console > failed to allocate staging area: 14 > failed to allocate staging area > ## Application terminated, r = 5 > EFI LOAD FAILED: continuing... > > Device 0: device type unknown > ... is now current device > ethernet@1c30000 Waiting for PHY auto negotiation to complete. done > BOOTP broadcast 1 > BOOTP broadcast 2 > BOOTP broadcast 3 > DHCP client bound to address 10.1.1.155 (1006 ms) > Using ethernet@1c30000 device > TFTP from server 10.1.1.16; our IP address is 10.1.1.155 > Filename 'pxeboot'. > Load address: 0x42000000 > Loading: * > TFTP error: 'File not found' (1) > Not retrying... > missing environment variable: pxeuuid > Retrieving file: pxelinux.cfg/01-02-42-ea-47-d9-eb > Using ethernet@1c30000 device > ... > It is now doing several other U-Boot network fallbacks. > > I'm a bit confused about EFI on an ARMv7 board. > There is a Zero plus, which is 64 bit (H5 AFAIK), but the R1 is an > H2+ board, similar to the normal zero, just with an additional USB ethernet > instead of the onboard USB header. > Do we use EFI on 32bit ARM as well? > I just noticed now because unfortunately the loader resets the screen, so > it is quicly gone. > > But I get the same error on an R1 with the bootcode for the zero, which > boots fine on a real zero board and mentions EFI as well: > 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 > 587736 bytes read in 29 ms (19.3 MiB/s) > ## Starting EFI application at 42000000 ... > Consoles: EFI console > FreeBSD/arm EFI loader, Revision 1.1 > > Command line arguments: l > EFI version: 2.70 > EFI Firmware: Das U-Boot (rev 8216.4352) > Console: efi (0) > Load Path: /\efi\boot\bootarm.efi > Load Device: > /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x81f,0x18fa8) > Trying ESP: > /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x81f,0x18fa8) > Setting currdev to disk0p1: > > It might be because my R1 is a 256MB, while the tested zero is 512MB. > I can test a 256MB zero in a few days, but don't have a 256MB zero at home. > Maybe it is the block cache code? It hovers up a ton of memory.... it was fixed on i386, though, I thought... Warner -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >