From owner-freebsd-arm@freebsd.org Tue May 19 21:43:10 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 235442F5ED7 for ; Tue, 19 May 2020 21:43:10 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [IPv6:2a01:4f8:13b:240c::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.bsd4all.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49RTrr3bc7z4BJv for ; Tue, 19 May 2020 21:43:07 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Tue, 19 May 2020 23:42:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1589924579; bh=vRubtetSNt/YXWxejNllzuf6WVkA3GQnHlf8YZOMvSw=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=GOyGMAtXoH79XBDqqn484Istnoxxv/UFsl1AuRR/sMk/AF5/fSE7kNiJmF9bkouWq QC+x7tSQBsjovBms/WHcMbMTaIyLVPRl2iqkZ0nUUhO96XoKmUTCVGpjNZ04Ye+F3M 2vKcl7Jwi9JYNGpA4AsqMoji8V2wtSLqiPzmwDNrzi+UBDdDoJsb2DUl9iUvdhJgOp StaAtupdSKHCAFPv96YH7jyPt2w5CFOSl94cvDzTOTazsBauwh+2chWTl0aFhjukGG FMdDhnZekgcGJz6grF7zw7dEe47SkzpNe8HlfxH8StQuX5tiis5LzfFifxV8lxBBsA ieMKLhVrRO+Hw== From: "Herbert J. Skuhra" To: freebsd-arm@freebsd.org Subject: Re: rpi4 headless experience Message-ID: <20200519214259.GA16253@mail.bsd4all.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 49RTrr3bc7z4BJv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b=GOyGMAtX; dmarc=none; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 2a01:4f8:13b:240c::25 as permitted sender) smtp.mailfrom=herbert@gojira.at X-Spamd-Result: default: False [-0.96 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.45)[-0.454]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:240c::25]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gojira.at]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[gojira.at:+]; NEURAL_HAM_SHORT(-0.01)[-0.010]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE] 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: Tue, 19 May 2020 21:43:10 -0000 On Tue, May 19, 2020 at 03:32:07PM -0500, Dan Mack wrote: > Just tried the latest FreeBSD on RPI image on my rpi4-4GB system. Here's > what I experienced in case anyone else is interested: > > - Install method - I just dd'd the unxz'd image from the download site > onto a new microSD card. > > - used a serial port connected RPI to another RPI using a ttl to usb cable. > > - powered on, freebsd booted up just fine. > > root@generic:~ # uname -a ; df -h ; sysctl hw | grep physmem > FreeBSD generic 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r361019: Thu May 14 > 09:12:43 UTC 2020 > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 > > Filesystem Size Used Avail Capacity Mounted on > /dev/ufs/rootfs 29G 2.6G 24G 10% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/msdosfs/MSDOSBOOT 50M 25M 25M 50% /boot/msdos > tmpfs 50M 4.0K 50M 0% /tmp > > > hw.physmem: 973434880 > > I pluged in a USB connected SSD and it was not recognized on either USB2 or > USB3 ports. > > And the memory size is not reporting the full 4GB as can be seen above. > > Ethernet is working without any changes (dhcp kicked in by default) and > seems to work. > > Not sure about the on-board WiFI. > > That's it, if anyone knows the status of the USB support or how to get the > system to see all the memory, let me know :-) Hmm, I am running r360723 (GENERIC) on my RPi4 and it shows "hw.physmem: 4127662080". I can confirm that USB (and Wifi) is not working: usb_nop_xceiv0: on ofwbus0 simplebus0: mem 0x7e980000-0x7e98ffff,0x7e00b200-0x7e00b3ff irq 44,45 disabled compat brcm,bcm2708-usb (no driver attached) usb_needs_explore_all: no devclass Powerd reports "no cpufreq(4) support". No idea if it runs at full speed or not. I have two issues with the ethernet adapter (genet0): 1. Apparently, my RPi4 is sending icmp replies to the wrong destination!? Ping from laptop to RPi4: % ping -c 1 192.168.0.9 PING 192.168.0.9 (192.168.0.9) 56(84) bytes of data. --- 192.168.0.9 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms tcpdump on laptop: 23:20:22.244458 IP 192.168.0.2 > 192.168.0.9: ICMP echo request, id 14, seq 1, length 64 23:20:22.244651 IP 192.168.0.9 > 192.168.255.191: ICMP echo reply, id 14, seq 1, length 64 tcpdump on RPi4: 23:20:22.247490 IP 192.168.0.2 > 192.168.0.9: ICMP echo request, id 14, seq 1, length 64 23:20:22.247562 IP 192.168.0.9 > 192.168.0.2: ICMP echo reply, id 14, seq 1, length 64 Ping from RPi4 is OK. 2. IPv6 (accept_rtadv) is not working. And the RPi does not reboot. -- Herbert