嵌入式开发者社区
标题:
uboot更改控制台后内核启动有输出无法输入
[打印本页]
作者:
leisure
时间:
2015-7-8 17:49
标题:
uboot更改控制台后内核启动有输出无法输入
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
# f9 P- L: @4 |9 y) o5 u" l: c y
文件系统inittab
1 y6 ^' }6 k5 E6 u) A: ]6 z
::sysinit:/etc/init.d/rcS
( W! N. k( w" _ n# t4 ]
# /bin/ash
3 e: Q" _: E% |) \6 j) j
#
/ ?5 y! u) O Z0 h0 S J: h
# Start an shell on the serial port
) L6 v/ Q$ k' r S/ y# V1 {
console::askfirst:-/bin/ash
) q6 ]# Y7 l8 ]
7 N3 L/ Q6 V) o; m- A; K# ? M6 z
# Stuff to do when restarting the init process
: D! R3 k5 G+ E- W
::restart:/sbin/init
) g1 O Q" I1 @. L- }
) E8 |* j7 A7 R1 ~
# Stuff to do before rebooting
0 |2 E& g/ l u) A
::ctrlaltdel:/sbin/reboot
. U9 ?9 I0 \) \" ^& q! m
::shutdown:/bin/umount -a -r
* `4 R L/ T% x, ~' D! H
::shutdown:/sbin/swapoff -a
z8 ?9 _( @1 c
2 K+ ~- g. u) T
uboot参数是
5 C! P: k6 ?; R8 n: m8 T! N
U-Boot > pri
$ V2 i$ F' l; L4 |
baudrate=115200
- w" u; [, B7 ]1 X9 i" p
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
9 \2 X) I5 R! h8 S" B W3 H
bootcmd=tftp c0700000 uImage;bootm c0700000
$ @4 I! g/ n9 a: X! D
bootdelay=1
+ ?0 O& x, Y; Y( w) b! f* R+ E9 B
bootfile=uImage
4 w1 _; k, _5 |+ y
ethact=DaVinci-EMAC
/ |, Z( W% K- y4 x3 b
ethaddr=08:00:02:e3:4d:66
" \. c$ B6 i5 j% b, H) E
hwconfig=dsp:wake=yes
0 m6 Q7 O( Y8 r! d4 ?; a/ s8 R
ipaddr=192.168.1.5
( _& A4 l+ c9 |$ G
netmask=255.255.255.0
" a7 s6 [! n. _
serverip=192.168.1.100
: K* ~0 t$ F9 p9 A0 K5 G0 N. {
stderr=serial
- f! l) `; o; N3 ?4 e- I$ T e3 S% x
stdin=serial
$ K7 w# m: \- b+ ~ z
stdout=serial
$ ]8 g, j. X8 d# Q7 w- E; a
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
0 l$ |. l- c6 ^1 I/ a* P: S
) s. ~1 g, O) Y4 C" }& B, x7 j' ^
Environment size: 515/131068 bytes
4 q2 h, n) _( s8 ~& v o
% b3 ]* ^$ e6 i5 ]
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
. W" I4 H- `7 O( I) E" T! `" B+ ]* A
) B1 ?6 U# z6 ~" |2 k7 o7 w
5 ^+ E1 @& H8 P9 b H! @ d; L, ^; P
1 b4 C1 g' P/ y
作者:
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