|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
6 ?' t; Q* S+ w3 M8 T6 \% `文件系统inittab$ D. j6 h: H; I Q! c& [1 }3 [
::sysinit:/etc/init.d/rcS 1 _1 [! Q* _0 \. M
# /bin/ash
! A1 F' v; Q& B9 y' b#
* F/ C1 S, ?& ]4 }! L2 o& n# Start an shell on the serial port
- m( Q' L3 W: [! Fconsole::askfirst:-/bin/ash9 K- A5 L: C) |0 Z5 t
, f: s: u4 D% k: r
# Stuff to do when restarting the init process$ |" r! E5 f& U
::restart:/sbin/init
+ L4 R* R _ W. B- s
+ Y3 \: K) _0 L" T6 t# Stuff to do before rebooting6 N/ x: S4 B* Q
::ctrlaltdel:/sbin/reboot
2 m/ c9 h* l& g2 ~) g8 c+ {::shutdown:/bin/umount -a -r/ }) x2 ?+ N% T4 B
::shutdown:/sbin/swapoff -a, }$ B, m! ?$ |6 H
& M5 p! e9 e& T0 H) O/ o
uboot参数是/ I# o! g9 E% ^- z: A* d
U-Boot > pri
; l( _9 k' H9 m, p# Z( l4 pbaudrate=115200
8 O7 i0 I O* r; t+ l% A- wbootargs=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: r- `* C; p- b+ O2 G
bootcmd=tftp c0700000 uImage;bootm c0700000
; ^) u5 b7 o& {) q! bbootdelay=1; h6 f$ x/ r2 p+ y: \
bootfile=uImage
; t3 V( v1 i7 m9 _0 \& }ethact=DaVinci-EMAC
8 K/ u# [8 G( t( x( ~$ Gethaddr=08:00:02:e3:4d:660 r' ~4 v$ o: v* ~$ W1 ^" I; \
hwconfig=dsp:wake=yes/ P( j" j. N4 D* c
ipaddr=192.168.1.5% _0 J$ T8 O4 S8 c0 y! y
netmask=255.255.255.0( C6 F0 G) e) B- |& h2 h- N1 O
serverip=192.168.1.100! p: k$ s7 [' \8 F: |# r8 ^
stderr=serial4 e: m( c4 u0 H
stdin=serial# _# I6 V8 _# Q; J; B
stdout=serial! G3 {* c6 {: ~. z( `& n% T) e6 Z
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
$ Q3 U: Y# v$ B* d V3 J; G- Z% F. }9 ^
Environment size: 515/131068 bytes
: e0 t& x& S7 X' I- Q/ N3 J2 E# U& P
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊) n* e6 O; ]1 h

3 I P- J* o2 E4 A# K
* R, ?3 M2 n: n7 _
8 ~, g9 c( u2 V3 B; [/ c C. k+ { |
|