uCdot
search uCdot:
 
Embedded Linux and uClinux Developer Forum
 
uCdot
- FAQ
- Dev Boards
- Submit Story
- Submit FAQ
- Submit Dev Board
- Topics
- Authors
- About

- Preferences
- Older Stuff
- Past Polls
- Discussions
- Journals
- Messages

Embedded Linux
Mailing Lists
uClinux-dev (search)
Coldfire (search)
MTD
Microblaze (search)
ELUG
BDM-devel
Blackfin

Embedded Linux
Sites
uClinux.org
uClinux-Dist
uClibc
uClinux Directory
LinuxDevices
ARMulator
uClinux-elf-tools
Colilo
Kernel Archives
H8-uClinux
TLDP
Microblaze uClinux
BDM Tools
SkyEye (emulator)
LOM
SETR live CD
Blackfin uClinux

Embedded Linux
Companies
SecureComputing
SDCS
CodePoet
Arcturus
Cadenux
ARMtwister
uClinux.net
Xiptech
senTec
embedded^cl
Cwlinux
emlix
TimeSys
eSpark Infotech
SSV Embedded Systems
Embedded Minds
PeerSec Networks
Vortech Consulting
swissEmbedded
Synertronixx
Mbedthis Software
.vantronix
Aday
GraceLabs
Pengutronix
metux ITS
Codito Technologies
Firmix Software
PetaLogix
NuDesign
Merritt Technologies
WindRiver
OpenGear
Rubico
Analog Devices
Artila Electronics
Vyatta
Embest Info&Tech
Katalix Systems
WorkWare Systems
Kdev
Intellimetrix
Virtual Cogs
SYSGO
coresystems
ExactCODE
KOAN
EzHomeTech
Linux4biz
Linkodas
Trego
EMBEST

 
How to get the uClinux-dist using CVS
FAQ The uClinux-dist can now be obtained from CVS. The CVS version will match the tarball versions, however the kernels have been removed as they are already available under CVS. For instructions on how to setup a tree based on this read on.

The easiest way to obtain the uClinux-dist through CVS is to use the uClinux.org's anonymous CVS access. This will provide read only access to the CVS repository and access to any updates that are added to the repository.

Before using anonymous CVS to get the tree you must do a "cvs login". Run the following command and when it asks for a password just press <Enter>.

   cvs -d:pserver:anonymous@cvs.uclinux.org:/var/cvs login

This sets up the appropriate authorisations to run the following CVS commands. Now we can get a copy of non-kernel portions of the uClinux-dist by running a CVS checkout. Note that the uClinux-dist is a large source tree and such a check out will take quite some time even using a relatively fast link. A checked out tree may run up to about 270Mb. The following CVS commands use compression, but the download size will still be quite large.

   cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs checkout -P uClinux-dist

This will create a new directory called "uClinux-dist" in the current directory. This directory is the top level directory of the uClinux-dist and contains all the target, application and library source code. Before you can go any further you will also need to checkout a kernel. If you already have a kernel from CVS then instructions are included below for that as well. Firstly:

   cd uClinux-dist

If you do not have a current CVS kernel to use then checkout either or both of the 2.0 or 2.4 kernels with the following commands:

   cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs checkout -d linux-2.0.x -P uClinux-2.0.x
   cvs -z3 -d:pserver:anonymous@cvs.uclinux.org:/var/cvs checkout -d linux-2.4.x -P uClinux-2.4.x

This checks out a copy of the uClinux kernels and names the directories either linux-2.0.x or linux-2.4.x as the uClinux-dist expects. If you already have a uClinux kernel from CVS then you can rename the directory or link it to the current directory. For example, if you had a copy in ~/uClinux-2.4.x, run the following command to sym-link the directory into the tree.

   ln -s ~/uClinux-2.4.x linux-2.4.x

For instructions on compiling and using the uClinux-dist consult the README file in the toplevel uClinux-dist directory and the other documentation in the Documentation directory.

Now that you have a copy of the sources from CVS there are a couple of things that you may wish to do. Firstly, when an announcement of an update is posted on uCdot or the uClinux-dev mailing list you will want to update your files. You can do this by running the following command from the uClinux-dist directory:

   cvs -z3 update -Pd

If you want to generate a patch to share your changes with other people then the following command run from the uClinux-dist directory will generate a patch compatible diff for use by others. It will not include added files so you will have to include those yourself.

   cvs -z3 diff -u

If you want to check which files will be changed before you actually do an update you can run the following command to list the actions but not make any changes:

   cvs -n -z3 update -Pd

To check the actual changes you can always generate a diff against the current CVS version with:

   cvs -z3 diff -rHEAD -u

A lot more information on how to use CVS can be found at the Home of CVS. Now that you are using CVS you may want to subscribe to the uClinux-cvs mailing list for notifications of changes (details on uClinux.org). Don't forget that if CVS is not for you, the latest version of the uClinux-dist will always be available for download from http://www.uclinux.org/pub/uClinux/dist/.

If you have changes, suggestions or corrections to make to this document feel free to send them to me.

Cheers,
Davidm

Using Flash Memory with uClinux | uClinux-2.5.38-uc0 released  >

 

 
uCdot Login
Nickname:

Password:

[ Create a new account ]

Related Links
  • Linux
  • SnapGear
  • uClinux
  • Home of CVS
  • uClinux.org
  • http://www.uclinux.org/pub/uCl inux/dist/
  • me
  • More on FAQ
  • Also by davidm
  • This discussion has been archived. No new comments can be posted.
    How to get the uClinux-dist using CVS | Login/Create an Account | Top | Search Discussion
    Threshold:
    The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

    The Embedded Linux and uClinux Developer Forum is hosted by: SnapGear Any father who thinks he's all important should remind himself that this country honors fathers only one day a year while pickles get a whole week.

    [ home | contribute story | older articles | past polls | faq | authors | preferences ]