|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
; c3 A) ~/ D# w- t, M! b/ j文件系统inittab; y7 x K" A* ^7 ]" ~4 h+ ^
::sysinit:/etc/init.d/rcS - s6 `2 R* ^/ c) K
# /bin/ash
% ?- @6 x C* h: G- }- J#
$ x7 z9 Z2 c3 k! A# Start an shell on the serial port
( U/ V0 d" B& P7 f! N, k* oconsole::askfirst:-/bin/ash
: w# ]5 Y" Z7 F0 i' v3 J) o: E% x: _# T# n* K6 a
# Stuff to do when restarting the init process
. @- Y* e+ P" ]: P) M# M% m% B" }2 w::restart:/sbin/init
, n: N8 `! q1 \5 ~* D' m$ q, f6 s; R& L' z
# Stuff to do before rebooting
6 F# l: A E/ v5 ?4 }$ h' ?::ctrlaltdel:/sbin/reboot
2 T3 S: J. `2 v( G' |+ A1 U::shutdown:/bin/umount -a -r8 I2 n& S- {7 R+ C+ w
::shutdown:/sbin/swapoff -a
) s$ N- K- e- [; [9 j: m- n' H2 U
- Y* C7 r0 ~+ C: T4 r# w$ \uboot参数是
5 a2 |* u( a% O2 xU-Boot > pri
. D" F' H9 r% _4 ^8 ^& C; mbaudrate=115200
, _+ Z; }2 t- l* o; M/ D8 P* nbootargs=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=128M1 w; ^; i$ i, m/ Q r
bootcmd=tftp c0700000 uImage;bootm c0700000
* c1 Q4 r7 F" F% M* `. R2 wbootdelay=1( [, W% P8 G7 w1 [" s! k0 c, \; J" m! p
bootfile=uImage" I+ \2 F5 G: e F4 w
ethact=DaVinci-EMAC
- J1 k0 @2 t3 l! L# m" zethaddr=08:00:02:e3:4d:661 w" n8 L/ N: _3 }+ J; H: O
hwconfig=dsp:wake=yes: h8 H; a# a( u6 K5 Y. @, \2 |
ipaddr=192.168.1.51 B8 s: W' b9 `+ x
netmask=255.255.255.0
" V, s, S* c% \: Y0 p' x3 Tserverip=192.168.1.100
5 r0 I# ~1 i6 Q2 q: r$ [stderr=serial
) ^* `4 f6 Y$ c$ n& N- [& _stdin=serial
8 Y3 h* K, J" ]) jstdout=serial1 U) Q( \; \$ V7 ~: L0 F
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)$ z( u2 P% B7 Y& o% s7 s v
& ]0 U6 x/ |) L; oEnvironment size: 515/131068 bytes1 Y% i2 B- n B; g5 R
* @+ G# z9 l" F! |: w8 }内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
6 W# u8 k. n+ i4 l : q* x. k$ \# u
. j+ f2 f# p7 ]4 r8 g/ H" ~+ H& S0 _: b7 |( C2 } m3 I
|
|