首页 > 代码库 > linux-裁剪minilinux

linux-裁剪minilinux

http://www.linuxidc.com/Linux/2013-05/84483.htm

http://blog.csdn.net/field_yang/article/details/50999813

[root@localhost src]# ln -s linux-2.6.38.5/ linux
[root@localhost src]# ll
total 44
drwxr-xr-x  2 root root 4096 Oct  1  2009 debug
drwxr-xr-x  3 root root 4096 Mar 13 10:30 kernels
lrwxrwxrwx  1 root root   15 Mar 22 05:24 linux -> linux-2.6.38.5/
drwxrwxr-x 23 root root 4096 Mar 22 05:23 linux-2.6.28.10
drwxrwxr-x 23 root root 4096 May  2  2011 linux-2.6.38.5
drwxr-xr-x  7 root root 4096 Mar 13 10:31 redhat
[root@localhost src]# cd linux
[root@localhost linux]# ls
arch   COPYING  crypto         drivers   fs       init  Kbuild   kernel  MAINTAINERS  mm   README          samples  security  tools  virt
block  CREDITS  Documentation  firmware  include  ipc   Kconfig  lib     Makefile     net  REPORTING-BUGS  scripts  sound     usr
[root@localhost linux]# lftp root:password@192.168.1.18
lftp root@192.168.1.18:~> cd pub/src/
lftp root@192.168.1.18:/pub/src> ls
drwxrwxrwx 1 owner group         0 Mar 19 18:31 .
drwxrwxrwx 1 owner group         0 Mar 19 18:31 ..
-rwxrwxrwx 1 owner group   2186738 Mar 21 00:31 busybox-1.20.2.tar.bz2
-rwxrwxrwx 1 owner group   2120931 Mar 20 23:41 busybox-1.26.2.tar.bz2
drwxrwxrwx 1 owner group         0 Mar 19 18:30 fuse-2.7.4
-rwxrwxrwx 1 owner group    506658 Mar 19 18:30 fuse-2.7.4.tar.gz
-rwxrwxrwx 1 owner group     71568 Mar 22 20:20 kernel-2.6.38.1-i686.cfg
-rwxrwxrwx 1 owner group  66796955 Mar 13 18:30 linux-2.6.28.10.tar.gz
-rwxrwxrwx 1 owner group  74814045 Mar 21 00:20 linux-2.6.38.5.tar.bz2
drwxrwxrwx 1 owner group         0 Mar 19 18:31 ntfs-3g-2009.4.4
-rwxrwxrwx 1 owner group    652496 Mar 19 18:30 ntfs-3g-2009.4.4.gz
-rwxrwxrwx 1 owner group    840602 Mar 13 20:42 screen-4.0.3.tar.gz
-rwxrwxrwx 1 owner group   9843297 Mar 14 21:49 vim-7.4.tar.bz2
lftp root@192.168.1.18:/pub/src> get kernel-2.6.38.1-i686.cfg
71568 bytes transferred                                              
lftp root@192.168.1.18:/pub/src> bye
[root@localhost linux]#
[root@localhost linux]# ls
arch     CREDITS        drivers   include  Kbuild   kernel-2.6.38.1-i686.cfg  Makefile  README          scripts   tools
block    crypto         firmware  init     Kconfig  lib                       mm        REPORTING-BUGS  security  usr
COPYING  Documentation  fs        ipc      kernel   MAINTAINERS               net       samples         sound     virt
[root@localhost linux]# mv kernel-2.6.38.1-i686.cfg .config
[root@localhost linux]# ls
arch   COPYING  crypto         drivers   fs       init  Kbuild   kernel  MAINTAINERS  mm   README          samples  security  tools  virt
block  CREDITS  Documentation  firmware  include  ipc   Kconfig  lib     Makefile     net  REPORTING-BUGS  scripts  sound     usr
[root@localhost linux]# ls -a
.     block    CREDITS        drivers   .gitignore  ipc      kernel    MAINTAINERS  net             samples   sound  virt
..    .config  crypto         firmware  include     Kbuild   lib       Makefile     README          scripts   tools
arch  COPYING  Documentation  fs        init        Kconfig  .mailmap  mm           REPORTING-BUGS  security  usr
[root@localhost linux]# make menuconfig

linux-裁剪minilinux