|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,/ I) K( h3 a# y/ t! O8 e
文件系统inittab3 s- q" C" [, l9 a P
::sysinit:/etc/init.d/rcS
& \2 m. O* i G- s3 h0 w" B* {6 z# /bin/ash$ A7 X% Y4 O$ `. r' [
#$ B8 _+ \3 C" o: }' b6 S8 u
# Start an shell on the serial port9 f. k3 o7 T9 k2 P
console::askfirst:-/bin/ash
; V2 {+ O* V: \3 v
' y6 L+ u0 W% G6 Y0 |# Stuff to do when restarting the init process
0 `2 {2 E3 I9 i) [$ O5 i; C::restart:/sbin/init9 y6 m9 n; u/ w, n* Y
: c" u7 @9 p8 `, L; X
# Stuff to do before rebooting( e" o' Z/ Z6 s- w! I
::ctrlaltdel:/sbin/reboot
0 S# ?; `0 M7 C3 u::shutdown:/bin/umount -a -r. X) Q9 q- w2 ^1 {* A+ ~. p6 R
::shutdown:/sbin/swapoff -a
8 K$ V4 I! }1 g9 E& N( O5 ~* H7 \* A4 K- [( o" H4 ~+ n: x
uboot参数是7 h' E7 X+ L/ [/ f" q/ p
U-Boot > pri$ o( s r$ x( B
baudrate=115200
# O" }& B3 y& ebootargs=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
% h0 f5 G$ J) g; e, A ubootcmd=tftp c0700000 uImage;bootm c0700000& _' [# j' n V+ e- Z1 s, j
bootdelay=1
, V. |8 y. p. ^$ C+ o9 Q3 tbootfile=uImage+ u7 j# i! V8 Z# h% Q; v
ethact=DaVinci-EMAC4 @5 [" _1 h$ [5 h9 m7 E' x
ethaddr=08:00:02:e3:4d:66
: V3 J( q" C3 z4 G* a( [hwconfig=dsp:wake=yes$ k' a6 \$ Q" r/ \# n
ipaddr=192.168.1.5
3 q3 S; u1 m4 D( Mnetmask=255.255.255.0
m7 c b) S* t8 d7 P) x* xserverip=192.168.1.100
4 e0 A6 x, U4 Fstderr=serial! ?. @0 Z" I1 S& R8 l5 q0 Y- X+ F
stdin=serial6 P; c. s$ z' w! ~7 t
stdout=serial
7 z6 K4 ^8 b3 e8 T p5 N; |ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)! w5 |# m; y$ |# v7 B8 @- c0 Z( Q
. n; b2 r0 s+ }5 \5 w) B4 K
Environment size: 515/131068 bytes7 X: [" A( b% m( H T. |1 A0 X% e
/ X& |5 J2 s5 H% P4 X内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
4 h% H1 l9 j9 V# N9 q1 ~9 z
7 c' D# s9 a G% m: i& T" x( Z K- ]& w) n4 O M0 J2 B& w
) B3 ]/ e% k& S+ y+ S. Y) a& j
|
|