Linux Renesas SuperH
 
 

Home
People
Documents
FAQ
Contact Us
Download
Developers
CVS
Links
E-mail

 
SuperH Cool Engine
Linux
Graphics by The Gimp
SourceForge.net Logo


LinuxSH: Introduction to Source Code Retrieval

Introduction

This document outlines the basic procedure for retrieving kernel source code from the LinuxSH repositories. Kernel source is available with both CVS and BitKeeper. The CVS repository provides one with a smaller more manageable drop-in tree, while the BitKeeper repository contains a full kernel tree. There are pros and cons to using either option, so we simply discuss the way to retrieve source with both approaches, while leaving the decision of which tool to use up to you.

However, for those of you primarily interested in sh64 (SHmedia) development, we recommend the usage of the BitKeeper tree instead, as this is where most of the primary and active development happens.

Learning CVS

If you want to learn how to use CVS, here are two excellent tutorials: They are both very good.

Where to connect?

Assuming you (now) know CVS, here is how you can use CVS to obtain a copy of the Linux on SuperH kernel source files.

CVS offers two basic methods of operation. The first is called "pserver" mode, and offers read-only access to the CVS repository. (The repository is the thingy that stores all the files and their histories in a central location).

CVS also allows read-write access to the repository by using the "ssh" program as a data transport.

To find out the names for the server and repository for our project, please visit this page:

    http://sourceforge.net/cvs/?group_id=2682

In particular, the module containing the kernel source is called "linux".

A blind checkout of the linux module will pull down the current CVS HEAD. At the time of this writing, HEAD is against current 2.5. Most users will probably want the stable tree (which applies against 2.4), the branch tag for this is linux-2_4-branch, which can be specified by using the -r option to the checkout command:

    cvs -d:pserver:[email protected]:/cvsroot/linuxsh -z3 co -r linux-2_4-branch linux

Kernels are also tagged with the current kernel version before being updated for a new version. Tags are in the format of linux-2_4_20, linux-2_5_69, etc.

Note: There is also a "kernel" module which is primarily there for historic purposes (as it contains development history prior to the creation of the drop-in trees). This module is deprecated, no longer supported, should not be used by anyone, and is only listed here for completion.

If you have trouble with this, please read the CVS-related documents on this page:

    http://sfdocs.sourceforge.net/sfdocs/

Using the drop-in tree

Once you have the appropriate module checked out for your kernel, you may notice that there are quite a few files missing. This is due to the fact that the only files tracked in the drop-in tree are files where we need to make SH-specific changes. This keeps maintenance down, and ultimately results in a much smaller download.

We ship a couple of scripts with the module to ease the task of "dropping in" the drop-in tree. These scripts exist as scripts/treelink.sh and scripts/treeunlink.sh. The name of the scripts should give enough explanation as to their purpose.

The treelink script takes the drop-in tree path and the path of the stock kernel as its arguments. Thus, an example run from inside the checked out module might look like:

    scripts/treelink.sh ../linux /usr/src/linux-2.4.20

This will subsequently symlink all of the drop-in tree components over top of the stock kernel ones, resulting in a full kernel tree ready for development and building.

Getting read-write access

If you're an existing member of the Linux on SuperH project, you may already have a SourceForge login ID. If you are added to the project's list of privileged developers, you can then use the "ssh" method of access. If not, please use Anonymous CVS Access, which will give you read-only access to the repository. If you don't have developer access and think you should have, please log a support call. (See Getting Help below).

Note, it is the intended policy of this project to give everyone full permission, but by agreement limit the people making changes to the repository. Please don't add or check in anything into CVS unless you've been cleared by the project to do it.

You can find out more about our project policies on our development policies page.

Firewalls

If you belong to a company or a school, your organisation may run a firewall. This prevents intruders from unauthorised access to your organisation, but also complicates (or even makes impossible) the process of getting CVS to talk to the central CVS repository.

If you're in this situation, please see the Getting Help section below.

LinuxSH: How to Use BitKeeper

Learning BitKeeper

If you want to learn how to use BitKeeper, there are two excellent tutorials:

Getting Source

Getting source with BitKeeper is quite trivial. All you essentially need to do is clone the tree you happen to be interested in. At the time of this writing, there is only a linux-2.4 tree that will be of interest to end users and developers. The clone command is quite simple:

    bk clone http://linux-sh.bkbits.net/linux-2.4 sh-2.4

This will checkout the tree into the newly created sh-2.4 directory. Obviously whatever you choose to name the directory is entirely up to you.

Getting Help

If you have difficulty getting the source, please feel free to log a problem using the Linux on SuperH support manager.

    http://sourceforge.net/support/?group_id=2682.

Or as an alternate solution, post a message to the appropriate mailing list.

    http://sourceforge.net/mail/?group_id=2682.

We will make every effort to find some solution to your problem.

Alternative access

Through the web: It's also possible to browse the repositories through the web. In order to view the CVS repository, you can use ViewCVS. This gives you read-only access in a very firewall friendly manner. However the interface is designed for browsing, not bulk downloading (Though for the curious, there is a bulk downloader available that will go through ViewCVS, but due to the general perverse nature of such an act, we won't bother linking to it here).

Where to now?

I hope by one of these methods you're able to achieve code nirvana. If you have any questions about this, please feel free to discuss them on the mailing list. If you want help, please log a request with the support manager system; see Getting Help.


printer friendly Linux is a trademark of Linus Torvalds. 
SuperH and Cool Engine are registered trademarks of Hitachi, Ltd.

Last update: 12/09/2026

This page ©2003. Permission granted to copy and display.
$Id: template.php3,v 1.9 2026/08/28 16:30:56 lethal Exp $