Ubuntu s3c2440 Development Environment Building

Source: Internet
Author: User
Tags git clone dmesg

1. Installing the cross-compilation tool chain

tool Chain Source : use hundred questions to download the production of good tool chain;

uploaded to ubuntu/home/liu/ Customize the directory and unzip it.

To set all user environment variables:

Vim/etc/profile

The first line is added as follows

export Path=/home/liu/arm9/tools/gcc-3.4.5-glibc-2.3.6/bin: $PATH

Save and exit, the update takes effect:

Source/etc/profile

2. Install the relevant library

Used to solve

Arm-bcm2708hardfp-linux-gnueabi-menuconfig Unable to find the command error

Command Line Input:

sudo apt-get install lib32z1 lib32ncurses5

and then solve curses.h : No such fileor directory problem

installation ncurses

Command Line Input:

sudo apt-get install Libncurses5-dev

3. Install bare metal Download tool Oflash

copied to bin Catalogue

cp-r Oflash/usr/bin

Get Execute Permissions

sudo chmod +x oflash

4. Installing libftdi and ftdi-eeprom

installation Purpose: for compiling Openocd Install dependent libraries and Openjtag Chip (FT2232) Drive

https://www.intra2net.com/en/developer/libftdi/download.php

Download confuse-2.5.tar.gz and the libftdi1-1.4.tar.bz2 Different versions of different suffixes

Set up a working directory to move the installation package inside, unzip separately,

installation LIBFTDI into the extracted LIBFTDI Catalogue :

Execute in turn:

mkdir Build

CD Build

Then execute:

cmake-dcmake_install_prefix= "/usr". /; Make sudo make install

If the prompt is not installed CMake then execute:

sudo apt install cmake

installation CMake after the execution:

cmake-dcmake_install_prefix= "/usr". /

Make

sudo make install

Installation is complete.

installation Ftdi_eeprom ENTER after decompression confuse Directory:

Execute in turn:

./configure

Make

Make Install

The installation is complete without error

4. compiling openocd

Website Source code Installation

Download Source:

http://www.openocd.net/

copied to Ubuntu Custom Catalog

extracting a compressed package go to file directory

./configure--enable-maintainer-mode--enable-ftdi_libftdi

Make

sudo make install

Enter /usr/local/share/openocd/scripts/board Copy mini2440.cfg to the /usr/local/share/openocd/scripts

Open the file

Start by adding

#openocd 0.10.0 by default with the new FTDI interface, if you want to use the old ft2232 interface, you need to compile the Openocd when specified.

Interface Ftdi

# Specify the device by description and DMESG in the Product consistent

#ftdi_device_desc "usb<=>jtag&rs232"

# through PID VID specifying the debugger is more accurate than the description

ftdi_vid_pid 0x1457 0x5118

# If you have more than one debugger, you can also specify the debugger serial number to use

#ftdi_serial

# pin definition, equivalent to the previous version of the ft2232_layout Jtagkey

ftdi_layout_init 0x0c08 0x0f1b

ftdi_layout_signal ntrst-data 0x0100-noe 0x0400

ftdi_layout_signal nsrst-data 0x0200-noe 0x0800

157 Line instead

#nand device s3c2440 0

NAND device 0 s3c2440 s3c2440.cpu

or Compare Changes openocd.cfg file

git Source Installation

Specify the installation directory and then execute:

git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd

When the download is complete, execute it in turn:

./bootstrap

./configure--ENABLE-FTDI

Make

Make Install

display the current version in the current directory after installation is complete  

openocd-v

Open on-chip Debugger 0.10.0+dev-00290-g5a98ff7 (2018-01-31-20:39)

Licensed under GNU GPL v2

for bug reports, read

Http://openocd.org/doc/doxygen/bugs.html

Enter /usr/local/share/openocd/scripts/board Copy mini2440.cfg to the /usr/local/share/openocd/scripts

Open the file

Start by adding

#openocd 0.10.0 by default with the new FTDI interface, if you want to use the old ft2232 interface, you need to compile the Openocd when specified.

Interface Ftdi

# Specify the device by description and DMESG in the Product consistent

#ftdi_device_desc "usb<=>jtag&rs232"

# through PID VID specifying the debugger is more accurate than the description

ftdi_vid_pid 0x1457 0x5118

# If you have more than one debugger, you can also specify the debugger serial number to use

#ftdi_serial

# pin definition, equivalent to the previous version of the ft2232_layout Jtagkey

ftdi_layout_init 0x0c08 0x0f1b

ftdi_layout_signal ntrst-data 0x0100-noe 0x0400

ftdi_layout_signal nsrst-data 0x0200-noe 0x0800

157 Line instead

#nand device s3c2440 0

NAND device 0 s3c2440 s3c2440.cpu

or Compare Changes openocd.cfg file

Ubuntu s3c2440 Development Environment Building

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.