update 4.0.36 (2021-11-21) to 4.0.37 (2022-01-08)
Improvements since the 4.0.36 release are:
- Removed mclasserase commands, which doesn't fit the coding
structure of the rest of mtools
- Add support to -i option to mcd
- Document -i flag in mtools.1
- Fix a missing command error in floppyd_io.c
announcement:
- https://lists.gnu.org/archive/html/info-mtools/2022-01/msg00000.html
Look for mtools in toolchain/bin instead of toolchain/sbin
mattrib is used by syslinux.mtools during make image
When mattrib is absent, this error is observed:
make image
> image: installing extlinux to part1...
> sh: mattrib: command not found
> syslinux.mtools: warning: failed to set system bit on ldlinux.sys
> sh: mattrib: command not found
> syslinux.mtools: warning: failed to set system bit on ldlinux.c32
> image: copying files to part1...
Especially mattrib which is used by syslinux.mtools during make image
When absent, this error is observed:
make image
> image: installing extlinux to part1...
> sh: mattrib: command not found
> syslinux.mtools: warning: failed to set system bit on ldlinux.sys
> sh: mattrib: command not found
> syslinux.mtools: warning: failed to set system bit on ldlinux.c32
> image: copying files to part1...
Mtools is used to format and copy files to vfat partition.
Populatefs is used to copy files to ext4 partition.
Tested on imx6 with u-boot, Generic with BIOS and EFI boot.
To avoid messing around with ext4 partition we could also provide "empty" disk image file. Both partitions would be already formatted and storage partition would already contain resize file. Then mkimage script would only copy kernel, system, bootloader files and install bootloader.
But current approach is more flexible for future use.