Setting up an Arm Linux development environment on Ubuntu

Publisher:快乐之源Latest update time:2016-06-16 Source: eefocusKeywords:Ubuntu Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
I use a Youshan 2410 board. I used to use Fedora, but now I have switched my home computer to Linux, and installed Ubuntu. But I still want to play with embedded systems, and I encountered some minor troubles during the loading process. I will record them here, firstly because I am forgetful, and secondly, I hope to give some inspiration to those who have never tried it. 


Purpose: 
Install and configure the cross-development environment, kernel, filesystem, and bootloder of ARM linux, so that it can compile bootloder and kernel, and update the file system with nfs; 

Resources:

Code:
arm-linux-toolchains.tgz
matrix5-kernel-v5.5.tgz
vivi.tar.gz
Jflash.tgz
root-for-nfs-v5.5.tgz



Planning:
The cross compiler is installed in: /usr/local/
kernel, the bootloder is placed in: /home/volans/arm/, and
the nfs file system for booting is placed in: /home/armnfs/.

Preparation:

Code:
sudo mkdir /home/armnfs
sudo chmod /home/armnfs
mkdir ~/arm
The purpose of the first two sentences is to create an armnfs directory under /home. For the convenience of development, this directory is set to rwx for all users.
Then copy all the resources mentioned above to ~/arm/.



Installation Configuration:

Code:
Install the standard C development environment. Since it is not installed by default in Ubuntu, you need to install it first:
sudo apt-get install gcc g++ libgcc1 libg++ make gdb


 

Code:
Install the cross compiler
cd /
sudo tar zxvf /home/volans/arm/arm-linux-toolchains.tgz
Please check whether the /usr/local/arm folder exists after the execution.
Add the path of the cross compiler to PATH for easy use:
sudo vi /etc/bash_bashrc
Add the following code at the end:
if [ -d /usr/local/arm ] ; then
    PATH=/usr/local/arm/2.95.3/bin:"${PATH}"
fi


 

Code:
Unzip the bootloader, kernel and flash burning tool Jflash
cd ~/arm
tar zxvf matrix5-kernel-v5.5.tgz
tar zxvf vivi.tar.gz
tar zxvf Jflash.tgz


 

Code:
Unzip the NFS file system for booting
cd /home/armnfs
tar zxvf /home/volans/root-for-nfs-v5.5.tgz


 

Code:
Start NFS service
Please refer to my previous articles for information about starting NFS server.
Add the following content to /etc/exports:
/home/armnfs/root 192.168.0.69(rw)


 

Code:
Install ncurse
Basically, the above configuration can basically meet the development needs, but now when you compile the kernel or vivi, running make menuconfig will prompt that ncurses cannot be found. This is because menuconfig uses the ncurses library. The solution is as follows:
sudo apt-get install ncurses-dev


 

Code:
Install the minicom serial port tool
sudo atp-get install minicom
and then configure:
sudo minicom -s
The configuration is the same as the friendly documentation, so I won’t say more.




There is basically nothing else. There are two points to note. The nfs shared directory is /home/armnfs/root, so change the shared directory to this when the target version uses NFS to start.

Keywords:Ubuntu Reference address:Setting up an Arm Linux development environment on Ubuntu

Previous article:ARM Linux cross-compilation environment crosstool tool under Linux system
Next article:Establishing ARM Linux cross-compilation environment

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号