From owner-freebsd-arm@freebsd.org Wed Aug 5 10:45:01 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E3260371818 for ; Wed, 5 Aug 2020 10:45:01 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BM7YT15hnz4g5j for ; Wed, 5 Aug 2020 10:45:00 +0000 (UTC) (envelope-from dpolyg@gmail.com) Received: by mail-pg1-x543.google.com with SMTP id s15so12658177pgc.8 for ; Wed, 05 Aug 2020 03:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=8vhdv+uPYvALQJgXBzgq+o9I+opi1UQZbwGjTZcIAxI=; b=iv0D0eWFdyQLISstuy2R53GRGOlGRGIce0Bzj9oqTdWqw0tR/2c/Ie7crEPdlx2jJv g9Ox0grsHpXX25w4W4ROBcxGefa0N0bAMX8T7znzV6cvKaLOaa8sALgPGEtfRJ/vDP4G nz6bG9C5d/ZuszDy/eplShDUn2hA2R/v1JgpubLsHlrhdqyFj0pO60hisCgfkk71xGsh aiz44kAoAnrTUfoV0d4U86cLITaGQXMaM+4viKfEEy0tqy4KML6vOYIILirQREl27qA2 XSCvnC+eKNYQ0vqVEDLMmO5mYXbEOQQHZ9i5VeziaEHuvu3rh/RZV/evsfAbiepcRIOY X2UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8vhdv+uPYvALQJgXBzgq+o9I+opi1UQZbwGjTZcIAxI=; b=lgga9TtBuNT0m11bj1M1F2a7lZamYHtbGX4jn1aeQgsAevvKp3SA8188D9N+mA1bIx CFSewE6ciDypN7XdT9KRmxHn0UYnqCjDHNqhlLFX35rG4CynTHnYjxNfQBiXcZK1nOXq CxWHtSeZjGqOrPu+NAfIM2YYtdqQcIaDJu0pZ//cAdN2Tdnh04og3iNUtbU5E3oaThnp M+yhlQXJvI+jo6YXr5eMPf2A4XavF3CI1bbRXihTZDVdSv+rLH7GIEgMelgCWXnKFwMq 7bzlSNZkw863jUQGnhs6sa9mR+FEc3P/WqVH1oS+k06H5Ryi7z9qDhGhPgpyqU0gTHBM FaUA== X-Gm-Message-State: AOAM530WA1KbtCpwFC10CBye6FGDU5sj0cAWkfCPwMm4yMXsz6tQmdhr C9jH1GYfqZqGClnwcfLYR6NGx3QdsS0= X-Google-Smtp-Source: ABdhPJz/6DiBqYhhd+CFOsyODpQoljxrUoFzrTOriPRmdxei6CWajzQ1dNvy2tjijStWbqjMHYyNNg== X-Received: by 2002:a63:4b5c:: with SMTP id k28mr256258pgl.356.1596624299283; Wed, 05 Aug 2020 03:44:59 -0700 (PDT) Received: from [192.168.1.100] (pl20898.ag1212.nttpc.ne.jp. [1.33.17.162]) by smtp.googlemail.com with ESMTPSA id e20sm2408800pjr.28.2020.08.05.03.44.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Aug 2020 03:44:57 -0700 (PDT) Subject: Re: FreeBSD network boot on Raspberry Pi 4 To: freebsd-arm@freebsd.org References: <90f6021a-1be8-8d2e-2e58-6647edb9e101@gmail.com> From: Denis Polygalov Message-ID: <1555afc0-b014-ccf7-5c4c-05115a8facc1@gmail.com> Date: Wed, 5 Aug 2020 19:44:50 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4BM7YT15hnz4g5j X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=iv0D0eWF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dpolyg@gmail.com designates 2607:f8b0:4864:20::543 as permitted sender) smtp.mailfrom=dpolyg@gmail.com X-Spamd-Result: default: False [-2.72 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[1.33.17.162:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.87)[-0.870]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.96)[-0.957]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.11)[0.111]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::543:from]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2020 10:45:01 -0000 Thank you for your suggestions. I switched my FreeBSD source code tree to the head: $ svn info Path: . Working Copy Root Path: /usr/home/denis/freebsd/base/head/src URL: svn://svn.freebsd.org/base/head Relative URL: ^/head Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 363886 Node Kind: directory Schedule: normal Last Changed Author: mjg Last Changed Rev: 363886 Last Changed Date: 2020-08-05 16:34:45 +0900 (Wed, 05 Aug 2020) then rebuild everything. Result is exactly the same, no boot, here is serial console output: >>Start PXE over IPv4. Station IP address is 192.168.10.201 Server IP address is 192.168.10.10 NBP filename is boot/loader.efi NBP filesize is 695808 Bytes Downloading NBP file... NBP file downloaded successfully. Consoles: serial port Reading loader env vars from /efi/freebsd/loader.env FreeBSD/arm64 EFI loader, Revision 1.1 (Wed Aug 5 18:14:26 JST 2020 denis@buildarm) Command line arguments: loader.efi Image base: 0x33841000 EFI version: 2.70 EFI Firmware: https://github.com/pftf/RPi4 (rev 1.00) Console: comconsole (0) Load Path: Load Device: MAC(DCA632932BAB,0x1)/IPv4(0.0.0.0) BootCurrent: 0003 BootOrder: 0000 0001 0002 0003[*] 0004 0005 0006 BootInfo Path: MAC(DCA632932BAB,0x1)/IPv4(0.0.0.0) Ignoring Boot0003: Only one DP found Setting currdev to net0: bootp: no reply No response for RARP request net_open: RARP failed Unable to open network interface 0 for exclusive access: 15 netboot: couldn't probe efinet0 net_open: netif_open() failed Failed to find bootable partition <-- here UEFI restarts if I understand correctly. Initialising SDRAM 'Micron' 16Gb x2 total-size: 32 Gbit Loading recovery.elf hnd: 0x00000000 Failed to read recovery.elf error: 3 Loading start4.elf hnd: 0x00000104 Loading fixup4.dat hnd: 0x00000103 MEM GPU: 76 ARM: 948 TOTAL: 1024 FIXUP src: 128 256 dst: 948 1024 Starting start4.elf @ 0xfec00200 NOTICE: BL31: v2.3():v2.3 NOTICE: BL31: Built : 10:40:51, Apr 21 2020 UEFI firmware (version UEFI Firmware v1.17 built at 16:07:05 on Jul 14 2020) Regards, Denis. On 5/08/2020 2:12 am, Robert Crowston wrote: > You’ll need 13-CURRENT. Things are gradually coming together. I think the only show stopper is a serious bug in the way we handle PCI-E DMA on models with >= 4 GB of RAM. > > — RHC. > > On Tue, Aug 4, 2020 at 15:27, Ronald Klop wrote: > >> On Tue, 04 Aug 2020 15:57:29 +0200, Denis Polygalov >> wrote: >> >>> Hi, >>> >>> I'm trying to boot FreeBSD 12.1-RELEASE over network >>> on Raspberry Pi 4 Model B. >>> Well, the '12.1-RELEASE' doesn't matter here because >>> seems like loader.efi cannot find and load kernel yet. >> >> Other people know more details than I do. But... RPI4 is very new. All >> development to get it up and running is in 13-CURRENT. >> You can try a snapshot build. >> >> More information can be found here: >> https://wiki.freebsd.org/arm/Raspberry%20Pi >> Latest snapshot can be found here: >> https://download.freebsd.org/ftp/snapshots/arm64/aarch64/ISO-IMAGES/13.0/ >> >> Regards, >> Ronald. >> >>> >>> I'm using RPi4 UEFI v 1.17: >>> https://github.com/pftf/RPi4/releases/tag/v1.17 >>> >>> and here is what I see on a serial console: >>> >>> ESC (setup), F1 (shell), ENTER (boot).. >>>>> Start PXE over IPv4. >>> Station IP address is 192.168.10.201 >>> >>> Server IP address is 192.168.10.10 >>> NBP filename is boot/loader.efi >>> NBP filesize is 610056 Bytes >>> Downloading NBP file... >>> >>> NBP file downloaded successfully. >>> Consoles: EFI console >>> FreeBSD/arm64 EFI loader, Revision 1.1 >>> >>> Command line arguments: loader.efi >>> EFI version: 2.70 >>> EFI Firmware: https://github.com/pftf/RPi4 (rev 1.00) >>> Console: efi (0) >>> Load Path: >>> (few minutes time delay here) >>> bootp: no reply >>> No response for RARP request >>> net_open: RARP failed >>> bootp: no reply >>> >>> Seems like the loader.efi is get executed but not all >>> necessary parameters are passed to it... >>> >>> The host machine I'm using for testing is designated for >>> network boot of various ARM based boards and I'm quite >>> sure tftpd/dhcpd/nfsd configuration is correct. >>> Here is relevant output of Nanopi-NEO2 board >>> network boot performed on the same host machine: >>> >>> ... skipped ... >>> ## Starting EFI application at 40080000 ... >>> Consoles: EFI console >>> Reading loader env vars from /efi/freebsd/loader.env >>> FreeBSD/arm64 EFI loader, Revision 1.1 >>> >>> Command line arguments: loader.efi >>> EFI version: 2.70 >>> EFI Firmware: Das U-Boot (rev 8217.1024) >>> Console: efi (0) >>> Load Path: /dtb\allwinner\sun50i-h5-nanopi- >>> Load Device: >>> /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/MAC(0201579f3216,0x1) >>> Setting currdev to net0: >>> net0: cannot set rx. filters (status=3) >>> Loading /boot/defaults/loader.conf >>> Loading /boot/device.hints >>> Loading /boot/loader.conf >>> Loading /boot/loader.conf.local >>> Autoboot in 8 seconds, hit [Enter] to boot or any other key to stop >>> Loading kernel... >>> /boot/kernel/kernel text=0x93a61c data=0x1914c8+0x84ab1c >>> syms=[0x8+0x138810+0x8+0x124a28] >>> Loading configured modules... >>> ... skipped ... >>> >>> is there anything I can do in order to get my RPi 4 booted over network? >>> >>> Best Regards, >>> Denis. >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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" >> _______________________________________________ >> 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"