?? 00000005.htm
字號(hào):
<?xml version="1.0" encoding="gb2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><title>linux for ppc chapter 5 jacobw </title></head><body><center><h1>BBS 水木清華站∶精華區(qū)</h1></center><a name="top"></a>發(fā)信人: plato (純真年代), 信區(qū): Embedded <br />標(biāo) 題: linux for ppc chapter 5 <br />發(fā)信站: BBS 水木清華站 (Wed May 30 23:11:38 2001) <br /> <br />Next Previous Contents <br />---------------------------------------------------------------------------- <br />---- <br />5. Compiler Toolset <br />You'll need the GNU toolchain to compile the kernel, particularly gcc and bi <br />nutils As a general rule for working with GNU software, the latest official <br />release is the best supported, has the most features and is usually the most <br /> stable. Also, you must use compatible versions, and there is generally no e <br />asy way to know which binutils version matches which arbitrary gcc version a <br />s their releases aren't synchronised. Hence, the best approach is generally <br />to start by using the latest official release of any given package from your <br /> nearest GNU ftp site listed at <a href="http://www.gnu.org/order/ftp.html.">http://www.gnu.org/order/ftp.html.</a> <br />Many people use a particular version simply because they already have the so <br />urce for it lying around, and waste a lot of time tracking down problems whi <br />ch were fixed by others months or even years ago. Grab the latest version at <br /> the outset, and you'll save an enormous amount of wasted effort. <br />If you need newer features which aren't in an official release yet, you may <br />need to move forward to the latest development snapshot from <a href="http://sources.">http://sources.</a> <br />redhat.com/. <br />5.1 Building the toolchain <br />Instructions <br />A set of complete instructions for building a Cross Development system for L <br />inux/PPC is available at: <a href="http://members.home.net/mmporter/linux/cross/">http://members.home.net/mmporter/linux/cross/</a> <br />Build Scripts <br />For pre-packaged scripts to build a PPC Cross Development Kit for MPC8xx, se <br />e: <a href="ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CD-README">ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CD-README</a> and <a href="ftp://ftp.denx.de/pu">ftp://ftp.denx.de/pu</a> <br />b/LinuxPPC/usr/src/CDK.tar.gz <br />SPARC/Solaris Hosted <br />For a guide to building the PowerPC/Linux cross compiler for a SPARC/Solaris <br /> host (if you can't use a Linux development host), see: <a href="http://www.borg.umn.">http://www.borg.umn.</a> <br />edu/~grant/Linux/cross.html <br />Getting Help <br />If you want to build a more exotic or unusual cross development environment, <br /> or need more help building the cross development tools, check out the cross <br />gcc FAQ and mailing list at: <a href="http://www.objsw.com/CrossGCC/">http://www.objsw.com/CrossGCC/</a> <br />5.2 gcc <br />Check that you have the latest gcc (2.95.2). Don't waste your time with any <br />of the egcs releases as they've now been superceeded by gcc. <br />If you're using gcc-2.95.2 with binutils-2.9.1.0.25, you'll need a minor cha <br />nge to the gcc specs file regarding the linker emulation. You're better off <br />just using binutils-2.10 though. <br />5.3 binutils <br />There are currently two branches of binutils development to choose from. Eac <br />h have pro's and con's, and in many cases either one will work for you. They <br /> are typically referred to as the official "GNU binutils" and the "Linux bin <br />utils", although both are GPL'd GNU software, and both versions configure, b <br />uild and work fine on Linux. I suggest you use the official GNU version, unl <br />ess you encounter a problem which requires the "Linux binutils" version. <br />Official GNU binutils <br />This tends to be the most stable version. The last release was 2.10, which i <br />s your best bet. It works well with gcc-2.95.2, whereas the 2.9.1 needed a t <br />weak. If you must use the bleeding edge, the development snapshots on source <br />s.redhat.com are quite stable. <br />The most recent snapshot is available at <a href="ftp://sources.redhat.com/pub/binuti">ftp://sources.redhat.com/pub/binuti</a> <br />ls/snapshots/binutils.tar.bz2 <br />H. J. Lu's "Linux binutils" <br />At any given point in time, this version is based on recent official GNU dev <br />elopment snapshot, but with more experimental features and hastily implement <br />ed bugfixes. It is shipped with many Linux distributions. However, the chang <br />es in this version aren't as thoroughly reviewed and tested as those in the <br />official version, and the less well implemented features probably won't make <br /> it back into the official GNU version, so it's a good idea not to rely on t <br />hem. <br />Version numbering is somewhat confusing. The Linux binutils 2.9.5.x versions <br /> are based on snapshots of the official development post 2.9.1. In particula <br />r, any given version of Linux binutils numbered 2.9.5.x is not necessarily a <br /> later version than an official GNU development snapshot numbered 2.9.1.x. <br />Beware that Linux binutils-2.9.5.0.27 thru 29 will give you multiple definit <br />ions of _dl_start when building glibc-2.1.2. Try the official binutils-2.10 <br />instead, or Linux binutils-2.9.5.0.22. <br />5.4 Precompiled/Prepackaged Kits <br />
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -