|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,: S) t; b) F9 l& Y: V* b3 _3 ^
文件系统inittab
4 s& X' p8 T9 m- e::sysinit:/etc/init.d/rcS
' m3 \% A; T9 }5 L# /bin/ash# N+ d# U' K7 |* I4 f
#3 J9 G0 j! c4 @( {: v* \/ o% ^+ D
# Start an shell on the serial port3 |5 [, {- I1 |
console::askfirst:-/bin/ash
`. G1 p" F8 |$ O3 t- K2 b# x! K) I# b. N, l6 X4 `( X
# Stuff to do when restarting the init process
) @+ l9 ~5 D* D. o! o% a7 g1 }) q K::restart:/sbin/init
6 r' w4 _; n8 O: I! B! c
& x/ y0 k7 r& j& n& |$ G# Stuff to do before rebooting
9 S4 i7 q* h: ~' D7 {$ u" ^::ctrlaltdel:/sbin/reboot
; ?. M, g; {! v6 }" Y5 u7 N' b. ~::shutdown:/bin/umount -a -r7 r/ V, P3 c& y7 n0 R4 o
::shutdown:/sbin/swapoff -a+ G3 q% }1 C- V% d4 O) a+ `
' s1 J& ?+ J( r- C: o. q8 Tuboot参数是
5 g: x8 V: z; I/ k9 {0 `U-Boot > pri; E8 H% A b8 a8 L x
baudrate=1152009 n2 `+ l/ i5 K4 d& `' C
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=128M0 E- {6 _4 K: g+ I" H
bootcmd=tftp c0700000 uImage;bootm c0700000
: C( G: O& }9 Z z9 h+ ^bootdelay=1
. s, X6 w% R1 C p; _, D2 Cbootfile=uImage7 T1 ?5 I; h3 H+ Z) r2 e7 W5 f
ethact=DaVinci-EMAC3 Y0 Z# t& ?; @
ethaddr=08:00:02:e3:4d:667 d9 H: N. J2 }% C i
hwconfig=dsp:wake=yes k+ v+ ^5 ~. \$ T, u
ipaddr=192.168.1.5. v$ u7 g, U9 Z! w5 b; ~2 W
netmask=255.255.255.0; v" h- w% ^1 O: ^% _
serverip=192.168.1.100
* y p P# ?; T, C: w' t8 s' Istderr=serial: F ?$ m/ K$ M, K+ t
stdin=serial+ Z' M6 d* J' K
stdout=serial; L# {7 E, Q6 l1 j# N- a2 k
ver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)& }! G; g. ?2 |$ K
5 Y& }! a5 U- c+ @, q
Environment size: 515/131068 bytes8 v3 B; [- Q/ B: W2 @
9 K: e% ^ Z2 O7 n# A
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
4 H$ ~" W5 q7 |0 j) M/ z 8 C- A# s1 f* x4 e: q2 E
" d0 Z. t* g! o
9 |" }# G. Z: B2 u4 X* n |
|