|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,/ I. _7 N+ y7 } R% I2 Z
文件系统inittab: `7 e O* n' D$ A* R' u; D
::sysinit:/etc/init.d/rcS ! k5 I5 [5 X% Z* G: y1 s
# /bin/ash# X7 W* A( D N
#
4 q* y6 p6 k) h9 f( P& M# Start an shell on the serial port
8 D$ |1 V* J, K& M% cconsole::askfirst:-/bin/ash
8 `- E3 B6 H4 s* `! k
) `( A( v1 f2 E# Stuff to do when restarting the init process
- q* d" L7 M/ |* ~* h::restart:/sbin/init; E G% K( w1 [% X$ o0 S
* p& s2 L$ o1 I; g: d$ ]
# Stuff to do before rebooting6 q1 f" u+ e5 J, @6 ?# v. V$ n
::ctrlaltdel:/sbin/reboot
3 h X# D2 w# ^9 h::shutdown:/bin/umount -a -r* u, C% q, d8 B9 c4 w( c' u
::shutdown:/sbin/swapoff -a0 W3 B" Z- ?! @* g/ R
' c0 O6 p/ n+ O2 L/ m9 c- s
uboot参数是# F% h) \* C4 z- S1 b+ n/ {: m& C
U-Boot > pri
) w- ^6 f( o3 u+ ]baudrate=115200
' K+ K' P% X! U4 ~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 ?" M/ {7 l* w
bootcmd=tftp c0700000 uImage;bootm c0700000. `0 B% c. J2 v# y4 `" b2 s0 R3 [
bootdelay=1) n& S9 F! `& l3 M8 ]
bootfile=uImage+ Y0 S0 C/ E$ N; V1 i2 ]1 b
ethact=DaVinci-EMAC
+ h, p7 P0 O' M4 C: b$ o2 }8 }ethaddr=08:00:02:e3:4d:66) F" h* q% L: c5 E8 i
hwconfig=dsp:wake=yes
8 S" P! d- e/ G2 b. yipaddr=192.168.1.52 P, t4 B6 R6 ^
netmask=255.255.255.08 V$ _3 c, _4 [7 Q
serverip=192.168.1.100
8 {9 @) M5 D- I& V- R* nstderr=serial% G: @" h; V, J
stdin=serial/ c# R4 u- ~" |- e
stdout=serial+ u5 F, Z6 R$ W( ~
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
2 ?0 r9 \' Q! f8 u7 c3 o+ H6 Z
Environment size: 515/131068 bytes
' E( D2 Q# T$ C) j/ K. q- G; j$ c. r7 ]5 }/ G: n' h
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
; {3 F' ^. g$ @* X4 x3 T0 e$ ~2 f w - l; v9 ~: U; t
z9 O3 W' ]$ N
& l% n6 k1 B9 K% r4 ?0 G6 n
|
|