Arm-linux notes 3:arm-linux PC File Transfer method Summary (4 most common methods)

Source: Internet
Author: User
Tags file copy get ip ftp transfer

arm-linux notes 3:arm-linux pc File Transfer method Summary (4 most common methods)1 transferring files using a serial terminal
2 Transferring files using FTP
3 Transferring Files using NFS

4 Using a U-disk copy


The advantage of the serial port is that the method is simple, does not need too much configuration, does not need to join the network, but sends the data the speed is relatively slow, does not apply in transmits more than 10M the file

FTP configuration requires networking, also need to download FTP services and complex configuration, the size of file transfer speed is relatively fast, but it seems that only a single file can be transferred, no NFS convenience

NFS Configuration also need to network, also need to download NFS services and complex configuration, after configuration, the operation of the file is local replication, the size of a single double file copy, of course, the most convenient

U-Disk file is of course convenient, but it is easy to go wrong, so use a more reliable method

Comprehensive: When there is no network priority choice of serial port transmission, there is a network when the small file directly with the serial port, you can avoid the configuration of FTP and NFS services, the transmission of the file is larger when the direct use of NFS or FTP, if you need to send a file folder you do not want to compress files directly with NFS


a serial port transfer file (SecureCRT software)
1 cross fall to download SecureCRT (ubuntu)//download software under Linux
2install SECURECRT (DEB)//install software
Dpkg-i Xxxx.deb
3install ssh//install SSH service, serial control of ARM Linux services
Apt-get Install Openssh-server
Ps-e|grep ssh to check if it's open,if open you'll see a sshd
If not open,/etc/init.d/ssh start,then it ' ll open
4 crack securecrt//download cracked file securecrt_linux_crack.pl
Http://www.cnblogs.com/wangkongming/p/3533240.html

wget http://download.boll.me/securecrt_linux_crack.pl
sudo perl securecrt_linux_crack.pl/usr/bin/securecrt//install cracked files, it is best to put this file in the same directory as the Deb installation package
Then it'll show crack successful and show Licence;
Inpute Licence to Software,next time your login,no days warning
Note: Start copying from licence
There are already. pl files that do not need to be downloaded by wget
5check If your computer have usbserial (default it has a usbserial)
Lsmod | grep usbserial
->usbserial 38972 1 pl2303

Check if computer can recogonize USB
DMESG | grep ttyUSB0
->usb 2-1.1.3:pl2303 Converter now attached to ttyUSB0
6 Open SECURECRT//When using SECURECRT, it is best to put the corresponding DEV/TTYUSB0 serial port permission, or error prone
Open a quick Connect
sudo chmod 777/dev/ttyusb0->permission denied

7 Transfer file to Armboard
2. Secure Transfer File
CD to the directory where the files are saved
Enter RZ and enter will select the file.


1, Development Board-->PC Machine
Enter SZ filename on the development Board.
On the PC, click on the HyperTerminal Menu "transfer", "Receive Files", select the location of the download and Zmodem and Crash Recovery protocol, click on Receive.
2. PC---Development Board
Go to the/tmp directory on the Development Board and enter RZ.
On the PC, click on the HyperTerminal Menu "transfer", "Send File", select the target file and Zmodem and Crash Recovery protocol, click Send.


Note: Linux under the SECURECRT software is not good to download, the download may need to turn over the wall, and the cracked file to correspond to the corresponding version, or can not be downloaded and can not be used! You may not be able to use the hack file account information at one time, so be patient and copy a few more times!
Here is a version of my normal use of a link for everyone to use!
Http://yunpan.cn/cdQNpsTiXI5Sf (Extract code: B4C7)


Of course, the serial transfer can also use the Minicom tool, minicom installation and configuration of the following brief description
Apt-get Install minicom
Settings: Ctrl + A after pressing Z--> press o--> Serial Port setup-->a set device:/dev/ttyusb0-->f No G no--> Save ... DFL
Confirm and select Press ENTER
Minicom actually can also transfer files, but it seems not convenient, interested can go to Baidu on their own!



Two FTP transfer files
1. Install FTP

Apt-get Install FTP


New A acount:
sudo useradd-m FTP//Create a dedicated FTP user, of course, you can not create a file on the PC right on the line
sudo passwd ftp
enter:111111
New A FTP acount named FTP,PASSWD is 111111
sudo chmod 777/home/ftp

