From owner-freebsd-arm@freebsd.org Thu Aug 2 18:45:42 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 2AD70104A253 for ; Thu, 2 Aug 2018 18:45:42 +0000 (UTC) (envelope-from manu@bidouilliste.com) 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 A5C5475BF1 for ; Thu, 2 Aug 2018 18:45:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6A25C104A252; Thu, 2 Aug 2018 18:45:41 +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 2F71E104A251 for ; Thu, 2 Aug 2018 18:45:41 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 97B2975BF0 for ; Thu, 2 Aug 2018 18:45:39 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 2f333386; Thu, 2 Aug 2018 20:45:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=VrWd0Utejam0pROkfLU1hbguUeE=; b=AiVNvNR7t2ps/tWZTIVmUuz0XZCf xRWS+xO9JNlpfwanEo9It5pbJetAB78NuUxiby0ubvyPYrzd9VOFn+7xZHNhJkbn pUZZe7uKtSjxQUjQcQFpuCMZP27Uw6NHXhDDuE7s+mIVCM8URAcwUJt8SqMkgE0c Jg/4q1YwuQEo2WQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=fTGlZUBLWQ5IRK4I4q33T1WNi5tpW+mqb14CWNDpGhLGvZDmGpisQD5X h7spb2SCznKo1Mm1BfRK+k2t/BoFCzmhOVp/+fTXQPsOEcD8FjHKH/0zpIfDU4mq 63pCQdlQRT+Cx49f3PC2bF9SoyQm75JsI2ao8KgPX5btsSjc6i0= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 7f675b5a TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Thu, 2 Aug 2018 20:45:37 +0200 (CEST) Date: Thu, 2 Aug 2018 20:45:37 +0200 From: Emmanuel Vadot To: Daniel Braniss Cc: "freebsd-arm@freebsd.org" Subject: Re: booting current from nano-neo/allwinner now failes Message-Id: <20180802204537.26af888414c4561b624fafd3@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 02 Aug 2018 18:45:42 -0000 On Thu, 2 Aug 2018 17:35:20 +0300 Daniel Braniss wrote: > Hi, > my last working version is from r333513, so im trying the latest, and wit= h the old u-boot/ubldr I > get as far as: >=20 > U-Boot SPL 2017.09 (Feb 11 2018 - 10:52:39) > DRAM: 512 MiB > Trying to boot from MMC1 >=20 >=20 > U-Boot 2017.09 (Feb 11 2018 - 10:52:39 +0200) Allwinner Technology >=20 > CPU: Allwinner H3 (SUN8I 1680) > Model: FriendlyARM NanoPi NEO > DRAM: 512 MiB > MMC: SUNXI SD/MMC: 0 > *** Warning - bad CRC, using default environment >=20 > 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... > Found FreeBSD U-Boot Loader (bin) > reading ubldr.bin > 238552 bytes read in 39 ms (5.8 MiB/s) > ## Starting application at 0x42000000 ... > Consoles: U-Boot console =20 > Compatible U-Boot API signature found @0x5bf3f3c0 >=20 > FreeBSD/armv7 U-Boot loader, Revision 1.2 > (Wed Mar 7 13:42:45 IST 2018 danny@pe-44) >=20 > DRAM: 512MB > MMC Device 1 not found > MMC Device 2 not found > MMC Device 3 not found > Number of U-Boot devices: 1 > U-Boot env: loaderdev not set, will probe all devices. > Found U-Boot device: disk > Probing all disk devices... > Checking unit=3D0 slice=3D partition=3D... good. > Booting from disk0s2: > Loading /boot/defaults/loader.conf > /boot/kernel/kernel data=3D0x6fde64+0xa619c syms=3D[0x4+0x81d80+0x4+0xd41= b9] > / > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... =20 > /boot/dtb/sun8i-h3-nanopi-neo.dtb size=3D0x5c1a > Loaded DTB from file 'sun8i-h3-nanopi-neo.dtb'. > Kernel entry at 0x42200100... > Kernel args: (null) >=20 >=20 > if I update to the latest u-boot/ubldr it failes trying to read from disk: > > U-Boot SPL 2018.07 (Aug 01 2018 - 17:37:02 +0300) > DRAM: 512 MiB > Trying to boot from MMC1 >=20 >=20 > U-Boot 2018.07 (Aug 01 2018 - 17:37:02 +0300) Allwinner Technology >=20 > 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 envi= ronment >=20 > 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... > Found U-Boot script /boot.scr > 199 bytes read in 1 ms (194.3 KiB/s) > ## Executing script at 43100000 > 288084 bytes read in 19 ms (14.5 MiB/s) > ## Starting application at 0x42000000 ... > Consoles: U-Boot console =20 > Compatible U-Boot API signature found @0x5bf524e8 >=20 > FreeBSD/armv7 U-Boot loader, Revision 1.2 > (Wed Aug 1 18:30:42 IDT 2018 danny@dell) >=20 > DRAM: 512MB > Number of U-Boot devices: 1 > U-Boot env: loaderdev not set, will probe all devices. > Found U-Boot device: disk > Probing all disk devices... > Checking unit=3D0 slice=3D partition=3D... > Checking unit=3D1 slice=3D partition=3D... > Checking unit=3D2 slice=3D partition=3D... > Checking unit=3D3 slice=3D partition=3D... > Checking unit=3D4 slice=3D partition=3D... > Checking unit=3D5 slice=3D partition=3D... > Found U-Boot device: net > Booting from net0: > net_probe: no network devices found, maybe not enumerated yet..? > netboot: couldn't probe uboot_eth0 > net_open: netif_open() failed > net_probe: no network devices found, maybe not enumerated yet..? > netboot: couldn't probe uboot_eth0 > net_open: netif_open() failed >=20 > net_probe: no network devices found, maybe not enumerated yet..? > ? >=20 Did you also update ubldr.bin ? (not just ubldr) This is what I have for this board : U-Boot SPL 2018.07 (Jul 24 2018 - 23:24:15 +0000) DRAM: 512 MiB Trying to boot from MMC1 =20 =20 =20 U-Boot 2018.07 (Jul 24 2018 - 23:24:15 +0000) Allwinner Technology =20 CPU: Allwinner H3 (SUN8I 1680) =20 Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 =20 Loading Environment from FAT... *** Warning - bad CRC, using default environment=20 Failed (-5) In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 =20 USB1: USB OHCI 1.0 =20 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 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 199 bytes read in 1 ms (194.3 KiB/s) ## Executing script at 43100000 288092 bytes read in 14 ms (19.6 MiB/s) ## Starting application at 0x42000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x5bf524e8 FreeBSD/armv7 U-Boot loader, Revision 1.2 (Fri Jul 27 18:07:48 UTC 2018 root@wopr.blih.net) DRAM: 512MB Number of U-Boot devices: 1 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=3D0 slice=3D partition=3D... good. Booting from disk0s2a: Loading /boot/defaults/loader.conf /boot/kernel/kernel data=3D0x8f40a4+0x1dff5c syms=3D[0x4+0xa9940+0x4+0x10e1fa] /boot/entropy size=3D0x1000 /boot/kernel/umodem.ko text=3D0x2e80 data=3D0x2cc+0x8 syms=3D[0x4+0xbd0+0x4+0xc4f] loading required module 'ucom' /boot/kernel/ucom.ko text=3D0x4d44 data=3D0x418+0x83c syms=3D[0x4+0xf90+0x4+0xcdf] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... /boot/dtb/sun8i-h3-nanopi-neo.dtb size=3D0x5c1a Loaded DTB from file 'sun8i-h3-nanopi-neo.dtb'. Kernel entry at 0x42200100... Kernel args: (null) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r336765: Fri Jul 27 18:20:04 UTC 2018 root@wopr.blih.net:/usr/obj/usr/src/arm.armv7/sys/GENERIC arm FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) ... > I know that this board is not really supported but it?s listed in https:/= /wiki.freebsd.org/FreeBSD/arm/Allwinner Don't worry it's supported, it's not because we don't generate an image that it isn't. Also please consider switching to efi boot, just deleting boot.scr and copying loader.efi as EFI/BOOT/bootarm.efi is enough. > in any case I would like to help but things are getting too complicated = :-) >=20 >=20 > thanks, > danny >=20 >=20 >=20 >=20 > _______________________________________________ > 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" --=20 Emmanuel Vadot