From owner-freebsd-arm@freebsd.org Thu Aug 2 17:55:22 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 BF70E106E167 for ; Thu, 2 Aug 2018 17:55:22 +0000 (UTC) (envelope-from wlosh@bsdimp.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 4F3BE73B7C for ; Thu, 2 Aug 2018 17:55:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id 140E2106E166; Thu, 2 Aug 2018 17:55:22 +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 D5DDF106E165 for ; Thu, 2 Aug 2018 17:55:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (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 6C04A73B79 for ; Thu, 2 Aug 2018 17:55:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22e.google.com with SMTP id o22-v6so2749601ioh.6 for ; Thu, 02 Aug 2018 10:55:21 -0700 (PDT) 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=EZnVzuuvH94FxjH3c0CK9EtkQEzcb8V9nNzk2zSEDQ4=; b=fujlEmTLgw76PmBoQ4ZIJygnU4NfQsQa5NQ3VmIRtCnSjDEyqFo6eCoJ+JE3DyPipk JvqUdWkUBz3gHWob4RbekgBbhwNymp7bayjiCvz9As2x/vwFUiCHtqTqLtujm2XGmN0v WGzCO0N/SuzVLWJO8xQNeBbtvxoWkrUJ+CIOlngFMy918JbK6YDomFqUD7KFjZk0HtFn YOHbYA8xn4u6KdOwLOEQT/bAvd6is7a2eC5MDxDpmtYp2gZ5iPnjlwYFaHaoPEC0/QDr Xf3BMGE1eYA9+WerC2CG8OoQPP2n1GkvuSgFOJXcBwYULo1bAkS1zztjMZ+2iRz4JqSq Xjew== 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=EZnVzuuvH94FxjH3c0CK9EtkQEzcb8V9nNzk2zSEDQ4=; b=OWaGZPrDUJu766+gErbLdJoWbLmM318N2GZtffLyES115rNQXlCYfsxbXp3aH9jRZN QF41Au+u+2+AOPOSJO8eQWzqK+Zd87+pU6K7daXuvJ/tuhkVs7o4d71mFTCy3pwWDX/y RRGfus47zbcieYkfeGGCVxCVvyqqZcQXg3wPPqYJAdQgq+NKJ9T9LtbhjZzFfuUXGdyd J6Bk5Ue6uQvIasTHWrxSX1Isuck3Up7/LtgX5OYu9538Io9sc4hFYwCoEU1VLhTxoPMm BHcM+VpeGOei6jIOCQ7EGEQQKZVEE4sNFL19ltVghDEar6EJMusTaiH75gyuInj0me1e WGSg== X-Gm-Message-State: AOUpUlFZX/7oIokbxmR9xUrwng2pweX3ONv1H13LZiGC7x5LyBrvIyZP TqRbh6rpTEBv8u2fwil8kB528h21gbM5BPmUwEYuwlLv920= X-Google-Smtp-Source: AA+uWPwmFfSo9bD5beQFw9Irj6+CqUOEdXN+kLlcm5gqDZaY3v8PuUp1XwzaNkVNnJaxLyNbaDXNDKV4aMrXQj0r2ew= X-Received: by 2002:a6b:3902:: with SMTP id g2-v6mr3337316ioa.168.1533232520639; Thu, 02 Aug 2018 10:55:20 -0700 (PDT) MIME-Version: 1.0 References: <48C92770-DFCE-45D6-B92E-FD5202585AE9@cs.huji.ac.il> <1533227944.1369.37.camel@freebsd.org> In-Reply-To: <1533227944.1369.37.camel@freebsd.org> From: Warner Losh Date: Thu, 2 Aug 2018 18:55:04 +0100 Message-ID: Subject: Re: booting current from nano-neo/allwinner now failes To: Ian Lepore Cc: Daniel Braniss , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" 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: Thu, 02 Aug 2018 17:55:23 -0000 On Thu, Aug 2, 2018, 5:39 PM Ian Lepore wrote: > On Thu, 2018-08-02 at 19:31 +0300, Daniel Braniss wrote: > > > > > > > > On 2 Aug 2018, at 19:26, Warner Losh wrote: > > > > > > Try the latest ubldr > > > There was a change in the last day that should fix this.. > > > > > I thought I had the latest, will try again. > > BTW, I only updated the u-boot, and now it=E2=80=99s trying to boot via= the > > net!, and the ether is actually working, > > i=E2=80=99ll compile a kernel with nfs root support =E2=80=A6 > > > > thanks, > > danny > > > > Well, no, it's failing to boot via net, and if it's modern uboot, it > will always fail. There is a "net device" in ubldr, but when it tries > to probe, uboot fails to respond, because CONFIG_API no longer supports > network devices in modern uboot that uses DM (Device Manager). > > The only way to netboot with modern uboot is via UEFI. Unfortunately, > you don't get the kind of local control that ubldr provided; the boot > parameters (where to find the root filesystem, etc) must come from the > dhcp/bootp server. That's a bit of a showstopper for many folks who > don't have that level of control over the dhcp server config. > Is that a UEFI issue. Or our loader.efi needs X, Y or Z? Warner -- Ian > > > > > > > > > Warner > > > > > > On Thu, Aug 2, 2018, 3:36 PM Daniel Braniss > > > wrote: > > > Hi, > > > my last working version is from r333513, so im trying the latest, > > > and with the old u-boot/ubldr I > > > get as far as: > > > > > > U-Boot SPL 2017.09 (Feb 11 2018 - 10:52:39) > > > DRAM: 512 MiB > > > Trying to boot from MMC1 > > > > > > > > > U-Boot 2017.09 (Feb 11 2018 - 10:52:39 +0200) Allwinner Technology > > > > > > CPU: Allwinner H3 (SUN8I 1680) > > > Model: FriendlyARM NanoPi NEO > > > DRAM: 512 MiB > > > MMC: SUNXI SD/MMC: 0 > > > *** 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 > > > 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 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 > > > Compatible U-Boot API signature found @0x5bf3f3c0 > > > > > > FreeBSD/armv7 U-Boot loader, Revision 1.2 > > > (Wed Mar 7 13:42:45 IST 2018 danny@pe-44) > > > > > > 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+0xd41b9] > > > / > > > 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) > > > > > > > > > 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 > > > > > > > > > U-Boot 2018.07 (Aug 01 2018 - 17:37:02 +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 > > > 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 > > > Compatible U-Boot API signature found @0x5bf524e8 > > > > > > FreeBSD/armv7 U-Boot loader, Revision 1.2 > > > (Wed Aug 1 18:30:42 IDT 2018 danny@dell) > > > > > > 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 > > > > > > net_probe: no network devices found, maybe not enumerated yet..? > > > =E2=80=A6 > > > > > > > > > I know that this board is not really supported but it=E2=80=99s liste= d in h > > > ttps://wiki.freebsd.org/FreeBSD/arm/Allwinner > > > > > > > > > > > > in any case I would like to help but things are getting too > > > complicated :-) > > > > > > > > > thanks, > > > danny > > > > > > > > > > > > > > > _______________________________________________ > > > freebsd-arm@freebsd.org mailing > > > list > > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > > > > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.o > > > rg " > > _______________________________________________ > > 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 > > " > > >