From owner-freebsd-arm@freebsd.org Fri Mar 1 03:14:57 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 1A8F215016CA for ; Fri, 1 Mar 2019 03:14:57 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (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 545B87161E for ; Fri, 1 Mar 2019 03:14:56 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1551410094; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=W1Ko0k9T8AmZN9Nytdl/gt7mLmLVQXK4AJoS4P0uIRqjGX5NHgPXow7puSKU9rKu9i3pMyVDBKtVH FGqxdXLYVUdDhm1jgEjl5YHrYNoLdh/83n/IKl+2ybIePR9tCxvUh6O2guOY8vxONNZmLRrOol195w fdnCUDT8CP6DsKUNLtnMlUtzZFVQKHg7/KQ4kygXJwuGqTd6u1kkZDnpKpNRqcSYS7S+XMGRzR7ifD ti48Ngwibc4y6J1pxR8lKr7FJXSQNm2AT5dfjOtA4tSsi5OJI0MMohKbmWoshOtrIme8gc35SgMuF4 o1niqfEFEDFkUmHCj0imv2WHw+7dyQg== 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=OZ/YmTE0gmZV65Ff8QNBgwFAunQemGRnKq8mAGvkA28=; b=pee+XzOBsTXAW3j624m5nUsn40gNZLZ+/rrc41PtI87ZYAUoR56bIgeF84EHv+p99l6qsROBCSh6m hJnolFnH4kGgnMI332ewgNTQix+M5+j+kvkMhdcfhJHcZaZW28EzysKyy2cpPDaHUF/TNRkwnsXqJu xfsOH0vqrQFNghutPQAprbsj1fnxsEYQ/SQljpzk2RrZNMpYhkS9XJzKezrzzvLQi9ytdxvACm33D2 rYKmBXFmWqCc62B/R+ddwrpYC1gScrHvjkHS9qI49tPbF5x89MAEsYUa+DKeo1UqytUtRLTu6DnXYF lw8pkOVHeCWFsn3Bt3J9knuG/UHZ0/g== ARC-Authentication-Results: i=1; outbound2.eu.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=OZ/YmTE0gmZV65Ff8QNBgwFAunQemGRnKq8mAGvkA28=; b=Vi0+dW/AbP00yvxhLYqTvxClimHqpn1eBaC0VY1eugw9f7JIiNaRRt7k3caXXxPKqGgLUhuL7ktXg OROT0hyZZdfsSXwjfW7z9vPWHp36JGJwxDhxUkKRpMT2U6t5UUmO6PgEJ6XGg3QGeQvZHJOBnzHihS CoVmUH4//290JrllQfSCXlx8xp9yQiEm+DE7H2+Umhugh8nypIk1sZCdFny55X7A9LGUQ5/DsYr83l FQLYBIKF6iIffCOfuJdEcgxjD8Vz7Za5k0JwMyo0HeIrVFLx0Ayh+G/KwIu9LJjLlsLS6YJRneZr52 O4+B3vHNF6zR92Yhw6Sg7P1ktsDoFwQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: 2c8bcf53-3bd0-11e9-803b-31925da7267c 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 outbound2.eu.mailhop.org (Halon) with ESMTPSA id 2c8bcf53-3bd0-11e9-803b-31925da7267c; Fri, 01 Mar 2019 03:14:51 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x213EnwP009071; Thu, 28 Feb 2019 20:14:49 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1797d7376b308236366305ad5ae18661b1d2a80c.camel@freebsd.org> Subject: Re: about netbooting on armv6 [was: Fwd: SDIO Patch D4761.diff Not Building For Me] From: Ian Lepore To: ticso@cicely.de Cc: freebsd-arm Date: Thu, 28 Feb 2019 20:14:49 -0700 In-Reply-To: <20190301031213.GE23492@cicely7.cicely.de> References: <5432b449f37a481bc7099fbab25fbd2e@bakulin.de> <1458751414.1091.47.camel@freebsd.org> <20190301031213.GE23492@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: 545B87161E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.956,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:16509, ipnet:52.58.0.0/15, country:US] 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: Fri, 01 Mar 2019 03:14:57 -0000 On Fri, 2019-03-01 at 04:12 +0100, Bernd Walter wrote: > On Wed, Mar 23, 2016 at 10:43:34AM -0600, Ian Lepore wrote: > > > > The quick and easy config for netbooting armv6 these days is to set > > a > > few vars in your uboot env. This assumes that you let uboot load > > ubldr.bin from sdcard, and then have ubldr load the kernel and the > > kernel will mount nfsroot. > > > > If you have a dhcp server to provide an IP, this is all you need in > > uboot env: > > > > loaderdev=net > > rootpath=:/ > > > > If you manually configure the ip, add these: > > > > ipaddr= > > netmask=255.etc.etc.etc > > Ok - I'm lost with this. > > I've setup a card for a Pi1-B with just the DOS partition on it. > This is what I get: > MMC: mmc@7e300000: 1 > Loading Environment from FAT... In: serial > Out: vidconsole > Err: vidconsole > Net: No ethernet found. > starting USB... > USB0: scanning bus 0 for devices... 3 USB Device(s) found > scanning usb for storage devices... 0 Storage Device(s) found > Hit any key to stop autoboot: 0 > MMC Device 0 not found > no mmc device at slot 0 > switch to partitions #0, OK > mmc1 is current device > Scanning mmc 1:1... > Found EFI removable media binary efi/boot/bootarm.efi > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Scanning disk mmc@7e300000.blk... > Found 2 disks > FDT memrsv map 0: Failed to add to map > 583472 bytes read in 56 ms (9.9 MiB/s) > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > FDT memrsv map 0: Failed to add to map > ## Starting EFI application at 00080000 ... > 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.2304) > Console: efi (0) > Load Path: /\efi\boot\bootarm.efi > Load Device: /VenHw(e61d73b9-a384-4acc-aeab- > 82e828f3628b)/SD(1)/SD(0)/HD(1,0x01,0,0x800,0x19000) > Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab- > 82e828f3628b)/SD(1)/SD(0)/HD(1,0x01,0,0x800,0x19000) > Setting currdev to disk0p1: > Failed to find bootable partition > Startup error in /boot/lua/loader.lua: seconds > LUA ERROR: cannot open /boot/lua/loader.lua: no such file or > directory. > > can't load 'kernel' > > Type '?' for a list of commands, 'help' for more detailed help. > OK > > So - ok it can't find its partition on the card. > But how can I setup those variables? > MMC: mmc@7e300000: 1 > Loading Environment from FAT... In: serial > Out: vidconsole > Err: vidconsole > Net: No ethernet found. > starting USB... > USB0: scanning bus 0 for devices... 3 USB Device(s) found > scanning usb for storage devices... 0 Storage Device(s) found > Hit any key to stop autoboot: 0 > U-Boot> loaderdev=net > U-Boot> saveenv > Saving Environment to FAT... Failed (1) > > Same problem with saveenv not being functional on the original image > as well, > not just on mine. > I've tried uEnv.txt, but it is just as it isn't there. > All of what I said back then is valid only for ubldr. EFI is a whole 'nother story. I've never gotten netbooting to work with EFI. So mostly I just use old u-boot (from the 2015-2016 era) on all my boards. -- Ian