Repository navigation
fix(initramfs): mount hot-attached FAT drives with utf8 - #48
Merged
Merged
Conversation
usb-external-attach.sh mounted vfat without utf8, so the guest kernel's iso8859-1 default applied and a long name outside ASCII read back as '?'. The app then could not open a track whose path held such a name (createReaderFor failed! kFileOpen) and showed E-8302. Mount with the options of the deck's own device-mount.sh, which 10-usb-drive-mount.sh already uses.
Owner
|
Thanks for reporting, clear and concise fix. Agree on not bumping the FEATURE_SET (which may need some fine tuning for the FS_MODS_RUNNER) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A FAT32 USB drive that the host attaches at run time, or restores at launch, is mounted by
usb-external-attach.shwithrw,noatime,shortname=mixed,dmask=000,fmask=000,flush. Withoututf8, the guest kernel's defaults apply (CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1",CONFIG_FAT_DEFAULT_UTF8unset), and a long name outside ASCII reads back as?:The browser still lists every track, because it reads
export.pdband the ANLZ files, but loading a track whose path holds such a name fails:The deck then shows "Media or File is collapsed or unavailable." and
E-8302: CANNOT PLAY TRACK(3000).Change
Mount vfat with the options of the deck's own
device-mount.sh(/home/root/scripts/device-mount.shin the firmware rootfs), which10-usb-drive-mount.shalready uses: this addscodepage=437,iocharset=iso8859-1,usefree,utf8. exfat is unaffected, since its kernel default iocharset is already utf8.The script is written at install time, so a slot gets the fix on reinstall. I did not raise
FEATURE_SET: an outdated slot boots without mods (launch.rstreats it as having no mods runner), which seemed heavier than this fix needs. I can raise it if you would rather prompt the reinstall.Testing
macOS 15.7.3 (arm64), v0.4.0, a CDJ-3000 3.22 slot, and a rekordbox 7 export on a FAT32 USB SSD whose folder and file names are mostly Japanese:
?, and loading such a track failed with E-8302./proc/mountsshowsusefree,utf8, the names list correctly, and the track loads and plays. A second deck loads tracks from the first deck's USB over Pro DJ Link, and beat-link-trigger shows their metadata, waveforms, beat grid and phrases.I tested v0.4.0's copy of the script with the same line changed, appended to the slot's
initramfs-patched.cpio.gz, rather than a reinstall from a build of this branch.bash -nandshellcheckpass on the patch script.