|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,1 j$ A2 J6 g8 b/ }! H
文件系统inittab3 n8 Z) q0 F/ T
::sysinit:/etc/init.d/rcS
# T9 o3 l. m% U" k# /bin/ash. @9 { ?: H9 a2 j9 ^* P" ?
#2 O0 B& P8 _% \$ _ K& v H5 H& O
# Start an shell on the serial port
5 i6 j, \- F, d3 J. _/ x& G: Z2 hconsole::askfirst:-/bin/ash) }2 i1 D7 G( |
$ Z6 e$ E. Z; f p. ?( {- B1 S# Stuff to do when restarting the init process
! S! ^& G+ v3 k# }::restart:/sbin/init
# L' {& @3 N5 \0 }% T1 l" p) a/ b# G- L
# Stuff to do before rebooting
; P, r ~) J# B/ h% y# [9 _::ctrlaltdel:/sbin/reboot
. ]2 D1 @# F+ c::shutdown:/bin/umount -a -r3 J! u4 t& ~5 F5 \# Y7 |4 |
::shutdown:/sbin/swapoff -a
$ T! M9 Q" N- ^+ B( X5 ?9 \4 k! |, l6 ^
uboot参数是
" ?/ _. Q2 n5 ^) A5 Q; hU-Boot > pri
2 g" d8 f- q& ~. a0 C6 C R* Jbaudrate=1152005 ?, C8 I: c- \2 o
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 g4 E2 K. B! q* v* mbootcmd=tftp c0700000 uImage;bootm c0700000
0 z5 j% v$ U2 w% v$ k; h. @! v0 dbootdelay=1, M8 d' h8 p# o0 K5 ^2 _
bootfile=uImage( p+ h- b2 I- [! l. ^# e. u
ethact=DaVinci-EMAC5 ^" Z6 w6 w3 |9 B! o
ethaddr=08:00:02:e3:4d:66; x R2 b* C7 N- w5 i- }
hwconfig=dsp:wake=yes
6 q3 K- R. y% t# J# uipaddr=192.168.1.50 t. W$ ?, y0 V2 M+ \1 B' Q
netmask=255.255.255.0' Q1 R9 S n* O% h
serverip=192.168.1.100# f1 W1 O, W4 j0 R: U4 b/ J
stderr=serial0 S z! b% y- S* x. T
stdin=serial9 k0 B- _0 s, Y& i0 x4 [: n
stdout=serial
8 L, O7 p( c( R" D* Tver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)" a# s0 O2 z! a
# l9 Y" D# e* o5 K* gEnvironment size: 515/131068 bytes
. e/ z7 @# @% g8 T0 O: a! X [" M) C3 w4 ?: Y
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
8 S- |& V( a8 U7 S. ?9 u# O
4 B6 y9 z9 f: l6 \
: w( D) l9 a: w0 j7 r5 y1 h8 D1 b" `, d$ h) [; u3 ], Z
|
|