|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
, I' y" ]0 w1 B# l7 h/ L文件系统inittab
: Y, B8 e. |7 c. w( U8 S: ?::sysinit:/etc/init.d/rcS
, D$ Y2 @: \2 E; }" j$ y# /bin/ash
8 P& z. A2 f4 _5 m9 J4 o$ a* t#. }6 U# a! I! w# E' ~9 i/ B2 z
# Start an shell on the serial port
# }! C# t7 r4 _console::askfirst:-/bin/ash
# q5 G! W1 q5 M0 A: D
2 k, G4 [$ A+ m3 e/ q( G# Stuff to do when restarting the init process- _1 L. R# C/ _. A/ ~
::restart:/sbin/init
% }6 u+ [. J4 r& U# b
# F6 d2 y& A7 C) h& l% T, L1 g# Stuff to do before rebooting
! K; Y6 r9 n. Y6 T9 p6 p::ctrlaltdel:/sbin/reboot/ a4 \& i" f* o) Y3 b4 L
::shutdown:/bin/umount -a -r
/ v% i$ x4 D- }2 x9 y::shutdown:/sbin/swapoff -a
0 e7 o5 S# {7 m1 u) a, _% m5 K6 N$ d
W: X) M3 {. _$ p& iuboot参数是5 e) d j5 I8 X9 K$ x; g
U-Boot > pri/ P' G% ?# F9 I) l) H+ ^
baudrate=115200% _: t* a5 ^; e' X* F
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% W( j' ]( X# ~' J# v
bootcmd=tftp c0700000 uImage;bootm c0700000% r; \) I5 {2 X( r
bootdelay=10 N4 U# s3 v5 f. S" V: O5 V
bootfile=uImage [0 A6 J3 T% X8 l
ethact=DaVinci-EMAC
. B9 h; f4 G% }! ^ethaddr=08:00:02:e3:4d:666 b1 Z! ^7 [; F" P
hwconfig=dsp:wake=yes+ q% B+ |$ g( W* I8 L X
ipaddr=192.168.1.5$ T/ A! c1 ^$ U7 t5 }* P& o
netmask=255.255.255.0' \& f( M4 y. C! o& Y( e- \
serverip=192.168.1.100
% D' A7 A' ]; C. }stderr=serial
& o% M0 B' n2 f; Y* @stdin=serial) @$ D O% }5 ]( y
stdout=serial' y5 D) s/ z2 Y- C* L: F
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)- u8 o, w2 p- u
' h, J" J8 t- {1 }$ LEnvironment size: 515/131068 bytes; U$ f/ B: ^ \$ @- p7 k( I6 ]
' a+ n \# l \0 i
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊( j8 F& r; S* O( d
# t+ j. ?" h0 C5 N# J- a- e; U) R
( o* i/ C3 @& G& I! u9 p( [" v& I, p( F0 E3 [: \" f! e: W1 B6 T7 e4 S
|
|