Closed yanyunyouyou closed 2 years ago
try it:
mkrd -m 10 -s 512 1024
mount -t fatfs -o forceformat /dev/ram10 /data
@yanyunyouyou is the issue still relevant or you are satisfied with the answer?
@yanyunyouyou is the issue still relevant or you are satisfied with the answer?
It took me a long time to solve this problem. The main reason is that I use WSL and vscode. Some incorrect configurations lead to incorrect header files. I changed to Ubuntu 18.04, recompiled, and the command can be executed. Thank anjiahao1 for the advice, but the answer is wrong. Please see my screenshot.
Yes. mount
does not know what is -t fatfs
and vfat
does not have -o forceformat
option (it is from littlefs
).
So if I understand correctly the issue is resolved and can be closed?
Yes,it can be closed now。Thank you。
------------------ 原始邮件 ------------------ 发件人: "Petro @.>; 发送时间: 2022年1月12日(星期三) 上午7:34 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [apache/incubator-nuttx] ramdisk can be created,but mkfatfs /dev/ram0 falied with errno = 6 (Issue #5020)
Yes. mount does not know what is -t fatfs and vfat does not have -o forceformat option (it is from littlefs). So if I understand correctly the issue is resolved and can be closed?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
In my case, nsh can't found mkfatfs command. How can I configuration to enable mkfatfs? Thank you!
From menuconfig, type a forward slash and it will open a search function. Type MKFATFS and it will show you that FSUTILS_MKFATFS is what you need, and it is dependent on FS_FAT etc. It even tells you if those dependencies are enabled.
You can type the number of the relevant search result (1, in this case) and it will take you directly to the menuconfig entry, assuming the dependencies allow it to be visible.
HTH!
From: chenzhihong007 @.> Sent: Friday, May 5, 2023 9:55 AM To: apache/nuttx @.> Cc: Subscribed @.***> Subject: Re: [apache/nuttx] ramdisk can be created,but mkfatfs /dev/ram0 falied with errno = 6 (Issue #5020)
In my case, nsh can't found mkfatfs command. How can I configuration to enable mkfatfs? Thank you! https://user-images.githubusercontent.com/109498998/236416066-e17894a3-7346-4191-b94a-134514378e1a.png
— Reply to this email directly, view it on GitHub https://github.com/apache/nuttx/issues/5020#issuecomment-1535940027 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQZJKJ4GFKTY6PMQ3PCGOTXES54PANCNFSM5KI47PBA . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/ANQZJKJVFJYEXKYLEQVPYULXES54PA5CNFSM5KI47PBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOLOGJLOY.gif Message ID: @. @.> >
I got it, thank you very much!
nuttx玩起了太累了,加油吧
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年5月5日(星期五) 晚上6:48 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [apache/nuttx] ramdisk can be created,but mkfatfs /dev/ram0 falied with errno = 6 (Issue #5020)
I got it, thank you very much!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
I used stm32f429i-disco:nsh configuration example ,and just enable the fat filesystem . The ramdisk can be created ,but mkfatfs can not work.
![图片](https://user-images.githubusercontent.com/38059431/146554391-c5313629-081f-4c60-8b11-1cf2c120eaa3.png)