From owner-freebsd-arm@freebsd.org Fri Jan 31 08:04:43 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 C19B6237A0E for ; Fri, 31 Jan 2020 08:04:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-19.consmr.mail.gq1.yahoo.com (sonic306-19.consmr.mail.gq1.yahoo.com [98.137.68.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4888rp55Dgz4G78 for ; Fri, 31 Jan 2020 08:04:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: vseu9fUVM1kbtg81e9UWoh0z_RwdW8z6MvxtQeROPAgED_3QoI7GKqTlcspxmHr xUSitvqpiUBKaPvEnZemw_azMkFQvFD6vtlc5hO16Zo8lcg9zYfqbeKZd8ZNPYezxMrmT8VjKuxf PFhrxwIV8QEqexzzWzb5aid4Dvsw54XWWXZuqSn7vTknFP80cy8uVnKux.GgoffkMbSUhHgbNCFK WBDjldUDtU9gwa1MNbJaqn3_1z_AdH8t705zFS3TEfQNQis7FM2YJuRfWLgTAGlZeb4L3xj2zqvS r32XzLCBZmHKBWHtQr9bp4mfOOPi4lwoLsX5zZSET33ro5ZCjabIYDrPVLaMamowcoBNFOdJYFik tdn6C5Sep1cq4lm_LlCPx7lTzB2AvcccDCkWi8ZxEkChLmNKAbTO1DIz4cxtKyIgRdOVZx6OfrYO 717MsMJNJDdNHUeqdYsksmJ3scaYfMkD9n4z6LoRYJijpN1AI.xAAf3Chjsm6veG8HWulORMyP8m PrCRJ2GARr4DdVw65PJeSWS7qn2ZmTRwH79g8FZhVDF5tHkQVPQvgyX7xa0pP6yd4TOFaO37SJEK fYz2qPWPHDcfaMmFGmRTIIuykkg5dwWD6ICg3s9OEOaf58cFMgdl4Y1gG7OFbk90UCpe43.RcSha QbVeVlggtULbqcA0gQVT9E5npM2nhOPekOUHwX2P5uXjkFPQGGDS1cz6VsN_dWuRwnOCMhLRYVcP SAI__ntqAc0Q4HV5vXNcsx_arC7IvVP.SCbwTUQ4X60.KHL7ESgQbWKTWHVSSNRo5M4Rh0sjps7i MeFgpLpqsCMq4tGVdF_OrqeRL3QDZVAAIb3U8mRJsp3UitohUjpjg2M3sJ2xZzNjZUg6OVsM2Uy0 p18DTbQkPvIiR3lclOzB87GJgdl4shuumgZgF4384USWLq_.YeKQbBlBAEBgVE0PPsP1lROHsvp. EnGBdFh3edQnmTP6vp6wYNx7WzkNWBEpVU4qOqm3g1iXyHsEuN.SE641Zfvfaa4nCtV2eU_FOHf_ Lr_IBa7ZqpdKRmtXi6RpbMGkrCs.7kHGd5EpGHoQYP1Y9iNCr9ndL9f2U7uooZRzkXxrnrlkV1bh DVAEV_k5fNCKAQ6l_krlksJBUwV5jc3sembFwPlLuxeWsePHmY.doGn74zufrXYdSMAG8_AQKfwk snScj3pUluzP43lsCOVB3De8ns4XsPQNlrOSNWSZuUjRFNq_fbzcEKNWG_zpsDXlPOobhKuFiT_G P_ygSGRIzl35qOsicUa0pa.yFaDID4DLsFASpiIrNO7B2RTyfviY49oGUU3FE_ckPbxa2yMAfXIq LOhxRcuxga7yrb2KCW9TBXrOIAxKJkFPwQY3NcPCqpCUEqH16m4E9WloiUUn08kBjMlv4YXmc410 NgFIxST0Ip23AOilOj0g- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Fri, 31 Jan 2020 08:04:39 +0000 Received: by smtp427.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID af8aff0fc21272652077120293598d91; Fri, 31 Jan 2020 08:04:36 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: arm64 as Tier 1 for FreeBSD 13 Message-Id: Date: Fri, 31 Jan 2020 00:04:35 -0800 To: freebsd-arm X-Mailer: Apple Mail (2.3608.40.2.2.4) References: X-Rspamd-Queue-Id: 4888rp55Dgz4G78 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.07 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.36)[-0.364,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.21)[-0.209,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (5.85), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.67), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[82.68.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[82.68.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] 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: Fri, 31 Jan 2020 08:04:43 -0000 Here is how I updated a Rock64 bootable microsdcard to also be able to boot an RPi4 (no file or disk usage conflicts). I took my Rock64 microsdcard and did the following, using only FreeBSD and its ports. Note that /boot/efi/ is the msdos file system mount point for this example. This sequence started on the Rock64: Using the port sysutils/rpi-firmware and what it installs, I did (ignore any messages from my habitual -aRx use): cp -aRx /usr/local/share/rpi-firmware/ /boot/efi/ cp -aRx /boot/efi/config_rpi4.txt /boot/efi/config.txt Then, using the port sysutils/u-boot-rpi4 and what it installs, I did: cp -aRx /usr/local/share/u-boot/u-boot-rpi4/u-boot.bin /boot/efi/ After shutting down the Rock64 I put the microsdcard in the RPi4 and turned it on. It booted fine: # uname -apKU FreeBSD Rock64OrRPI4 13.0-CURRENT FreeBSD 13.0-CURRENT #39 r356426M: Mon = Jan 6 19:55:34 PST 2020 = markmi@FBSDFHUGE:/usr/obj/cortexA53_clang/arm64.aarch64/usr/src/arm64.aarc= h64/sys/GENERIC-NODBG arm64 aarch64 1300075 1300075 (I have a serial console configuration set up.) For reference, the contents of /usr/local/share/rpi-firmware/ was in part: # ls -laT /usr/local/share/rpi-firmware/ total 42992 drwxr-xr-x 3 root wheel 2048 Jan 30 20:14:38 2020 . drwxr-xr-x 78 root wheel 1536 Jan 30 20:14:35 2020 .. -rw-r--r-- 1 root wheel 18693 Nov 22 09:06:45 2019 COPYING.linux -rw-r--r-- 1 root wheel 1594 Nov 22 09:06:45 2019 = LICENCE.broadcom -rw-r--r-- 1 root wheel 5888 Jan 30 13:26:31 2020 = armstub8-gic.bin -rw-r--r-- 1 root wheel 5888 Jan 30 13:26:31 2020 armstub8.bin -rw-r--r-- 1 root wheel 24201 Nov 22 09:06:45 2019 = bcm2708-rpi-b-plus.dtb . . . -rw-r--r-- 1 root wheel 52304 Nov 22 09:06:45 2019 bootcode.bin -rw-r--r-- 1 root wheel 89 Jan 30 13:26:19 2020 config.txt -rw-r--r-- 1 root wheel 147 Jan 30 13:26:19 2020 = config_rpi3.txt -rw-r--r-- 1 root wheel 135 Jan 30 13:26:20 2020 = config_rpi4.txt -rw-r--r-- 1 root wheel 110 Jan 30 13:26:19 2020 = config_rpi_0_w.txt -rw-r--r-- 1 root wheel 6744 Nov 22 09:06:45 2019 fixup.dat . . . -rw-r--r-- 1 root wheel 5751280 Nov 22 09:06:45 2019 kernel7l.img -rw-r--r-- 1 root wheel 13455872 Nov 22 09:06:45 2019 kernel8.img drwxr-xr-x 2 root wheel 7680 Jan 30 20:14:38 2020 overlays -rw-r--r-- 1 root wheel 2880356 Nov 22 09:06:45 2019 start.elf . . . -rw-r--r-- 1 root wheel 4857160 Nov 22 09:06:45 2019 start_db.elf -rw-r--r-- 1 root wheel 3794600 Nov 22 09:06:45 2019 start_x.elf and the contents of /usr/local/share/rpi-firmware/overlays/ was in part: # ls -laT /usr/local/share/rpi-firmware/overlays/ total 940 drwxr-xr-x 2 root wheel 7680 Jan 30 20:14:38 2020 . drwxr-xr-x 3 root wheel 2048 Jan 30 20:14:38 2020 .. -rw-r--r-- 1 root wheel 109920 Nov 22 09:06:45 2019 README -rw-r--r-- 1 root wheel 569 Nov 22 09:06:45 2019 act-led.dtbo -rw-r--r-- 1 root wheel 1027 Nov 22 09:06:45 2019 adau1977-adc.dtbo -rw-r--r-- 1 root wheel 1587 Nov 22 09:06:45 2019 = adau7002-simple.dtbo -rw-r--r-- 1 root wheel 2425 Nov 22 09:06:45 2019 ads1015.dtbo -rw-r--r-- 1 root wheel 2425 Nov 22 09:06:45 2019 ads1115.dtbo . . . -rw-r--r-- 1 root wheel 1112 Nov 22 09:06:45 2019 = vc4-kms-kippah-7inch.dtbo -rw-r--r-- 1 root wheel 2337 Nov 22 09:06:45 2019 vc4-kms-v3d.dtbo -rw-r--r-- 1 root wheel 758 Nov 22 09:06:45 2019 vga666.dtbo -rw-r--r-- 1 root wheel 1171 Nov 22 09:06:45 2019 = w1-gpio-pullup.dtbo -rw-r--r-- 1 root wheel 1036 Nov 22 09:06:45 2019 w1-gpio.dtbo -rw-r--r-- 1 root wheel 1558 Nov 22 09:06:45 2019 w5500.dtbo -rw-r--r-- 1 root wheel 1056 Nov 22 09:06:45 2019 wittypi.dtbo Finally, the contents of /usr/local/share/u-boot/u-boot-rpi4/ was: # ls -laT /usr/local/share/u-boot/u-boot-rpi4/ total 496 drwxr-xr-x 2 root wheel 512 Dec 4 13:19:26 2019 . drwxr-xr-x 9 root wheel 512 Dec 4 13:19:26 2019 .. -rw-r--r-- 1 root wheel 124 Dec 4 13:16:13 2019 README -rw-r--r-- 1 root wheel 37 Dec 4 13:16:13 2019 metadata -rw-r--r-- 1 root wheel 445896 Dec 4 13:16:13 2019 u-boot.bin =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)