|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,6 }7 @7 ?$ Y7 g4 d0 G
文件系统inittab3 [- D. q+ L" \4 E. L4 v2 B
::sysinit:/etc/init.d/rcS
" w; S7 _3 [+ C' X# /bin/ash
/ B, [2 b: o6 w' j#
4 r$ x. R6 ~! Z/ S1 U/ H5 W( D# Start an shell on the serial port( m& @- a) J% H* S1 E
console::askfirst:-/bin/ash7 {. _; m* G# P+ @' a" |
' \* P5 O- q7 ^4 H9 a! b1 i9 y
# Stuff to do when restarting the init process( |; L8 \ k; i( b* R
::restart:/sbin/init9 B2 K( D: ^$ Z6 I
) m$ J! |+ n3 y2 i4 d# Stuff to do before rebooting
: f, w7 I D" c0 w1 P::ctrlaltdel:/sbin/reboot. s5 w f( a- Q4 l8 Q0 z4 Q
::shutdown:/bin/umount -a -r* c9 d6 @3 d+ S! g5 @* ~, E, S
::shutdown:/sbin/swapoff -a
5 s ?8 }* M3 C2 i7 J
( i7 _2 V4 ~' Ruboot参数是! N! ?& t( [) {3 |8 Y0 H
U-Boot > pri
( ] z5 t) A' t$ xbaudrate=1152004 { m0 H' e0 D% z3 D* g2 C9 J
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
9 |/ Q/ ?$ [6 H- x) {2 Gbootcmd=tftp c0700000 uImage;bootm c0700000
. l" F9 s! d3 p4 E. ]bootdelay=1
# d+ @: F& R; s7 P2 N4 wbootfile=uImage
& {: q4 I$ j! bethact=DaVinci-EMAC$ B6 R% w; z4 B7 |
ethaddr=08:00:02:e3:4d:667 [ L8 t$ b0 @; ~' ^
hwconfig=dsp:wake=yes
( \. l8 u- U, H$ P; jipaddr=192.168.1.5
' n0 w) G9 X2 {$ _8 q Ynetmask=255.255.255.0
! O4 V3 ?8 O+ ^( v1 sserverip=192.168.1.100
' `& h+ Y K& E# H: sstderr=serial9 V+ H& q, }0 V# a- D6 x
stdin=serial/ U e/ N5 P) H5 N1 {
stdout=serial9 z; S5 c; U3 V0 m T2 O9 e
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
a g4 }; {+ x K
- l& ]' N5 G( k: `* @Environment size: 515/131068 bytes2 E3 A; q5 S3 w+ @# I: _% k) a
2 b: A! @/ Z D; }: j
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
& e8 Z ~! c0 N/ Y L3 p; ] " t. m4 C- o$ G! q/ \" ~9 N
, |' o0 e1 d9 h. e2 U6 {
, f/ E* {8 Y$ `) J3 w0 O' w |
|