1 uClinux course Day 2 of 5 Using configuration tools and the tool chain.

Slides:



Advertisements
Similar presentations
Install. Will your hardware work? Most things are compatible - a few are known not to be.
Advertisements

Using the Computer and Managing Files 1. Basic Information And Operations  View The Computer's Basic System Information  Change The Computer's Desktop.
© by Pearson Education, Inc. All Rights Reserved.
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Tutorial and Demos on Linux Virtual Machine
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
How to Install Windows 7.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Laboratory Exercise # 3 – Basic File Management Office Productivity Tools 1 Laboratory Exercise # 3 Basic File Management Objectives: At the end of the.
To get to the Progress Toward Degree worksheets, click on “Contents” on the menu bar…
1 uClinux course Day 3 of 5 The uclinux toolchain, elf format and ripping a “hello world”
Introduction to The Linaro Toolchain Embedded Processors Training Multicore Software Applications Literature Number: SPRPXXX 1.
1 Introduction to Tool chains. 2 Tool chain for the Sitara Family (but it is true for other ARM based devices as well) A tool chain is a collection of.
1 uClinux course. 2 Author: D L Johnson Overview u Day 1 +Survey of embedded operating systems - why uclinux? +The uclinux environment - the directory.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.
Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application.
Presented by: Katie Milanowski. 2  Formed in 1982  Bruce Barrington (HBO & Company)  Apply RAD technology to IBM PC  1986: Clarion Version 1.0, Atlanta,
Embedded Linux porting Kernel
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
Enabling the ARM Learning in INDIA ARM DEVELOPMENT TOOL SETUP.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
| | Tel: | | Computer Training & Personal Development Outlook Express Complete.
CCS APPS CODE COVERAGE. CCS APPS Code Coverage Definition: –The amount of code within a program that is exercised Uses: –Important for discovering code.
Part 2: How to create blogs In Modified by: Mr Rizal Arbain.
IE 411/511: Visual Programming for Industrial Applications
Turning Glowing Text into Animated Glowing Text Using Animation Shop.
®® Microsoft Windows 7 for Power Users Tutorial 13 Using the Command-Line Environment.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
CHAPTER FOUR COMPUTER SOFTWARE.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Setting up Eclipse Computer Organization I 1 August 2009 ©2009 McQuain Getting Eclipse for C/C++ Development Go to and click on Download.
Old Chapter 10: Programming Tools A Developer’s Candy Store.
1 OrderPro Point of Sale (POS) Training Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
® 2-2 Projects 2.1Projects Overview Bootable Projects and VxWorks Configuration Integrated Simulator Downloadable Projects Build Specifications.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Active-HDL Interfaces Building VHPI Applications C Compilation Course 9.
Endnote Tutorial How to Navigate Click to move forward Click to go back Click to return to Menu page.
An Introduction to Office  Office XP and Office 2007 look very different  This introduction should: ◦ Introduce you to some of the basic changes.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Version How to Use Packet Tracer MarinaMD.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Chapter Eleven The X Window System. 2 Lesson A Starting and Navigating an X Window System.
Your Digital Technology Briefcase My information…when and where I need it.
Getting Started with Word & Saving Guided Lesson.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Chapter Linux Basics. Acknowledgements This presentation was prepared by – Banyat Settapanich – Bahran Madaen This presentation will be updated later.
Jump-Start WDSc-RSE by Robert Arce from PrismaTech. Jump-Start WDSc-RSE Presented by: Robert Arce.
Implementation of Embedded OS
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Embedded Software Design Week II Linux Intro Linux Kernel.
Visual Programming Borland Delphi. Developing Applications Borland Delphi is an object-oriented, visual programming environment to develop 32-bit applications.
An Embedded Wireless Mini-Server with Database Support Presented by: Amit Kumar.
Getting Eclipse for C/C++ Development
Doing stuff on uClinux EE590 Autumn 2004.
PRU-ICSS Programming with CCS
Introduction to Computers
Makefile Tutorial CIS5027 Prof: Dr. Shu-Ching Chen
SUSE Linux Enterprise Desktop Administration
Getting Eclipse for C/C++ Development
Preparation for Assignment 2
Presentation transcript:

1 uClinux course Day 2 of 5 Using configuration tools and the tool chain

2 Author: D L Johnson Configuration tools u Linux/Unix has a key advantage over windows due to its modularity – kernel or application components can be added or removed easily u This makes it very suitable to embedded environments where many typical PC peripherals such as keyboards and screens are not present u The uClinux configuration script allows kernel components and applications to be added and removed u The uClinux environment uses two different menu configuration environments +For X windows environments a graphical menu system –make xconfig +For terminal environments a text based menu system –Make menuconfig

