|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
3 P6 |: U! k3 I# d$ T文件系统inittab
( \, x/ w; R7 w% G7 z/ K::sysinit:/etc/init.d/rcS
o5 x* X. L8 h; w# Y# U' i" d& p# z4 B# /bin/ash
- a" o, J: o% u6 f6 ]#
6 `2 V5 P( O N8 W# Start an shell on the serial port
9 r8 a# x8 u0 O* K/ qconsole::askfirst:-/bin/ash' {4 V0 T. O1 S9 I+ {$ p
8 V: F* d% v' {$ [( B! s. R' {% V# Stuff to do when restarting the init process
" E- Z2 m1 k0 p! W8 N::restart:/sbin/init
I$ F W* N* h) T3 j5 E# Z) g3 R' h+ a/ ~3 d) L7 e' X
# Stuff to do before rebooting
# F4 a& s6 ^9 x( W6 ]::ctrlaltdel:/sbin/reboot7 R, d- I; C5 k/ @- z+ l; t
::shutdown:/bin/umount -a -r
, W4 ^$ m, p( i7 x! E! a::shutdown:/sbin/swapoff -a
* \9 t w. F7 e+ g8 O9 b! m3 I+ |3 l/ o" E" |5 ]7 W/ s+ \
uboot参数是7 B. n# A o# l5 D$ w. i
U-Boot > pri5 F& ] |* ~/ A- C# }; L9 K0 b
baudrate=115200* z) j( S$ ~: ^* \' I9 j: ]7 s
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=128M4 o/ [0 i/ D0 Q
bootcmd=tftp c0700000 uImage;bootm c0700000
2 B( M7 a, [- gbootdelay=1
% G2 {' o1 K0 \ @bootfile=uImage/ j7 I( [* o' b6 e
ethact=DaVinci-EMAC" V2 M; j# R5 U1 i
ethaddr=08:00:02:e3:4d:66* D. l# x8 B [$ A/ G% Y8 j
hwconfig=dsp:wake=yes1 B+ m: y2 }$ l7 y# s
ipaddr=192.168.1.5* L. u" v' a. m, b+ }
netmask=255.255.255.0
- a$ u( y% K9 h4 j& V0 G2 B1 b8 s r! Sserverip=192.168.1.100
& u5 s$ E5 Y! V% f9 y! D+ W) ustderr=serial
0 W) k+ s" r: I0 l2 Istdin=serial
% G2 r; J1 E/ nstdout=serial
5 h- q2 S# d; S5 u B# k8 over=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
& c0 x$ [- X1 T) |* t: D! j, s3 i3 G3 F, o x6 s! {
Environment size: 515/131068 bytes
- x( v9 J# g, H1 ^$ b( S1 X" P' M! x$ [+ N/ m+ m
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
% |% b, N8 ]/ \ 4 a* H5 t" z/ u4 d
3 ^0 e; \9 k2 i4 \3 n' w% ]5 m3 v+ C$ `* d
|
|