|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,. l$ \2 h) H) H2 o( G! Z
文件系统inittab
$ S* U3 k0 H# E' J" ~! h* u$ o::sysinit:/etc/init.d/rcS % ^1 N! K& j8 Y% ^ v
# /bin/ash
- F1 g0 i% g) u/ S#2 ]6 |. n6 a) n0 L. X+ e7 c
# Start an shell on the serial port) Z: y7 f* m7 O# \6 o3 `. H- o
console::askfirst:-/bin/ash! s( O+ ^8 I& l$ ~2 h5 Y0 b
# P# I1 p- Y. u4 ` ]
# Stuff to do when restarting the init process
6 m3 i. U4 C) v r$ ^::restart:/sbin/init9 R# R P6 q3 n
' |% A" z. r) K3 B
# Stuff to do before rebooting
7 ]" A! T8 S" j' x- ]::ctrlaltdel:/sbin/reboot7 ^* G7 d+ D+ p& h* _0 B! v
::shutdown:/bin/umount -a -r
/ q4 O9 C' r/ w2 l6 Q D7 F; a::shutdown:/sbin/swapoff -a. ?/ S& u9 m; W
3 v( W7 [* B- g2 n0 |" `
uboot参数是1 S% \! I4 a* R, V5 H, a$ \
U-Boot > pri
" `6 m$ Y# p/ ~* x! |baudrate=1152009 t8 q0 Y, U- g3 G
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/ r# P& F' W' A9 F+ Q3 s) J
bootcmd=tftp c0700000 uImage;bootm c0700000
7 \ N* T6 |6 ~" o0 g. X- gbootdelay=17 u5 A3 y, A, A3 h: ?
bootfile=uImage& |2 i( e: Y, y i6 u* ^
ethact=DaVinci-EMAC
5 {4 D% d: A: o! i$ |/ V& @ethaddr=08:00:02:e3:4d:66% G2 l: S, X% u b
hwconfig=dsp:wake=yes2 |+ D U( [; e# e$ x
ipaddr=192.168.1.55 G. ^" {( j9 U& S
netmask=255.255.255.09 J* Q5 V6 B$ Q3 F1 h9 o5 H
serverip=192.168.1.1001 S# s1 k1 u. w' ?5 n9 H1 V
stderr=serial
& ~0 Z: _. S/ _7 I3 {4 T8 J( J% x2 \stdin=serial
) m) l, m% L* K4 l: _) i7 Z6 Gstdout=serial
% F7 J1 D' g# E0 ]9 Yver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)6 [/ q, v; S' P* z, S5 R
! Q5 H0 l+ G1 i- M4 G X
Environment size: 515/131068 bytes5 {% P0 d! g* U$ O7 }) _& G6 o! u
7 x4 z: ?) k) X1 \# n3 O2 E% l0 `内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊. f* a# G1 N6 X3 n1 }# v) |

: a$ ?' a0 k3 F) i1 @ j1 i& L# S) |! j2 T. |1 u# j7 d0 x6 K( D1 B, y
( b7 b7 G: H; P& O0 n7 W |
|