Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1015427
  • 博文数量: 327
  • 博客积分: 9995
  • 博客等级: 中将
  • 技术积分: 4319
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-25 11:21
文章存档

2011年(31)

2010年(139)

2009年(157)

我的朋友

分类: LINUX

2009-11-08 08:28:04

[root@localhost cross-tools-2.1]# make setup
MACHTYPE: i386-redhat-linux-gnu
i> Setting up link to i386-redhat-linux-gnu-ar.
i> Setting up link to i386-redhat-linux-gnu-as.
i> Setting up link to i386-redhat-linux-gnu-cpp.
i> Setting up link to i386-redhat-linux-gnu-g++.
i> Setting up link to i386-redhat-linux-gnu-gcc.
i> Setting up link to i386-redhat-linux-gnu-ld.
i> Setting up link to i386-redhat-linux-gnu-nm.
i> Setting up link to i386-redhat-linux-gnu-objcopy.
mi> Setting up link to i386-redhat-linux-gnu-ranlib.
i> Setting up link to i386-redhat-linux-gnu-size.
i> Setting up link to i386-redhat-linux-gnu-strip.
i> Setting up site configuration in "_scripts/xbt-env-setup.sh".
=> XBT_DIR="/mnt/ttylinux-src-9.0/cross-tools-2.1"
=> ncpus=1
Setup all done.
[root@localhost cross-tools-2.1]# make dload
--->注意此时下载的软件包的大小的正确性,防止编译失败.
i> Getting source code packages [be patient, this will not lock up].
i> Checking binutils-2.19 ..... have it.
i> Checking gcc-4.2.4 ......... have it.
i> Checking glibc-2.9 ......... have it.
i> Checking glibc-ports-2.9 ... have it.
i> Checking linux-2.6.30.5 .... have it.
cross-tools is done with setup for building cross-compiler tool chains.
[root@localhost cross-tools-2.1]#
[root@localhost cross-tools-2.1]#
[root@localhost cross-tools-2.1]#
[root@localhost cross-tools-2.1]# make i486
Building cross-development tool chain.
  Host: i386-redhat-linux-gnu
Target: i486-generic-linux-gnu
 Tools: binutils-2.19 gcc-4.2.4
 GLIBC: glibc-2.9
Kernel: i386 linux-2.6.30.5
Building binutils-2.19 ............ done [binutils-2.19 is complete]
Building gcc-4.2.4 Stage 1 ........ done
Getting linux-2.6.30.5 Headers .... done
Building glibc-2.9 Stage 1 ........ done
Building gcc-4.2.4 Stage 2 ........ done
Building glibc-2.9 Stage 2 ........ done [glibc-2.9 is complete]
Building gcc-4.2.4 Stage 3 ........ done [gcc-4.2.4 is complete]
=> Adjusting cross-tool chain.
=> Completed cross-tools adjustments.
i486-generic-linux-gnu cross-tool is complete.
[root@localhost cross-tools-2.1]#
[root@localhost cross-tools-2.1]#
[root@localhost cross-tools-2.1]# cd ..
[root@localhost ttylinux-src-9.0]# make
Make ttylinux.  Make command targets are:
Make    Description
------  -----------
help    This message.
clean   Remove the ttylinux build.
list    List the packages names and versions.
stat    Report the status of the ttylinux build.
mount   Mount the ttylinux file system image, if found.
umount  Unmount the ttylinux file system image, if mounted.
add-on  Build a ttylinux add-on package.
init    Initialize the ttylinux build.
pkgs    Build the ttylinux packages.
loader  Build the ttylinux target boot loader.
kernel  Build the ttylinux target kernel.
fsys    Create a ttylinux file system image.
bootcd  Build the bootabale ttylinux CD.
dist    Create a ttylinux bootable CD ISO image.
burncd  Burn a ttylinux bootable CD-ROM media.
Examples
   "make init" initializes for building.
   "make fsys" creates the file system image.