3 Author: D L Johnson Configuration tools Select Target Platform Selection u type make menuconfig from a terminal window +Use, and to navigate through menus and to select check boxes Select (……..) Vendor/Product To change the host processor you are compiling for. We will use (GDB/ARMulator) for the simulator and (Atmel/AT91) for the real hardware later in the course

4 Author: D L Johnson Configuration tools Selecting Kernel version u linux-2.4.x or linux-2.0.x depending on the size/feature set you need Selecting Libc version u glibc is the original unadapted libc, it is the largest library u uC-libc is the original library for uclinux, API’s not always standard – some routines not present u uClibc fixes problems with original uC-libc although it is a little larger than uC-libc u If you want to change Kernel settings select the check box [X] Customise Kernel Settings (NEW) with [X] Customise Kernel Settings (NEW) with u If you want to add or remove user applications select the check box [X] Customise Vendor/User Settings with [X] Customise Vendor/User Settings with u When you are finished highlight Exit and press u When you are finished highlight Exit and press

5 Author: D L Johnson Configurations tools You are then brought back to this screen and you ask yourself … huh, I chose to change Kernel settings and all I can do is or go back to Target Platform Selection … or go back to Target Platform Selection … Against all logic … Select Against all logic … Select Whizz, pop ….

6 Author: D L Johnson Configurations tools … Linux Kernel Configuration screen … Linux Kernel Configuration screen u Some important options to set + + to set up RAM and FLASH addresses + + to activate/deactivate networking + + to choose networking protocols u When you are finished highlight Exit and press u When you are finished highlight Exit and press

7 Author: D L Johnson Configuration tools u Select to save new kernel configuration

8 Author: D L Johnson Configuration tools … Customize user settings for uClinux … Customize user settings for uClinux u Some important options to set + + contains all the common applications such as gunzip, grep, ln, chown … + + contains common network apps such as dhcp, ftp, ifconfig … u When you are finished highlight Exit and press u When you are finished highlight Exit and press

9 Author: D L Johnson Configuration tools u When you are finished configuring uClinux type the following commands to build the kernel and the userland +make dep&& make u If you only want to build the userland type +make user_only +Make romfs +make image u Go and make coffee or take a jog.. This can take a few minutes

10 Author: D L Johnson Adding User applications u Files to edit: u user/Makefile u Add a line to the file like u u dir_$(CONFIG_USER_FOO_FOO) += foo u u This adds the directory 'foo' to the list of directories to be built. I added u mine in alphabetical order. The order doesn't seem to matter. u u config/Configure.help u This file contains the text which is presented on request during the u config. u Add a block like u u CONFIG_USER_FOO_FOO u This program does fooey things to your bars. u u The text must be indented two spaces, and there must be no empty lines. Lines u should be <70 chars long.

11 Author: D L Johnson Adding User applications u config/config.in: u Add a line in the apropriate menu section (i.e. in the program group you want u your app to show up in during 'make config'; I used 'misc'), like u u bool 'foo' CONFIG_USER_FOO_FOO u u The repetition of FOO allows for directories which contain multiple u executables. Thus, if the user directory 'foo' contained code to make 'foo' u and 'bar', each gets its own config line if an additional entry is made like u u bool 'bar' CONFIG_USER_FOO_BAR u

12 Author: D L Johnson Adding User applications u Next, there needs to be a proper /user/foo/Makefile. The Makefile should follow u the following template: u u EXEC = foo u OBJS = foo.o u all: $(EXEC) u $(EXEC): $(OBJS) u $(CC) $(LDFLAGS) -o $(OBJS) $(LDLIBS) u romfs: u $(ROMFSINST) /bin/$(EXEC) u clean: u -rm -f $(EXEC) *.elf *.gdb *.o u

13 Author: D L Johnson Adding User applications u If more than one executable is built in the foo directory, as above, then the u Makefile should look like u u u EXECS = foo bar u OBJS = foo.o bar.o u all: $(EXECS) u $(EXECS): $(OBJS) u $(CC) $(LDFLAGS) -o $(LDLIBS) u romfs: u $(ROMFSINST) -e CONFIG_USER_FOO_FOO /bin/foo u $(ROMFSINST) -e CONFIG_USER_FOO_BAR /bin/bar u u u More complex makefiles are of course possible. The reader is encouraged to u browse the user tree for examples. u u When all this is set up, doing the standard 'make xconfig; make dep; make' u should build the app and install it in romfs and hence in the target system u image.bin.

14 Author: D L Johnson Adding User applications u Assignment 1 Add an application which prints the following on the the stdout display of uClinux – use the simulator Add an application which prints the following on the the stdout display of uClinux – use the simulator * *** *** ***** ***** ******* *******

15 Author: D L Johnson The tool chain The compile process cc1 as ld cpp