文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>标准linux内核2.6.32与linux android 2.6.32 内核比较

标准linux内核2.6.32与linux android 2.6.32 内核比较

时间:2010-06-09  来源:challenger800

标准linux内核2.6.32与linux android 2.6.32 内核比较

使用git从google android下载下来的linux 2.6.32内核与从linux官网下载下来的内核进行了一下目录对比。对比方法如下
标准linux内核放在/linux-2.6.32 下,android linux内核放在linux-2.6.32_android目录下
执行下面的命令

cd /linux-2.6.32
find ./ > 1.txt
cp 1.txt /1.txt
cd /linux-2.6.32_android
find ./ >2.txt
cp 2.txt /2.txt
cd /
diff 1.txt 2.txt > 3.txt


执行完上面的命令之后会在根目录下产生一个3.txt的文件,下面将其中的内容贴上来


2164a2165
> ./net/ipv4/sysfs_net_ipv4.c
2485a2487
> ./drivers/i2c/chips/pca963x.c
2749a2752,2756
> ./drivers/switch
> ./drivers/switch/Kconfig
> ./drivers/switch/Makefile
> ./drivers/switch/switch_class.c
> ./drivers/switch/switch_gpio.c
2750a2758
> ./drivers/rtc/alarm-dev.c
2828a2837
> ./drivers/rtc/alarm.c
4321a4331
> ./drivers/leds/ledtrig-sleep.c
5512a5523
> ./drivers/net/pppolac.c
5603a5615
> ./drivers/net/pppopns.c
7957a7970
> ./drivers/usb/gadget/f_mass_storage.c
7966a7980
> ./drivers/usb/gadget/android.c
7987a8002
> ./drivers/usb/gadget/f_adb.c
8796a8812
> ./drivers/input/touchscreen/synaptics_i2c_rmi.c
8900a8917
> ./drivers/input/keyreset.c
8904a8922
> ./drivers/input/misc/keychord.c
8911a8930
> ./drivers/input/misc/gpio_axis.c
8912a8932
> ./drivers/input/misc/gpio_input.c
8918a8939
> ./drivers/input/misc/gpio_event.c
8921a8943
> ./drivers/input/misc/gpio_matrix.c
8924a8947
> ./drivers/input/misc/gpio_output.c
9248a9272
> ./drivers/misc/uid_stat.c
9249a9274,9275
> ./drivers/misc/kernel_debugger.c
> ./drivers/misc/wl127x-rfkill.c
9301a9328
> ./drivers/misc/pmem.c
9311a9339
> ./drivers/misc/apanic.c
11194a11223
> ./drivers/char/dcc_tty.c
12698a12728
> ./mm/ashmem.c
17242a17273
> ./arch/x86/lib/msr-smp.c
17528d17558
< ./arch/x86/include/asm/cpu_debug.h
17738d17767
< ./arch/x86/kernel/cpu/cpu_debug.c
26268a26298,26334
> ./.git
> ./.git/config
> ./.git/index
> ./.git/packed-refs
> ./.git/objects
> ./.git/objects/pack
> ./.git/objects/pack/pack-b9d009a8f9fcadfe67d9094b8915a4e2f7b1820d.pack
> ./.git/objects/pack/pack-b9d009a8f9fcadfe67d9094b8915a4e2f7b1820d.idx
> ./.git/objects/info
> ./.git/info
> ./.git/info/exclude
> ./.git/hooks
> ./.git/hooks/prepare-commit-msg.sample
> ./.git/hooks/post-update.sample
> ./.git/hooks/update.sample
> ./.git/hooks/pre-commit.sample
> ./.git/hooks/pre-applypatch.sample
> ./.git/hooks/post-commit.sample
> ./.git/hooks/applypatch-msg.sample
> ./.git/hooks/commit-msg.sample
> ./.git/hooks/post-receive.sample
> ./.git/hooks/pre-rebase.sample
> ./.git/description
> ./.git/branches
> ./.git/HEAD
> ./.git/logs
> ./.git/logs/HEAD
> ./.git/logs/refs
> ./.git/logs/refs/heads
> ./.git/logs/refs/heads/android-2.6.27
> ./.git/refs
> ./.git/refs/remotes
> ./.git/refs/remotes/origin
> ./.git/refs/remotes/origin/HEAD
> ./.git/refs/heads
> ./.git/refs/heads/android-2.6.27
> ./.git/refs/tags
27236a27303,27336
> ./fs/yaffs2
> ./fs/yaffs2/yportenv.h
> ./fs/yaffs2/yaffs_tagsvalidity.c
> ./fs/yaffs2/yaffs_mtdif2.c
> ./fs/yaffs2/yaffs_mtdif.h
> ./fs/yaffs2/yaffs_nandemul2k.h
> ./fs/yaffs2/yaffsinterface.h
> ./fs/yaffs2/Kconfig
> ./fs/yaffs2/yaffs_mtdif2.h
> ./fs/yaffs2/Makefile
> ./fs/yaffs2/yaffs_ecc.h
> ./fs/yaffs2/yaffs_guts.h
> ./fs/yaffs2/yaffs_qsort.h
> ./fs/yaffs2/devextras.h
> ./fs/yaffs2/yaffs_packedtags1.h
> ./fs/yaffs2/yaffs_qsort.c
> ./fs/yaffs2/yaffs_packedtags2.c
> ./fs/yaffs2/yaffs_packedtags2.h
> ./fs/yaffs2/yaffs_packedtags1.c
> ./fs/yaffs2/yaffs_guts.c
> ./fs/yaffs2/yaffs_fs.c
> ./fs/yaffs2/yaffs_nand.h
> ./fs/yaffs2/yaffs_mtdif.c
> ./fs/yaffs2/yaffs_nand.c
> ./fs/yaffs2/yaffs_tagscompat.h
> ./fs/yaffs2/yaffs_tagsvalidity.h
> ./fs/yaffs2/yaffs_tagscompat.c
> ./fs/yaffs2/yaffs_checkptrw.c
> ./fs/yaffs2/yaffs_checkptrw.h
> ./fs/yaffs2/yaffs_getblockinfo.h
> ./fs/yaffs2/yaffs_mtdif1.c
> ./fs/yaffs2/yaffs_mtdif1.h
> ./fs/yaffs2/moduleconfig.h
> ./fs/yaffs2/yaffs_ecc.c
29399a29500
> ./Documentation/android.txt
30457a30559
> ./include/asm-arm
30526a30629
> ./include/linux/if_pppopns.h
30573a30677
> ./include/linux/kernel_debugger.h
30598a30703
> ./include/linux/wifi_tiwlan.h
30638a30744
> ./include/linux/keychord.h
30743a30850
> ./include/linux/ashmem.h
30872a30980
> ./include/linux/android_aid.h
30975a31084
> ./include/linux/gpio_event.h
31230a31340
> ./include/linux/keyreset.h
31297a31408
> ./include/linux/uid_stat.h
31377a31489
> ./include/linux/usb/android_composite.h
31415a31528
> ./include/linux/switch.h
31484a31598
> ./include/linux/if_pppolac.h
31514a31629
> ./include/linux/synaptics_i2c_rmi.h
31612a31728
> ./include/linux/android_alarm.h
31644a31761
> ./include/linux/wl127x-rfkill.h
31702a31820
> ./include/linux/android_pmem.h
31779a31898
> ./include/linux/earlysuspend.h
31785a31905
> ./include/linux/wlan_plat.h
31791a31912
> ./include/linux/wakelock.h
32143a32265
> ./22.txt
32289a32412
> ./kernel/power/wakelock.c
32290a32414,32415
> ./kernel/power/fbearlysuspend.c
> ./kernel/power/userwakelock.c
32304a32430,32431
> ./kernel/power/earlysuspend.c
> ./kernel/power/consoleearlysuspend.c
32365d32491
< ./1.txt


上面一共有129+3行不同的地方,说明有大约132个目录或文件不一致。看来android对linux内核做了一些修改。
上面显示的信息中>是属于android的东西,<是属于标准linux内核的东西,android内核基本上没有对标准linux 的内核进行删减,而是增加了一些东西。
增加的地方主要在以下的地方
1)网络(可能是为了支持他的webkit核心浏览器及网络方面增加的吧)
2)增加了对switch 的处理
3)RTC模块
4)输入设备
5)yaffs2
6)其他的一些修改

相关阅读 更多 +
排行榜 更多 +
枪战特训2

枪战特训2

飞行射击 下载
方块枪战战场安卓版

方块枪战战场安卓版

飞行射击 下载
战斗火力射击安卓版

战斗火力射击安卓版

飞行射击 下载