Establishing a cross-compilation environment - mini2440 development board

Publisher:温暖梦想Latest update time:2020-05-17 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Ubuntu 64-bit direct installation of arm-linux-gcc-4.4.3 will cause an error


~$ sudo apt-get install ia32-libs install some 32-bit libraries```


Development environment: Fedora9 32-bit

Note: When vmbox bridges the network, you need to set a static IP, otherwise you will not be able to connect to the Internet


Step 1: Install arm-linux-gcc-4.4.3

Copy arm-linux-gcc-4.4.3.tgz in the linux directory of the CD to a directory such as tmp, and then

Enter the directory and execute the decompression command:


#cd /tmp


tar -xzvf arm-linux-gcc-4.4.3.tar.gz -C /


Note: There is a space after C, and C is capitalized. It is the first letter of the English word "Change".

Here it means changing the directory.

Execute this command to install arm-linux-gcc to the specified directory, as shown in the following figure (here is the opt/FriendlyARM/toolchain/4.4.3 directory):

insert image description here

Step 2: Add the compiler path to the system environment variable

Edit the /root/.bashrc file and add the following line to the last line:


export PATH=$PATH:/opt/FriendlyARM/toolschain/4.4.3/bin


refresh


source /root/.bashrc


Or add in the /etc/profile file to set the global environment variables

sudo vim /etc/profile

source /etc/profile


Note: Under the 64-bit operating system, you also need to install a 32-bit support library (because the arm-linux-gcc tool is 32-bit). The installation command is apt install lib32ncurses5 lib32z1


Execute `arm-linux-gcc -v, the following indicates that the installation is successful:

insert image description here

Step 3: Unzip and install the source code

Create working directory /opt/FriendlyARM/mini2440

Execute mkdir –p /opt/FriendlyARM/mini2440 in the command line

cd /opt/FriendlyARM/mini2440


Create a temporary directory /tmp/linux in the /tmp directory of the Fedora9 system

#mkdir /tmp/linux

Copy all the files in the linux directory on the CD to the /tmp/linux directory

Unzip each compressed package.


example:


Unzip and install the Linux kernel source code

Execute in the working directory /opt/FriendlyARM/mini2440:

#cd /opt/FriendlyARM/mini2440

#tar xvzf /tmp/linux/linux-2.6.32.2-mini2440*gz

The linux-2.6.32.2 directory will be created, which contains the complete Linux-2.6.32.2 kernel source code

20100106 is our release update date mark. Please refer to the actual date suffix on the CD for accuracy.

Reference address:Establishing a cross-compilation environment - mini2440 development board

Previous article:#Embedded Linux Minimum System Transplantation# mini2440 kernel 4.0.8 transplantation record
Next article:2. About the issue of MINI2440 download

Recommended ReadingLatest update time:2024-11-15 07:56

Mini2440 one-line bus transplantation tslib1.4
I recently came across the touch library tslib in my studies. When I tried to transplant it myself, I found that there are two solutions on the Internet, one is to use the AD built into 2440, and the other is a friendly one-line bus solution. My LCD model is TD35, and the default connection solution is a one-line bus,
[Microcontroller]
u-boot-2009.08 transplantation on mini2440 (I) --- Establishing mini2440 engineering environment (3)
Modify or add basic u-boot source code according to the boot process so that it can be started in memory 【1】Add support for some registers of S3C2440, add interrupt disable part and clock setting part Use gedit to open cpu/arm920t/start.S and locate around line 134. The following code #if defined(CONFIG_S3C2400) || de
[Microcontroller]
u-boot-2009.08 transplantation on mini2440 (I) --- Establishing mini2440 engineering environment (3)
Android + Mini2440 Wireless Network Video Surveillance System Overall Planning
Recently, I have nothing to do during my internship at the company. I happened to have a Mini2440 development board, a camera, and an Android phone. I thought, can I use these three things to realize a network video surveillance? I started working right away, and after a few days of hard work, I finally got some res
[Microcontroller]
Android + Mini2440 Wireless Network Video Surveillance System Overall Planning
U-Boot-1.1.6 is transplanted to MINI2440 development board (2) - S3C2440 related modifications
Now that we have a general understanding of U-Boot's compilation process, let's start transplanting. (I couldn’t find Zhihu’s code highlighting function...) Start porting: First modify the top-level Makefile: Add support for u-boot.dis to facilitate subsequent analysis (add $(obj)u-boot.dis): -------Makefile
[Microcontroller]
linux2.6.32.2 mini2440 platform transplantation--LCD backlight driver
1.3.1 LCD backlight control principle So far, we have been transplanting under the command line to view the results. In the mini2440/micro2440 development board, the LCD backlight is controlled through the LCD_PWR pin of the CPU. As can be seen from the schematic diagram, it corresponds to GPG4. When the LCD_PWR o
[Microcontroller]
mini2440 development board network settings (permanent changes, not restored after restart)
The simplest way to set up the network of the mini2440 development board is to use ifconfig. However, after this setting, the IP and gateway after ifconfig is restarted will still be the same as before. So how can we set it so that ifconfig sees the ideal IP after resetting or restarting the development board? The fol
[Microcontroller]
Solve the full-duplex problem of mini2440 sound card to achieve simultaneous recording and playback
#include  unistd.h #include  fcntl.h #include  sys/types.h #include  sys/ioctl.h #include  stdlib.h #include  stdio.h #include  linux/soundcard.h #include  pthread.h #define LENGTH 3 #define RATE 8000
[Microcontroller]
Mini2440 Hardware - SPI
 Hardware Principle 1.1.1. Protocol Overview The communication principle of SPI is very simple. It works in master-slave mode. This mode usually has one master device and one or more slave devices, requiring at least 4 wires. In fact, 3 wires are also OK (for unidirectional transmission). They are also common to a
[Microcontroller]
Mini2440 Hardware - SPI
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号