Milk-V Duo + USB&Ethernet IOB: How to turn on NTFS support

I use Milk-V Duo board with USB&Ethernet IOB board. I tried to connect USB Flash drive with NTFS into USB port. The mount process failed with error so I decided the reason is filesystem type - I formatted the USB Flash drive into FAT32 and after that it’s mounted successfuly. I use “Duo-V1.0.7” release of the image with python.

So the question is: how to turn on support of NTFS filesystem for USB Flash drives in system?

you will need to add specific ntfs kernel config options to the kernel config - cvitek_cv1800b_milkv_duo_sd_defconfig

for example in the duo sdk folder

make ARCH=riscv menuconfig

press “/”

search for ntfs

this will list the names of the config entries you need to add the the


you also need to ensure the dependencies are enabled

Refer to the other posts about how wifi modules were added - 移植USB RTL8723DU WIFI无线驱动给Milk-V Duo

This doesn’t work for me:

~/milkv/duo-buildroot-sdk$ make ARCH=riscv menuconfig
make: *** No rule to make target 'menuconfig'.  Stop.

Could you tell me how did you make it work?

From linux_5.10 folder

Thank you, I added all flags to the config file. Now my USB-flash devices can be mounted, but still there are problems with it:

  1. USB-flash device mounts too much time (about 40 sec !!!)
  2. I can’t write anything into mounted device in spite of it’s mounted as R/W

There are some logs:

[root@milkv-duo]~# ls -l /mnt/udisk
total 0
drwx------    1 root     root             0 Feb  5  2024 System Volume Information
[root@milkv-duo]~# mkdir /mnt/udisk/1
mkdir: can't create directory '/mnt/udisk/1': Operation not permitted
[root@milkv-duo]~# mount
/dev/root on / type ext4 (rw,relatime,errors=remount-ro)
devtmpfs on /dev type devtmpfs (rw,relatime,size=14440k,nr_inodes=3610,mode=755)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=666)
tmpfs on /dev/shm type tmpfs (rw,relatime,mode=777)
tmpfs on /tmp type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
sysfs on /sys type sysfs (rw,relatime)
/dev/sda1 on /mnt/udisk type ntfs (rw,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1)

Any suggestions how to fix that?