Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bl808 pine64 Ox64 format and mount errors with the fatfs examples #154

Open
davidawesome02 opened this issue Jun 17, 2023 · 6 comments
Open

Comments

@davidawesome02
Copy link

davidawesome02 commented Jun 17, 2023

When running the example, almost no fs type works;

fat32 - error 1 while mounting (this is after forcing it to partition by skipping the checks for empty)
exfat - error making file system type 19 (this is also after forcing it)

Right now I am trying to run (no idea if this will work, dd is slow)

sudo dd if=/dev/zero of=/dev/sdb

to remove all partition tables from the device, but if anyone knows how to run the format on the device, or what version still works because I am patching githubs current one with the 2.0 release...

Thanks for the help!
(see also issue #153)

(also this is a issue with the sdk, im just looking for help with it also.)

@davidawesome02
Copy link
Author

davidawesome02 commented Jun 17, 2023

Just wrote all zeros to the card anddd:

[F][MAIN] fail to mount filesystem,error= 1
[F][MAIN] SD card might fail to initialise.
(Call Error Handler)
FR_DISK_ERR,            /* (1) A hard error occurred in the low level disk I/O layer */

soooo...... what dose this mean

@davidawesome02
Copy link
Author

Confirmed on discord this is not a board issue, this is a code issue for the sd library

@davidawesome02
Copy link
Author

No version of the sd library work on ox64 (M0 core)

@davidawesome02
Copy link
Author

#75 somehow got it to work a few months ago...

@davidawesome02
Copy link
Author

update; 89f2184 works partialy (can format but read and write tests failing)

@davidawesome02
Copy link
Author

update 6a4d89b works for fat32 but nothing else, making new issue for exfat not working
pre 6a is compleatly diffrent, and cant be merged with current, and post is 2.0 whitch is broken

I know you have to modify the configs, but even those dont fix it, I keep getting error 19 (

if (FF_FS_EXFAT && (fsopt & FM_EXFAT)) { /* exFAT possible? */
)

FR_INVALID_PARAMETER

with config

#define FF_FS_CONTINUOUS 1
#define FF_FS_READONLY 0
#define FF_FS_MINIMIZE 0
#define FF_USE_FIND 1
#define FF_USE_MKFS 1
#define FF_USE_FASTSEEK 1
#define FF_USE_EXPAND 0
#define FF_USE_CHMOD 0
#define FF_USE_LABEL 0
#define FF_USE_FORWARD 0
#define FF_USE_STRFUNC 0
#define FF_PRINT_LLI   1
#define FF_PRINT_FLOAT 1
#define FF_STRF_ENCODE 3
#define FF_CODE_PAGE 437
#define FF_USE_LFN 2
#define FF_MAX_LFN 255
#define FF_LFN_UNICODE 1
#define FF_LFN_BUF 255
#define FF_SFN_BUF 12
#define FF_FS_RPATH 0
#define FF_VOLUMES 5
#define FF_STR_VOLUME_ID 2
#define FF_VOLUME_STRS   "ram", "flash", "sd", "sd2", "usb"
#define FF_MULTI_PARTITION 0
#define FF_MIN_SS 512
#define FF_MAX_SS 512
#define FF_LBA64 1
#define FF_MIN_GPT 0x10000000
#define FF_USE_TRIM 0
#define FF_FS_TINY 0
#define FF_FS_EXFAT 1
#define FF_FS_NORTC   1
#define FF_NORTC_MON  1
#define FF_NORTC_MDAY 1
#define FF_NORTC_YEAR 2022
#define FF_FS_NOFSINFO 0
#define FF_FS_LOCK 0
#define FF_FS_REENTRANT 0
#define FF_FS_TIMEOUT   1000

and only changing main.c to the commented exfat option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant