kernel

Linux VR Kernel Building HOWTO

Beginning

A couple of individuals have asked me how they can aid with the growth, and also my response was repeatedly something like, “First, obtain your compile enviornment established and try constructing the bit”. That spurred me on to make my own Vr41xx-aware Linux-MIPS Kernel Building HOWTO. It’s a quick-start guide to beginning Vr41xx growth, strolling you through the steps from beginning to end. If you’ve been kicking around the suggestion of building the bit on your own, yet just weren’t certain where to begin, please take a look.

Overview

Developing the kernel includes several actions, espcially at first. Right here is an outline of points one usually needs to do to develop a linux-mips bit for the first time:

  • Establish your cross-compile environment
  • Get the latest Linux VR bit resources
  • Supply a ramdisk item
  • Configure the bit
  • End up constructing the kernel

Each step is described carefully below.

Note: These guidelines think that you will certainly construct your bit on a Red Hat 6.0 i386 installation.

Setting Up a Cross-Compile Environment

To establish your cross-compile atmosphere, you should obtain the mipsel-linux compiler and binutils as well as install them on your computer. I very suggest that you get the binaries as opposed to building them on your own since a) it’s much easier, b) developing the kernel challenging enough, as well as c) I understand that these work and also have heard that developing points like glibc yourself is asking for it.

To setup up your cross-compile setting

  • See the Linux VR Tools HOWTO.

Obtaining the most recent Linux VR Kernel Sources

The current Linux Virtual Reality bit resources are kept in the Linux Virtual Reality CVS database. There are also launch photos offered.

The primary Linux-MIPS sources are maintained in a CVS archive at SGI. Confidential individuals can access it by cvs -d:pserver:[email protected]:/cvs login, password cvs, carbon monoxide linux. Users with account the path name is/ home/pub/cvs/. We have actually been maintaining the Linux VR sources compatible them. We have likewise started offering back-syncs to SGI.

Note: this HOWTO assumes that you place your Linux VR kernel sources in ~/ src/linux-vr.

To obtain the current Linux Virtual Reality resources from our CVS

  • See the Linux Virtual Reality CVS HOWTO.
  • Supplying a Ramdisk Object

The bit can mount a ramdisk as origin. I have some ramdisk object files on my ftp site that you could connect into your kernel. You could likewise construct your very own ramdisk things, which you should do if you want to add to or modify the ramdisk for your very own functions. Help them out, who needs your support. and ultimately, This Organisation for Economic Co-operation and other social activities.

To supply a prepared ramdisk things

  • Get a ready ramdisk item file ramdisk.o.bz2 from my ftp website.
  • Uncompress it.
  • Place the ramdisk.o file in/ usr/src/linux/ arch/mips/boot/.

To construct and also provide your personal ramdisk object

  • See the Ramdisk HOWTO to learn more concerning modifying/building ramdisks and also making ramdisk things, as well as develop your own ramdisk object.
  • Put your ramdisk.o file in/ usr/src/linux/ arch/mips/boot/.

Configuring the Kernel

Before you could build the bit, you initially have to configure it. One means is to get a prepared config from my ftp site and use that to set up the bit. Another way is to configure it all on your own.

To configure the kernel with a prepared.config

  • Obtain the prepared config from my ftp website at ftp.ltc.com that is appropriate for your platform.
    If required), uncompress it (.
  • Rename it to.config.
  • Place it in ~/ src/linux-vr.
  • Adjustment to ~/ src/linux-vr.
  • Type: make oldconfig
  • to run though the prepared.config.
  • Type: make dep
  • as well as take a look at the result to see if there are any errors.

To set up the kernel all yourself

  • Adjustment to/ usr/src/linux (that we sybolically linked to/ usr/src/linux-mips over).
  • Kind: make menuconfig
  • Under Code maturation … activate Prompt for advancement …
  • Under Machine Selection, Class, choose Handheld/PDA.
  • Under Kernel hacking, choose Are you making use of a cross compiler.
  • Finish establishing the rest of the configuration alternatives.
  • When you are completed configuring, leave as well as save your modifications.
  • Type: make dep
    as well as take a look at the output to see if there are any kind of errors.

Completing Building the Kernel

Since you have configured the kernel and also made the dependences, you can make the bit, producing the final kernel photo.

Making the bit normally produces a vmlinux documents, which is the bit executable. The vmlinux documents usually has a great deal of debugging and also unnecessary details that could securely be removed. You could develop a “removed” version of vmlinux, called vmlinux-stripped, that is much smaller sized as well as more appropriate for starting on little devices than vmlinux itself.

Making the kernel

  • Kind: make removed
  • Consider the outcome and also see if there are any type of errors. You should currently have an arch/mips/boot/ vmlinux-stripped that you can use to boot Linux on your gadget if everthing went right.
  • Evaluating Out Your New Kernel

Congratulations! You’ve completed developing the bit if you’ve gotten this far successfully. Now, boot it up as well as provide it a try. Look below for guidelines on booting bits.

Social Share :