|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,
+ {' |. O5 P( A7 k! B& C! ~文件系统inittab S3 V$ E/ O P5 w7 n5 F2 l
::sysinit:/etc/init.d/rcS ' U0 R1 E2 ^3 C2 V( e$ {0 z" G
# /bin/ash
+ H5 t) O$ |. H7 p#
* y2 f( Y i# j7 Q* R3 R# Start an shell on the serial port# v" E% Z1 C) p" s
console::askfirst:-/bin/ash6 l3 o0 }1 }7 e. T+ i4 H, A
2 c8 n/ l) w" ~& ]+ B0 E
# Stuff to do when restarting the init process
) V# I6 r) u# o$ R4 M::restart:/sbin/init
* a+ w/ Y" W. D* j0 r) m) E8 r0 F" G1 _$ {' G) ~! u$ w
# Stuff to do before rebooting
& B: y o+ I3 b8 k$ U. u% Q::ctrlaltdel:/sbin/reboot
9 s! \6 b. G8 n l::shutdown:/bin/umount -a -r1 ]/ }& n1 ]& l; s
::shutdown:/sbin/swapoff -a
+ H8 Q+ d9 A; f$ o- G3 q
' H" u1 _- M9 L3 _* I% v/ Buboot参数是# ~6 X* M `0 F) n
U-Boot > pri
! m8 m. Y# D p$ G) n7 j3 wbaudrate=1152008 S, z( z( L y: K/ m& w8 z
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# X0 c1 }8 N% S! ?" m8 I
bootcmd=tftp c0700000 uImage;bootm c0700000
# c4 \5 j/ q' N. ]bootdelay=1
: Y; H$ `0 ~3 r4 a1 H- ]- P! wbootfile=uImage" k0 k+ w3 W5 W. V ^/ M: y' C
ethact=DaVinci-EMAC' w2 E: l$ z9 d( R8 |) R
ethaddr=08:00:02:e3:4d:66
- q! r9 a8 B0 A. {# z4 `hwconfig=dsp:wake=yes
3 A* o; u# J- F' z/ k7 ?6 w9 sipaddr=192.168.1.5
" _$ u4 V3 s1 R4 T) W [% Onetmask=255.255.255.0& \) C8 {; r% F- o1 M; Q
serverip=192.168.1.1005 H, L# W. J+ U& h
stderr=serial
9 M+ n% V9 s& T# Y( ~stdin=serial9 b3 l' Z4 j9 Q
stdout=serial
, @ o( L6 x' I6 j B1 u+ rver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36), P; ^: P/ i, W9 M$ }; b7 q/ R0 H
; y- p( Y+ V v( P" yEnvironment size: 515/131068 bytes( T! Q+ |3 r# D( a: b+ u
+ X M- ~' z# `4 e3 d& V! l
内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊
0 \- M- z- {& S7 I! ]) c : ^7 R4 i' H( E5 [# g8 `& L
7 A7 {+ S* X3 X* s) H" j7 s+ u
; m7 b( o( z4 W( e
|
|