嵌入式开发者社区

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

作者: leisure    时间: 2015-7-8 17:49
标题: uboot更改控制台后内核启动有输出无法输入
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,; n1 R2 i$ W- g" H# j& |
文件系统inittab3 X7 b" i0 ]0 o
::sysinit:/etc/init.d/rcS + T1 _5 [- A& c0 i1 w6 d
# /bin/ash$ u' d  n7 u1 a6 G; C9 m+ w
#' P0 t5 |: b) @* N
# Start an  shell on the serial port4 u1 Q3 H% D9 d" l3 d" H; }
console::askfirst:-/bin/ash
0 w4 ?4 `$ P0 Q2 K* T8 ?) d6 N/ r6 D. j" n
# Stuff to do when restarting the init process
" o* S% e+ h) ], L% x# @9 r7 Q::restart:/sbin/init
7 p4 F& t2 K8 J8 v
) a' K. ^5 P% s- e. J# Stuff to do before rebooting
2 @) u. b, ]4 `4 m( n5 E::ctrlaltdel:/sbin/reboot
/ M* i2 L) _7 c::shutdown:/bin/umount -a -r
; ]* O% n" ~  e  D+ l/ P::shutdown:/sbin/swapoff -a7 j9 V( k. v9 u

4 Z) @/ ?  _* D& V. f5 L9 A  ruboot参数是8 i6 S( ]7 g/ A( V* g" a+ Q+ `" O1 ~
U-Boot >  pri2 g1 Z# N* }; C
baudrate=115200& B8 g1 p) d. |; b7 x# R2 v) V
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=128M: R. {8 @5 l8 k  i
bootcmd=tftp c0700000 uImage;bootm c07000006 \8 @: K0 b5 {  c8 e) Q. t
bootdelay=1
( h: |- h3 H" G3 hbootfile=uImage
' P) ?: Z5 k  q; _ethact=DaVinci-EMAC
/ p) J5 |, ?# b$ J' G  K: Q6 Uethaddr=08:00:02:e3:4d:66
; ]  l+ K5 C; ~  V: khwconfig=dsp:wake=yes
8 I4 g& X( F# {9 Wipaddr=192.168.1.5  K* Q) c% B0 O8 C" Q( v9 X# S
netmask=255.255.255.0. }% {8 u/ t  q+ l. d
serverip=192.168.1.100- P8 L% L) I. V1 Y
stderr=serial
" I0 ^9 ?+ w" y+ ^6 Wstdin=serial
. ~9 Q" }7 ]) y. s" F& @stdout=serial5 J$ b$ B! E5 G. f4 s2 q9 j5 K
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
9 P3 ^9 S% X0 F) J* y9 u. V- C
* I/ p; G- ]2 BEnvironment size: 515/131068 bytes
) V' P! ?1 I) X" G% S4 p( z+ b6 l, n4 ?& f6 Y
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
# l$ O3 x, z7 ]3 U7 B, O) f$ T/ Z' y) z; x3 _% A

/ e8 D! g% O8 ~/ C0 v* }. p* s0 w2 k2 q- Y" T  {( [3 `+ ~- E

作者: 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