From owner-freebsd-arm@freebsd.org Thu Apr 11 13:08:38 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 0BB2915843EB for ; Thu, 11 Apr 2019 13:08:38 +0000 (UTC) (envelope-from peter.blok@bsd4all.org) Received: from smtpq5.tb.mail.iss.as9143.net (smtpq5.tb.mail.iss.as9143.net [212.54.42.168]) (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 98F2A8D82C; Thu, 11 Apr 2019 13:08:36 +0000 (UTC) (envelope-from peter.blok@bsd4all.org) Received: from [212.54.42.136] (helo=smtp12.tb.mail.iss.as9143.net) by smtpq5.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1hEZRL-0001yV-IP; Thu, 11 Apr 2019 15:08:27 +0200 Received: from 94-209-122-217.cable.dynamic.v4.ziggo.nl ([94.209.122.217] helo=wan0.bsd4all.org) by smtp12.tb.mail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1hEZRL-0000QS-FK; Thu, 11 Apr 2019 15:08:27 +0200 Received: from newnas (localhost [127.0.0.1]) by wan0.bsd4all.org (Postfix) with ESMTP id D462CC6; Thu, 11 Apr 2019 15:08:26 +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 A9PoO2ADA7Bp; Thu, 11 Apr 2019 15:08:23 +0200 (CEST) Received: from [192.168.1.65] (unknown [192.168.1.65]) by wan0.bsd4all.org (Postfix) with ESMTPSA id C8818C0; Thu, 11 Apr 2019 15:08:23 +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: <40A1D23F-AF9D-483E-9AAB-FA756B023864@bsd4all.org> Date: Thu, 11 Apr 2019 15:08:23 +0200 Cc: freebsd-arm , Ian Lepore Content-Transfer-Encoding: quoted-printable Message-Id: <9A060D59-780F-415B-8E81-06C029560500@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> <40A1D23F-AF9D-483E-9AAB-FA756B023864@bsd4all.org> 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=EbG2v8uC c=1 sm=1 tr=0 a=0XONDDbZk2SpjknwKA3Xxg==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=oexKYjalfGEA:10 a=6Q3WNqvRAAAA:8 a=6I5d2MoRAAAA:8 a=YTaFjHcSo-oz8wFMWZsA:9 a=MpE81C_CtdW-Sd1W:21 a=D9M8hqoFxkNEkm7c:21 a=QEXdDO2ut3YA:10 a=I8PBwKCn76L9oNdl0isp:22 a=IjZwj45LgO3ly-622nXo:22 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Rspamd-Queue-Id: 98F2A8D82C X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of peter.blok@bsd4all.org designates 212.54.42.168 as permitted sender) smtp.mailfrom=peter.blok@bsd4all.org X-Spamd-Result: default: False [-2.96 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; NEURAL_HAM_MEDIUM(-0.99)[-0.991,0]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:smtp.ziggo.nl/16]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[bsd4all.org]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: smtp.bsd4all.org]; NEURAL_HAM_SHORT(-0.93)[-0.935,0]; FROM_NO_DN(0.00)[]; IP_SCORE(-0.13)[ipnet: 212.54.32.0/20(-1.32), asn: 33915(0.68), country: NL(0.01)]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[168.42.54.212.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; 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] 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 13:08:38 -0000 Forgot to add the content of config.txt arm_control=3D0x200 dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don dtoverlay=3Dmmc dtoverlay=3Dpwm dtoverlay=3Dpi3-disable-bt device_tree_address=3D0x4000 kernel=3Du-boot.bin > On 11 Apr 2019, at 14:45, peter.blok@bsd4all.org wrote: >=20 > Bernd, >=20 > Don=E2=80=99t know if the following is going to help. I am netbooting = an rpi-3 using loader.efi >=20 > What I did was the following. >=20 > 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"; > } >=20 > 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 >=20 > /tftpboot/armbsd/dtb: > allwinner overlays >=20 > /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 >=20 > /tftpboot/armbsd/dtb/overlays: > sun50i-a64-sid.dtbo sun50i-a64-ths.dtbo sun50i-a64-timer.dtbo >=20 > /tftpboot/armbsd/overlays: > mmc.dtbo pi3-disable-bt.dtbo pwm.dtbo >=20 > /tftpboot/armbsd/pxelinux.cfg: > 01-b8-27-eb-2b-37-e1 >=20 > 8. Changed fstab on the NFS share and added = boot.nfsroot.options=3D=E2=80=9Cnolockd=E2=80=9D to loader.conf >=20 > Peter > _______________________________________________ > 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"