Jump to content
Electronics-Lab.com Community

How to Configure Samba Service on Allwinner T507-H Embedded Linux Board to Realize Cross-system File Share?


Recommended Posts

The Allwinner T507-H chip is widely used in various fields such as automotive electronics, power, healthcare, industrial control, IoT, and smart terminals. In complex embedded Linux application scenarios, it is important to break down the barriers between ARM boards and Windows devices in order to achieve cross-platform file sharing. Here’s how you can accomplish this:

We can use Samba, which is free software for SMB on Linux systems, to share files and printers between different operating systems. Samba makes it easy to share files between different platforms such as Linux, Windows and Mac, which greatly improves the efficiency of file transfer.

So, how to set up Samba service on the embedded OKT507-C development board?

01 Compile source code

1.Source code download address: http://ftp.samba.org/pub/samba/

Download the Samba source package and enter the source3 path:

Samba source package

2.Configure:

OKT507-C SBC Configure

./configure CC=aarch64-linux-gnu-gcc LD=aarch64-linux-gnu-ld AR=aarch64-linux-gnu-ar --target=arm-none-linux --host=arm-none-linux-gnueabihf samba_cv_CC_NEGATIVE_ENUM_VALUES=yes --cache-file=arm-linux.cache

3. Compile the source code (with only single-threaded compilation, without using the -j parameter):

make

f_782acae268869e230372ecc33a82a658&t=jpg

4.make install Generate the installation file:

installation file

Specify the installation path in the Makefile

samba-3.4.17/source3$make install

installation file

02 Configuration Service

1.Extract the compressed package to the following path:

f_90d04499481c7da1374a7457c34a2c9b&t=jpg

2.Create a new configuration file at the following path:

f_e7beb994519d0b61bc0917582a3d713c&t=jpg

3.Edit the contents of the file:

[global]
workgroup = root
security = user
client lanman auth = yes
lanman auth = yes
map to guest = bad user
guest account = root

[project]
comment = project
path = /
available = yes
browseable = yes
public = yes
guest ok = yes
writable = yes

4.Add a library file

Copy the dynamic link library file in the following path to the/lib directory of the board:

f_8d8ea36a0fe5d61ffd4aee0aa5073c51&t=jpg

5.Start the service

f_700c7a093926ac65196baf9e61be14db&t=jpg

03 Application services

1.OKT507-C development board (Linux board) and Windows host to share files:

(1) Start the Samba service and configure the IP of the same network segment as the host:

OKT507-C development board

(2) Add Samba support in the Windows host:

Open the control panel to enter the following interface:

Open the control panel

Check the following three options:

f_6a14e86930c1def7f59c1533d5e2c595&t=png

(3) Enter the server IP in the file manager, and press Enter to see the shared path:

Enter the server IP

Enter the server IP

2.The Linux board shares directories with the Ubuntu virtual machine:

(1) Install cifs-utils:

Install cifs-utils

(2) Create a mount point:

Create a mount point

(3) Mount the shared directory:

Mount the shared directory

Mount the shared directory

At this point, we have completed the implementation of Samba service on the embedded OKT507-C development board of Forlinx, and successfully made this Linux board share files with Windows host and Ubuntu virtual machine.

Of course, the specific operation of different master control platform boards will be different, but the overall idea is the same. I hope that the method provided in this article can be helpful to the project development of engineers in front of the screen.

Originally published at www.forlinx.net.

Link to comment
Share on other sites

  • admin changed the title to How to Configure Samba Service on Allwinner T507-H Embedded Linux Board to Realize Cross-system File Share?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...