Build an embedded development environment for S5PV210 Development Board in Ubuntu

Source: Internet
Author: User

Build an embedded development environment for S5PV210 Development Board in Ubuntu

The development board used in this tutorial is the GEC210 Development Board, core board resource Overview: CPU: S5PV210, SDRAM: 512 MB, Flash: 8 MB, NandFlash: 256 MB.

The environment set up in this tutorial can be used for uboot porting and Linux porting, and kernel driver development can be easily implemented even if the Development Board only has uboot.

U-Boot source code

Full explanation of u-boot Makefile

Date command in U-Boot

U-Boot source code

Two important data in U-Boot: bd_t and gd_t

Version command in U-Boot

Usb commands in U-Boot

Next, go to the topic:

1. Cross Compiler

1.1 because the program we compile runs on the Development Board, while the program compiled by the Ubuntu compiler can only run in the X86 architecture.

Decompress the compiler:

$ Tar-jxvf arm-2009q3.tar.bz2-C/usr/local/arm/(arm-2009q3.tar.bz2 is the compiler for S5PV210 platforms ).
1.2 set Environment Variables

# Vim ~ /. Bashrc
Add at the end of the file
Export PATH =/usr/local/arm/arm-2009q3/bin: $ PATH
Make environment variables take effect
#.~ /. Bashrc
Verify environment variable settings
# Arm-linux-gcc-v

2. Configure the serial port tool-minicom

2.1 install the serial port Tool

Sudo apt-get install minicom

2.2 Configuration

# Minicom-s

Select Serial port setup for configuration.

2.3 configure serial communication parameters

Baud Rate: 115200 8N1
Hardware control flow: None
Port Configuration: Serial Device:/dev/ttyS0 (COM1 for desktop)

3. Build a tftp server

3.1 install tftp

Apt-get -- force-yes-y install tftpd-hpa tftp-hpa xinetd

3.2 Create a tftp Server Directory

Mkdir/tftpboot
Chmod 777/tftpboot

3.3 configure the tftp service

Vim/etc/default/tftpd-hpa
Modify the configuration file
TFTP_USERNAME = "tftp"
TFTP_DIRECTORY = "/tftpboot"
TFTP_ADDRESS = "0.0.0.0: 69"
TFTP_OPTIONS = "-l-c-s"
Enable the tftp service
Sudo/etc/init. d/xinetd restart
Sudo service tftpd-hpa restart

Test
Touch/tftpboot/aaa
Tftp localhost
Get aaa
If there are no errors, press q to exit and check whether there are any aaa files in the current directory. If yes, the tftp service is successfully configured.

Build a tftp service in Ubuntu

TFTP Server Configuration

Configure the TFTP download server in Ubuntu Linux

Configure tftp Server in Ubuntu 11.10

Build a TFTP service in Ubuntu 12.04

Install, set up, and debug a tftp server on Ubuntu 12.04

4. Set up an NFS server

4.1 install NFS

Apt-get -- force-yes-y install nfs-kernel-server nfs-client nfs-common portmap

4.2 create an NFS shared directory

Mkdir-p/nfs
Chmod 755/nfs-R

4.3 configure the NFS service

Vim/etc/exports Add the following line
/Nfs * (rw, sync, no_root_squash)

4.4 enable the NFS service

Service portmap restart
/Etc/init. d/nfs-kernel-server restart

4.5 Test

Showmount-e localhost
Note: ping the development board. If not, disable the firewall.

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.