Malta Linux Repository
MIPS Technologies Inc (MTI) is maintaining an additional repository containing a stable and tested kernel with focus on hardware support for MIPS Technologies' synthesizable cores and the Malta evaluation board.
These kernels have undergone a range of conformance and soaktesting on the Malta platform, to provide 'stable' kernels with some degree of confidence. This code is now maintained on the
linux-mti-* branches in the repository, or you can clone it from git://git.linux-mips.org/pub/scm/linux-mti.git.
Tarballs of particular releases are available here.
MTI aims to keep the
linux-mti-* branches reasonably up to date with the latest available stable branch, or at most one version behind. This aiming to balance being modern and up-to-date with some degree of stability and reliability.
The kernel branches are labeled with the kernel version number, patch and the MTI build number, e.g.
linux-mti-220.127.116.11-0. The current available kernels are:
|Kernel version||linux-mti tag||Notes|
The quilt patch stacks used to generate these are present here. The patches may be applied against the linux-2.6.19-stable and linux-2.6.23-stable branches by branching out at commit IDs b188321d468d8e5ad935bf0434789f7a6f705ba9 and 9bb297a04184b9cdb301ff51bac1e5dab31cfaf1 respectively.
How to check out the linux-mti kernels
For more generic information on how to use git with linux-mips.org, see git.
The following two commands will get you a local repository with the the tag or branch checked out into a local branch for you to work on.
git-clone git://git.linux-mips.org/pub/scm/linux-mti.git git-checkout -b my-linux-mti-x.x.x.y-z linux-mti-x.x.x.y-z
Where x.x.x.y-z is either the tag name, or branch of the kernel you want. For example linux-mti-18.104.22.168-14 is the tag for 2.6.19 patch level 1 and the MIPS build or patch level is 14.
git-clone git://git.linux-mips.org/pub/scm/linux-mti.git cd linux-mti git-checkout -b my-linux-mti-22.214.171.124-14 linux-mti-126.96.36.199-14
Additional MTI generated configuration files can be found with the
malta_defconfig in the MIPS configs directory:
arch/mips/configs/malta_*config. To use one of these configurations copy it to the root of your checked out linux kernel tree and run
cp arch/mips/configs/malta_smtcconfig .config make oldconfig
In order to build the kernel, you will probably have to specify the prefix of your cross-compilation toolchain. For example:
Note that the trailing '-' in the example above is a part of the prefix, not a typo.
If you want to submit changes back to linux-mips.org, you need to read The perfect patch page.
Memory Ordering Patches
By design, the MIPS32 specification allows for a weakly consistent memory model for shared memory multiprocessor systems. The rationale behind this relaxed model is that it provides opportunities for significant performance improvements with a reduction in hardware complexity. Unfortunately since a lot of Linux user-land software had x86 centric origins where the ordering is stricter, programmers didn't pay heed to ordering related constraints which cause unpleasant side effects when the software is run on weakly ordered systems. MTI's TimeSys based distribution contains patches to popular user-land software that was known to suffer from these problems. These patches are available here for people who are interested in fixing up similar problems in their own user-land software. While these patches are relevant to the distribution specific versions of the software, applying them to vanilla versions should be trivial.