[root@localhost ttylinux-src-9.0]# make dist
Remove ttylinux build.
=> Removing development build directories.
=> Removing boot CD configuration.
=> Removing file system image, boot CD image.
=> Removing binary packages.
=> Removing build logs.
Initializing the ttylinux build.
=> Creating preliminary development build directories ... DONE
=> Creating build-root base file system directories ... DONE
Building the ttylinux packages.
=> ttylinux project folder
=>      /mnt/ttylinux-src-9.0
=> building ttylinux-9.0
=> with i486 cross-building Binutils binutils-2.19
=> with i486 cross-building GCC gcc-4.2.4
=> with GLIBC version glibc-2.9 having Linux kernel interface
=>      GLIBC interface to Linux kernel i386 architecture
=>      GLIBC interface to Linux kernel linux-2.6.30.5
=> for 8 MB target file system image size
##### START cross-building packages
g - getting the source and configuration packages
b - building and installing the package into build-root
f - finding installed files
m - looking for man pages to compress
p - creating installable package
c - cleaning
glibc-2.9 ................ g.b.f.m__0.p.c ... DONE [ 0 minutes 34 seconds]
ncurses-5.6 .............. g.b.f.m__0.p.c ... DONE [ 1 minutes 59 seconds]
busybox-1.14.3 ........... g.b.f.m__0.p.c ... DONE [ 2 minutes 11 seconds]
e2fsprogs-1.41.8 ......... g.b.f.m__0.p.c ... DONE [ 1 minutes 27 seconds]
iptables-1.4.4 ........... g.b.f.m__0.p.c ... DONE [ 0 minutes 40 seconds]
bash-3.2.48 .............. g.b.f.m__0.p.c ... DONE [ 1 minutes 53 seconds]
dropbear-0.52 ............ g.b.f.m__0.p.c ... DONE [ 0 minutes 55 seconds]
retawq-0.2.6c ............ g.b.f.m__0.p.c ... DONE [ 0 minutes 12 seconds]
=> 9 minutes 51 seconds
##### DONE cross-building packages
Make a target loader in the ttylinx build.
=> Build the ttylinux loader package.
=> ttylinux project folder
=>      /mnt/ttylinux-src-9.0
=> building ttylinux-9.0
=> with i486 cross-building Binutils binutils-2.19
=> with i486 cross-building GCC gcc-4.2.4
=> with GLIBC version glibc-2.9 having Linux kernel interface
=>      GLIBC interface to Linux kernel i386 architecture
=>      GLIBC interface to Linux kernel linux-2.6.30.5
=> for 8 MB target file system image size
##### START cross-building packages
g - getting the source and configuration packages
b - building and installing the package into build-root
f - finding installed files
m - looking for man pages to compress
p - creating installable package
c - cleaning
lilo-22.8.src ............ g.b.Make ttylinux file system image.
=> ttylinux project folder
=>      /mnt/ttylinux-src-9.0
=> building ttylinux-9.0
=> with i486 cross-building Binutils binutils-2.19
=> with i486 cross-building GCC gcc-4.2.4
=> with GLIBC version glibc-2.9 having Linux kernel interface
=>      GLIBC interface to Linux kernel i386 architecture
=>      GLIBC interface to Linux kernel linux-2.6.30.5
=> for 8 MB target file system image size
=> Creating ttylinux file system image (8 MB)...
8+0 records in
8+0 records out
8388608 bytes (8.4 MB) copied, 0.0158301 s, 530 MB/s
...DONE
Mounting..... OK
Unmounting... OK
##### START installing
Mounting..... OK
i> Installing base file system.
i> Installing packages.
=> glibc-2.9
=> ncurses-5.6
=> busybox-1.14.3
=> e2fsprogs-1.41.8
=> iptables-1.4.4
=> bash-3.2.48
=> dropbear-0.52
=> retawq-0.2.6c
i> Installing target loader lilo-22.8.src.
E> No installation package for lilo-22.8.src-i486.tbz.
E> pkg-bin/lilo-22.8.src-i486.tbz is missing.
i> Updating birthdays ... DONE
Unmounting... OK
tune2fs 1.41.3 (12-Oct-2008)
Setting maximal mount count to 2
Setting current mount count to 0
-rw-r--r-- 1 root root 8.0M 2009-11-08 00:23 img/filesys-i486-9.0.img
i> File system image file filesys-i486-9.0.img is ready.
##### DONE installing
Make a target kernel for the ttylinx build.
=> ttylinux project folder
=>      /mnt/ttylinux-src-9.0
=> building ttylinux-9.0
=> with i486 cross-building Binutils binutils-2.19
=> with i486 cross-building GCC gcc-4.2.4
=> with GLIBC version glibc-2.9 having Linux kernel interface
=>      GLIBC interface to Linux kernel i386 architecture
=>      GLIBC interface to Linux kernel linux-2.6.30.5
=> for 8 MB target file system image size
##### START cross-building the kernel
g - getting the source and configuration packages
b - building and installing the package into build-root
f - finding installed files
m - looking for man pages to compress
p - creating installable package
c - cleaning
i486 linux-2.6.30.5 ...... g.b.f.m__0.p.c. ... DONE [18 minutes 29 seconds]
##### DONE cross-building the kernel
Make a bootable ttylinx CD ISO image.
##### START cross-building the boot CD
i> Recreating ISOLINUX directory .......... DONE
i> Gathering boot files ................... DONE
i> Compress the file system ............... DONE
i> Creating isolinux configuration file ... DONE
~~~~~~~~~~
DEFAULT linux initrd=/boot/filesys.gz load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=8192 root=/dev/ram0 ro ttylinux-cdrom
PROMPT  0
LABEL   linux
KERNEL  /boot/vmlinuz
~~~~~~~~~~
i> Copying configuration data and tools to Boot CD ... DONE
i> Copying documentation files to Boot CD ............ DONE
i> Creating CD-ROM ISO image ...
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 2427
Total directory bytes: 8192
Path table size(bytes): 64
Max brk space used 0
3133 extents written (6 MB)
... DONE
-rw-r--r-- 1 root root 6.2M 2009-11-08 00:41 img/bootcd-i486-9.0.iso
i> ISO image file bootcd-i486-9.0.iso is ready.
##### DONE cross-building the boot CD
[root@localhost ttylinux-src-9.0]#
 
以上基于Fedora10的环境下,参考ttylinux9.0的源码包的里面的安装说明,编译通过。
阅读(1585) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~