⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2410板环境和内核的配置及一些细节.htm

📁 2410板环境和内核的配置及一些细节
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<html>
<head> 
<title>嵌入式技术园地 - 2410板环境和内核的配置及一些细节</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javaScript" type="text/javascript" SRC="http://www.hhcn.com/non-cgi/images/board.js"></SCRIPT>
<!--end Java-->

<!--css info(editable)-->
<style>
A:visited{TEXT-DECORATION: none}
A:active{TEXT-DECORATION: none}
A:hover{TEXT-DECORATION: underline overline}
A:link{text-decoration: none;}
.t{LINE-HEIGHT: 1.4}
BODY{FONT-FAMILY: 宋体; FONT-SIZE: 9pt;
SCROLLBAR-HIGHLIGHT-COLOR: buttonface;
SCROLLBAR-SHADOW-COLOR: buttonface;
SCROLLBAR-3DLIGHT-COLOR: buttonhighlight;
SCROLLBAR-TRACK-COLOR: #eeeeee;
SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}
TD,DIV,form ,OPTION,P,TD,BR{FONT-FAMILY: 宋体; FONT-SIZE: 9pt} 
INPUT{BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc}
textarea, select {border-width: 1; border-color: #000000; background-color: #efefef; font-family: 宋体; font-size: 9pt; font-style: bold;}
</style>
<!--end css info-->
</head>
<body bgcolor=#FFFFFF alink=#333333 vlink=#333333 link=#333333 topmargin=0 leftmargin=0>
<table width=97% align=center cellspacing=0 cellpadding=1 border=0 bgcolor=#050C09><tr><td><table width=100% cellspacing=0 cellpadding=4 border=0><tr><td bgcolor=#F8F8F8 ><font color=#333333>>> 欢迎您,<b>客人</b>: <a href="loginout.cgi?forum=6" title=从这里开始进入论坛>登录</a> | <a href="register.cgi?forum=6" title=注册了才能发表文章哦!>注册</a> | <a href="profile.cgi?action=lostpassword" title=好惨啊,忘记密码登录不了 style="cursor:help">忘记密码</a> | <a href="whosonline.cgi" title=看看有谁在线……>在线</a> | <a href="search.cgi?forum=6" title=按关键字、作者来搜寻>搜索</a> | <span style="cursor:hand" onClick="javascript:openScript('help.cgi',500,400)" title=常见问题的解答>帮助</span> </td><td bgcolor=#F8F8F8 align=right ><a href=http://www.hhcn.com target=_blank><img src=http://www.hhcn.com/non-cgi/images/gohome.gif width=48 height=16 border=0></a>&nbsp;</td></tr></table></td></tr></table><p><table cellpadding=0 cellspacing=0 width=97% align=center><tr><td width=30% rowspan=2 valign=top><a href=forums.cgi?forum=6><img src=http://www.hhcn.com/non-cgi/myimages/logo.gif border=0></a></td><td align=top><font color=#000000><img src=http://www.hhcn.com/non-cgi/images/closedfold.gif width=14> <a href=leoboard.cgi>华恒技术支持论坛</a><br><img src=http://www.hhcn.com/non-cgi/images/bar.gif width=15 height=15><img src=http://www.hhcn.com/non-cgi/images/closedfold.gif width=14 height=14> <a href=forums.cgi?forum=6>嵌入式技术园地</a> [<a href=forums.cgi?show=200&forum=6>返回</a>]<br>  <img src=http://www.hhcn.com/non-cgi/images/bar.gif width=15 height=15><img src=http://www.hhcn.com/non-cgi/images/openfold.gif width=14 height=14> 2410板环境和内核的配置及一些细节  <img src="http://www.hhcn.com/non-cgi/images/jhinfo.gif" align=absmiddle alt=本帖为精华帖子> <a name="top"></a></td><tr><td valign=bottom align=right><font color=#333333><a href=forums.cgi?forum=6&action=resetposts>标记论坛所有内容为已读</a>  <img src=http://www.hhcn.com/non-cgi/images/help_b.gif border=0 style="cursor:hand" onClick="javascript:openScript('help.cgi?helpon=阅读标记',500,400)">&nbsp;<br>>> 嵌入式技术园地欢迎您的到来 <<&nbsp;</td></tr></tr></table><br><script language="JavaScript" type="text/javascript"></script><table cellpadding=1 cellspacing=0 width=97% align=center><tr><td align=center width=1></td><td width=322 valign=bottom><a href=post.cgi?action=new&forum=6><img src=http://www.hhcn.com/non-cgi/images/newthread.gif border=0 alt=发表一个新主题 width=99 height=25></a> <a href=post.cgi?action=reply&forum=6&topic=19><img src=http://www.hhcn.com/non-cgi/images/newreply.gif border=0 alt=回复贴子 width=99 height=25></a> <a href=poll.cgi?action=new&forum=6><img src=http://www.hhcn.com/non-cgi/images/newpoll.gif border=0 alt=开启一个新投票 width=99 height=25></a></td><td align=right valign=bottom width=* nowarp><font color=#333333>◆您是本帖第 <b>239</b> 个阅读者◆  <a href=topic.cgi?forum=6&topic=176&show=200><img src=http://www.hhcn.com/non-cgi/images/prethread.gif border=0 alt=浏览上一篇主题 width=52 height=12></a>&nbsp; <a href="javascript:this.location.reload()"><img src=http://www.hhcn.com/non-cgi/images/refresh.gif border=0 alt=刷新本主题 width=40 height=12></a> &nbsp;<a href=topic.cgi?forum=6&topic=19&changemode=1><img src=http://www.hhcn.com/non-cgi/images/treeview.gif width=40 height=12 border=0 alt=树形显示贴子></a> <a href=topic.cgi?forum=6&topic=155&show=200><img src=http://www.hhcn.com/non-cgi/images/nextthread.gif border=0 alt=浏览下一篇主题 width=52 height=12></a></td><td align=center width=2></td></tr></table><table cellpadding=0 cellspacing=0 width=97% bgcolor=#000000 align=center><tr><td height=1></td></tr></table><table cellpadding=0 cellspacing=0 width=97% align=center><tr><td bgcolor=#000000 width=1 height=24><img src=http://www.hhcn.com/non-cgi/images/none.gif width=1></td><td bgcolor=#9898BA colspan=2><table cellpadding=0 cellspacing=1 width=100%><tr><td bgcolor=#9898BA><font color=#333333>&nbsp;<b>* 贴子主题</B>: 2410板环境和内核的配置及一些细节  </font></td><td bgcolor=#9898BA align=right> <a href=# onclick="javascript:WebBrowser.ExecWB(4,1)"><img src=http://www.hhcn.com/non-cgi/images/saveas.gif border=0 width=16 alt="保存该页为文件" align=absmiddle></a><object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>&nbsp; <a href=report.cgi?forum=6&topic=19><img src=http://www.hhcn.com/non-cgi/images/report.gif border=0 width=16 height=15 alt=本贴有问题,发送短消息报告给版主></a>&nbsp; <a href=fav.cgi?action=add&forum=6&topic=19><img src=http://www.hhcn.com/non-cgi/images/fav.gif border=0 width=13 height=15 alt=加入个人收藏&关注本贴></a>&nbsp; <a href=printpage.cgi?forum=6&topic=19><img src=http://www.hhcn.com/non-cgi/images/printpage.gif border=0 width=16 alt=显示可打印的版本></a>&nbsp; <span style="CURSOR: hand" onClick="window.external.AddFavorite('http://www.hhcn.com/cgi-bin/topic.cgi?forum=6&topic=19', ' 华恒技术支持论坛 - 2410板环境和内核的配置及一些细节')"><IMG SRC=http://www.hhcn.com/non-cgi/images/fav_add1.gif BORDER=0 width=15 height=15 alt=把本贴加入IE收藏夹></span>&nbsp;&nbsp;</td></tr></table></td><td bgcolor=#000000 width=1 height=24></td></tr></table><table cellpadding=0 cellspacing=0 width=97% bgcolor=#000000 align=center><tr><td height=1></td></tr></table><table cellpadding=0 cellspacing=0 width=97% align=center><tr><td bgcolor=#000000 width=1 height=24></td><td bgcolor="#F8F8F8"><table width=100% cellpadding=4 cellspacing=5 bgcolor=#F8F8F8><tr><td bgcolor=#F8F8F8 valign=top width=160 rowspan=2><table style="filter:glow(color=#cccccc,direction=135)">&nbsp;<font color=#0000ff><b>daily3&nbsp;</b></table><font color=#555555>&nbsp;头衔: 合工大超女</font><BR><font color=#333333>&nbsp;门派: 戴小鼠<br></font><br><br><a href=lookinfo.cgi?action=style target=_blank title="精灵王"><img src=http://www.hhcn.com/non-cgi/images/pips4.gif width=100 border=0></a><BR><font color=#555555>信息: <IMG SRC=http://www.hhcn.com/non-cgi/images/offline1.gif width=15 alt=该用户目前不在线 align=absmiddle> <img src=http://www.hhcn.com/non-cgi/images/teammo.gif alt="此人为版主" width=16 align=absmiddle>   </font><br><font color=#333333>威望: +66</font><br><font color=#555555>来自: 安徽合肥 <img src=http://www.hhcn.com/non-cgi/flags/blank.gif height=14 align=absmiddle></font><br><font color=#333333>总发贴数: <b>387</b> 篇</font><br><font color=#555555 title="在线: 895902 秒">注册日期: 2005/08/03</font><BR></td><td bgcolor=#F8F8F8 width=1 height=100% rowspan=2><table width=1 height=100% cellpadding=0 cellspacing=0 bgcolor=#9898BA><tr><td width=1></td></tr></table></td><td bgcolor=#F8F8F8 valign=top width=* height=100%><span style="cursor:hand" onClick="javascript:openScript('messanger.cgi?action=new&touser=daily3',420,320)" title="发送一个短消息给daily3"><img src=http://www.hhcn.com/non-cgi/images/message.gif border=0 width=16 align=absmiddle>消息</span> <a href=profile.cgi?action=show&member=daily3 title="查看daily3的个人资料"><img src=http://www.hhcn.com/non-cgi/images/profile.gif border=0 width=16 align=absmiddle>查看</a> <a href="search.cgi?action=startsearch&TYPE_OF_SEARCH=username_search&NAME_SEARCH=topictitle_search&FORUMS_TO_SEARCH=6&SEARCH_STRING=daily3" target=_blank title="搜索daily3在本分论坛的全部贴子"><img src=http://www.hhcn.com/non-cgi/images/find.gif border=0 width=16 align=absmiddle>搜索</a> <span style="cursor:hand" onClick="javascript:openScript('friendlist.cgi?action=adduser&adduser=daily3',420,320)" title="加daily3为我的好友"><img src=http://www.hhcn.com/non-cgi/images/friend.gif border=0 width=16 align=absmiddle>好友</span> <a href=post.cgi?action=copy1&forum=6&topic=19&postno=1 title=复制这个贴子><img src=http://www.hhcn.com/non-cgi/images/copy.gif border=0 width=16 align=absmiddle>复制</a> <a href=post.cgi?action=replyquote&forum=6&topic=19&postno=1 title=引用回复这个贴子><img src=http://www.hhcn.com/non-cgi/images/reply.gif border=0 width=16 align=absmiddle>引用</a> <a href=post.cgi?action=reply&forum=6&topic=19><img src=http://www.hhcn.com/non-cgi/images/replynow.gif border=0 alt=回复贴子 width=16>回复</a> <BR><hr width=100% size=1 color=#000000><table cellpadding=0 cellspacing=0 width=100% style="TABLE-LAYOUT: fixed"><tr><td width=32 valign=top><img src=http://www.hhcn.com/non-cgi/posticons/16.gif>&nbsp;</td><td style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word;"><table width=100% cellpadding=0 cellspacing=0 height=70 style="TABLE-LAYOUT: fixed"><tr valign=top><td style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word;"><font color=#555555>一.系统设置<br>1. 检查宿主机端的TFTP服务是否已经开通(此步骤只在第一次时使用,以后可忽略):在宿主机上执行setup,选择System services,将其中的tftp一项选中(出现 [*]表示选中),并去掉ipchains和iptables两项服务(即去掉它们前面的*号)。然后还要选择Firewall configuration,选中No firewall。最后,退出setup,执行如下命令以启动TFTP服务: service xinetd restart 配置完成后,用如下命令查看tftp服务是否开通: netstat -a|grep tftp。<br> 作用如:tftp 30008000 zImage 。<p>2.Nfs的设置:<br>a.在系统设置->服务器设置->NFS服务器中新建/ &nbsp; * &nbsp; Read/Write<br>b.在系统设置->服务->nfs中,选中nfs启动此服务。<br>作用如:mount –o nolock 192.168.245.18:/ /mnt。<p>二.内核配置<br> cd /HHARM2410-R3/kernel<br> make menuconfig进入内核配置界面。<br>1.ramdisk的大小:->block device->Default Ramdisk的大小应为1024的整数倍。默认值为4096,我们改为12288。<br>2.关闭SHELL对串口的占用,使之能做普通的串口通讯和拨号,且能telnet:a.->Character devices->Serial drivers-><br>[*]S#C2410 serial port support<br>[ ]Console on S3C2410 serial port [注]去掉这项即可。但此时串口会向外面乱发一些数据,所以还要修改busybox,后面说。<br> &nbsp; b.选中->File systems->dev/pts file system for Unix98 PTYs<br> &nbsp; c.选中->Character devices->Unix98 PTY support,其中(256)maximum number of Unix98 PTYs in use(0-2048),可以改变telnet开发板的数目。 <br>3.配置驱动 WEBEYE V3000使用usb接口,内部使用ov511芯片,arm linux自带该芯片的驱动,该驱动可以用模块的方式加载,也可以编进内核,这里采用的是编进内核的方法,方法是:在arm linux的kernel目录下make menuconfig,首先选择Multimedia device->下的Video for linux,然后在usb support->目录下选择support for usb和usb camera ov511 support,保存配置退出。<p>三.源码改写<br>1.因为此块flash当中有坏的扇区,故要修改引导程序ppcboot:<br>SMDK2410 # fl 1140000 30800000 220000<br>start_sect=0xa,end_sect=0x1a<br>************erase sector 0xa***********<br>************erase sector 0xb***********<br>************erase sector 0xc***********<br>************erase sector 0xd***********<br>************erase sector 0xe***********<br>************erase sector 0xf***********<br>************erase sector 0x10***********<br>************erase sector 0x11***********<br>************erase sector 0x12***********<br>************erase sector 0x13***********<br>************erase sector 0x14***********<br>************erase sector 0x15***********<br>************erase sector 0x16***********<br>************erase sector 0x17***********<br>************erase sector 0x18***********<br>************erase sector 0x19***********<br>************erase sector 0x1a***********<br>----------program sector 0xa---------<br>----------program sector 0xb---------<br>Error Command Sequence!mflash_program_sector error : status read<br>flash not completed for error <br>这是flash的第13个扇区坏了,可以跳过此坏扇区.flash是16M,共128个扇区,16M/128=128K,每个扇区是128k,换成16进制是20000,我的flash是0xc错了,故要跳过0xa和0xb两个扇区继续写,20000*2=40000,可以多跳几个扇区.写在11a0000中.<br>还有修改ppcboot重新编译,在\ppcboot-2\ppcboot-2.0.0-old\lib_arm下的armlinux.c的196行左右将0x140000改为1a0000,这里的40000和 <br>140000都是逻辑地址,在flash中起始地址是1000000,故实际的地址分别为1040000和1140000,现在ramdisk改写在11a0000中了。<p>3.释放串口时控制串口不向外乱发数据,要修改busybox:<br>cd /busybox-1.00-pre10<br>cd init <br>把safe_strncpy(console,”dev/ttyS0”,sizeof(console))改为safe_strncpy(console,”dev/NULL”,sizeof(console))后make。此时生成的busybox放到开发板的/ramdisk/bin下。<p>四.其它细节<br>1.2410开发板自启动程序放在/usr/etc/rc.local中。<br>2.用tip –l /dev/ttyS0 –s 115200来测试串口的通断。执行后显示connected,输入AT,若返回OK,就说明成功。<br> &nbsp;【注】tip放在PC机的根目录下,通过mount到开发板上。<br>3.修改ip:ifconfig eth0 192.168.245.***。<br>4.看开发板上的telnet是否启动:ps进程,看是否有inetd在运行,看/etc/inetd.conf是否有in.telnetd这一行telnet stream tcp nowait root /cramfs/sbin/in.telnetd in.telnetd。还要修改ramdisk中inetd.conf,把里面in.telnetd的路径改为in.telnetd在ramdisk当中的实际地址,例如/sbin/in.telnetd.<br></td></tr></table><table width=100% cellpadding=0 cellspacing=0><tr><td><BR><BR><BR></td></tr></table></font><BR></td><td width=16></td></tr></table></td></tr><tr><td class=bottomline bgcolor=#F8F8F8 valign=bottom><hr width=100% size=1 color=#000000><table width=100% cellpadding=0 cellspacing=0>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -