我用得cpu是LPC2290,开发板是周立功公司得MagicArm2200。默认的启动方式是由norflash中的bootloader把uclinux内核(位于nand flash中)调入到内存中引导起uclinux。
由于最终产品内存的限制,现在想把uclinux拿到norflash中直接运行,以减少其对内存的消耗。
重新编译了内核,指定编译成rom启动方式,将映象文件拷贝到norflash中的指定位置,由bootloader跳转过去,但是系统好像没有了响应。。。
从uclinux官方网站看到过如下一个讨论:
Hello Armand,
the CONFIG_ROMKERNEL is used in arch/armnommu/kernel/head-armv.S.
However, I have just recognized that the necessary link script for
execution from rom isn't in the official kernel source. I have never
submitted for CVS because currently I have to copy the right link script
by hand. If you want to run the kernel from flash, you can pick parts of
http://cvs.home.at/midori/sources/linux-2.4.20-uc1/xip.patch
The scripts are arch/armnommu/vmlinux-armv-ram.lds.in and
vmlinux-armv-rom.lds.in.
In the official kernel source, the kernel can be executed from ram only.
Regards,
Erwin
可知uclinux默认并不支持从flash启动,需要打另外的补丁,各位大侠,有没有人做过啊?我已经找到这个补丁,但需要根据具体芯片改写,希望对philips芯片熟悉的朋友一起研究一下啊?
打赏帖 | |
---|---|
汽车电子中巡航控制系统的使用被打赏10分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K146】S32DS RTD 驱动环境搭建被打赏12分 | |
【分享开发笔记,赚取电动螺丝刀】【IAR】libc标注库time相关库函数使用被打赏23分 | |
LP‑MSPM0L1306开发版试用结果被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【LP-MSPM0L1306】适配 RT-Thread Nano被打赏23分 |