From owner-freebsd-arm@freebsd.org Sat Jun 6 18:41:25 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 51D5033B633 for ; Sat, 6 Jun 2020 18:41:25 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (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 49fSyr2j3Hz4Z6v for ; Sat, 6 Jun 2020 18:41:24 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-wr1-x442.google.com with SMTP id j10so13069980wrw.8 for ; Sat, 06 Jun 2020 11:41:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=jStPdXGBOm1zxRMvvYiJSPPTQu9YAJYeq9H2oq06I8c=; b=VJD8z1R4dVo4kv6lqXZl+zqkDB4M1UbLEV/yrd97KT0pEUgtiSelrUbEq/qz43OzMj JMQxeBWZTsOnkuUt4fuxHoTtfUsDWqFEjHrluzHv4iXax7UM1gmmS8CXPzw7KRnxQ26V AWiXWdYDhXRdj6NtiqO7Q7xFihv0Teid9ZDaWWVMTPECCYhWWtoUL7XizmSF+opdpvw9 oOh0AfXskCQjLtbtiUDegOV8OZd5BJSFfh68EpX8bhyOQ7TZ6vKQ7AaLpxfDNNCuTrVp cjD8j6gumFscoR4VWuAHDXG3/JfPMJ+7PxRHK8fKzPlzcjdtWVFxsIOAfxfecD/fZKhF bw+g== X-Gm-Message-State: AOAM530smG4tQo1THvwM22XXkwKnWk8IUpoQZfP1eu/MyWxg5hdq2MBs AaqKbwqfkKgl5wsWkWubsqL8HPjU X-Google-Smtp-Source: ABdhPJz8kudcUcNd2kKnYTpMS3wqoyauW433Z3k8RyhoNVhEIqTVOaAxK2pa7prESTwctwJgp4rmCw== X-Received: by 2002:a5d:4390:: with SMTP id i16mr14720610wrq.186.1591468882908; Sat, 06 Jun 2020 11:41:22 -0700 (PDT) Received: from [192.168.1.167] ([46.114.107.179]) by smtp.googlemail.com with ESMTPSA id v7sm12225530wro.76.2020.06.06.11.41.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jun 2020 11:41:22 -0700 (PDT) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Report: FreeBSD on Rpi4 8 GB model Date: Sat, 6 Jun 2020 20:41:20 +0200 References: To: Robert Crowston , freebsd-arm@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 49fSyr2j3Hz4Z6v X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.24 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; NEURAL_HAM_SHORT(-0.71)[-0.709]; FREEMAIL_TO(0.00)[protonmail.com,freebsd.org]; RECEIVED_SPAMHAUS_PBL(0.00)[46.114.107.179:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.011]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.02)[-1.017]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::442: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: Sat, 06 Jun 2020 18:41:25 -0000 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 = for 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 = to 2020.07=20 to fix any issue with u-boot? Afaik u-boot 2020.07 has new patches for genet and pcie(!)=E2=80=A6 do = you know details about that? > Am 06.06.2020 um 20:15 schrieb Robert Crowston via freebsd-arm = : >=20 > What works: > - FreeBSD SMP (see below) > - All 8 GB of memory (less video RAM). >=20 > 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 = firmware is loaded) > - ethernet (genet0 is detected fine, appears to be up, but no packets = go over the interface) > - JTAG debugging (urgh) >=20 > dmesg: https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5534 >=20 > You will need the latest u-boot. The one in pkg doesn't work. I = compiled from head: https://github.com/u-boot/u-boot.git >=20 > For SMP, you need also need to tell u-boot not to clobber over our = processor start up function set up by armstub8-gic.bin. >=20 > Edit board/raspberrypi/rpi/Kconfig, set RPI_EFI_NR_SPIN_PAGES to a = larger number (I picked 10, probably too big, but it was easier than = doing the arithmetic). >=20 > $ CROSS_COMPILE=3Daarch64-none-elf- gmake rpi_4_defconfig > $ CROSS_COMPILE=3Daarch64-none-elf- gmake >=20 > Overwrite the u-boot.bin file on your sdcard with the one just built. >=20 > You will also need the latest versions of the pi4 firmware files on = your MSDOS partition, bcm2711-rpi-4-b.dtb, fixup4.dat, start4.elf, and = the overlays/ directory. >=20 > _______________________________________________ > 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"