| Summary: | dosfstools mkdosfs -d option crashes with subdirectories | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Darren Hart <dvhart> |
| Component: | devtools / tool chain | Assignee: | Nitin Kamble <nitin.a.kamble> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, otavio, richard.purdie |
| Version: | 1.0 | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | x86 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Darren Hart
2011-11-22 14:47:18 UTC
This is a blocker for bootimg and also to remove loopback use of sdcard_image class on meta-texasinstruments. This is still an issue after the recent update to dosfstools: 995a09e dosfstools: Add patch to disable fat32 autoselection and behave as 2.10 0c45ecb dosfstools: update native to 2.11 (Nitin requested a retest) Yes it does fail. dave, I am able to reproduce the issue: mkdosfs 2.11 (12 Mar 2005) ADD fri2-live-fs/ldlinux.sys ADD fri2-live-fs/initrd ADD fri2-live-fs/syslinux.cfg ADD fri2-live-fs/EFI/BOOT/initrd *** glibc detected *** image/builddisk/build/build0/tmp/sysroots/x86_64-linux/usr/sbin/mkdosfs: malloc(): memory corruption: 0x000000000195aa40 *** BTW do you know when it was working, and which patch broke it? Thanks, Nitin (In reply to comment #4) > BTW do you know when it was working, and which patch broke it? It was never working to my knowledge. This is why bootimg crams everything into the root directory. EFI requires live images to use the EFI/BOOT/bootia32.efi directory structure. We can't do that because dosfstools breaks when using a non-flat directory structure. For reference that code is also broken with fat32 (-F 32). I have a patch to fix this issue, will send the commit to mailing list soon. Nitin This commit went into master to fix the issue. commit 8413a9b4e80b65e0ad0ddac659cc6abbd305ba35 Author: Nitin A Kamble <nitin.a.kamble@intel.com> Date: Tue Dec 13 15:26:22 2011 -0800 dosfstools: fix populated image creation with dirs This fixes bug: [YOCTO #1783] Fix populated image creation. Earlier subdirectories support was broken, and files can only be placed in the root directory. Now directory hirarchy is supported in the image. Also support for long names is extended to directory names. There are some outstanding issues as documented in the patch header, these issues can be worked around by running dosfsck tool after populated image creation. The dosfsck tool is also part of this package. (From OE-Core rev: 2de8f008b304017de7ca116aa79ef778ab40362d) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |