|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统, n7 l+ J, k6 h1 s; W) H/ ?
文件系统inittab
% s( H; ~9 I$ l5 {$ ]::sysinit:/etc/init.d/rcS 4 Q: Q: H+ R+ L. q$ w
# /bin/ash
- z/ F* F( @$ }; w" { y2 D2 V' p#9 o6 n: c& w2 ?7 ^' B
# Start an shell on the serial port7 a- w. R; c `" K
console::askfirst:-/bin/ash% A) W/ a( u0 D- T
7 `, G3 _; b, R; k1 ], t# Stuff to do when restarting the init process- d2 j; T! N" ^0 \6 [/ c8 L# F4 Q
::restart:/sbin/init
" C, e+ X% [5 z& K! J
8 N; O" p, }! @# Stuff to do before rebooting
8 h2 B8 t1 t& F' A6 S% C; N::ctrlaltdel:/sbin/reboot9 K( j" u# z1 ?5 N
::shutdown:/bin/umount -a -r* f/ {2 |+ s2 @
::shutdown:/sbin/swapoff -a8 c1 T4 k/ t# U" C) L. r
- }" ~1 N2 u4 a9 c! Y- [! B
uboot参数是
5 ~6 w& R* r ^! a. hU-Boot > pri, B. @, S- ]& X0 C$ |5 n- v3 S1 d
baudrate=115200' m7 D8 g; ]8 ?4 R- \1 e
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& V8 N+ ^; t3 p+ X& g( J4 d5 l
bootcmd=tftp c0700000 uImage;bootm c07000002 U' o* e- r3 x- v
bootdelay=1( b0 q; N8 i' I; l2 v& P
bootfile=uImage
0 c' Z7 K6 _' Dethact=DaVinci-EMAC5 p) I; _3 I' k& A h$ @
ethaddr=08:00:02:e3:4d:66
# H$ O+ M5 {8 ^. f1 `hwconfig=dsp:wake=yes
/ h0 l6 B: T g4 Z0 }9 y- Y. v& Zipaddr=192.168.1.56 t2 G, q0 }7 p' d" D( E
netmask=255.255.255.0
; P( F# K& {* a b$ D2 V. l$ oserverip=192.168.1.100: X4 i6 Q, [7 s* c
stderr=serial- N7 Q3 S- J9 c+ `8 S
stdin=serial( m* _* H$ d, ?1 J8 X5 ~
stdout=serial
' s" m; w* q; D, |8 |ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
0 o" |3 e9 }' k" {3 w( f, x2 _. V8 Z+ B# b( T: J
Environment size: 515/131068 bytes
" N+ t6 x: R* O) w$ m2 {, }& b$ x) h
& O# g; _% _. y# R: i# s( Y内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
/ m/ |# f0 J0 W5 a* I / d9 ~- ]8 K5 H% t1 v, X+ e. c
: G* e9 p0 ?# ?% \ w9 h# H4 f
# U0 [+ g% M+ e; `6 m2 U
|
|