From owner-freebsd-arm@freebsd.org Thu Apr 11 12:45: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 9DF101583AC4 for ; Thu, 11 Apr 2019 12:45:32 +0000 (UTC) (envelope-from peter.blok@bsd4all.org) Received: from smtpq2.mnd.mail.iss.as9143.net (smtpq2.mnd.mail.iss.as9143.net [212.54.34.165]) (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 186208CBA8; Thu, 11 Apr 2019 12:45:30 +0000 (UTC) (envelope-from peter.blok@bsd4all.org) Received: from [212.54.34.120] (helo=smtp12.mnd.mail.iss.as9143.net) by smtpq2.mnd.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1hEZ50-0003WF-Hi; Thu, 11 Apr 2019 14:45:22 +0200 Received: from 94-209-122-217.cable.dynamic.v4.ziggo.nl ([94.209.122.217] helo=wan0.bsd4all.org) by smtp12.mnd.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1hEZ50-0002T1-EH; Thu, 11 Apr 2019 14:45:22 +0200 Received: from newnas (localhost [127.0.0.1]) by wan0.bsd4all.org (Postfix) with ESMTP id 4BB1C36D; Thu, 11 Apr 2019 14:45:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at bsd4all.org Received: from wan0.bsd4all.org ([127.0.0.1]) by newnas (newnas.bsd4all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bRGz6PxWkeD8; Thu, 11 Apr 2019 14:45:20 +0200 (CEST) Received: from [192.168.1.65] (unknown [192.168.1.65]) by wan0.bsd4all.org (Postfix) with ESMTPSA id C4EEC368; Thu, 11 Apr 2019 14:45:20 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: about netbooting on armv6 From: peter.blok@bsd4all.org In-Reply-To: <20190301034056.GG23492@cicely7.cicely.de> Date: Thu, 11 Apr 2019 14:45:20 +0200 Cc: Ian Lepore , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <40A1D23F-AF9D-483E-9AAB-FA756B023864@bsd4all.org> References: <5432b449f37a481bc7099fbab25fbd2e@bakulin.de> <1458751414.1091.47.camel@freebsd.org> <20190301031213.GE23492@cicely7.cicely.de> <1797d7376b308236366305ad5ae18661b1d2a80c.camel@freebsd.org> <20190301032326.GF23492@cicely7.cicely.de> <20190301034056.GG23492@cicely7.cicely.de> To: ticso@cicely.de X-Mailer: Apple Mail (2.3445.104.8) X-SourceIP: 94.209.122.217 X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=SYKJicZu c=1 sm=1 tr=0 a=0XONDDbZk2SpjknwKA3Xxg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=oexKYjalfGEA:10 a=jM2Dayi2fsnd9tRSqm4A:9 a=QEXdDO2ut3YA:10 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Rspamd-Queue-Id: 186208CBA8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of peter.blok@bsd4all.org designates 212.54.34.165 as permitted sender) smtp.mailfrom=peter.blok@bsd4all.org X-Spamd-Result: default: False [-1.97 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:smtp.ziggo.nl/16]; MV_CASE(0.50)[]; MX_GOOD(-0.01)[smtp.bsd4all.org]; NEURAL_HAM_SHORT(-0.39)[-0.386,0]; RCVD_IN_DNSWL_LOW(-0.10)[165.34.54.212.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:33915, ipnet:212.54.32.0/20, country:NL]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[217.122.209.94.zen.spamhaus.org : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.975,0]; RCVD_COUNT_FIVE(0.00)[6]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-0.85)[-0.850,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[bsd4all.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; IP_SCORE(0.15)[asn: 33915(0.72), country: NL(0.01)] 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: Thu, 11 Apr 2019 12:45:32 -0000 Bernd, Don=E2=80=99t know if the following is going to help. I am netbooting an = rpi-3 using loader.efi What I did was the following. 1. I booted of an 12-RELEASE SD-Image. 2. Mounted a NFS file-system that became my root file-system 3. Copied everything from / over to that file-system 4. Added to dhcp.conf host raspberrypi { hardware ethernet b8:27:eb:2b:37:e1; fixed-address 192.168.1.87; option host-name "raspberrypi"; next-server 192.168.1.1; option tftp-server-name "192.168.1.1"; option root-path "192.168.1.1:/zdata/rpiboot/armbsd"; filename "armbsd/loader.efi"; } 5. Under tftpbooot I copied bootcode.bin 6. With tcpdump I traced which directories it was going to open files = on. In my case it was bd2b37e1 (which is derived from mac) 7. Created /tftpboot/armbsd and a symbolic link from armbsd to bd2b37e1 The contents of /tftpboot/armbsd is (from the SD card) Not everything is = used and the pxelinux.cfg is not needed ls -R /tftpboot/armbsd/ armstub8.bin dtb fixup_db.dat = overlays start_cd.elf u-boot.bin bcm2710-rpi-3-b.dtb fixup.dat fixup_x.dat = pxelinux.cfg start_db.elf config.txt fixup_cd.dat loader.efi = start.elf start_x.elf /tftpboot/armbsd/dtb: allwinner overlays /tftpboot/armbsd/dtb/allwinner: sun50i-a64-nanopi-a64.dtb sun50i-a64-pine64-plus.dtb = sun50i-a64-sopine-baseboard.dtb sun50i-a64-olinuxino.dtb sun50i-a64-pine64.dtb = sun50i-h5-orangepi-pc2.dtb /tftpboot/armbsd/dtb/overlays: sun50i-a64-sid.dtbo sun50i-a64-ths.dtbo sun50i-a64-timer.dtbo /tftpboot/armbsd/overlays: mmc.dtbo pi3-disable-bt.dtbo pwm.dtbo /tftpboot/armbsd/pxelinux.cfg: 01-b8-27-eb-2b-37-e1 8. Changed fstab on the NFS share and added = boot.nfsroot.options=3D=E2=80=9Cnolockd=E2=80=9D to loader.conf Peter=