+ -
当前位置:首页 → 问答吧 → 将linux内核移植到一种新的arm板子上应该怎么做?

将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步左右      

作者: hhq2005   发布时间: 2006-06-12

非常感谢你哈!
是这样的,我们的目标板是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进行修改,串口成功后,就可以进行下一步了      

作者: hhq2005   发布时间: 2006-06-13

好像还是很难,上面列出的那些文件都好难改,无从下手啊      

作者: huangw_yinq   发布时间: 2006-06-15