IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

HOWTOs

Search Howtos :Match :

6. Install Development ToolChain on DiskOnChip

This section may be left out if the requirement is not to have a development environment on the DiskOnChip. The following steps will install the necessary libraries and tools that are required for developing and executing programs on DiskOnChip. This will completely eliminate the concept of having a host system and target system since now the complete application development can be done on the target system itself. For this purpose we will use uClibc which is a C library that has been developed primarily for embedded systems. Also since our root filesystem that was created in the previous section is bulky (35 MB) we will remove the unnecessary files and make it smaller, approximately 11MB.

We will use the Buildroot package from www.uclibc.org to replace the existing bulky root filesystem of DOC with a tiny filesystem and to install the necessary development ToolChain which includes uClibc library, gcc, g++, make, ncurses, busybox, GNU tar, GNU grep and the GNU coreutils . For more details on Buildroot refer to http://buildroot.uclinux.org/buildroot.html. The http://www.uclibc.org website provides a precompiled package containing all the tools, which can be downloaded and used. We will use the precompiled package, which is available as root_fs image. Refer to the uClibc FAQ for more details.

Follow these steps in order to get the software working on your DOS:

6.1. Step1: Obtain the latest copy of root_fs_i386.ext2

Download root_fs_i386.ext2.tar.gz from www.uclibc.org/downloads/root_fs_i386.ext2.tar.gz.

It is around 22MB in size. This actually gets decompressed to a 100MB size file.

Untar the file in /usr/src:

tar -xvzf root_fs_i386.ext2.tar.gz

This will create a file root_fs_i386.ext2.

We need to mount this file using a loopback device. Do the following steps:

mkdir root_fs

mount -o loop root_fs_i386.ext2 root_fs

Now you can access the content of the file root_fs_i386.ext2 through the root_fs directory. The root_fs directory contains a number of directories which makes the root filesystem, like bin, var, sbin, opt, root, home, etc, usr, lib, tmp, dev, and proc.

The usr and lib directories contain the development tools like gcc and g++.

6.2. Step2: Replace the root filesystem of the DiskOnChip

Replace the bin, var, sbin, etc, lib, usr, proc, mnt, home and opt directories of the DiskOnChip with the ones of the root_fs image.

WarningDo not replace boot and dev!
 

The boot directory of the DiskOnChip has to be kept intact since it contains the kernel image, initrd image and Map file that is used by LILO to load the kernel into memory.

The dev directory should also not be replaced since it contains the device nodes for DOC (The replacement task will take 5-10 minutes.)

6.3. Step3: Modify etc/fstab of DiskOnChip root file system

Open the newly replaced /mnt/doc/etc/fstab and edit the line where the mount point is /. Change that line to:


/dev/msys/fla1  /  ext2  rw.noauto 0 1

6.4. Step4: Reboot

Reboot from DiskOnChip and enjoy the uClibc development environment.

You will get the message


Welcome to the Erik.s uClibc development environment.

The entire root filesystem + boot directory + development tools take 84Mb of space.

Search Howtos :Match :
Safesquid proxy server 4.2.2.RC8.14B
Antivirus and content filtering proxy server
Thunderbird 2.0.0.18
An email and newsgroup client with powerful, new junk mail controls
JEdit 4.3pre16
Programmers text editor
Gdm 2.24.1
Reimplementation of the well known xdm program.
Damn Small Linux 4.4.10
Damn Small Linux, 50MB bootable Linux desktop LiveCD
PhpMyAdmin 3.1.0 rc1
Php front-end to MySQL administration
ImageMagick 6.4.5.8
ImageMagick image processing studio
KOffice 2.0 beta3
Integrated office suite for KDE
LimeWire 4.18.8
Gnutella Client
Trac 0.11.2.1
Integrates SCM, Wiki and Issue Tracker
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

eWeek

The essential technology information source for builders of e-business.

BusinessWeek (Digital Edition)

Provides readers a deeper understanding of the trends that drive growth, and what best practices keep them ahead of the competition.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info