Samba on Verdin Imx8mp, krikstone 6.2

Hi,
As per the document, SMB support | Toradex Developer Center

I have added below syntax
IMAGE_INSTALL_append = " samba cifs-utils" in local.conf which is getting error while building an image.
instead of that i’ve added
IMAGE_INSTALL:append = " samba cifs-utils" and build was success and Image created.

While building an image I got a WANRNING like below
cifs-utils-6.14.-r0 do_fetch: Failed to fetch URL git://git.samba.org/cifs-utils.git;branch=master, attempting MIRRORS if available**(Please see the below image )**

my question is after Flashing that image in the board
There is an option to verify in kernel level as mentioned in the document by using below command
cat /proc/filesystems | grep cifs
it should display nodev cifs

In our case, after giving the cat command it not displaying anything about cifs in filesystem.

my second question,
to enable SMB 2.0 and SMB 3.1 versions, in document it is showing we have to enable below options
CONFIG_CIFS_SMB2
CONFIG_CIFS_SMB311
on the kernel.
what is the process to enable to those options on kernel.

my 3rd question,
I’ve Entered command to connect the client => smbclient --user= /// got below error

Can anyone please provide some clarity on how to access the smbclient from the Target

Regards,
Akhil Y

Hi @Akhil.y,

Thanks for writing to Toradex Community!

Let me try to answer your question accordingly one by one

While building an image I got a WANRNING like below
cifs-utils-6.14.-r0 do_fetch: Failed to fetch URL git://git.samba.org/cifs-utils.git;branch=master, attempting MIRRORS if available**(Please see the below image )**

This is fine if you are able to build the package, the source code can be downloaded from available mirror link.

There is an option to verify in kernel level as mentioned in the document by using below command
cat /proc/filesystems | grep cifs
it should display nodev cifs

In our case, after giving the cat command it not displaying anything about cifs in filesystem.

my second question,
to enable SMB 2.0 and SMB 3.1 versions, in document it is showing we have to enable below options
CONFIG_CIFS_SMB2
CONFIG_CIFS_SMB311
on the kernel.
what is the process to enable to those options on kernel.

You are required to build custom kernel with above CONFIG option enabled. During development time you can build custom kernel out of yocto. This will provide you more control and easy to make changes and test. Link

To modify kernel using yocto project, you need to create your own meta layer and apply changes to existing recipe. Below article explain same in detail.

I’ve Entered command to connect the client => smbclient --user= /// got below error

Please share complete local.conf file to check how you are adding package.

Best Regards
Ritesh Kumar

Hi ritesh,
I have sent our local.conf file via email, please check and confirm

right now we got smb.service is enabled. (see the attached image)

we need smbclient on the target. as I mentioned in my previous query , If I use smbclient --user=Akhil //10.223.34.12/sharefolder

Note: Akhil is my windows username
10.223.34.12 is my windows IP addr
sharefolder is the foldername which I’m accessing from the target with the help of smbclient.

but it is showing smbclient: command not found.
how to get the smbclient to the target ?

regards
Akhil Y

Hi @Akhil.y ,
We are checking on the issue.

Hi sahil

could you please let us know the update of this.

Thanks
Akhi Y

Hi @Akhil.y ,
This issue is already solved on our email support by adding SFTP package.
I am updating here as well and marking this as solved.