From owner-freebsd-arm@freebsd.org Wed Apr 3 03:49:32 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 C7F35155A6D8 for ; Wed, 3 Apr 2019 03:49:32 +0000 (UTC) (envelope-from ian@freebsd.org) 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 4B4E18E6F2 for ; Wed, 3 Apr 2019 03:49:32 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 0B943155A6D7; Wed, 3 Apr 2019 03:49:32 +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 D820D155A6D6 for ; Wed, 3 Apr 2019 03:49:31 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10D6C8E6F1 for ; Wed, 3 Apr 2019 03:49:30 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1554263370; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=rmAc4YYtbycNQtYErrZT0zj/7s6gXb/7UCq9dnyy8kjlA7Z5zPvhR7tj6FDCCI7a3d405cjedJgBK Rvy8cUFFfpHUzOqpDxiOdiKAYYj4CvlXy2CIez4/vjVHgdQDsiywOUzFjyE1y/3/L5eWH7vfi2DQtM wVxXNG38oftyb0FTl99DAEM5GJlW8WMBvtwKWZqfKdnUffo8vMRPCDmwNRdfU+mWAGaeW+CK4EU+6S L2BgaVb3hstQEh6YWqQNusVWYP5wyKs/uiikrDxBWjluzNFIGDMQcNpBJI8sxXRopTrCTlTV7o+oNS YF+4rSlt/B4YETDIBxrl6NmKb0VAFCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=hStRgEhVXwYOykwIEotqfrmifVj82E04E2XrbK5GEro=; b=pyl3+nQddFdVgfUeq0v3Bc36kHTrZkmykxOR2x9psOaxCnDjx7xadZUqYTvRnZ4zPiMoBHbqnSUdv xMQBSrJKMZyS9bGdVDbVeOcr2j+Thmk/wDz7OFniqURQ0OyWjCOzWArq8QO2uz3PhV7HnbU0EVu2gj EtISn4TKf3InObEhZGDxbx2GCStgYzHRJ+eKjVJ/2ecnaUY1v5LgMayJtVSwavbcDCLfKxLp1bnddR t74Mr0uyFGl5H2ImP/qtamWdKOVdNkKTZEahmRuNGX0Z46VCl2DrzpRCi1H83zMB8/q0jB45CCRQt6 nFyvY99f9kOYwyVQeTkihZSlsxy81Qw== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=hStRgEhVXwYOykwIEotqfrmifVj82E04E2XrbK5GEro=; b=vkJ5AWGka98JcK4wHp+zAY9Qptyktc4UJBdM83C5WarWEB09W2SxPaIPOXm3z/dsbx0OOgQjqcx+C CvmE4+vLFu2E1OvyhO+866GJuaPGJxBIWvOzq6ozH8zjoIb38HqLc+zlMkPBbkqSfuYhxHGMddcOAb buE3DgVgXIlM8F93zIiPpAfK008GcAyDYldQnBUFSv++1hil23gp4iXUDFLFb1WVPT4Mg4GSODfPn7 qWFkH0DthlRqrtePGVDUqOF4tPABk2okSodkfI0IvFGpGFrZJtXCiLmtZGltJmd/H18Ht53JHmoaq9 r1P7Wmo2SpABqvayXpEiDp+8hI97emw== X-MHO-RoutePath: aGlwcGll X-MHO-User: 7929d8c9-55c3-11e9-9bb1-1f29e4676f89 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 7929d8c9-55c3-11e9-9bb1-1f29e4676f89; Wed, 03 Apr 2019 03:49:28 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x333nOaB012247; Tue, 2 Apr 2019 21:49:24 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <86cda185c41f215bbd808da32b619678ee0fdc61.camel@freebsd.org> Subject: Re: network booting allwinner(nanopi) From: Ian Lepore To: Daniel Braniss , ticso@cicely.de Cc: "freebsd-arm@freebsd.org" Date: Tue, 02 Apr 2019 21:49:24 -0600 In-Reply-To: References: <20190329193608.GC99439@cicely7.cicely.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 10D6C8E6F1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.989,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Wed, 03 Apr 2019 03:49:33 -0000 On Mon, 2019-04-01 at 08:52 +0300, Daniel Braniss wrote: > > On 29 Mar 2019, at 22:36, Bernd Walter > > wrote: > > > > On Fri, Mar 29, 2019 at 09:34:30AM +0300, Daniel Braniss wrote: > > > Hi, > > > with last weeks head (r345465), > > > I tried - again - to netboot and the old way no longer works > > > usb start > > > setenv loaderdev net > > > boot > > > > > > now it complains allot:-) but no dice. > > > So, is there a way that netboot works? > > > > On a Pi1 project I put the following in loader.conf: > > currdev="net0" > > This requires the loader.conf to be on the SD card however. > > I used an UFS partition for that, but I assume that the msdosfs > > partition would work too as the loader can read that filesystem > > as well. > > > > -- > > B.Walter http://www.bwct.de > > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner > > uvm. > > well, this is what I get: > U-Boot SPL 2019.01 (Mar 24 2019 - 10:15:37 +0200) > DRAM: 512 MiB > Trying to boot from MMC1 > > > U-Boot 2019.01 (Mar 24 2019 - 10:15:37 +0200) 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 > > In: serial > Out: serial > Err: serial > Net: phy interface0 > > Error: ethernet@1c30000 address not set. > eth-1: ethernet@1c30000 > 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 > scanning usb for storage devices... 0 Storage Device(s) found > Hit any key to stop autoboot: 2  0 > => usb start > => boot    setn env loaderdev net > => boot > 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 > 375752 bytes read in 19 ms (18.9 MiB/s) > ## Starting application at 0x42000000 ... > Consoles: U-Boot console > Compatible U-Boot API signature found @0x5bf595c8 > > FreeBSD/armv7 U-Boot loader, Revision 1.2 > > DRAM: 512MB > Number of U-Boot devices: 1 > U-Boot env: loaderdev='net' > Found U-Boot device: disk > 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 > Startup error in /boot/lua/loader.lua: > LUA ERROR: cannot open /boot/lua/loader.lua: device not configured. > > 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..? > 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..? > 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..? > 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..? > netboot: couldn't probe uboot_eth0 > net_open: netif_open() failed > can't load 'kernel' > > Type '?' for a list of commands, 'help' for more detailed help. > loader> > Modern u-boot can only netboot using efi. Doing it with efi requires that all your config be set in the dhcpd, there is no way to define the server or rootpath on a per-arm-system basis other than by hardcoding the mac address of each arm system in the dhcpd config on the server. In the uboot env, 'setenv boot_targets dhcp', and your dhcpd.conf needs an entry something like this: host rpi2 { hardware ethernet b8:27:eb:e9:04:e8; option host-name "rpi2"; next-server 172.22.42.240; filename "/rpi2/boot/loader.efi"; option root-path "172.22.42.240:/rpi2/"; } If your dhcpd and tftp servers are the same, you probably don't need the next-server option. If you're not using nfsroot, you probably don't need the root-path option. -- Ian