|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
3 { ? [9 o4 X, y0 Y, O* T* r, u文件系统inittab
6 Z# T3 g5 _& H* o* H$ `; r- u1 t::sysinit:/etc/init.d/rcS 3 l' _2 v5 q5 [: d% ^( y
# /bin/ash" s' z) U4 h$ R0 l# B
#
: s' }. C* f8 d5 h* {# Start an shell on the serial port
+ `8 w! b, M. D, {console::askfirst:-/bin/ash
3 Z% l2 k5 l, f0 T+ }$ @5 b: g0 n1 f
$ A! e2 ?. ]3 j. Y6 o# Stuff to do when restarting the init process
6 Y! M' M+ F6 }1 z4 W# B8 N; F::restart:/sbin/init& ^% S. e; O5 g, v) ^) G
" E+ J4 F5 B0 n. B5 w7 K8 b
# Stuff to do before rebooting( g' b% O/ r) d. j$ m( \+ a8 Y
::ctrlaltdel:/sbin/reboot% B [/ r1 i/ R \9 ^
::shutdown:/bin/umount -a -r
: ~7 J& S( E7 [& ~1 \" d::shutdown:/sbin/swapoff -a m8 P7 {6 v9 U" E3 V$ R- q, x9 o
" v) c( N+ T6 Q7 }" Quboot参数是' L/ o8 C* p! g* `; `
U-Boot > pri( _0 Y: V- }: t4 w8 r- W: ?& b
baudrate=1152008 _0 h; q, k& Z( N; ~6 m
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=128M6 f" v( p6 Y% ^ T
bootcmd=tftp c0700000 uImage;bootm c0700000) h; X; s$ |6 A- ~ \( A& L6 U
bootdelay=1+ D4 V/ N' Y1 V9 {
bootfile=uImage
4 g( D3 Y; c- Y9 T3 P- b& x7 b! i6 Methact=DaVinci-EMAC
7 b' t9 e" v/ c$ methaddr=08:00:02:e3:4d:669 g/ o+ k2 f* \0 Y" s% I# w
hwconfig=dsp:wake=yes5 D6 O1 o1 u3 ], G& S- ~
ipaddr=192.168.1.5$ q( f% A# ?( Y; |' n! k
netmask=255.255.255.0
1 ], P4 m) m+ V! ]+ H. O$ e# Pserverip=192.168.1.100" W, C3 ]! M, o& e# U! c7 }: [
stderr=serial
: T( h- v6 Z( r! ]stdin=serial6 c2 K8 P, y7 f0 \
stdout=serial* W2 G- M# O, j
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
+ F3 s$ D1 j5 I4 p7 L6 F) Y" l2 O9 R" t
Environment size: 515/131068 bytes+ [) C; A9 r' n! V2 l! v
) e- b/ ]. b/ c6 L( J内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊# c$ R' S2 \, P: ^

- U; C# |, c8 S0 I) j* ~( K( W G, W) U, E6 \9 w
I: z! a# c, K5 s, n3 @ |
|