|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
- v+ J& c3 T' W, R+ S: @文件系统inittab. a, @! I' o( i+ p" w
::sysinit:/etc/init.d/rcS
Z! Q, y- \8 Z# {9 ?# /bin/ash7 A8 b" z! N% l, y
#
# x; c8 y+ q# G8 H# Start an shell on the serial port
' R% c) F3 T+ lconsole::askfirst:-/bin/ash
9 g' G% m, } L' v \& ]
8 S+ s! W' v2 ~( i9 L4 Z# Stuff to do when restarting the init process& T5 O. p; |7 {( P a( K
::restart:/sbin/init
{9 t5 @" S l8 O5 z$ [/ o8 C L2 ]/ o% n
# Stuff to do before rebooting! U/ G; ?4 ~! R5 }: ^: }6 w
::ctrlaltdel:/sbin/reboot
0 g- K9 y8 Y K! y" P4 T3 R::shutdown:/bin/umount -a -r
9 g- c( j* Z! r9 `::shutdown:/sbin/swapoff -a
' A u: G) V' O# X! j% s5 ~7 ?7 F( P. C; E' M7 E
uboot参数是5 Z) z4 ?6 T5 T
U-Boot > pri
1 E4 k f/ L, C+ h( W! ~# i# r; ebaudrate=115200
7 f7 U! n6 V. y8 k- {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: {1 G1 i: P: `6 u# i* I
bootcmd=tftp c0700000 uImage;bootm c0700000# C$ \# x* D. J) A8 u+ R( l9 N
bootdelay=18 D: Y; S/ a* m+ r
bootfile=uImage8 K3 M3 l m& ^% a; n0 } s+ c, p
ethact=DaVinci-EMAC
0 ?1 R5 h. P: Jethaddr=08:00:02:e3:4d:66* C0 q* w% F1 b. R: w3 b6 m
hwconfig=dsp:wake=yes
- J% b6 S: L; [# R8 Zipaddr=192.168.1.5
. m$ Q6 Z+ O" o5 ]# s% v( Hnetmask=255.255.255.0 |* _, V/ K' a. z+ Y
serverip=192.168.1.100
! d; E/ j- k) k1 k. pstderr=serial& G. J$ Z, O5 `( {: ]
stdin=serial
: e! X$ P# M; U0 W% ]stdout=serial& x, r; J; O# L
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
% U+ T6 Y' M2 \. E$ b a% Y l3 H
Environment size: 515/131068 bytes
# }* q, g# L' l. B9 s$ ^) t7 s* F2 h1 g% d' _# ~! k" X# ]0 D
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊+ ], r1 I; w8 a% z. W' L
0 W) y+ z; Z7 t6 B L2 \
9 R* U% I% v2 E: |& ?2 j( [$ R; b
2 u& p% R# A0 ~. j1 o7 i5 T2 I |
|