Opensolaris kernel Compilation

Source: Internet
Author: User
Article Title: Opensolaris kernel compilation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Opensolaris, as an open source version of solaris, has been popular for a long time. Because most of its code can see the source code, it is necessary to modify the kernel source code and re-compile it due to usage problems.

Let's start to introduce opensolaris kernel compilation.

1. Download the Solaris Express release version.

Download the latest iso from the http://opensolaris.org/ OS /downloads/, the general official site provides 2 compressed iso files, need to decompress and merge

Merge into iso files

Example: // cat file-a.iso file-b.iso file-c.iso file-d.iso file-e.iso> sxcr. iso //

Burn to a CD

Installation tips

A. the disk requires at least 10 Gb space.

B. It is best to create a separate partition to prepare for compilation. The partition requires more than 4 GB space.

C. Create a separate opt partition. The compiled tools are generally installed under opt.

2. download and install the Sun Studio 12 compilation tool

It is best to use studio12 for compilation after snv99

Download the pkg package and install it directly.

The latest Sun Studio12 is a tar package, which does not need to be installed. After unzipping, you can use it for unified management. The decompressed file creates link SUNWspro-> sunstuido Under opt.

# Cd/opt

# Mkdir sunstuido

# Cd sunstuido

# Gzcat-zxf $ HOME/sunstudio11-ii-x86.tar.gz | tar-xf-

# Ln-s sunstuido SUNWspro

#/Opt/SUNWspro/bin/cc-V

Cc: Sun C 5.9 SunOS_i386 Patch 124868-07 2008/10/07

Usage: cc [options] files. Use 'CC-flags 'for details
#/Opt/SUNWspro/bin/CC-V

CC: Sun C ++ 5.9 SunOS_i386 Patch 124864-07 2008/08/22

Make sure that Patch 124864 is available for both cc and C ++.

3. Download the source code, decompress it, and install onbld.

Current circulating version

Http://dlc.sun.com/osol/on/downloads/current/
X86 Platform

Download at least 3 files

A. ON Specific Build Tools Toolkit

B. ON Binary-Only Components (non-debug) is not fully open-source Binary Package

C. ON Source code

Decompress the downloaded files.

# Cd/export/mybuild

$ Bzcat $ HOME/snv-20060918/on-src * .tar.bz2 | tar-xf-

$ Bzcat $ HOME/snv-20060918/on-closed-bins * .i386.tar.bz2 | tar-xf-

Install the onbld Toolkit

# Cd/tmp

# Bzcat $ HOME/SUNWonbld-* .i386.tar.bz2 | tar-xf-
# Pkgadd-d onbld SUNWonbld

4. Modify the opensolaris. sh script and Makefile. master file.

$ Cd/export/mybuild

$ Cp usr/src/tools/env/opensolaris. sh.

Modify the opensolaris. sh File

A. Modify GATE = testws; export GATE

For GATE = mybuild; export GATE

[1] [2] Next page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.