将linux内核移植到一种新的arm板子上应该怎么做?
时间:2006-06-12
来源:互联网
具体来说,就是要添加或修改哪些目录和文件,有没有相关文档参考,谢谢
作者: huangw_yinq 发布时间: 2006-06-12
arch/arm/mach-cm922txa10/arch.c
arch/arm/mach-cm922txa10/irq.c
arch/arm/mach-cm922txa10/Kconfig
arch/arm/mach-cm922txa10/Makefile
arch/arm/mach-cm922txa10/Makefile.boot
arch/arm/mach-cm922txa10/mm.c
arch/arm/mach-cm922txa10/time.c
In the arch-cm922txa10 folder we talked about these files :
include/asm-arm/arch-cm922txa10/debug-macro.S
include/asm-arm/arch-cm922txa10/entry-macro.S
include/asm-arm/arch-cm922txa10/irqs.h
include/asm-arm/arch-cm922txa10/uncompress.h
We now need to add few files in this last folder. First we put hardware definitions in the files :
include/asm-arm/arch-cm922txa10/cm.h
include/asm-arm/arch-cm922txa10/excalibur.h
include/asm-arm/arch-cm922txa10/hardware.h
include/asm-arm/arch-cm922txa10/int_ctrl00.h
include/asm-arm/arch-cm922txa10/platform.h
include/asm-arm/arch-cm922txa10/timer00.h
include/asm-arm/arch-cm922txa10/uart00.h
Finally, we have to place mandatory files. These files are needed for kernel compilation, but do not
contain machine specific information except in very special cases :
include/asm-arm/arch-cm922txa10/dma.h
include/asm-arm/arch-cm922txa10/io.h
include/asm-arm/arch-cm922txa10/memory.h
include/asm-arm/arch-cm922txa10/param.h
include/asm-arm/arch-cm922txa10/system.h
include/asm-arm/arch-cm922txa10/timex.h
include/asm-arm/arch-cm922txa10/vmalloc.h
基本上需要,修改,然后修改makefile kconfig大概20步左右
arch/arm/mach-cm922txa10/irq.c
arch/arm/mach-cm922txa10/Kconfig
arch/arm/mach-cm922txa10/Makefile
arch/arm/mach-cm922txa10/Makefile.boot
arch/arm/mach-cm922txa10/mm.c
arch/arm/mach-cm922txa10/time.c
In the arch-cm922txa10 folder we talked about these files :
include/asm-arm/arch-cm922txa10/debug-macro.S
include/asm-arm/arch-cm922txa10/entry-macro.S
include/asm-arm/arch-cm922txa10/irqs.h
include/asm-arm/arch-cm922txa10/uncompress.h
We now need to add few files in this last folder. First we put hardware definitions in the files :
include/asm-arm/arch-cm922txa10/cm.h
include/asm-arm/arch-cm922txa10/excalibur.h
include/asm-arm/arch-cm922txa10/hardware.h
include/asm-arm/arch-cm922txa10/int_ctrl00.h
include/asm-arm/arch-cm922txa10/platform.h
include/asm-arm/arch-cm922txa10/timer00.h
include/asm-arm/arch-cm922txa10/uart00.h
Finally, we have to place mandatory files. These files are needed for kernel compilation, but do not
contain machine specific information except in very special cases :
include/asm-arm/arch-cm922txa10/dma.h
include/asm-arm/arch-cm922txa10/io.h
include/asm-arm/arch-cm922txa10/memory.h
include/asm-arm/arch-cm922txa10/param.h
include/asm-arm/arch-cm922txa10/system.h
include/asm-arm/arch-cm922txa10/timex.h
include/asm-arm/arch-cm922txa10/vmalloc.h
基本上需要,修改,然后修改makefile kconfig大概20步左右
作者: hhq2005 发布时间: 2006-06-12
非常感谢你哈!
是这样的,我们的目标板是SegmaTel的stmp36xx开发板,cpu是arm926ejs,有没有哪个版本的内核已经支持与这种开发板类似的板子呢?
请问你还有这方面的资料吗,可以发给我吗,谢谢哈[email protected]
是这样的,我们的目标板是SegmaTel的stmp36xx开发板,cpu是arm926ejs,有没有哪个版本的内核已经支持与这种开发板类似的板子呢?
请问你还有这方面的资料吗,可以发给我吗,谢谢哈[email protected]
作者: huangw_yinq 发布时间: 2006-06-13
arm926 这种 arch linux肯定是支持的,现在是你的stmp36xx bsp修改的问题,对于这种情况,一般是拷贝一个同型号的,然后修改bsp的信息(io信息)。
linux从arch\arm\kernel\head.S开始,
你需要首先调通你的串口,即
debug-macro.S进行修改,串口成功后,就可以进行下一步了
linux从arch\arm\kernel\head.S开始,
你需要首先调通你的串口,即
debug-macro.S进行修改,串口成功后,就可以进行下一步了
作者: hhq2005 发布时间: 2006-06-13
好像还是很难,上面列出的那些文件都好难改,无从下手啊
作者: huangw_yinq 发布时间: 2006-06-15
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28