嵌入式开发者社区

标题: uboot更改控制台后内核启动有输出无法输入 [打印本页]

作者: leisure    时间: 2015-7-8 17:49
标题: uboot更改控制台后内核启动有输出无法输入
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,+ m) J3 ?# K" M3 I" ~5 p2 W2 [. W
文件系统inittab% a+ G6 a* |7 q7 Z' w
::sysinit:/etc/init.d/rcS ) _9 a! y1 L) N, B7 V' x; v" p! c
# /bin/ash
# x6 ^& ~3 Z1 D4 P#9 a, u: g' n! K: q. m* w
# Start an  shell on the serial port- x  ^4 L( b8 P6 W2 a4 V- a9 G
console::askfirst:-/bin/ash5 u" ?. a" W  x: m$ L7 m- |  l1 |) q

( r7 U0 ]! m8 v2 O# Stuff to do when restarting the init process  @, ^6 X8 I( z
::restart:/sbin/init" m; k: _) A- |/ x. x
* v+ n" E% Z, O' W- m$ p
# Stuff to do before rebooting# w1 x9 E6 F$ m1 K7 G- L
::ctrlaltdel:/sbin/reboot
  x" S6 F, E" W4 M0 M* v::shutdown:/bin/umount -a -r
" h, g/ Q6 C4 X+ _; E+ v, [::shutdown:/sbin/swapoff -a
4 k7 m+ E4 k! m' V; O/ ?5 U0 ]
5 ]  C9 \  u, I4 tuboot参数是
, E+ |) O' t8 R0 B2 S6 T3 yU-Boot >  pri
, M7 v2 A( a; Mbaudrate=115200. j. H/ w; A+ s4 g
bootargs=root=/dev/nfs rw nfsroot=192.168.1.100:/home//tftpboot/rootfs-mini nfsaddrs=192.168.1.5:192.168.1.100:192.168.1.1:255.255.255.0 console=ttyS1,115200n8 mem=128M2 y9 T, J( u# T0 R. G1 e
bootcmd=tftp c0700000 uImage;bootm c0700000) g* {- D( e2 S3 B) z- }
bootdelay=1. l9 T$ J% \. P$ [
bootfile=uImage
* n/ L2 f6 j: M) P5 ^0 Fethact=DaVinci-EMAC' ^6 a  q9 y8 E! Q7 j
ethaddr=08:00:02:e3:4d:66
) X" O6 Z* J$ U8 B7 T, ?hwconfig=dsp:wake=yes( _2 f5 b4 d# M6 O* N
ipaddr=192.168.1.5! [4 O( u0 }& A$ S, V  s% r+ {
netmask=255.255.255.0/ ]" g$ k3 u+ h" j
serverip=192.168.1.100
* [, t" V1 Y" r3 Q7 wstderr=serial9 O: h6 I# d# D0 K0 f
stdin=serial
5 Q0 d% p$ Y( G) Q( W- _! _+ Ostdout=serial- R8 U9 q% H) D
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)& P  F" H/ K$ d0 }( K

" v3 t2 {# ^3 A8 ^8 V, ~' Q8 D# G1 eEnvironment size: 515/131068 bytes) J4 v- _% _" h, x
* Q2 ~# R2 u8 T. G2 R4 i0 l' O
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
7 T! n8 i/ L1 W6 f# Y. G9 Y8 F  r$ U) J' }- _. e  X1 v  b

3 c% o( {9 Q" H( l/ r, Q" t3 g0 {) s( Q  ?' E% @, s3 s- {! t

作者: teddy    时间: 2015-7-9 15:39
linux3.3内核在v1.7,g74e120f之前,是默认串口1为RS485功能,如果在evm板子,串口1作为RS485时,RS232不能正常使用。可以使用v1.7版本内核或者修改内核menuconfig.




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4