| | 网站首页 | 新闻 | SOPC | FPGA | DSP | ARM | 嵌入式操作系统 | 下载 | 网上商城 | 芯片价格参考 | 留言 | 论坛 | 网络协议 | 驱动设计 | 购买指南-HowtoBuy | | |
![]() |
![]() |
| 您现在的位置: FPGA开发板&SOPC开发板-嵌入式控制研究室 >> ARM >> ARM入门 >> 文章正文 |
|
|||||
| 在ARMulator中移植uClinux(2) | |||||
| 作者:佚名 文章来源:互联网 点击数: 更新时间:2007-6-9 | |||||
|
Install the toolchain su to log in as the root then execute the arm-elf-tools-20040427.sh like: [root@hyoklinux /]# /bin/sh ~/incoming/arm-elf-tools-20040427.sh You should see the list of files that is installed. The toolchain binaries for execution are installed to /usr/local/bin. So you need the directory to be included in your search path, usually it is default for common Linux distribution like Redhat. Untar the uClinux distribution On a directory which has enough free available space(about 2GB?), untar the uclinux distribution : Let's look around what we have on the uClinux-dist directory: [root@hyoklinux /]# cd uClinux-dist/ [root@hyoklinux uClinux-dist]# ls -al total 104 Make a new linux-2.6.x kernel from the scratch The kernel version of linux-2.6.x directory in the 20040408 distribution is “linux-2.6.2-uc0”. We need another kernel with newer kernel version for uClinux/ARM 2.6, here. [root@hyoklinux uClinux-dist]# tar -jxvf ~/incoming/linux-2.6.5.tar.bz2 Now we got the whole linux-2.6.5 codes, and need to patch the kernel. [root@hyoklinux uClinux-dist]# gzip -dc ~/incoming/linux-2.6.5-hsc2.patch.gz | patch -p0 You should see the codes patched in directories that contain “armnommu” string. You can use the directory >So you don't need the linux-2.6.x directory which is included in the uClinux-dist. : [root@hyoklinux uClinux-dist]# rm -rf linux-2.6.x/ And we re> [root@hyoklinux uClinux-dist]# mv linux-2.6.5 linux-2.6.x Confirm the configuration files The current uClinux distribution does not contain the proper configuration files for uClinux/ARM 2.6. We need a simple fix-up. The default configuration for ARMulator is at vendors/GDB/ARMulator. We can fix-up the configuration files like this : [root@hyoklinux uClinux-dist]# cp linux-2.6.x/arch/armnommu/configs/GDB_ARMulator_defconfig vendors/GDB/ARMulator/config.linux-2.6.x Since we'll use a ramdisk for the rootfs, we need to fix the “rc” in the configuration directory to use ramdisk device number 1. Edit the vendors/GDB/ARMulator/rc to just like : [root@hyoklinux uClinux-dist]# vim vendors/GDB/ARMulator/rc host>/bin/expand /etc/ramfs.img /dev/ram1 |
|||||
| 文章录入:fengfeiyi 责任编辑:fengfeiyi | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 管理登录 | | |
![]() |
Copyright © 2005www.21control.com 嵌入式控制技术研究室 版权所有 站长:康草科技 |