Page 1 of 1

Problem running vhd through cifs

Posted: Mon Jun 05, 2023 9:42 pm
by yavimaya

Hello,

Last time I used AO486 core was 6 months ago and it worked fine although I played other mister cores several times, almost at least once a week.
I've been running it always though cifs to a shared folder on a synology nas.

Today I was going to play ao486 also through cifs, asl always, but it refused to run.
I've tested it disconnecting cifs and playing by sd card and it worked fine, but not on cifs.
I've deleted shared games/ao486 folder and copied it from sdcard but result is the same.

I've connected usb debug cable to de10nano and I get always this error:

Code: Select all

Switch to core frame buffer
BIOS: games/AO486/boot0.rom
[  185.494325] CIFS: VFS: Couldn't get user pages (rc=-14)
BIOS: games/AO486/boot1.rom
[  185.502691] CIFS: VFS: Couldn't get user pages (rc=-14)

This is also the debug output when cifs foders are mounted at start of Mister Fpga

Code: Select all

Welcome to MiSTer (www.MiSTerFPGA.org)
login: *** reset bt ***
//192.168.1.36/MiSTer mounted
mount: /tmp/cifs_mount: //192.168.1.36/MiSTer already mounted on /tmp/cifs_mount.
//192.168.1.36/MiSTer not mounted
Done!
BIOS mounted
Filters mounted
Gamma mounted
Presets mounted
Shadow_Masks mounted
_Arcade mounted
_Computer mounted
_Console mounted
_Other mounted
_Utility mounted
cache mounted
cheats mounted
docs mounted
filters_audio mounted
font mounted
fonts mounted
games mounted
music mounted
saves mounted
savestates mounted
screenshots mounted
tmp mounted
wallpapers mounted
Done!

And this is the content of cifs_mount.ini

Code: Select all

SERVER="deleted"
SHARE="deleted"
USERNAME="deleted"
PASSWORD="deleted"
LOCAL_DIR="*"
WAIT_FOR_SERVER="true"
MOUNT_AT_BOOT="true"
ADDITIONAL_MOUNT_OPTIONS="vers=3.0"
SINGLE_CIFS_CONNECTION="true"
#Pipe "|" separated list of directories which will never be mounted when LOCAL_DIR="*"
SPECIAL_DIRECTORIES="linux|Scripts|System Volume Information"

I can still play other cores including chd based ones from cifs mount and they run like a charm, the problem is only with vhd imagen on a0486 core.

I have to mention that I've upgraded synology dsm from 6.X to 7.1.1 a month ago if it helps.

Best regards.


Re: Problem running vhd through cifs

Posted: Tue Jun 06, 2023 9:52 am
by pac

Iirc you need to have the rights to write, read only won't work for VHDs, so you might want to check that first.


Re: Problem running vhd through cifs

Posted: Tue Jun 06, 2023 3:56 pm
by yavimaya
pac wrote: Tue Jun 06, 2023 9:52 am

Iirc you need to have the rights to write, read only won't work for VHDs, so you might want to check that first.

I've checked x times that user in cifs_mount.ini has rw rights on shared folders on Synology. Any tips where else to look at?

Thanks!


Re: Problem running vhd through cifs

Posted: Tue Jun 06, 2023 7:17 pm
by yavimaya

Solved throwing away SMB / CIFS on synology DSM 7.x and using NFS


Re: Problem running vhd through cifs

Posted: Tue Jun 06, 2023 8:36 pm
by pac

No other hints beside it's working fine on my end, similar setup (Synology with DSM 7). SMB v3 is configured on the NAS?


Re: Problem running vhd through cifs

Posted: Tue Jun 06, 2023 8:59 pm
by yavimaya
pac wrote: Tue Jun 06, 2023 8:36 pm

No other hints beside it's working fine on my end, similar setup (Synology with DSM 7). SMB v3 is configured on the NAS?

I've tried with SMB2 minimum and SMB3.
I think I've tried all possible configurations... maybe the key one was missed


Re: Problem running vhd through cifs

Posted: Wed Jun 07, 2023 5:44 am
by pac

See attachment for "my" configuration (pretty much standard iirc).