From owner-freebsd-arm@freebsd.org Sat Jun 6 19:40:34 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 35F7233C82C for ; Sat, 6 Jun 2020 19:40:34 +0000 (UTC) (envelope-from crowston@protonmail.com) Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49fVH51FNFz3SF8 for ; Sat, 6 Jun 2020 19:40:33 +0000 (UTC) (envelope-from crowston@protonmail.com) Date: Sat, 06 Jun 2020 19:40:25 +0000 To: =?UTF-8?Q?Klaus_K=C3=BCchemann?= From: Robert Crowston Cc: "freebsd-arm@freebsd.org" Reply-To: Robert Crowston Subject: Re: Report: FreeBSD on Rpi4 8 GB model Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 49fVH51FNFz3SF8 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.08 / 15.00]; HAS_REPLYTO(0.00)[crowston@protonmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-0.995]; FREEMAIL_TO(0.00)[googlemail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.134:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.957]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.03)[-1.033]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[185.70.40.134:from] 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: Sat, 06 Jun 2020 19:40:34 -0000 > can I or can you transfer your information into the wiki? No objection. If you prefer me to do it, I'll get around to it eventually. > Do you know whether sysutils/u-boot.xx- port(not pkg) could be targeted t= o 2020.07 > to fix any issue with u-boot? It's still June isn't it??? Working from home for so many weeks I've lost a= ll sense of time, but I'm pretty sure it isn't July yet :-) (I haven't tried this branch but presumably it has whatever fixed the 8 GB = model.) > Could you provide a u-boot binary and/or your modified armstub8-gic.bin f= or the wiki? I'm using the armstub8-gic.bin from /usr/local/share/rpi-firmware/armstub8-= gic.bin. I don't believe the upstream Pi Foundation code has changed for th= e 8 GB model. I'll mail you the u-boot.bin directly. > Afaik u-boot 2020.07 has new patches for genet and pcie(!)=E2=80=A6 do yo= u know details about that? Don't see either working here, but I haven't investigated more than mashing= the keyboard on boot. :) (Also, if it were fixed, presumably the xhci cont= roller would have the right firmware loaded before FreeBSD started.) =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Saturday, 6 June 2020 19:41, Klaus K=C3=BCchemann wrote: > Thanks Robert, > can I or can you transfer your information into the wiki? > My 8GB model was not bootable under UEFI. > I didn't know that u-boot had a current patch. > Could you provide a u-boot binary and/or your modified armstub8-gic.bin f= or the wiki? > I could upload that to a server and make it available for download . > Do you know whether sysutils/u-boot.xx- port(not pkg) could be targeted t= o 2020.07 > to fix any issue with u-boot? > Afaik u-boot 2020.07 has new patches for genet and pcie(!)=E2=80=A6 do yo= u know details about that? > > > Am 06.06.2020 um 20:15 schrieb Robert Crowston via freebsd-arm freebsd-= arm@freebsd.org: > > What works: > > > > - FreeBSD SMP (see below) > > - All 8 GB of memory (less video RAM). > > > > What does not work on the 8 GB model (but does work on the 4 GB model): > > > > - xhci (with my driver, there has been a change in the way the firmwa= re is loaded) > > - ethernet (genet0 is detected fine, appears to be up, but no packets= go over the interface) > > - JTAG debugging (urgh) > > > > dmesg: https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5534 > > You will need the latest u-boot. The one in pkg doesn't work. I compile= d from head: https://github.com/u-boot/u-boot.git > > For SMP, you need also need to tell u-boot not to clobber over our proc= essor start up function set up by armstub8-gic.bin. > > Edit board/raspberrypi/rpi/Kconfig, set RPI_EFI_NR_SPIN_PAGES to a larg= er number (I picked 10, probably too big, but it was easier than doing the = arithmetic). > > $ CROSS_COMPILE=3Daarch64-none-elf- gmake rpi_4_defconfig > > $ CROSS_COMPILE=3Daarch64-none-elf- gmake > > Overwrite the u-boot.bin file on your sdcard with the one just built. > > You will also need the latest versions of the pi4 firmware files on you= r MSDOS partition, bcm2711-rpi-4-b.dtb, fixup4.dat, start4.elf, and the ove= rlays/ directory. > > > > 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"