2, modify (6410) IP
Vi/etc/eth0-setting
Modify IP to your computer IP range
Use ipconfig get IP
Original IP is 192.168.1.230
New IP is 192.168.1.109
Get (/HOIME/PLG) write Privelige
chmod 777/HOME/PLG
You need to restart arm6410 to get the IP

3 Use of FTP in Ubuntu terminal
[Email protected]:~$ ftp 192.168.1.109
Connected to 192.168.1.109.
Friendlyarm FTP Server (Version 6.4/openbsd/linux-ftpd-0.17) ready.
Name (192.168.1.109:XG): PLG
331 Password required for PLG.
Password:
User PLG logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
Ftp> lcd/home/ftp
Local Directory Now/home/ftp
Ftp> CD/HOME/PLG
CWD command successful.
ftp> pwd
257 "/HOME/PLG" is the current directory.
Ftp> put console
Local:console Remote:console
PORT command successful.
Opening BINARY mode data connection for ' console '.
226 Transfer complete.
121271 Bytes Sent in 0.05 secs (2.4505 MB/s)
Ftp> Get Console
Local:console Remote:console
PORT command successful.
Opening BINARY mode data connection for ' console ' (121271 bytes).
226 Transfer complete.
121271 bytes received in 0.16 secs (748.6769 kb/s)
Ftp> bye
221 Goodbye.
[Email protected]:~$

Problems//FAQs
Every times you use,you should
chmod 777/home/user,or you'll meet permission denied

three NFS transfer files
A on-PC NFS Configuration
1 Installing NFS
sudo apt-get install Nfs-kernel-server
Restart NFS
sudo service nfs-kernel-server restart
Or
Sudo/etc/init.d/nfs-kernel-server restart
2 specifying the directory of the PC NFS
Modify/etc/exports this file. Add the following code to the last line of this file
/home/xg/desktop * (Rw,sync,no_root_squash)
Note: There is a space in front of the * number, there is no space after the * number, and there are no spaces before and after commas.

B Development Board Client
To connect the/home/xg/desktop on a PC virtual machine on Ubuntu,
1. First "must" ensure that your development board can ping the PC virtual machine ubuntu,ping IP address can be
2. After you can ping the virtual machine Ubuntu, use the Mount command on the Development Board to mount it. How to mount it?
Mount-t Nfs-o nolock 192.168.1.101:/home/xg/desktop/mnt
Description
A) mount is a mount command
b) –t NFS is mounted using the NFS protocol
c) intr,nolock,rsize=1024,wsize=1024, these parameters do not explain too much, in order to ensure that the transmission
The output file is not error, the specific meaning, can Baidu
D) 192.168.1.100, this is the PC virtual machine under Ubuntu IP address, according to their own situation of self-repair
Change, mine is 192.168.1.101.
e)/home/xg/desktop, this is the directory where we said the absolute path to mount.
f)/mnt is the MNT folder on the Development Board
If everything is OK, the Development Board in the MNT directory can see the PC virtual machine Ubuntu,/home/xg/desktop the contents of this directory, you can also achieve the file of mutual transmission.

Development Board Modify (6410) IP
Vi/etc/eth0-setting
Modify IP to your computer IP range
Use ipconfig get IP
Original IP is 192.168.1.230//set up an IP on the same LAN
New IP is 192.168.1.109
Get (/HOIME/PLG) write Privelige
chmod 777/HOME/PLG
You need to restart arm6410 to get the IP
PC Mount command, you can now mount NFS under PC to see if NFS is working properly
Mount-t ntfs/dev/sda5/mnt/d Mount Sda5 to/mnt/d windows mount
If normal can be mounted to the corresponding Development Board, embedded Development Board also add NOLOCK command
Mount–t NFS intr,nolock,rsize=1024,wsize=1024 192.168.1.101:/home/xg/desktop
/mnt
You can copy the files as soon as you mount them successfully!


four U-disk copy file
For you do not want to use a variety of configurations can use the U-disk, U-disk convenient but prone to problems ah, it is not recommended to use!
Sometimes u disk format problems can not be copied, there are some non-formal U-disk will also appear can not be copied, it is strongly recommended to use the above method to transfer files!


At this point, arm-linux under the file transfer summary completed, found the problem please correct, in order to communicate learning!!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Arm-linux notes 3:arm-linux PC File Transfer method Summary (4 most common methods)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.