in the boot-directdisk.bbclass, the call to the mkdosfs fonction is specified with an incorrect calculaled value of the image size. The size should be calculed with the HDDIMG variable and not the HDDDIR variable. This is the correction: ... install -m 0644 ${S}/syslinux.cfg ${HDDDIR}/syslinux.cfg install -m 444 ${STAGING_LIBDIR}/syslinux/ldlinux.sys ${HDDDIR}/ldlinux.sys ---BLOCKS=`du -bks ${HDDDIR} | cut -f 1` +++BLOCKS=`du -bks ${HDDIMG} | cut -f 1` BLOCKS=`expr $BLOCKS + ${BOOTDD_EXTRA_SPACE}` # Ensure total sectors is an integral number of sectors per # track or mcopy will complain. Sectors are 512 bytes, and we ... Tested working. Regards
Closing at the request of the reporter. I hadn't yet commented, but the fix noted here was definitely incorrect. This code could use a revamping along the lines of that in bootimg.bbclass, but this particular bug was opened in error.