|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,1 @. i0 r, y. O! t [" |
文件系统inittab+ M/ D, d2 y# T/ e
::sysinit:/etc/init.d/rcS + K* u6 n$ _3 x- h! O9 k% t- r3 n
# /bin/ash6 h$ _( j2 N, B" A. F7 K# E/ Q3 E% ]
#. G$ P) a6 ~) D" G3 m( U1 E
# Start an shell on the serial port
6 O* _. i3 N2 t: G {1 F9 uconsole::askfirst:-/bin/ash
- H$ n6 M3 e; _& T' q' p. Q2 P
# t; H5 o# B, Y& E# Stuff to do when restarting the init process7 e3 ]0 J' W1 h E
::restart:/sbin/init' p I; G L' K& v" ~9 ?0 z
$ ]+ w0 z$ p4 S; H, Q8 D( Q
# Stuff to do before rebooting- G, c! D$ N5 u0 V( M1 j
::ctrlaltdel:/sbin/reboot
% @, ^$ I4 E% ]: T::shutdown:/bin/umount -a -r0 c" \1 s2 X' x1 ]" h4 ?' V
::shutdown:/sbin/swapoff -a
: N4 K0 J! `: s& @ \4 j
# A( m& p4 T% a( w: {: ^* x2 m1 F% ?uboot参数是& h! Y. s$ e6 ?# k% Y) T
U-Boot > pri
m. l, E4 G# U5 J/ Xbaudrate=115200" m7 |9 M# U/ o& \ {9 @) U
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
& v" ~7 k* |8 A3 E& ]2 Pbootcmd=tftp c0700000 uImage;bootm c0700000
( Y; h% G8 ?$ u6 Z3 Dbootdelay=1* B& `1 H; M( G" k! s
bootfile=uImage& Y c! \$ A( n$ `
ethact=DaVinci-EMAC
% q% `& N4 A' j3 Fethaddr=08:00:02:e3:4d:66/ N# E$ U5 a9 k1 t/ B, z
hwconfig=dsp:wake=yes( u. O0 s' U6 V8 k$ k+ N
ipaddr=192.168.1.5
9 L+ S0 Z2 a) ^ d. qnetmask=255.255.255.0( e6 Z' i- T' b J, ~* p+ Z
serverip=192.168.1.100- B4 f# I. }% B) s. @
stderr=serial
/ c$ k# v% {& G) \0 Vstdin=serial5 a3 E, x# W. P3 A7 {
stdout=serial8 x# z- k( A0 a6 ~" g1 P
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
) @ W ?+ `, ]! I# Q2 R' h* l6 g7 ~4 T+ n: U
Environment size: 515/131068 bytes
0 H7 M d; ] j9 Y8 f- E7 Z; v, D, Q- W: r3 k) d7 Q
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
) _- a2 h( i7 V; t2 K
H: |& X( E' V9 D2 \" ~2 f0 R1 B5 s: _! A& Q; j, q3 ~: R3 g% ?; I
) L9 t' o! c" @
|
|