Configure arm-linux virtual machine development environment

Publisher:轻松自在Latest update time:2021-10-18 Source: eefocusKeywords:Configuration Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Basic tool configuration

The system is Ubuntu 12.01, which feels quite easy to use and stable. After entering the system, if a user is created during installation, root has no password:

 


#sudo passwd root


Configure the root password. Then change VI, because the vim used by the Ubuntu series is the common version, the arrow keys will output ABCD.

 


#sudo apt-get remove vim-common

#sudo apt-get install vim

 

You need to configure the software source when downloading, which greatly affects the speed.


#sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

//Back up first

#sudo gedit /etc/apt/sources.list


Then replace it with the following:

【2.1】 If the Ubuntu version is 13.04

【163 source】

deb http://mirrors.163.com/ubuntu/ precise main restricted

deb-src http://mirrors.163.com/ubuntu/ precise main restricted

deb http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted

deb http://mirrors.163.com/ubuntu/ precise universe

deb-src http://mirrors.163.com/ubuntu/ precise universe

deb http://mirrors.163.com/ubuntu/ precise-updates universe

deb-src http://mirrors.163.com/ubuntu/ precise-updates universe

deb http://mirrors.163.com/ubuntu/ precise multiverse

deb-src http://mirrors.163.com/ubuntu/ precise multiverse

deb http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse

deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ precise-security main restricted

deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted

deb http://mirrors.163.com/ubuntu/ precise-security universe

deb-src http://mirrors.163.com/ubuntu/ precise-security universe

deb http://mirrors.163.com/ubuntu/ precise-security multiverse

deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse

deb http://extras.ubuntu.com/ubuntu precise main

deb-src http://extras.ubuntu.com/ubuntu precise main


【2.2】 If the Ubuntu version is 12.04

Replace raring in the above list address with precise 


【3】Refresh list

sudo apt-get update


Installer:

Install vim:


sudo apt-get install vim


Install git:


sudo apt-get install git


Get the source code from git, super convenient.

Install openssh-server:


sudo apt-get install openssh-server


Sftp service enables file transfer between Windows and Ubuntu.

Install nfs service:


sudo apt-get install nfs-kernel-server


Popular Science: NFS: Network File System. NFS is just a file system. It has no transmission function. It is based on the RPC protocol and is a C/S architecture. In other words, NFS is just a file system, which is the same as jffs2, yaffs, ext4, etc. But the special thing about NFS is that it can be mounted through the network without burning it to the device.


NFS allows the development board to mount programs over the network

Create a working folder:


sudo mkdir /work;cd /work;sudo mkdir nfs

sudo chmod 777 /work


Configure nfs:


sudo vi /etc/exports

Add /work/nfs *(rw,sync,no_root_squash,no_subtree_check) to the last line of the document


Among them: /work/nfs: the directory allowed for the client to mount. You can add as many as you want. If it is not set, the server will not allow the client to mount.

*: Allow all IP hosts to mount this directory

In brackets: some permission settings

nfs restart takes effect:


sudo /etc/init.d/nfs-kernel-server restart


View the nfs mount path: showmount -e

Disable the firewall:


sudo ufw disable 


Install dnw:

Copy dnw from Windows to the /home path in Ubuntu

sudo mv /home/dnw /bin/

sudo chmod +x /bin/dnw

sudo chmod +s /bin/dnw

Install the gcc toolchain:

http://www.veryarm.com/arm-none-linux-gnueabi-gcc

Install the libncurses library:


sudo apt-get install libncurses5-dev


If it is a 64-bit machine, you also need to install the 32-bit library so that the cross-compilation chain can work properly, otherwise it will show that there is no such file:


sudo apt-get install ia32-libs


This will be used when executing make menuconfig

Install the library:


sudo apt-get install mtd-utils


This will be used when executing mkfs.jffs2 to create the root file


Let me share another method of sharing files between virtual machines and Windows. You don’t have to use NFS. VMware has a function for sharing host and virtual machine files, but you need to install its tools. The installation method is very simple. After installation, set the options below to share.

Write the picture description here

Here is a summary of the program download method.


First of all, the downloading methods of 2440 and 6410 are different. Generally, 2440 has NOR FLASH, so you can use jlink to directly download the program to NOR FLASH for execution, but 6410 generally does not have it, so it is generally downloaded to RAM and then indirectly downloaded to NAND FLASH. This is for JLINK, and it is the case of bare metal. 6410 has added support for SD cards, so 6410 can also use SD cards to download bare metal programs, but this is based on internal firmware.


If you have uboot, you will have more download options, such as USB, TFTP, and serial port.


Keywords:Configuration Reference address:Configure arm-linux virtual machine development environment

Previous article:tiny6410 cannot use USB to download
Next article:tiny6410 burning

Recommended posts

Laser projection keyboard, key recognition? What is the principle?
Sometimeago,IsawafriendonE-friendreceivedagiftfromourforum,whichwasalaserprojectionkeyboard.Iwasveryenvious,haha.Laserprojectionkeyboardshavebeenaroundforalongtime,butwhyhaven'ttheybecomepopular?It'smain
wangerxian MCU
Artificial Intelligence Algorithms (Volume 1): Basic Algorithms
Thealgorithmisthecoreofartificialintelligencetechnology.Try.Trytohaveaproceduralexample,andtherearevariouslanguageversionsoftheexamplecodeonGithubtodownload. https://download.eeworld.com.cn/detail/%E6%8A%9B%E7%A0%96%
arui1999 Download Centre
MSP430F5438+DTH11 Example Code
1unsignedchardth_read(unsignedchararray)//Default16Mhzmainfrequency,return1ifsuccessful,return0iffailed, 2/*arrayisa5-bytearray,thedataformatbroughtbackis:onebytehumidity(integer),onebytehumidity(decimal,invalid
火辣西米秀 Microcontroller MCU
A convenient test mqtt server setup
Aconvenienttestmqttserversetup 1.Installnode-red 2.Startnode-red 3.Typehttp://127.0.0.1:1880/inthebrowser. 4.Installthefollowingaedesbrokernode 5.Dragthenodeintotheprocessinterface. 6.Setthepor
damiaa Domestic Chip Exchange
How to debug a program in RAM?
TheprogramofthemicrocontrollerisgenerallystoredinFlash.Afterthechipispoweredon,theCPUreadsinstructionsfromFlashandexecutesthem.ComparedwithSRAM,thewritingspeedtoFlashismuchslower,especiallythetime-consum
MamoYU Embedded System
High anti-interference liquid crystal drive anti-static LCD driver chip VK2C21 anti-noise segment code driver IC
VK2C21isadotmatrixstoragemappedLCDdriverthatsupportsLCDscreenswithamaximumof80dots(20SEGx4COM)oramaximumof128dots(16SEGx8COM).Themicrocontrollercanconfiguredisplayparametersandreadandwritedisplaydatathroughthe
vinka杨桃 51mcu
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号