|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,- W. v& b& c5 o$ r7 S. C8 R
文件系统inittab
4 R. R" Q: O. b* W8 M7 d::sysinit:/etc/init.d/rcS 0 z- r2 a) g t; d( l4 P i
# /bin/ash2 R4 y7 e4 `; O* E. v
#
% c+ u. d5 F+ z% | N9 R# Start an shell on the serial port) d5 ^4 A' X K1 D1 ~. _
console::askfirst:-/bin/ash0 h& F' U8 J/ Z1 @. |, ^9 ~
" C4 g9 ~/ v6 r9 O9 g& R# Stuff to do when restarting the init process B% k) T! ]6 V
::restart:/sbin/init/ H. Y4 ?- [% j1 a/ [ A- Q, G
) R0 i4 a( @2 V1 t# b
# Stuff to do before rebooting/ A0 \% I! B; Q9 Y! }
::ctrlaltdel:/sbin/reboot$ O, q6 A1 j- Q J
::shutdown:/bin/umount -a -r( t n' O& K8 G! z Y& G( ]5 \
::shutdown:/sbin/swapoff -a. l! [; ~& G7 W2 s
4 z1 l( p: L4 x6 M. n/ Q( Yuboot参数是
, C- ~" T1 z9 z2 yU-Boot > pri
3 p' F9 ^" {9 ^baudrate=115200( q6 i" n( ~$ W. D
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=128M8 u5 q b+ ]( ]( @' ^
bootcmd=tftp c0700000 uImage;bootm c0700000% @3 T5 H' z1 o: g
bootdelay=1; \, B# z/ \. u" V2 |7 }$ j
bootfile=uImage9 B( E+ C n* `4 f/ C) `
ethact=DaVinci-EMAC* w9 y( `1 H3 L, ]0 R4 r3 j
ethaddr=08:00:02:e3:4d:662 B5 z; I: ?) X
hwconfig=dsp:wake=yes D( H' @& B4 F2 d
ipaddr=192.168.1.54 x2 M. S/ ?- s4 M
netmask=255.255.255.09 K! F' Y" j! V! B# \# O
serverip=192.168.1.100
3 [# X9 ?, ]: E+ K5 b, ~) gstderr=serial
" y- {0 o) ~& zstdin=serial
& p" X' V2 ?' ?8 k6 [/ Estdout=serial) d% z9 I& d$ u& Q4 ~
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
1 |) E# S' U; |; ?: R* d* l% O5 f+ O/ P
Environment size: 515/131068 bytes$ N* G* A8 a% t9 v
0 q0 S9 ~1 l/ q0 {4 I内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
( @, C/ Y6 v- b/ r! x$ K 4 X% h9 z/ D, o; L7 k9 q0 N
$ _4 Y. C9 C5 `+ p2 }5 r7 S0 z& B" U) d! r1 X$ D) s
|
|