|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
7 C/ e6 r1 {# b文件系统inittab, I1 c- ]4 H9 {+ C* |, g
::sysinit:/etc/init.d/rcS ; Z5 V+ z- s- w0 x z. p/ U. M
# /bin/ash
; l8 y9 x- l) h7 u% v#+ }2 ?, W; n- x
# Start an shell on the serial port k+ f2 V' Z0 p
console::askfirst:-/bin/ash+ ]& G3 f6 @6 T# e0 S5 X
1 R! T- |& t* W. A/ r$ Q7 ?
# Stuff to do when restarting the init process
/ {% O. P3 Q+ Q::restart:/sbin/init
6 S9 p# J# a* m# Y# }( f" M- L- z3 {$ V! A9 Z+ h* q
# Stuff to do before rebooting' u/ i. q, C5 {+ m) o
::ctrlaltdel:/sbin/reboot
9 O, }7 K* y0 R) Z7 @::shutdown:/bin/umount -a -r
' k! R4 s( S* j::shutdown:/sbin/swapoff -a7 t& B" D$ p/ C$ R0 a
- ^' q9 M( j e* \
uboot参数是
7 I4 M4 V! v/ W! q: iU-Boot > pri4 ^( A7 C8 x! A4 J
baudrate=115200
. ^/ ]; q" k {7 J; Obootargs=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
G; G' x( d, b* i' ~6 Obootcmd=tftp c0700000 uImage;bootm c0700000$ r- O( G% I& V( E( Y/ R
bootdelay=1$ Q3 v2 h4 {/ E" p
bootfile=uImage2 M$ B1 A7 x3 q3 `4 M) Q5 s
ethact=DaVinci-EMAC
6 V: j6 G+ Z/ {8 Eethaddr=08:00:02:e3:4d:66! x7 K$ |5 _* i0 F
hwconfig=dsp:wake=yes. _; R1 @3 m# H1 p; C& h
ipaddr=192.168.1.5" M# e) V0 b$ e( o! t
netmask=255.255.255.0
. j9 \/ ] c" f, D% c6 x ]+ j9 mserverip=192.168.1.100
5 m N$ p+ u9 A% ostderr=serial
+ n! z2 [9 z% A. istdin=serial
: a! j& n) ~ n2 a* F3 ^3 v) O6 istdout=serial
2 i* v$ I% {' Lver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36); v" T, `- |# j8 g% w! l. c3 o
: G X S. I" `' u; IEnvironment size: 515/131068 bytes
* i9 s/ s+ N# ]( t$ j
[. @1 k7 ` H1 w; O. M) ]1 x4 f内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
- y) H- G1 I2 a6 s5 G 0 j) A" F1 r" l1 J, v+ p
6 _) q) l g- ]# c0 R2 N: _9 i; s4 `; _! h
|
|