Post-90s: first article on embedded software development (embedded environment Construction)

Source: Internet
Author: User

Just a few days into the company, with am355x-A8 for medical equipment software development.

1. Install the sdk and build the compiling environment

Company ti-sdk-am335x-evm-05.05.00.00, download click to install to the user directory

Enter: export PATH = "<sdk install dir>/linux-devkit/bin: $ PATH" on the terminal"

Ii. Compilation and installation of u-boot and MLO

1. Clear Historical Resources and delete project Directories

$ Make CROSS_COMPILE = arm-arago-linux-gnueabi-ARCH = arm distclean

$ Rm-rf./am335x

2. Compile u-boot and MLO

(Target file corresponding to the Development Board Model)

Board make target
AM335x EVM am335x_evm
BeagleBone am335x_evm
AM3517 EVM am3517_evm
AM37x EVM omap3_evm
BeagleBoard omap3_beagle

$ Make O = object-directory CROSS_COMPILE = arm-arago-linux-gnueabi-ARCH = arm make_target_from_table_above (am335x_evm is used here)

The u-boot.img and MLO are generated to prepare for subsequent installation of SD

3. install Linux Kernel

1. Clear kernel resources

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-mrproper

Cd <sdk install dir>
Make linux_clean

2. Configure the kernel

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-<config>

Config:

Device SDK config PSP config

AM335x/Beaglebone tisdk_am335x-evm_defconfig am335x_evm_defconfig
AM37x tisdk_am37x-evm_defconfig-omap3_evm_defconfig
AM3517 tisdk_am3517-evm_defconfig am3517_evm_defconfig
Beagleboard tisdk_beagleboard_defconfig omap3_beagle_defconfig
AM180x tisdk_am180x-evm_defconfig da850_omapl138_defconfig

Am335x usage:

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-am335x_evm_defconfig
Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-tisdk_am335x-evm_defconfig

3. Configure menuconfig

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-menuconfig

4. Compile the kernel and modules

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-uImage

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-modules

Cd <sdk install dir>
Make linux

5. Install the kernel

Make ARCH = arm CROSS_COMPILE = arm-arago-linux-gnueabi-INSTALL_MOD_PATH = <path to root of file system> modules_install

Cd <sdk install dir>
Make linux_install

4. Create an SD card for startup (insert the SD card)

1. Run the script file required for SD card startup

Host # sudo <sdk install dir>/bin/create-sdcard.sh

2. Select an SD card device

Availible Drives to write images:

# Major minor size name

1: 8 16 7761920 sdb

Enter Device Number:

Select 1

3. Partition the SD card

Wocould you like to re-partition the drive anyways [y/n]: y

Number of partitions needed [2/3]: 2

4. Select an image to install

######################################## ########################################

Choose file path to install from1) Install pre-built images from SDK2) enter in custom boot and rootfs file paths ################################ ######################################## ########

Choose now [1/2]: 1

The SD card is created successfully.

The Development Board environment has been set up.

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.