|
|
我使用的是linux 3.30 ,uboot是创龙提供的,文件系统是mini文件系统,; c) Z! A4 A" u
文件系统inittab
, v c& \* d1 _* w/ D# u9 E; a::sysinit:/etc/init.d/rcS
u$ @6 G# R: {! S& M7 F. s0 y# /bin/ash3 `; }1 V: g: g1 s$ C: k u$ J
#1 ?( q; z3 A: ^9 u- _0 u; Z
# Start an shell on the serial port
6 ], A+ D' _" Kconsole::askfirst:-/bin/ash4 I F- }: e; Z3 g* d, S9 k1 m
/ _* {7 M( I. `* N
# Stuff to do when restarting the init process
6 T5 R. G5 V# y::restart:/sbin/init# \, |6 g! Q" w
: I2 s! t0 p4 a% u$ k2 q: B
# Stuff to do before rebooting
, ~: r- E q# f3 p2 e::ctrlaltdel:/sbin/reboot; M) {2 Y: H4 E3 u$ u
::shutdown:/bin/umount -a -r
0 R: O1 |9 S/ ~( m$ a::shutdown:/sbin/swapoff -a3 U2 I- v+ S# J, k0 S
" D9 L f Q0 m8 Z, Muboot参数是$ e5 y+ x9 X' j. z3 q H/ i
U-Boot > pri
" o: e- G/ S+ r/ Rbaudrate=115200
. O, d7 x! _5 W ]6 n1 J- g5 Lbootargs=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
; e+ `5 G. ]" n; y! G6 I9 Lbootcmd=tftp c0700000 uImage;bootm c07000002 g* s- Z2 N3 p
bootdelay=1; z" D6 k' N0 `: U* O
bootfile=uImage
. U+ z4 `( s0 W: y# m" m$ G2 s; Fethact=DaVinci-EMAC
e6 I3 _2 B% l9 Qethaddr=08:00:02:e3:4d:667 T4 u; ]6 y% p/ Y4 |. J! b, x
hwconfig=dsp:wake=yes
4 D! o8 b) v- `, G. [" Oipaddr=192.168.1.5' j" U6 a- s! Y, U
netmask=255.255.255.0# v) a2 K+ \7 j# Q- F" x" e% u4 ^
serverip=192.168.1.100
/ q8 ]& }* |7 n: [stderr=serial
3 Q. B8 ~7 F5 }4 v' bstdin=serial
. w# d7 K; `/ A8 tstdout=serial
( V- n2 F# D8 o0 W& Rver=U-Boot 2012.04.01 (Sep 23 2014 - 13:22:36)
Y6 G* C* ]4 Y% x/ y8 z* g. I0 h2 C8 M: T/ e* v- P) m. H
Environment size: 515/131068 bytes
! F% y8 { B6 D+ h1 L( G
0 W; J6 d8 V7 {, Z内核启动以后文件系统也可以挂载成功但是无法使用串口,如果把串口换成ttyS2就可以使用,是不是内核配置里面需要什么啊) {7 A' {/ s* ^7 j. M7 I
0 |4 e; D8 C% Q6 Y( }
1 z; N: c6 u5 Q" T$ {. Q
, m& z+ S& A: H3 m0 w |
|