From nobody Tue Jan 16 09:03:10 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TDjj81C1wz57CHc for ; Tue, 16 Jan 2024 09:03:24 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TDjj64Y5Pz4X61 for ; Tue, 16 Jan 2024 09:03:22 +0000 (UTC) (envelope-from mad@madpilot.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=madpilot.net header.s=bjowvop61wgh header.b="e 91M8eP"; dmarc=pass (policy=quarantine) header.from=madpilot.net; spf=pass (mx1.freebsd.org: domain of mad@madpilot.net designates 159.69.1.99 as permitted sender) smtp.mailfrom=mad@madpilot.net Received: from mail (mail [IPv6:fd5c:5351:d272::3]) by mail.madpilot.net (Postfix) with ESMTP id 4TDjhz1Tntz6fXX; Tue, 16 Jan 2024 10:03:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject:date:date :message-id:received; s=bjowvop61wgh; t=1705395792; x= 1707210193; bh=I2Bbq8dsYaDk2jt0DyNueeCm91Lp76sii9PEG0CP2AM=; b=e 91M8ePkm3N0MJbp/ccypXGdI4l1Y/9JzUfXQEojOmqUcfrA1WvMKWE+1uH3RqeVl rx5P349/vqadO8ET1k5rb/I4QD6Vwp6YS95aobtOTBuqtBcb096FVbm3l3Hy21MP I/NhXSLhkO8B4CzrqtFF7vOTNDygzVwOavh4yJuG7+xDM6V90ZLy+NkTbvaWBLAx Dd3MMpXdXwSxI3zcFp62o2sLt32Hb+JYGbv0mkJKfEgFj7LpoeB5ghFPv5+DuIiU AkuwNx45kTBBQH3oLTuviKuMFX8wAEnmIVzp102UiTw7677RA+PUUHTRSOOE1Jqu wLcbInlxz/52umz/zL37Q== Received: from mail.madpilot.net ([IPv6:fd5c:5351:d272::3]) by mail (mail.madpilot.net [IPv6:fd5c:5351:d272::3]) (amavisd-new, port 10026) with ESMTP id 7mAP3T_KTtF4; Tue, 16 Jan 2024 10:03:12 +0100 (CET) Message-ID: <3c3c23dc-dd28-4c0c-984e-7654e115c1e2@madpilot.net> Date: Tue, 16 Jan 2024 10:03:10 +0100 Subject: Re: Nanobsd for RPI4 To: Andrew Hankinson , freebsd-arm@freebsd.org References: Content-Language: en-US From: Guido Falsi Autocrypt: addr=mad@madpilot.net; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNHkd1aWRvIEZhbHNpIDxtYWRAbWFkcGlsb3QubmV0PsLAeAQTAQIAIgUCT4b6XQIbAwYL CQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQGuaGDlbL0pOWigf/YVTVf3+ZRnzeGP7CjGV1 Wrrxzjc8h8W64NZasV0XLHGFjl5MYwtm9jJ9gbL8Ubtqstey7lYpjOk2fG6YDhY5eptWCpR6 1QqYrioukhCfKbodSk6PnIZcx719nJVK2P7ihdFEN78TavpBwqIf9hGE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ZlWuyK4wsoZvDfp9yaRk+lIM58dw/Rcfxn670JaPTFSRPECVn/uL qBhJSkbYlY212YT9fxVUTJe6wIvDLQrQEjrQD/h1FMhfcLhAqsndltRd6DPvTKeMd/6VAxn0 hkoBKhEy5LkWjM9CHppu+bBkQ91/kj2uJQSXO8euonwHHS3c+6N2i2H7I0emcHGu07wuRB2t Dnw/RLBxohffdPZT2kbxuG7lhVHzwVDw5DRwSw8GkOdy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: - X-Spamd-Result: default: False [-1.98 / 15.00]; MISSING_MIME_VERSION(2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.979]; DMARC_POLICY_ALLOW(-0.50)[madpilot.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[madpilot.net:s=bjowvop61wgh]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; DKIM_TRACE(0.00)[madpilot.net:+] X-Rspamd-Queue-Id: 4TDjj64Y5Pz4X61 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org On 16/01/24 09:52, Andrew Hankinson wrote: > Hello, > > I saw a recent posting to this list about nanobsd for RPI3: > > Re: Nanobsd builds for rpi3 out of embedded blow up during build > > lists.freebsd.org > > favicon.ico > > > > > I just wanted to chime in to say I am seeing the exact same thing for a > RPI4 build with both 14.0 release and 15.0 current. I asked about it on > the forums, but there didn’t seem to be any solution. > > Has anyone here managed to get a nanobsd build working? I am using nanobsd with RPi3. Never tried RPi4. I did some customization to the nanobsd scripts and configuration to get it working though. Last time I rebuilt my image was in mid december. I'm going to build a new image in the next pair of weeks. Is the problem limited to the boot code? I have this code to create that partition: populate_boot_part ( ) ( MNT=$1 UBOOT_DIR="/usr/local/share/u-boot/${NANO_BOOT_PKG}" FIRMW_DIR="/usr/local/share/rpi-firmware" FIRMO_DIR="${FIRMW_DIR}/overlays" # Required files UBOOT_FILES="README u-boot.bin" DTB="bcm2710-rpi-2-b.dtb bcm2710-rpi-3-b.dtb bcm2710-rpi-3-b-plus.dtb bcm2710-rpi-cm3.dtb bcm2711-rpi-4-b.dtb" OVERLAYS="mmc.dtbo pwm.dtbo disable-bt.dtbo" DTB_FILES="armstub8.bin armstub8-gic.bin bootcode.bin fixup_cd.dat \ fixup_db.dat fixup_x.dat fixup.dat LICENCE.broadcom \ start_cd.elf start_db.elf start_x.elf start.elf \ fixup4.dat fixup4cd.dat fixup4db.dat fixup4x.dat start4.elf \ start4cd.elf start4db.elf start4x.elf ${DTB}" for _F in ${UBOOT_FILES}; do cp ${UBOOT_DIR}/${_F} ${MNT}/${_F} done for _F in ${DTB_FILES}; do cp ${FIRMW_DIR}/${_F} ${MNT}/${_F} done cp -p ${FIRMW_DIR}/config_arm64.txt ${MNT}/config.txt mkdir -p ${MNT}/overlays for _F in ${OVERLAYS}; do cp -p ${FIRMO_DIR}/${_F} ${MNT}/overlays/${_F} done mkdir -p ${MNT}/EFI/BOOT cp -p ${NANO_WORLDDIR}/boot/loader_lua.efi \ ${MNT}/EFI/BOOT/bootaa64.efi cp -R ${NANO_WORLDDIR}/boot/dtb ${MNT} # tell loader what partition to startup from mkdir -p ${MNT}/EFI/freebsd echo "rootdev=disk0s3a" >${MNT}/EFI/freebsd/loader.env ) Hope this helps. -- Guido Falsi