嵌入式开发者社区

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

作者: leisure    时间: 2015-7-8 17:49
标题: uboot更改控制台后内核启动有输出无法输入
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,; H) t; Y: l8 E5 N0 q% a
文件系统inittab0 K0 Y* C9 ]& d
::sysinit:/etc/init.d/rcS
! g' L& r# a0 s! e) c4 n# /bin/ash1 n" E4 b" X  x8 z# ^
#& Q, G, K0 |  O. [0 j  t5 z1 |
# Start an  shell on the serial port5 a# g# z6 C; d9 z
console::askfirst:-/bin/ash
* y. N2 e  s' J  l& _8 \, _0 C- \& p0 S
# Stuff to do when restarting the init process
# F- F& o/ q( A% G# O" s2 o3 g1 v4 P::restart:/sbin/init5 x! C5 K! I* p$ y9 R4 `; S

+ ^1 x9 ~+ P( ~) {! V* B4 c9 ^# Stuff to do before rebooting* p6 {' a6 C% e# K/ `
::ctrlaltdel:/sbin/reboot. d3 Q# y, F, w+ N3 y7 N! j
::shutdown:/bin/umount -a -r
% h+ N4 F8 Z  I. b6 Q7 \::shutdown:/sbin/swapoff -a
3 R, h6 j5 I. i8 {9 X& a) f- i, ]) L) p5 w" @& C
uboot参数是
/ L- B/ [' ?" l' j9 O& I6 c; RU-Boot >  pri9 T" q. s9 D3 a
baudrate=115200
, O. t6 F9 u! y/ e1 }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) |4 l2 u% y" V
bootcmd=tftp c0700000 uImage;bootm c0700000
3 Q+ _0 v$ B! i% Abootdelay=1# r$ B- |& k5 ~
bootfile=uImage
4 x( W" N/ `5 c6 R* Q# b6 Wethact=DaVinci-EMAC: j5 P" a, [8 O) f" d
ethaddr=08:00:02:e3:4d:66$ m: }( i4 f* z  b
hwconfig=dsp:wake=yes
8 U5 Z" w/ q5 P9 i+ q. U0 V, jipaddr=192.168.1.5
9 d0 J" u- I* knetmask=255.255.255.0
8 K' W0 ]7 W( U8 R' S% Jserverip=192.168.1.100
  O) P8 q/ V' v! f3 I/ tstderr=serial
; K; Q# @! q5 W# E7 q: k# Ustdin=serial! e& M& z5 D+ a. A2 r( |+ R
stdout=serial) ?5 L0 i# W5 u) }8 U! C% n( \; S
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
8 N' z. {5 x% o2 E
. g  @# u1 [% h% Y& H; x! LEnvironment size: 515/131068 bytes
* D( \+ s9 a1 w" O" F
; B, V! I7 q3 |8 B内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊3 V9 T: t; k9 g8 ], H

! [' Q' o" Q$ _
8 L( e+ T( J/ V& A4 \. E
. U$ v* U3 c6 F8 m1 r- A
作者: 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