From nobody Wed Apr 26 11:18:33 2023 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 4Q5xFQ085Yz47rN1 for ; Wed, 26 Apr 2023 11:18:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q5xFP4Mcpz3qC7 for ; Wed, 26 Apr 2023 11:18:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682507913; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rebJW36cMVp21TfxjFY3o/2Lf6gvllARG7V69HI7oVQ=; b=Y844t77mc2Tyg7s0E987CzkhNedraA6Dic0WbA7V8mK9SIFcsyOS92BHwwd2ADmAqxC35W BJnqiHYprE4U0WjAF0OUea/4SVcWJXtr7cT7//P1ZZc/YASMhfVtEPcTjFQYf8xvTsLuTI E0ohfdPzBBsLARcLlX/WMcGhCj1zDocAnmO6AFWm8gEGUpfpG/euvQJo9XdCScmGVSMly3 LfFHyM2pqkMWCBZ4OMIg5JfsmZmFJAUn+3Z4ayoVUQhSp2kZQMtd++lyGu8rRHhHDbF20Z H4Jv6t9xXDb5Jw9KAl6xwBKeug5y2x0g3xz2vKQK3t1aZzTPLI37NhkbVhqghQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682507913; a=rsa-sha256; cv=none; b=nD8gV4q8hzT4zvrQfwoiEMCIbKvUlOB5eXWNLhwctZcq94U+/tzz2vRcow7Akmup/oIe0E nIBdO7KulSM7BEDPvDszMWCtPO5DXWbi+zgtSADpHLVlTWkQj9DU0hvbI+vh8fFZxFf3mg 5qoykYM9xWgHS78Fg3GdsJvR2QdmdAidvIy1Mxr102gTDuiZklx8k/0IzShThyRkcevJtn o4ID5PeroarFy2KjfsgmoIUS3Ea+1GXPnJjNS/BHSDYThlWYKC9gCfvI1yz6m35iiOnqCp 3Sl9sW9lkBQ4wRMcqkyTfgfhSR5mGL9hiaIZEMhinI9CiJkRzbYWZodfv+1sIw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q5xFP3SDlzXLp for ; Wed, 26 Apr 2023 11:18:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33QBIXge057905 for ; Wed, 26 Apr 2023 11:18:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33QBIXtU057904 for freebsd-arm@FreeBSD.org; Wed, 26 Apr 2023 11:18:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 271078] [nanobsd] embedded/common script does not copy FAT slice recursively Date: Wed, 26 Apr 2023 11:18:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hondareyte.luc@laposte.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271078 Bug ID: 271078 Summary: [nanobsd] embedded/common script does not copy FAT slice recursively Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: hondareyte.luc@laposte.net Hello Since ubldr support is removed for armv7, I try to build a nanbsd image usi= ng EFI. So I add the following function to add bootarm.efi on the FAT slice: cust_efi_loader() { NANO_EFI_DIR=3D${NANO_FAT_DIR}/EFI mkdir -p ${NANO_EFI_DIR}/BOOT ${NANO_EFI_DIR}/FREEBSD LOADER_ENV=3D${NANO_EFI_DIR}/FREEBSD/loader.env echo "rootdev=3Ddisk0${NANO_SLICE_ROOT}:" >> ${LOADER_ENV} cp ${NANO_WORLDDIR}/boot/loader_lua.efi \ ${NANO_EFI_DIR}/BOOT/bootarm.efi } customize_cmd cust_efi_loader But EFI/* subdirs are not copied on the final slice. With this simple patch, it works. --- common.ori 2023-04-26 13:05:49.229317000 +0200 +++ common 2023-04-26 13:06:01.783766000 +0200 @@ -217,7 +217,7 @@ if [ -d ${NANO_FAT_DIR} ]; then # Need to copy files from ${NANO_FATDIR} with mtool= s, or use # makefs -t msdos once that's supported - mcopy -i ${NANO_LOG}/_.${NANO_SLICE_FAT} ${NANO_FAT_DIR}/* :: + mcopy -si ${NANO_LOG}/_.${NANO_SLICE_FAT} ${NANO_FAT_DIR}/* :: fi fi Note that the patch in PR255639 need to be applied. Regards, Luc --=20 You are receiving this mail because: You are the assignee for the bug.=