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.
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.
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
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- Lotus launches ultra-900V hybrid technology "Luyao" to accelerate the "Win26" plan
- What are the differences between STM32F103ZET6 and STM32F103RCT6
- The Internet of Things Conference starts this weekend. Is anyone in the forum going to attend?
- EEWORLD University Hall----Data Mining: Theory and Algorithms Tsinghua University (Yuan Bo)
- Anxinke ESP-S3-12K (Part 3) ---- Here comes an esp-box transplant
- Use and maintenance of UPS power supply for satellite earth station
- CCS configures include path and lib path
- About the precise positioning of multiple stars in one pot
- IKS01A3 driver transplantation, LPS22HH pressure and temperature detection for STM32G474RE
- Problems with TPA series amplifier chips
- Has the 38 Degree Fever forum been blocked?