Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2023 11:18:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [Bug 271078] [nanobsd] embedded/common script does not copy FAT slice recursively
Message-ID:  <bug-271078-7@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271078-7>